[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.

Attributes

Example

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"/>

2019-12-07 13:04