ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Is there a way to "sink" a topic?

asked 2015-10-25 20:19:54 -0500

a-Jays gravatar image

updated 2015-10-25 20:23:05 -0500

Does ROS provide the option to "sink" the contents of a topic temporarily? If there's a node A that publishes a topic called foo, and another node B that subscribes to foo, can I suppress foo completely, such that B can not see it advertised?

Extension (and actual intent!): Is there a way to republish foo as foo (no change in name), but at a different rate this time? I suppose some combination of <remap> and topic_tools throttle messages would make it happen.

EDIT: As some additional info, assume foo is coming from a remote system I have no access to, so I cannot change anything about it there. My ROS setup, which depends on foo, now needs it at a lower rate.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-10-25 20:37:43 -0500

paulbovbel gravatar image

updated 2015-10-25 20:37:52 -0500

<remap> arguments are configured per-process, so you would have to remap in the remote system to get the original topic to go to a different name.

The only way to republish at a different rate is to use a different topic name.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-10-25 20:19:54 -0500

Seen: 320 times

Last updated: Oct 25 '15