relay

relay is ROS node that subscribes to a topic and republishes all incoming data to another topic. It can work with any message type.

relay is part of the topic_tools package.

relay usage

relay <intopic> [outtopic]

  • Subscribe to <intopic> and republish to another topic.

    • intopic: Incoming topic to subscribe to

    • outtopic: Outgoing topic to publish on (default: intopic_relay)

    e.g. rename base_scan to my_base_scan:

    rosrun topic_tools relay base_scan my_base_scan

Parameters

~unreliable (bool, default: False)

  • If True, prefer to negotiate an unreliable connection for the inbound data. (New in ROS 1.1.11)
~lazy (bool, default: False)
  • If True, don't subscribe to input topic unless there is at least one subscriber on the output topic. (New in ros_comm 1.5.0)

Wiki: topic_tools/relay (last edited 2011-07-09 00:22:56 by BrianGerkey)