ros2 system manager for your robot
Make available in docker shutdown and other system commands directly from ROS2 services
docker run -it --rm --network host -v /run/ros2sm.sock:/run/ros2sm.sock rbonghi/ros2_system_manager:latest
Install in dev mode the package
sudo -H pip3 install -v -e .
colcon build --symlink-install
You can test the docker image build the image
docker build -t rbonghi/ros2_system_manager:latest .
docker run -it --rm --network host -v /run/ros2sm.sock:/run/ros2sm.sock -v $HOME/nanosaur_ws/src/ros2_system_manager:/opt/ros_ws/src/ros2_system_manager rbonghi/ros2_system_manager:latest bash
To run a test
colcon test --event-handlers console_cohesion+ --return-code-on-test-failure --packages-select ros2_system_manager