rosh overview: Roshlets | Basics | Messages | Parameters | Topics | Services | Nodes | Topic Tools | Packages | Bags | Bagys | roslaunch

roslaunch

Launching nodes

The Node class lets you configure nodes that you wish to run much in the same way the roslaunch <node> tag does. You can then run these nodes using the launch() command, e.g.

l = [Node('test_ros', 'talker.py') for n in xrange(0, 10)]
procs = [launch(x) for x in l]

You can also pass in package and node names directly to launch(), e.g.:

launch('test_ros', 'talker.py')

You can optionally pass in arguments:

launch('test_ros', 'add_two_ints_clients', [1, 2])

If the node name is not supplied, the package name is used, e.g.:

launch('rviz')

Launching files

This is still under development.

Wiki: rosh/Overview/roslaunch (last edited 2010-10-22 01:55:14 by KenConley)