-
Notifications
You must be signed in to change notification settings - Fork 677
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
feat(start_planner): separate collision check and path planning #5952
Conversation
3e459da
to
ee88e10
Compare
Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
ee88e10
to
8afbca4
Compare
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>
Codecov ReportAttention:
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
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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); |
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.
doning filterObjectsByVelocity first may be faster
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! thanks!
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 e5717ad
// 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; | ||
}; |
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.
define in PullOutPath is also good
|
||
// If no next path is found, return false | ||
if (!next_pull_out_path) return false; | ||
updateStatusWithNextPath(*pull_out_path, start_pose_candidate, planner->getPlannerType()); |
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.
next_pull_out_path is not used?
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.
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>
a188ee6
into
autowarefoundation:main
…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>
…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>
…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>
…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>
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.
After all checkboxes are checked, anyone who has write access can merge the PR.