Remap parameters in included file
Hello guys, this is a snippet from my launch file
<remap from="/a" to="/prefix/a" />
<include file="xyz.launch" />
file xyz.launch contains:
<launch>
<param name="/a/hello" value="10" />
...
</launch>
sadly, the remapping does not work. Is there any way to make this work without having to place the remap in file xyz?
Asked by martin1412 on 2016-06-01 02:45:06 UTC
Answers
One option could be to use relative param names in xyz.launch (instead of absolute ones) and put the include file inside a group with a namespace:
<launch>
<group ns="prefix">
<include file="xyz.launch"/>
</group>
</launch>
<launch>
<param name="a/hello" value="10" />
</launch>
Not exactly a remap, but if you just whant to add a prefix, it should work.
Asked by IvanV on 2016-06-01 03:55:04 UTC
Comments