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

feat(start_planner): separate collision check and path planning #5952

Conversation

kyoichi-sugahara
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara commented Dec 25, 2023

Description

separate collision check feature from path planning function

Tests performed

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 Dec 25, 2023
@kyoichi-sugahara kyoichi-sugahara changed the title remove collision check in pull out planner feat(start_planner): remove collision check in pull out planner Dec 25, 2023
@kyoichi-sugahara kyoichi-sugahara force-pushed the feat/check_collision_outside_of_plan branch from 3e459da to ee88e10 Compare December 25, 2023 05:33
@kyoichi-sugahara kyoichi-sugahara changed the title feat(start_planner): remove collision check in pull out planner feat(start_planner): separate collision check and plan path Dec 25, 2023
@kyoichi-sugahara kyoichi-sugahara changed the title feat(start_planner): separate collision check and plan path feat(start_planner): separate collision check and path planning Dec 25, 2023
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@kyoichi-sugahara kyoichi-sugahara force-pushed the feat/check_collision_outside_of_plan branch from ee88e10 to 8afbca4 Compare December 26, 2023 10:16
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>
Copy link

codecov bot commented Dec 27, 2023

Codecov Report

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

Comparison is base (3b0c254) 15.23% compared to head (e5717ad) 15.23%.
Report is 1 commits behind head on main.

Files Patch % Lines
..._start_planner_module/src/start_planner_module.cpp 0.00% 22 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5952   +/-   ##
=======================================
  Coverage   15.23%   15.23%           
=======================================
  Files        1750     1750           
  Lines      120710   120708    -2     
  Branches    36740    36740           
=======================================
+ Hits        18394    18395    +1     
+ Misses      81674    81671    -3     
  Partials    20642    20642           
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 15.24% <ø> (+<0.01%) ⬆️ Carriedforward from 743eb0e

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

Comment on lines 627 to 631
const auto [pull_out_lane_objects, others] =
utils::path_safety_checker::separateObjectsByLanelets(
*dynamic_objects, pull_out_lanes, utils::path_safety_checker::isPolygonOverlapLanelet);
const auto pull_out_lane_stop_objects = utils::path_safety_checker::filterObjectsByVelocity(
pull_out_lane_objects, parameters_->th_moving_object_velocity);
Copy link
Contributor

Choose a reason for hiding this comment

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

doning filterObjectsByVelocity first may be faster

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! thanks!

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 e5717ad

Comment on lines +645 to +658
// lambda function for combining partial_paths
const auto combine_partial_path = [pull_out_lanes](const auto & path) {
PathWithLaneId combined_path;
for (const auto & partial_path : path.partial_paths) {
combined_path.points.insert(
combined_path.points.end(), partial_path.points.begin(), partial_path.points.end());
}
// remove the point behind of shift end pose
const auto shift_end_pose_idx =
motion_utils::findNearestIndex(combined_path.points, path.end_pose);
combined_path.points.erase(
combined_path.points.begin() + *shift_end_pose_idx + 1, combined_path.points.end());
return combined_path;
};
Copy link
Contributor

@kosuke55 kosuke55 Dec 27, 2023

Choose a reason for hiding this comment

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


// If no next path is found, return false
if (!next_pull_out_path) return false;
updateStatusWithNextPath(*pull_out_path, start_pose_candidate, planner->getPlannerType());
Copy link
Contributor

Choose a reason for hiding this comment

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

next_pull_out_path is not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

next_pull_out_path for avoiding replan of backward path after backward driving.
But replan after backward driving doesn't happen, so remove next_pull_out_path

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
@kyoichi-sugahara kyoichi-sugahara enabled auto-merge (squash) December 28, 2023 07:59
@kyoichi-sugahara kyoichi-sugahara merged commit a188ee6 into autowarefoundation:main Dec 28, 2023
30 of 32 checks passed
@kyoichi-sugahara kyoichi-sugahara deleted the feat/check_collision_outside_of_plan branch December 28, 2023 10:38
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 26, 2024
…warefoundation#5952)

* remove collision check from pull out planner

* change order of extract stop objects function

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
…warefoundation#5952)

* remove collision check from pull out planner

* change order of extract stop objects function

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request May 28, 2024
…warefoundation#5952)

* remove collision check from pull out planner

* change order of extract stop objects function

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…warefoundation#5952)

* remove collision check from pull out planner

* change order of extract stop objects function

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants