-
Notifications
You must be signed in to change notification settings - Fork 682
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
perf(behavior_path_planner): simplify calculateDistanceLimit for dynamic drivable area expansion #4163
perf(behavior_path_planner): simplify calculateDistanceLimit for dynamic drivable area expansion #4163
Conversation
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
This reverts commit b291af4.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #4163 +/- ##
==========================================
- Coverage 15.24% 15.24% -0.01%
==========================================
Files 1465 1465
Lines 101622 101707 +85
Branches 31359 31423 +64
==========================================
+ Hits 15497 15507 +10
- Misses 69277 69331 +54
- Partials 16848 16869 +21
*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.
I checked the frequency of /planning/scenario_planning/lane_driving/behavior_planning/path_with_lane_id
in the curved lane.
( I enabled dynamic_expansion and changed extra_footprint_offset from 0.5 to 3.0. )
On my PC (ThinkPad X1 Extreme Gen4), the frequency was 0.2Hz before PR merge, but it becomes >9.9Hz after PR merge.
…mic drivable area expansion (autowarefoundation#4163) * Add a test for the calculateDistanceLimit function Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Remove use of boost::geometry::within to improve performance Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * [TMP] run behavior_path_planner with gdb Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Revert "[TMP] run behavior_path_planner with gdb" This reverts commit b291af4. --------- Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
…mic drivable area expansion (autowarefoundation#4163) (#650) * Add a test for the calculateDistanceLimit function * Remove use of boost::geometry::within to improve performance * [TMP] run behavior_path_planner with gdb * Revert "[TMP] run behavior_path_planner with gdb" This reverts commit b291af4. --------- Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> Co-authored-by: Maxime CLEMENT <78338830+maxime-clem@users.noreply.github.com>
Description
This PR reduces the cost of running the dynamic drivable area expansion.
Currently, the calculations are very heavy and do not scale well with the number of "uncrossable lines".
This PR improves the performances but do not completely solve the scaling issue.
Tests performed
Tested in Psim.
Effects on system behavior
Running the dynamic drivable area expansion is less expensive, but the precision is reduced and the drivable area may slightly cross some lines we do not want to cross (e.g., road borders).
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.