ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I would try to prepare correct launchers and then use launch
API to start the chosen node with its launch file in the service call (rather than topic subscriber callback).
One thing for sure needs to be mentioned - you don't want to use roslaunch
, it's a ROS1 version of launcher.
You want to use ros2 launch <your-package> <your-launch-file>
.
Example sources for writing launchers:
https://docs.ros.org/en/humble/Tutorials/Intermediate/Launch/Launch-Main.html
https://roboticsbackend.com/ros2-launch-file-example/
One of the other suggested approach to user - ROS2 interaction interface is presented here (QML):
https://discourse.ros.org/t/create-stunning-uis-for-ros2-using-the-newly-released-qml-ros2-plugin/25906
https://github.com/StefanFabian/qml_ros2_plugin
Perhaps you can check it and see how the inner code is working and compare it to your ideas.
2 | No.2 Revision |
I would try to prepare correct launchers and then use launch
API to start the chosen node with its launch file in the service call (rather than topic subscriber callback).
One thing for sure needs to be mentioned - you don't want to use roslaunch
, it's a ROS1 version of launcher.
You want to use ros2 launch <your-package> <your-launch-file>
.
Example sources for writing launchers:
https://docs.ros.org/en/humble/Tutorials/Intermediate/Launch/Launch-Main.html
https://roboticsbackend.com/ros2-launch-file-example/
https://github.com/ros2/launch/blob/foxy/launch/doc/source/architecture.rst - launch
documentation
One of the other suggested approach to user - ROS2 interaction interface is presented here (QML):
https://discourse.ros.org/t/create-stunning-uis-for-ros2-using-the-newly-released-qml-ros2-plugin/25906
https://github.com/StefanFabian/qml_ros2_plugin
Perhaps you can check it and see how the inner code is working and compare it to your ideas.