Ask Your Question
0

Programmatic way to Start/stop roslaunch

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

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 imagesonictl ( 2016-12-08 07:45:09 -0500 )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

Stats

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

Seen: 459 times

Last updated: Dec 05 '16