ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can look how the ros2cli is make it. But subprocess is the cleaner way. Through the ros2cli you can extend the ros2 cmd list. But it is not used for the other way around
See here https://github.com/ros2/ros2cli/tree/master/ros2node