-
Notifications
You must be signed in to change notification settings - Fork 667
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
obstacle_avoidance_planner
sometimes crash when the vehicle goes beyond goal point
#1930
Comments
@VRichardJP Thank you so much for your bug report and suggestion for bug fix. |
I would be happy to contribute. But is this workaround the good way to handle that situation? For example a special case for empty trajectories could be added to |
@VRichardJP Hmm, I'm not 100% sure, but calculate-and-validate implementation as follows looks better to me. const auto full_traj_points =
points_utils::concatTrajectory(optimized_traj_points, extended_traj_points);
if (full_traj_points.empty()) {
trajectory_points = points_utils::convertToTrajectoryPoints(path_points);
return trajectory_points;
} |
as reported in #1956 there are many other cases in which this line will crash: nan values, inf (just some weird path?). I am not sure what is exactly to be tested here. |
This pull request has been automatically marked as stale because it has not had recent activity. |
@VRichardJP could you create a PR for this with your changes? So we can try to address your problems there. |
The vehicle I had the problem with has been updated with a newer version of the code since then. Even though I did not keep my change after the update, I have never faced the problem again. So I guess it has been fixed somehow? |
Checklist
Description
Several times today, the obstacle_avoidance_planner crashed in my vehicle. With GDB, I identified that
full_traj_points
trajectory below is sometimes empty:autoware.universe/planning/obstacle_avoidance_planner/src/node.cpp
Line 1355 in e2c5eda
I modified the code like so, and the node stopped crashing:
(however I have no idea if it is the correct way to handle that.)
Expected behavior
No crash
Actual behavior
Crash
Steps to reproduce
Seems to happen when the vehicle goes beyond goal point (in manual driving)
Versions
No response
Possible causes
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: