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

Can I call one .launch file from another .launch file?

asked 2011-03-15 05:55:50 -0500

Murph gravatar image

I'm writing a launch file for my kinect+irobot.

To start the camera driver, I was doing this: roslaunch openni_camera openni_node.launch

Is there a way, in my .launch file, to just call openni_node.launch? Or do i have to copy/paste the node info from it into mine?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
14

answered 2011-03-15 05:56:44 -0500

Murph gravatar image

Nevermind, http://www.ros.org/wiki/roslaunch/XML/include

Missed that in the wiki somehow. Sorry!

edit flag offensive delete link more

Comments

how were you able to accept your own answer
blueskin gravatar image blueskin  ( 2011-03-15 06:36:53 -0500 )edit
Likely an admin came along and did it for him.
Eric Perko gravatar image Eric Perko  ( 2011-03-15 06:38:11 -0500 )edit
Yup, wasn't me.
Murph gravatar image Murph  ( 2011-03-15 06:42:22 -0500 )edit
@Murph: I was just curious. Thanks
blueskin gravatar image blueskin  ( 2011-03-15 06:47:11 -0500 )edit
3

Stop linking to other pages without writing the relevant part of the code! Stack Overflow Docet. Stop Ros answer anarchy movement!

UserK gravatar image UserK  ( 2017-11-27 13:04:01 -0500 )edit
6

answered 2020-01-28 13:19:59 -0500

peterb gravatar image

I was interested in the same topic, so here is the relevant code from the husky_navigation package's move_base.launch file:

<?xml version="1.0"?>
...
<launch>
...
  <include file="$(find husky_navigation)/launch/amcl.launch" />
...
</launch>

The full code: https://github.com/husky/husky/tree/m...

edit flag offensive delete link more
0

answered 2012-11-09 20:06:55 -0500

karan4515 gravatar image
edit flag offensive delete link more

Comments

That question was posted after this....

andrestoga gravatar image andrestoga  ( 2017-08-26 13:25:16 -0500 )edit
2

Stop linking to other pages without writing the relevant part of the code that helped you out!

UserK gravatar image UserK  ( 2017-11-27 13:04:09 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2011-03-15 05:55:50 -0500

Seen: 43,869 times

Last updated: Jan 28 '20