Robotics StackExchange | Archived questions

Is there a way to "sink" a topic?

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.

Asked by a-Jays on 2015-10-25 20:19:54 UTC

Comments

Answers

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.

Asked by paulbovbel on 2015-10-25 20:37:43 UTC

Comments