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


  • from="original-name"

    • Name that you are remapping.


    • Target name.


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.

Wiki: roslaunch/XML/remap (last edited 2020-02-06 15:22:10 by FelixvonDrigalski)