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

Revision history [back]

click to hide/show revision 1
initial version

A node can publish on the same topic it listens to, but it cannot prevent all other nodes from getting both old and new messages.

Depending on what exactly you are trying to achieve, different solutions are possible.

If you know you just have one original node publishing, then you could remap the topic of that published node to a new custom topic. Your custom node can then listen on the custom topic, and publish messages on the original topic.