-
Notifications
You must be signed in to change notification settings - Fork 664
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
feat(start_planner): yaw threshold for rss check #7657
feat(start_planner): yaw threshold for rss check #7657
Conversation
52b2a88
to
356a320
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7657 +/- ##
==========================================
- Coverage 14.84% 13.08% -1.77%
==========================================
Files 1999 525 -1474
Lines 139163 48921 -90242
Branches 43716 11815 -31901
==========================================
- Hits 20661 6402 -14259
+ Misses 95731 41574 -54157
+ Partials 22771 945 -21826
☔ View full report in Codecov by Sentry. |
@@ -604,6 +610,10 @@ std::vector<Polygon2d> getCollidedPolygons( | |||
const auto & ego_polygon = interpolated_data->poly; | |||
const auto ego_velocity = std::min(interpolated_data->velocity, max_velocity_limit); | |||
|
|||
const double ego_yaw = tf2::getYaw(ego_pose.orientation); | |||
const double object_yaw = tf2::getYaw(obj_pose.orientation); | |||
if (std::abs(ego_yaw - object_yaw) > yaw_difference_th) continue; |
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.
If you have ego_yaw = 3.13
and object_yaw = -3.13
, the difference should be ~0.02
but with this code it will be 6.26
which will always be higher than the threshold.
I believe you should use autoware::universe_utils::normalizeRadian
to make sure the angle difference is between -pi
and pi
.
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.
Done @maxime-clem
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.
Did you forget to push a commit ? The code appear unchanged 🤔
356a320
to
9d877eb
Compare
307e887
to
f317d97
Compare
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
f317d97
to
750838a
Compare
@danielsanchezaran |
Signed-off-by: Daniel Sanchez <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Done |
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
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
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. Thanks!
c129187
into
autowarefoundation:main
…7657) * add param to customize yaw th Signed-off-by: Daniel Sanchez <[email protected]> * add param to other modules Signed-off-by: Daniel Sanchez <[email protected]> * docs Signed-off-by: Daniel Sanchez <[email protected]> * update READMEs with params Signed-off-by: Daniel Sanchez <[email protected]> * fix LC README Signed-off-by: Daniel Sanchez <[email protected]> * use normalized yaw diff Signed-off-by: Daniel Sanchez <[email protected]> --------- Signed-off-by: Daniel Sanchez <[email protected]>
…7657) * add param to customize yaw th Signed-off-by: Daniel Sanchez <[email protected]> * add param to other modules Signed-off-by: Daniel Sanchez <[email protected]> * docs Signed-off-by: Daniel Sanchez <[email protected]> * update READMEs with params Signed-off-by: Daniel Sanchez <[email protected]> * fix LC README Signed-off-by: Daniel Sanchez <[email protected]> * use normalized yaw diff Signed-off-by: Daniel Sanchez <[email protected]> --------- Signed-off-by: Daniel Sanchez <[email protected]>
…7657) * add param to customize yaw th Signed-off-by: Daniel Sanchez <[email protected]> * add param to other modules Signed-off-by: Daniel Sanchez <[email protected]> * docs Signed-off-by: Daniel Sanchez <[email protected]> * update READMEs with params Signed-off-by: Daniel Sanchez <[email protected]> * fix LC README Signed-off-by: Daniel Sanchez <[email protected]> * use normalized yaw diff Signed-off-by: Daniel Sanchez <[email protected]> --------- Signed-off-by: Daniel Sanchez <[email protected]> Signed-off-by: palas21 <[email protected]>
…7657) * add param to customize yaw th Signed-off-by: Daniel Sanchez <[email protected]> * add param to other modules Signed-off-by: Daniel Sanchez <[email protected]> * docs Signed-off-by: Daniel Sanchez <[email protected]> * update READMEs with params Signed-off-by: Daniel Sanchez <[email protected]> * fix LC README Signed-off-by: Daniel Sanchez <[email protected]> * use normalized yaw diff Signed-off-by: Daniel Sanchez <[email protected]> --------- Signed-off-by: Daniel Sanchez <[email protected]>
* add param to customize yaw th Signed-off-by: Daniel Sanchez <[email protected]> * add param to other modules Signed-off-by: Daniel Sanchez <[email protected]> * docs Signed-off-by: Daniel Sanchez <[email protected]> * update READMEs with params Signed-off-by: Daniel Sanchez <[email protected]> * fix LC README Signed-off-by: Daniel Sanchez <[email protected]> * use normalized yaw diff Signed-off-by: Daniel Sanchez <[email protected]> --------- Signed-off-by: Daniel Sanchez <[email protected]>
Description
This PR adds a yaw threshold to skip rss check when the yaws of the ego predicted path and the predicted object are too different, to avoid RSS checks like this:
Note, this PR requires launch changes: autowarefoundation/autoware_launch#1040
Related links
TIER IV INTERNAL LINK
Tests performed
PSim
Degradation tests TIER IV INTERNAL LINK
Notes for reviewers
Interface changes
ROS Topic Changes
ROS Parameter Changes
Effects on system behavior
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.