Ask Your Question
2

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

Comments

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

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

2 Answers

Sort by » oldest newest most voted
11

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

Comments

5

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 imageHassanNadeem ( 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 imageJordan9 ( 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 imageHridaynath ( 2017-04-17 01:22:06 -0500 )edit

It worked, thanks :)

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

It works, thx. :-)

jn-chen gravatar imagejn-chen ( 2018-03-30 07:29:10 -0500 )edit

thanks, this really helps.

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

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

Stats

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

Seen: 8,190 times

Last updated: Mar 29 '12