<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

  • from="original-name"

    • Name that you are remapping.

    to="new-name"

    • Target name.

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

Wiki: roslaunch/XML/remap (last edited 2011-08-18 19:46:08 by BenAxelrod)