Ask Your Question

Programmatic way to Start/stop roslaunch

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

sonictl gravatar image

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

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 -0600

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 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 781 times

Last updated: Dec 05 '16