How to manage Navigation 2 Lifecycle
I have ROS2 foxy. I installed Navigation 2 and I didn't change any settings. When I start
ros2 launch nav2_bringup navigation_launch.py
It starts a service
/lifecycle_manager_navigation/manage_nodes
How do I shutdown all the nodes in the lifecycle_manager_navigation and restart them backup?
Calling the service makes the Navigation 2 nodes unresponsive
ros2 service call /lifecycle_manager_navigation/manage_nodes nav2_msgs/srv/ManageLifecycleNodes "{command: 4}"
ros2 service call /lifecycle_manager_navigation/manage_nodes nav2_msgs/srv/ManageLifecycleNodes "{command: 0}"