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(start_planner): refactor backward path calculation in StartPlannerModule #5529

Conversation

kyoichi-sugahara
Copy link
Contributor

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.

  • 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.

…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>
@github-actions github-actions bot added the type:documentation Creating or refining documentation. (auto-assigned) label Nov 9, 2023
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Comment on lines 843 to 849
// 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);
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed in f7d1775

kyoichi-sugahara and others added 8 commits November 10, 2023 17:36
…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>
@kyoichi-sugahara kyoichi-sugahara added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 10, 2023
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

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

Comparison is base (4db9fc5) 15.36% compared to head (f7d1775) 15.36%.
Report is 3 commits behind head on main.

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              
Flag Coverage Δ *Carryforward flag
differential 12.74% <0.00%> (?)
total 15.36% <ø> (+<0.01%) ⬆️ Carriedforward from 4db9fc5

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

Files Coverage Δ
...ils/include/motion_utils/trajectory/trajectory.hpp 65.65% <ø> (ø)
...cene_module/start_planner/start_planner_module.hpp 0.00% <ø> (ø)
...cene_module/start_planner/start_planner_module.cpp 7.96% <0.00%> (-0.06%) ⬇️

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

Copy link
Contributor

@kosuke55 kosuke55 left a comment

Choose a reason for hiding this comment

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

LGTM thakns!

@kyoichi-sugahara kyoichi-sugahara merged commit 08b905a into autowarefoundation:main Nov 10, 2023
31 of 34 checks passed
@kyoichi-sugahara kyoichi-sugahara deleted the refactor/start_planner_filtering branch November 10, 2023 10:21
takayuki5168 pushed a commit to tier4/autoware.universe that referenced this pull request Nov 22, 2023
…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>
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) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants