-
Notifications
You must be signed in to change notification settings - Fork 700
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): catch exception when calculating curvature #6431
fix(behavior_path_planner): catch exception when calculating curvature #6431
Conversation
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
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
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6431 +/- ##
=======================================
Coverage 14.99% 14.99%
=======================================
Files 1839 1839
Lines 127158 127163 +5
Branches 38099 38103 +4
=======================================
+ Hits 19070 19071 +1
- Misses 86755 86759 +4
Partials 21333 21333
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
autowarefoundation#6431) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
#6431) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
autowarefoundation#6431) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
autowarefoundation#6431) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
Description
The
behavior_path_planner
may crash if some points in the map are too close to eachother or form a too sharp angle.This PR prevents crashes by handling the exception that may occur when calculating curvatures of the path.
Tests performed
Psim
Effects on system behavior
No crash on bad maps
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.