ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The correct way to do this is to use the actual roslaunch Python API. Do not use calls to subprocess etc. It gets way to messy to control environment variables and makes stopping the processes much harder. Using the proper API allows you to start, but also to stop, the launch file nodes easily. See here for examples.

Again though, that API page is the second Google result for 'roslaunch python'. Please do some searching before posting next time :)

The correct way to do this is to use the actual roslaunch Python API. Do not use calls to subprocess etc. It gets way to too messy to control environment variables and makes stopping the processes much harder. Using the proper API allows you to start, but also to stop, the launch file nodes easily. See here for examples.

Again though, that API page is the second Google result for 'roslaunch python'. Please do some searching before posting next time :)