ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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 :)
2 | No.2 Revision |
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 :)