[Documentation] [TitleIndex] [WordIndex

<remap> tag

The <remap> tag allows you to pass in name remapping arguments to the ROS node that you are launching in a more structured manner than setting the args attribute of a <node> directly. The <remap> tag applies to all subsequent declarations in its scope (<launch>, <node> or <group>).

To understand how remapping resolves names, see Remapping Arguments and Names.



For example, you are given a node that says it subscribes to the "chatter" topic, but you only have a node that publishes the "hello" topic. They are the same type, and you want to pipe your "hello" topic into the new node which wants "chatter" by simply:

<remap from="chatter" to="hello"/>

Note that this applies to the lines following this one. Nodes that are launched before this line are not affected.

2020-08-01 12:57