-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
controller_server node crash at cleanup if no control requested since the start #2351
Comments
Makes me think that some tests should probably be created for testing the stability of the lifecycle transition for each lifecycle nodes |
Good point, it should be replaced with the same logic used for the controller plugins:
From there: https://github.com/ros-planning/navigation2/blob/main/nav2_controller/src/nav2_controller.cpp#L254-L258 All should be reset and then they should all be cleared in the vector, no need to call out the "current". If you can get that in by EOD today, it can be included in the initial release for galactic |
#2354 resolves |
The fix #2354 wasn't applied to the |
That's super odd, OK, I can take care of that, I'm concerned now about what other commits may have been lost, will look into this today. |
New release should contain it in the first Galactic sync |
Bug report
controller_server
node crash at cleanup if no control requested since the start.It is due to the variable
current_goal_checker_
not being initialized. It is initialised only incomputeControl()
.Since #2269
Required Info:
Ubuntu 20.04
Galactic
main
Cyclone
Steps to reproduce issue
Start and active full navigation stack.
Then deactivate and clean the lifecycle nodes to trigger the controller cleanup method
Expected behavior
The controller node doesn't crash when cleaning up.
Actual behavior
The controller node crashes when cleaning up.
Implementation considerations
Can be solved by initializing
current_goal_checker_
in on_configure.We can use the first element of the list as default value.
https://github.com/ros-planning/navigation2/blob/c88f45ac60a56bfed2c8e170fa89d42d43352c2a/nav2_controller/src/nav2_controller.cpp#L77-L99
current_goal_checker_ = goal_checker_ids_[0];
The text was updated successfully, but these errors were encountered: