[ros-users] spawn multiple nodes from rospy node
Ken Conley
kwc at willowgarage.com
Thu Aug 26 15:33:07 UTC 2010
Multiple ways, yes.
Spawning a ros node is no different from just running a process. So
the standard Python subprocess module will work.
If you want to get fancier, there are two Python APIs for running
roslaunch within your own process:
* roslaunch.scriptapi [1]
* roslaunch_caller (unsupported)
[1]: http://www.ros.org/doc/api/roslaunch/html/roslaunch.scriptapi.ROSLaunch-class.html
On Thu, Aug 26, 2010 at 1:04 AM, Ugo Cupcic <ugo at shadowrobot.com> wrote:
> Hi all,
>
> Is there a way to spawn multiple nodes directly from a python node?
>
> Cheers,
>
> Ugo
>
> --
> Ugo Cupcic | Shadow Robot Company | ugo at shadowrobot.com
> Software Engineer | 251 Liverpool Road |
> need a Hand? | London N1 1LX | +44 20 7700 2487
> http://www.shadowrobot.com/hand/ @shadowrobot
>
> _______________________________________________
> 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