-
Notifications
You must be signed in to change notification settings - Fork 673
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(start_planner): refactor backward path calculation in StartPlannerModule #5529
refactor(start_planner): refactor backward path calculation in StartPlannerModule #5529
Conversation
…lannerModule The method "calcStartPoseCandidatesBackwardPath" has been renamed to "calcBackwardPathFromStartPose" to better reflect its purpose. The method now calculates the backward path by shifting the original start pose coordinates to align with the pull out lanes. The stop objects in the pull out lanes are filtered by velocity, using the new "filterStopObjectsInPullOutLanes" method. Additionally, the redundant "isOverlappedWithLane" method has been removed. Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp
Outdated
Show resolved
Hide resolved
planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp
Outdated
Show resolved
Hide resolved
planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp
Outdated
Show resolved
Hide resolved
planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp
Outdated
Show resolved
Hide resolved
planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp
Outdated
Show resolved
Hide resolved
planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp
Show resolved
Hide resolved
planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp
Show resolved
Hide resolved
// filter for objects located in pull_out_lanes and moving at a speed below the threshold | ||
const auto [objects_in_pull_out_lanes, others] = | ||
utils::path_safety_checker::separateObjectsByLanelets( | ||
*planner_data_->dynamic_object, pull_out_lanes, | ||
utils::path_safety_checker::isPolygonOverlapLanelet); | ||
const auto stop_objects_in_pull_out_lanes = utils::path_safety_checker::filterObjectsByVelocity( | ||
objects_in_pull_out_lanes, velocity_threshold); |
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.
better to filter with velocity for computational cost
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.
agree!
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.
changed in f7d1775
planning/behavior_path_planner/src/scene_module/start_planner/start_planner_module.cpp
Show resolved
Hide resolved
…start_planner_module.cpp Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
…start_planner_module.cpp Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
…start_planner_module.cpp Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
…start_planner_module.cpp Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
…start_planner_module.cpp Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
…start_planner_module.cpp Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
…r_filtering Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
StartPlannerModule Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5529 +/- ##
==========================================
- Coverage 15.36% 15.36% -0.01%
==========================================
Files 1697 1697
Lines 117472 117476 +4
Branches 37762 37763 +1
==========================================
Hits 18049 18049
- Misses 78873 78877 +4
Partials 20550 20550
*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 thakns!
08b905a
into
autowarefoundation:main
…lannerModule (autowarefoundation#5529) * refactor(start_planner): refactor backward path calculation in StartPlannerModule The method "calcStartPoseCandidatesBackwardPath" has been renamed to "calcBackwardPathFromStartPose" to better reflect its purpose. The method now calculates the backward path by shifting the original start pose coordinates to align with the pull out lanes. The stop objects in the pull out lanes are filtered by velocity, using the new "filterStopObjectsInPullOutLanes" method. Additionally, the redundant "isOverlappedWithLane" method has been removed. Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp> --------- Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp> Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
Description
The method "calcStartPoseCandidatesBackwardPath" has been renamed to "calcBackwardPathFromStartPose" to better reflect its purpose. The method now calculates the backward path by shifting the original start pose coordinates to align with the pull out lanes. The stop objects in the pull out lanes are filtered by velocity, using the new "filterStopObjectsInPullOutLanes" method.
Additionally, the redundant "isOverlappedWithLane" method has been removed.
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.
After all checkboxes are checked, anyone who has write access can merge the PR.