-
Notifications
You must be signed in to change notification settings - Fork 683
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
fix(behavior_path_planner): pull over remove overlapping points #2246
fix(behavior_path_planner): pull over remove overlapping points #2246
Conversation
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Codecov ReportBase: 11.12% // Head: 11.17% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2246 +/- ##
==========================================
+ Coverage 11.12% 11.17% +0.04%
==========================================
Files 1200 1199 -1
Lines 86198 85845 -353
Branches 20793 20793
==========================================
Hits 9593 9593
+ Misses 66479 66126 -353
Partials 10126 10126
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -482,9 +482,12 @@ PathWithLaneId GeometricParallelParking::generateArcPath( | |||
|
|||
// insert the last point exactly | |||
const auto p = generateArcPathPoint(center, radius, end_yaw, is_left_turn, is_forward); | |||
path.points.push_back(p); | |||
constexpr double min_dist = 0.01; | |||
if (calcDistance2d(path.points.back(), p) > min_dist) { |
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.
Do path.points.empty()
check before using the path.points.back()
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.
thaks, fixed in 7ad01a0
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
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
…warefoundation#2246) * fix(behavior_path_planner): pull over remove overlapping points Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * check empty Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
…warefoundation#2246) * fix(behavior_path_planner): pull over remove overlapping points Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> * check empty Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> Signed-off-by: kosuke55 <kosuke.tnp@gmail.com> Signed-off-by: yoshiri <yoshiyoshidetteiu@gmail.com>
Description
If giving a path point without lane id to removeOverlappingPoints, node dies by accessing lane_ids in https://github.com/autowarefoundation/autoware.universe/blob/feat/shift_pull_over_on_curve/planning/behavior_path_planner/src/utilities.cpp#L894
In this PR, I stoppped using this function, insert point by checking it is not overlapped.
Related links
Tests performed
Notes for reviewers
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.