roslaunch in new terminal

asked 2016-12-18 10:31:06 -0500

mopsiu50 gravatar image

Hello, I have a question what should I do if I have situation like this:

I have a launch file "simulation.launch" and in this launch file I have for example launch file for keyboard_teleop_node, but I would like to steer from another terminal so how I should add arguments for this line?

"<include file="$(find my_package)/launch/keyboard_teleop.launch"/>"

edit retag flag offensive close merge delete

Comments

What do you mean by "steer from another terminal"?

zkytony gravatar image zkytony  ( 2016-12-18 11:09:37 -0500 )edit

I mean that I run one launch file and there are some nodes an one launch file is teleoperation node and I want that this launch file starts in other terminal :)

mopsiu50 gravatar image mopsiu50  ( 2016-12-22 14:25:22 -0500 )edit

@mopsiu50: please don't post answers, unless you are actually answering a question. For everything else, either edit your question, or use comments.

gvdhoorn gravatar image gvdhoorn  ( 2016-12-22 14:30:41 -0500 )edit

Why is a feature like "launch-prefix="xterm -e" missing for the <include> tag? I think it's essential. Here is the same question: http://answers.ros.org/question/20314...</include>

cpa gravatar image cpa  ( 2017-07-06 03:40:59 -0500 )edit

Most likely because no one needed it / bothered to implement it. If you feel strongly enough about it and know a bit about Python coding, you could actually add it yourself. roslaunch is part of ros_comm. I'd recommend discussion in a ticket before implementing.

gvdhoorn gravatar image gvdhoorn  ( 2017-07-06 03:53:40 -0500 )edit
1

Strange... At the moment you have to edit the default launch files and add a "launch-prefix" to each nodes you want to start like this.

cpa gravatar image cpa  ( 2017-07-06 09:59:51 -0500 )edit

I don't think it's really so strange: apparently there wasn't a need for this, so it didn't get implemented. Also, consider that launch file includes can be recursive, with a nesting depth of 3 launch files (not uncommon), all nodes in all includes launch files would get separate terminals ..

gvdhoorn gravatar image gvdhoorn  ( 2017-07-06 10:42:44 -0500 )edit

.. for a moderately sized ROS application, that could result in upward of 30 terminals. I'm not sure I would be very happy with that.

gvdhoorn gravatar image gvdhoorn  ( 2017-07-06 10:43:15 -0500 )edit