-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[motion_velocity_smoother] steer rate calculation looks wrong #5964
Comments
autowarefoundation#5964 Signed-off-by: Vincent Richard <richard-v@macnica.co.jp>
Thank you for your information. However, the behavior of code is not changed because
is not changed whether or not change the |
Yes, however the PR shifts |
autowarefoundation#5964 Signed-off-by: Vincent Richard <richard-v@macnica.co.jp>
) #5964 Signed-off-by: Vincent Richard <richard-v@macnica.co.jp>
Edit: I still get the issue with the fix, so it may not be the root cause. Regarding the loop starting at 1 instead of 0, I think this is the cause of one of the issues I am facing with the freespace planner. When the vehicle is stopped half way in a turning manoeuver, Autoware sometimes refuse to restart the vehicle. The PID longitudinal controller reports this error: For example, here is one trajectory calculated by
As you can see, the first point This problem may be limited to the planning simulator, as the simulator seems not able to turn the steering in place. Anyway, I think it is better not to miss the first point |
If this PR solves the issue completely please close the issue. |
…towarefoundation#5965) autowarefoundation#5964 Signed-off-by: Vincent Richard <richard-v@macnica.co.jp>
…towarefoundation#5965) autowarefoundation#5964 Signed-off-by: Vincent Richard <richard-v@macnica.co.jp>
…towarefoundation#5965) autowarefoundation#5964 Signed-off-by: Vincent Richard <richard-v@macnica.co.jp>
…towarefoundation#5965) autowarefoundation#5964 Signed-off-by: Vincent Richard <richard-v@macnica.co.jp>
Checklist
Description
Here:
autoware.universe/planning/motion_velocity_smoother/src/smoother/smoother_base.cpp
Lines 218 to 235 in 2edd55e
we go through trajectory points with a sliding window of 2 points. There are few issues with this loop:
front_wheel_angle_rad
values are calculated twice, once withi+1
and on the next loop withi
. The loop does 2 things at the same time: calculatingfront_wheel_angle_rad
values andsteer_rate
. Duplicated computation could be avoiding by spliting the loop into 2.i+1
and "back" values are for indexi
, however for theatan
lines the calculation looks reversed:steer_front = std::atan(base_param_.wheel_base * curvature_v.at(i)); steer_back = std::atan(base_param_.wheel_base * curvature_v.at(i + 1));
I guess it should be:
steer_front = std::atan(base_param_.wheel_base * curvature_v.at(i + 1)); steer_back = std::atan(base_param_.wheel_base * curvature_v.at(i));
Expected behavior
N/A
Actual behavior
N/A
Steps to reproduce
N/A
Versions
No response
Possible causes
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: