ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You could use the aliencontrol ROS package.
This package contains a node that starts the external application. Almost more importantly, the node also takes care of a clean shutdown, no matter whether the external application or the containing ROS node is terminated.
It is run like so (if you wanted to start top
):
rosrun aliencontrol aliencontrol top
If you want to embed it in your launch script, add:
<node pkg="aliencontrol" type="aliencontrol" name="aliencontrol_top">
<param name="cmd" value="top"/>
</node>