Re: [ros-users] spawn multiple nodes from rospy node

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ken Conley
Date:  
To: ros-users
Subject: Re: [ros-users] spawn multiple nodes from rospy node
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 <> wrote:
>  Hi all,
>
> Is there a way to spawn multiple nodes directly from a python node?
>
> Cheers,
>
> Ugo
>
> --
> Ugo Cupcic         |  Shadow Robot Company |
> 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
>
> https://code.ros.org/mailman/listinfo/ros-users
>