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@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@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@code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>