[ros-users] spawn multiple nodes from rospy node

Ugo Cupcic ugo at shadowrobot.com
Thu Aug 26 16:02:46 UTC 2010


 Thanks Ken.

On 26/08/10 16:33, Ken Conley wrote:
> 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
>>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>

-- 
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




More information about the ros-users mailing list