-
Notifications
You must be signed in to change notification settings - Fork 682
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(start/goal_planner): fix freespace planning error handling #8246
fix(start/goal_planner): fix freespace planning error handling #8246
Conversation
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8246 +/- ##
==========================================
- Coverage 29.24% 29.12% -0.12%
==========================================
Files 1600 1605 +5
Lines 117738 117824 +86
Branches 50720 50697 -23
==========================================
- Hits 34427 34315 -112
- Misses 74120 74326 +206
+ Partials 9191 9183 -8
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
try { | ||
if (!planner_->makePlan(current_pose, end_pose)) { | ||
return {}; | ||
} | ||
} catch (const std::exception & e) { |
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.
try { | |
if (!planner_->makePlan(current_pose, end_pose)) { | |
return {}; | |
} | |
} catch (const std::exception & e) { | |
try { | |
if (!planner_->makePlan(current_pose, end_pose)) { | |
RCLCPP_WARN(this->get_logger(), "Failed to make plan: planner returned false"); | |
return {}; | |
} | |
} catch (const std::exception & e) { | |
RCLCPP_WARN(this->get_logger(), "Exception caught while making plan: %s", e.what()); |
I thought it would be better to output the error content, but please ignore this if it's unnecessary.
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 Thanks!
…arefoundation#8246) Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Description
add error handling when freespace planning can not find path.
Related links
#8068
Parent Issue:
How was this PR tested?
wip: 2024/07/29 https://evaluation.tier4.jp/evaluation/reports/5e0d0571-2e37-5845-956e-62dc4f7dd810/?project_id=prd_jt
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.