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

refactor(goal_planner): add rss safety check function #5620

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Nov 17, 2023

Description

refactoring and add checkSafetyWithRSS

Tests performed

Not applicable.

Effects on system behavior

Not applicable.

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.

  • There are no open discussions or they are tracked via tickets.

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

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Nov 17, 2023
@kosuke55 kosuke55 changed the title Refactor/goal planner rss refactor(goal_planner): add rss safety check function Nov 17, 2023
@kosuke55 kosuke55 added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 17, 2023
Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 229 lines in your changes are missing coverage. Please review.

Comparison is base (765a596) 15.32% compared to head (840f408) 15.33%.
Report is 29 commits behind head on main.

Files Patch % Lines
.../scene_module/goal_planner/goal_planner_module.cpp 1.49% 131 Missing and 1 partial ⚠️
...er/src/scene_module/avoidance/avoidance_module.cpp 0.00% 34 Missing and 2 partials ⚠️
.../scene_module/goal_planner/goal_planner_module.hpp 15.78% 15 Missing and 1 partial ⚠️
planning/behavior_path_planner/src/utils/utils.cpp 0.00% 13 Missing ⚠️
...th_planner/src/scene_module/lane_change/normal.cpp 0.00% 11 Missing ⚠️
...cene_module/start_planner/start_planner_module.cpp 0.00% 7 Missing ⚠️
...e/behavior_path_planner/utils/avoidance/helper.hpp 0.00% 4 Missing ⚠️
...ath_planner/src/scene_module/avoidance/manager.cpp 0.00% 0 Missing and 4 partials ⚠️
...rivable_area_expansion/drivable_area_expansion.cpp 40.00% 0 Missing and 3 partials ⚠️
...h_planner/src/scene_module/lane_change/manager.cpp 0.00% 0 Missing and 2 partials ⚠️
... and 1 more
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5620   +/-   ##
=======================================
  Coverage   15.32%   15.33%           
=======================================
  Files        1721     1721           
  Lines      118559   118492   -67     
  Branches    37995    37992    -3     
=======================================
  Hits        18169    18169           
+ Misses      79657    79589   -68     
- Partials    20733    20734    +1     
Flag Coverage Δ *Carryforward flag
differential 12.65% <2.96%> (?)
total 15.35% <40.00%> (+0.03%) ⬆️ Carriedforward from 017aed4

*This pull request uses carry forward flags. Click here to find out more.

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


return std::any_of(
obj_predicted_paths.begin(), obj_predicted_paths.end(), [&](const auto & obj_path) {
const bool is_collision = !utils::path_safety_checker::checkCollision(
Copy link
Contributor

Choose a reason for hiding this comment

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

[NITS] I prefer has_collision rathar than is_collision

Copy link
Contributor Author

Choose a reason for hiding this comment

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

both seem to exist

image
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but I also prefer has so fixed

840f408

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@kosuke55 kosuke55 merged commit a395e72 into main Nov 20, 2023
25 of 27 checks passed
@kosuke55 kosuke55 deleted the refactor/goal_planner_rss branch November 20, 2023 09:13
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Nov 22, 2023
…tion#5620)

* refactor(goal_planner): add rss safety check function

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* has_collision

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
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) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants