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

Just use Popen:

import shlex
from psutil import Popen
# start
node_process = Popen(
    shlex.split('rosrun foo bar')
)
# stop
node_process.terminate()