-
Notifications
You must be signed in to change notification settings - Fork 630
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
fix(behavior_velocity_planner): avoid duplicates in intersection module #1483
fix(behavior_velocity_planner): avoid duplicates in intersection module #1483
Conversation
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
Codecov Report
@@ Coverage Diff @@
## main #1483 +/- ##
==========================================
- Coverage 10.36% 10.23% -0.14%
==========================================
Files 1135 1118 -17
Lines 79574 78025 -1549
Branches 18534 18171 -363
==========================================
- Hits 8251 7982 -269
+ Misses 63122 62530 -592
+ Partials 8201 7513 -688
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
…tersection_lanelets
@maxime-clem Thank you! I asked @taikitanaka3 to review this PR. |
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.
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.
using set
for checking duplicate lanelet looks good !
…le (#1483) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
…le (tier4#1483) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
…le (tier4#1483) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
…le (tier4#1483) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
…le (autowarefoundation#1483) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
…le (tier4#1483) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
Signed-off-by: Maxime CLEMENT maxime.clement@tier4.jp
Description
The
intersection
module of thebehavior_velocity_planner
outputs very large debug message when crossing multiple intersections. Moreover, the CPU load also greatly increases in that case.This PR solves this issue by simplifying the
detection_area_lanelets
calculated by functiongetObjectiveLanelets()
.This variable is used to (1) calculate the lanelet IDs to use for collision detection and (2) calculate the debug polygons to highlight in rviz. Originally, the
detection_area_lanelets
was a vector of sequences of lanelets where the sequences could overlap, sharing many common lanelets. This would result in many duplicated IDs (1) and many overlapping polygons (2).In this PR, the
detection_area_lanelets
is changed to be a vector of lanelets without any duplicate, which simplifies both (1) and (2) without changing the behavior of the module.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.