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

fix(behavior_path_planner): catch exception when calculating curvature #6431

Conversation

maxime-clem
Copy link
Contributor

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.

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

Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Feb 16, 2024
Copy link
Contributor

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

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

LGTM

@shmpwk shmpwk added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Feb 16, 2024
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

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

Comparison is base (6b1a459) 14.99% compared to head (d0a432e) 14.99%.
Report is 1 commits behind head on main.

Files Patch % Lines
...rivable_area_expansion/drivable_area_expansion.cpp 14.28% 4 Missing and 2 partials ⚠️
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           
Flag Coverage Δ *Carryforward flag
differential 11.13% <14.28%> (?)
total 14.99% <ø> (+<0.01%) ⬆️ Carriedforward from 6b1a459

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

@maxime-clem maxime-clem merged commit 54d25a8 into autowarefoundation:main Feb 16, 2024
30 of 32 checks passed
@maxime-clem maxime-clem deleted the fix/drivable_area_expansion-catch-curvature-exception branch February 16, 2024 07:10
StepTurtle pushed a commit to StepTurtle/autoware.universe that referenced this pull request Feb 28, 2024
HansRobo pushed a commit that referenced this pull request Mar 12, 2024
#6431)

Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
satoshi-ota pushed a commit to tier4/autoware.universe that referenced this pull request Jun 6, 2024
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