[ros-users] launching & killing nodes from other nodes

Ken Conley kwc at willowgarage.com
Thu Jun 17 22:36:09 UTC 2010


roslaunch has an experimental/unstable API called roslaunch.scriptapi
in ROS 1.1. You can only use it from Python, and it starts up a
roslaunch process inside your own process. In the future, roslaunch
will probably have an XMLRPC API.

Shell-invoking "rosnode kill" will generally kill another node, though
not if the node is hung. Part of the future roslaunch XMLRPC API will
allow more reliable process killing. If you are on the same machine,
you can query a node's XMLRPC API to get it's PID, and then kill using
signals. The future roslaunch API will enable remote killing.

 - Ken

On Thu, Jun 17, 2010 at 3:18 PM, Nicholas Butko <nbutko at ucsd.edu> wrote:
> What is the best way to invoke roslaunch from within ros? What is the best way to kill another node from within another node?
>
> For example, one node may want to start another (or a set of other nodes) for only a short time.
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>



More information about the ros-users mailing list