Skip to content
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

Conversation

danielsanchezaran
Copy link
Contributor

@danielsanchezaran danielsanchezaran commented Jun 24, 2024

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:

image

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added component:planning Route planning, decision-making, and navigation. (auto-assigned) component:system System design and integration. (auto-assigned) labels Jun 24, 2024
@danielsanchezaran danielsanchezaran added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jun 24, 2024
@danielsanchezaran danielsanchezaran force-pushed the feat/yaw_threshold_for_rss_check branch 2 times, most recently from 52b2a88 to 356a320 Compare June 24, 2024 08:40
@github-actions github-actions bot removed the component:system System design and integration. (auto-assigned) label Jun 24, 2024
@danielsanchezaran danielsanchezaran marked this pull request as ready for review June 24, 2024 08:41
Copy link

codecov bot commented Jun 24, 2024

Codecov Report

Attention: Patch coverage is 11.76471% with 30 lines in your changes missing coverage. Please review.

Project coverage is 13.08%. Comparing base (507e3f4) to head (a2ccb94).
Report is 149 commits behind head on main.

Files Patch % Lines
...behavior_path_start_planner_module/src/manager.cpp 0.00% 9 Missing ⚠️
..._start_planner_module/src/start_planner_module.cpp 0.00% 6 Missing ⚠️
..._behavior_path_goal_planner_module/src/manager.cpp 0.00% 5 Missing ⚠️
...mon/src/utils/path_safety_checker/safety_check.cpp 0.00% 4 Missing ⚠️
...th_goal_planner_module/src/goal_planner_module.cpp 0.00% 3 Missing ⚠️
...path_start_planner_module/start_planner_module.hpp 0.00% 2 Missing ⚠️
...are_behavior_path_lane_change_module/src/scene.cpp 0.00% 1 Missing ⚠️
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     
Flag Coverage Δ
differential 13.08% <11.76%> (?)
total ?

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -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;
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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 🤔

@danielsanchezaran danielsanchezaran force-pushed the feat/yaw_threshold_for_rss_check branch from 356a320 to 9d877eb Compare June 25, 2024 06:07
@github-actions github-actions bot added component:system System design and integration. (auto-assigned) type:documentation Creating or refining documentation. (auto-assigned) labels Jun 25, 2024
@danielsanchezaran danielsanchezaran added the run:deploy-docs Mark for deploy-docs action generation. (used-by-ci) label Jun 25, 2024
@danielsanchezaran danielsanchezaran force-pushed the feat/yaw_threshold_for_rss_check branch from 307e887 to f317d97 Compare June 25, 2024 06:49
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
@danielsanchezaran danielsanchezaran force-pushed the feat/yaw_threshold_for_rss_check branch from f317d97 to 750838a Compare June 25, 2024 06:51
@github-actions github-actions bot removed the component:system System design and integration. (auto-assigned) label Jun 25, 2024
@zulfaqar-azmi-t4
Copy link
Contributor

@danielsanchezaran
Looks good to me. Can you add the parameter description in lane change documentation as well?

Signed-off-by: Daniel Sanchez <[email protected]>
Copy link

github-actions bot commented Jun 26, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@danielsanchezaran
Copy link
Contributor Author

@danielsanchezaran Looks good to me. Can you add the parameter description in lane change documentation as well?

Done

Signed-off-by: Daniel Sanchez <[email protected]>
Signed-off-by: Daniel Sanchez <[email protected]>
Copy link
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@satoshi-ota satoshi-ota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@danielsanchezaran danielsanchezaran merged commit c129187 into autowarefoundation:main Jun 27, 2024
25 of 31 checks passed
@danielsanchezaran danielsanchezaran deleted the feat/yaw_threshold_for_rss_check branch June 27, 2024 01:15
shmpwk pushed a commit to tier4/autoware.universe that referenced this pull request Jun 27, 2024
…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]>
mitukou1109 pushed a commit to mitukou1109/autoware.universe that referenced this pull request Jul 2, 2024
…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]>
palas21 pushed a commit to palas21/autoware.universe that referenced this pull request Jul 12, 2024
…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]>
tby-udel pushed a commit to tby-udel/autoware.universe that referenced this pull request Jul 14, 2024
…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]>
KhalilSelyan pushed a commit that referenced this pull request Jul 22, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) run:deploy-docs Mark for deploy-docs action generation. (used-by-ci) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants