ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
4

launching nodes in a new terminal with roslaunch

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

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

Comments

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

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

2 Answers

Sort by ยป oldest newest most voted
14

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

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

Comments

8

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

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

It worked, thanks :)

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

It works, thx. :-)

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

thanks, this really helps.

lochlomond gravatar image lochlomond  ( 2019-08-10 22:29:55 -0600 )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 -0600 )edit
0

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

Miguel Prada gravatar image

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

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

Question Tools

Stats

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

Seen: 15,382 times

Last updated: Mar 29 '12