ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

launching nodes in a new terminal with roslaunch

asked 2012-03-28 23:25:53 -0500

ldima gravatar image

Hello everyone.I've to print on screen some results obtained with stageros and it doesn't do that in the same window,so it's possible to write a launch file so that it opens one node in a new terminal?Or it can write in the same terminal but I'm missing something? thanks

edit retag flag offensive close merge delete


thank you dimitri,exactly what i was looking for!thank you also miguel

ldima gravatar image ldima  ( 2012-03-29 21:21:20 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2012-03-29 03:30:46 -0500

DimitriProsser gravatar image

If you really want to launch it in a new terminal, you can use the following:

<node name="foo" pkg="bar" type="bar_node" output="screen" launch-prefix="xterm -e" />
edit flag offensive delete link more



If you are using Ubuntu and gnome-terminal you could replace "xterm -e" with "gnome-terminal --command" to open in Ubuntu's default terminal.

HassanNadeem gravatar image HassanNadeem  ( 2015-02-03 09:45:31 -0500 )edit

To follow up on this ancient thread: is there a way to keep the terminal open after the node dies? It would nice to be able to read any error messages before it disappears.

Jordan9 gravatar image Jordan9  ( 2015-04-22 17:01:32 -0500 )edit

when i use "xterm -e" or "gnome-terminal --command" it fires error saying "check if executable present and have right permission to execute". without this options the launch file runs my two node without problem but in same window, and I want to run this nodes in separate window.

Hridaynath gravatar image Hridaynath  ( 2017-04-17 01:22:06 -0500 )edit

It worked, thanks :)

Radeshwar gravatar image Radeshwar  ( 2018-02-01 05:28:00 -0500 )edit

It works, thx. :-)

stefanvan gravatar image stefanvan  ( 2018-03-30 07:29:10 -0500 )edit

thanks, this really helps.

lochlomond gravatar image lochlomond  ( 2019-08-10 22:29:55 -0500 )edit

"gnome-terminal --command" didn't work for me when my node needs the args. The node can't find them on gnome-terminal. But xterm does, Thank you.

Ricardo Pinto gravatar image Ricardo Pinto  ( 2020-05-21 12:22:09 -0500 )edit

answered 2012-03-29 00:15:14 -0500

Miguel Prada gravatar image

updated 2012-03-29 03:36:41 -0500

If you want you can make it print on the same terminal by adding the output attribute in the node tag as follows:

<node name="foo" pkg="bar" type="bar_node" output="screen" />
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


Asked: 2012-03-28 23:25:53 -0500

Seen: 14,070 times

Last updated: Mar 29 '12