Ask Your Question

How to combine many roslaunch commands?

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

creazy gravatar image

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


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

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

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

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: 2021-01-19 02:25:11 -0600

Seen: 61 times

Last updated: Jan 19