ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I don't know if there's a ROS-prescribed way to run a launch file from within another ROS node. As for stopping all the nodes within a launch file, one way to do it is mark at least one of the nodes as required, e.g.,

<node pkg="rosbag" type="play" name="rosbagplay" args="test.bag" required="true"/>

If I put this in a launch file, then when rosbag exited after the bag file was done playing, all the nodes in that launch file would stop as well.