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

Programmatic way to Start/stop roslaunch

asked 2016-12-05 03:41:28 -0500

sonictl gravatar image

updated 2016-12-05 03:43:53 -0500

Using python code, how to start/stop a .launch file?

NOte: the launch file may contain several packages/nodes and parameters etc. just like a general .launch file we used to start for a gmapping/navigation task.

Thank you!!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-12-05 05:42:58 -0500

rbbg gravatar image

Several options are proposed in this related question: how to launch a launch file from python code

the subprocess module can also be used to terminated processes, as described in this stackoverflow question.

edit flag offensive delete link more


this link may give us more official details about subprocess .

I also referred this question:

subprocess is really cooool after all~~ thx!!

sonictl gravatar image sonictl  ( 2016-12-08 07:45:09 -0500 )edit

Question Tools

1 follower


Asked: 2016-12-05 03:41:28 -0500

Seen: 1,532 times

Last updated: Dec 05 '16