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

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
1

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

Comments

this link may give us more official details about subprocess .

I also referred this question: http://answers.ros.org/question/10493...

subprocess is really cooool after all~~ thx!!

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

Question Tools

1 follower

Stats

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

Seen: 1,502 times

Last updated: Dec 05 '16