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

How to combine many roslaunch commands?

asked 2021-01-19 02:25:11 -0500

creazy gravatar image

updated 2021-01-19 02:26:06 -0500

Hello,

I'm new to ROS and to run the code I wrote so far I have to run a lot of different commands:

  • roslaunch gazebo_ros empty_world.launch
  • roslaunch pr2_gazebo pr2.launch
  • roslaunch fake_localization fake_localization.launch
  • roslaunch pr2_teleop teleop_keyboard.launch

Is there any way to combine all these commands into one launchfile which can be started at once from the terminal?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-19 02:35:32 -0500

mgruhler gravatar image

Yes, by including those launch files in another one.

Check the documentation on the <include>-tag. Note that for this, it doesn't matter if your file ending is .xml or .launch. Also, you need to pass the package-relative path, as shown in the example.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-01-19 02:25:11 -0500

Seen: 501 times

Last updated: Jan 19 '21