Ask Your Question
0

Automatically back to command line after roslaunch

asked 2017-09-07 17:09:32 -0500

mix345 gravatar image

Hi,

I want to run roslaunch sequentially with shell script. I set roslaunch parameter "required = true". It kills roslaunch, but it just shows message "Done!" and does not go back to commandline. So next command cannot be sent.

How can I do this?

edit retag flag offensive close merge delete

Comments

Why are you using a shell script to launch different launch files instead of includeing the launch files in another launch file?

jayess gravatar image jayess  ( 2017-09-07 18:52:56 -0500 )edit

@mix345: could you please tell us what you actually are trying to accomplish? @jayess comment makes sense: roslaunch can already start multiple launchfiles by itself, so using a shellscript as you (seem to) describe should not be necessary.

gvdhoorn gravatar image gvdhoorn  ( 2017-09-08 05:44:14 -0500 )edit

Hi, What I want to do is run one roslaunch file for multiple times, with different argument.

It is like roslaunch a.launch _arg:=1 roslaunch a.launch _arg:=2 roslaunch a.launch _arg:=3 ......

So I want to kill the roslaunch after a node finishes and execute next command automatically.

mix345 gravatar image mix345  ( 2017-09-08 05:55:31 -0500 )edit

hello @mix345, have you managed to solve this? Am currently running into the same issue. Or did u go about another method rather then using a python shell script??

Dickson gravatar image Dickson  ( 2020-02-25 03:13:22 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-07 23:44:04 -0500

Wolf gravatar image

Roslaunch will return to command Line as soon as all lauched processes are done. This means all nodes have to stop die roslaunch to Terminate itself, Not just one of the launched nodes. Further, the first roslaunch may open a roscore, which will never terminate by itself so make sure roscore ist already running before starting roslaunch...

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-09-07 17:09:32 -0500

Seen: 268 times

Last updated: Sep 07 '17