Ask Your Question
1

Passing arg between launches

asked 2016-09-05 10:41:43 -0500

joaoleao gravatar image

updated 2017-10-17 16:17:35 -0500

130s gravatar image

Hi,

I have a master .launch file that runs another .launch. My problem is when i do the example of the ( http://wiki.ros.org/roslaunch/XML/arg ), i get an error message included file [/home/user/catkin_ws/src/] requires the 'test' arg to be set.

<launch>
<group if="$(arg cam)">
    <include file="$(find openni_launch)/launch/openni.launch">
             <arg name="Kinect" value="1.5" />
    </include>
</group>
</launch>

And on the other file i have:

<launch>
<arg name="Kinect"/>
....
<param name="Test" value="$(arg Kinect)"/>
</launch>

Anyone can help me?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-09-05 13:14:59 -0500

ahendrix gravatar image

I don't see anything in the sample you posted that would cause the error you describe.

That error usually indicates that your included launch file has an <arg> tag without a default value, and you aren't providing a value for that argument. I would check your included launch file for a line like: <arg name="test">.

If you can't find this on your own, please post a complete sample that reproduces the issue; maybe by removing the other parts of the launch file and checking that it still produces the same error.

edit flag offensive delete link more

Comments

Thanks, problem solve.

joaoleao gravatar image joaoleao  ( 2016-09-06 02:23:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-09-05 10:41:43 -0500

Seen: 446 times

Last updated: Oct 17 '17