Ask Your Question
1

roslaunch + screen

asked 2011-02-16 13:35:40 -0500

Yogi gravatar image

Has anybody had any luck in setting this up? I don't know how to tell screen to launch different ros nodes in different screen-windows of the same screen-session. I can do it manually, but i would ideally like to make it part of my boot script.

edit retag flag offensive close merge delete

Comments

when you see an answer you like, mark it as an accepted answer
mmwise gravatar image mmwise  ( 2011-02-17 09:34:42 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2011-02-17 00:28:13 -0500

Ryohei Ueda gravatar image

I think you can use "screen -X screen -U" in the launch-prefix attribute. -X option sends a command to a running screen.

But I don't know how to set the "default" launch-prefix, you may need to edit all the node tags like below:

  < node pkg="your_pkg" type="your_prog" name="foo"
     launch-prefix="screen -X screen -U"/>
edit flag offensive delete link more

Comments

2
Note, you can edit your previous answer to include this new information instead of posting a whole new answer.
Eric Perko gravatar image Eric Perko  ( 2011-02-17 06:44:32 -0500 )edit
1

answered 2011-02-16 14:58:54 -0500

Ryohei Ueda gravatar image

updated 2011-02-16 15:33:45 -0500

does "screen -U roslaunch ..." resolve your problem?

when you run "screen -U" in a screen-window, screen will make another screen-window in your screen-session and run the command you specified.

it would be good to make an alias to "screen -U roslaunch" like below:

 $ alias slaunch="screen -U roslaunch"
 $ slaunch your_awesome_program.launch
edit flag offensive delete link more

Comments

What I want is to launch different nodes in different screen windows. What you suggested will just lunch all the nodes specified in the launch file in one screen window.
Yogi gravatar image Yogi  ( 2011-02-16 23:24:11 -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

Stats

Asked: 2011-02-16 13:35:40 -0500

Seen: 2,561 times

Last updated: Feb 17 '11