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

Remap parameters in included file

asked 2016-06-01 02:45:06 -0500

martin1412 gravatar image

Hello guys, this is a snippet from my launch file

<remap from="/a" to="/prefix/a" />
<include file="xyz.launch" />

file xyz.launch contains:

<param name="/a/hello" value="10" />

sadly, the remapping does not work. Is there any way to make this work without having to place the remap in file xyz?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-01 03:55:04 -0500

IvanV gravatar image

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:

  <group ns="prefix">
    <include file="xyz.launch"/>

    <param name="a/hello" value="10" />

Not exactly a remap, but if you just whant to add a prefix, it should work.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-06-01 02:45:06 -0500

Seen: 564 times

Last updated: Jun 01 '16