roslaunch forwarding args to included launch file
Hi all,
I have a project with a couple of launch files. The head file, e. g.
file_0.launch
includes the other launch files, e. g.
file_01.launch file_02.launch
....
Now, file_01.launch and file_02.launch may have arguments (with default values, of course but these shall be overridable via command line). I have found this is apparently only possible if the head launch file file_0.launch explicitly exposes the arg and passes it when including the other files, e. g.
<arg name="file_01_arg" default="false"/>
<include file="$(find my_package)/launch/file_01.launch" >
<arg name="file_01_arg" value="$(arg file_01_arg)"/>
</include>
However, this requires a lot of coding if an argument is changed somewhere in the launch tree. Is it possible to forward the arguments of included launch files without explicitly mentioning them in the including launch file?
+1. I guess a feature idea for the same/similar situation is documented http://wiki.ros.org/sig/roslaunch#Pro...
Add topic remapping to <include> tags...
Yep, this was specifically proposed as "Bubbling up/passing through args" in the link @130s posted. There haven't been any takers to provide an implementation yet.
Finally a pull request is made.