-
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
refactor(pid_longitudinal_controller): use common elevetation angle calculation #5090
refactor(pid_longitudinal_controller): use common elevetation angle calculation #5090
Conversation
…alculation Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #5090 +/- ##
==========================================
- Coverage 15.77% 15.76% -0.02%
==========================================
Files 1584 1584
Lines 109568 109542 -26
Branches 33728 33722 -6
==========================================
- Hits 17286 17265 -21
Misses 73656 73656
+ Partials 18626 18621 -5
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Note: This includes the fix for the definition inconsistency of pitch_from_ego
and pitch_from_trajectory
.
…alculation (autowarefoundation#5090) * refactor(pid_longitudinal_controller): use common elevetation angle calculation Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * update Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> --------- Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
…alculation (autowarefoundation#5090) * refactor(pid_longitudinal_controller): use common elevetation angle calculation Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * update Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> --------- Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Description
use tier4_autoware_utils::calcElevationAngle instead of an internally defined function.
NOTE:
The sign of slope_angle will be opposite to the existing one.
This is because the sign of calcElevationAngle in pid_longitudinal_controller and tier4_autoware_utils are different due to how the dz is calculated. "calcElevationAngle in pid_longitudinal_controller" is wrong.
autoware.universe/control/pid_longitudinal_controller/src/longitudinal_controller_utils.cpp
Lines 119 to 129 in 1911464
autoware.universe/common/tier4_autoware_utils/src/geometry/geometry.cpp
Lines 97 to 103 in 1911464
The sign of acceleration calculated by slope_angle will not change. Therefore, the behavior of slope compensation will not change.
This is handled by the following change of this PR.
Tests performed
unit test
psim
Effects on system behavior
nothing
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.