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

Revision history [back]

No, the intent of the Publish-Subscrib-Pattern is to allow that. See also the ROS1 wiki and the ROS2 wiki for background information.

Note that you could work around that with using the (getNumPublishers function)[http://docs.ros.org/en/noetic/api/roscpp/html/classros_1_1Subscriber.html#ac98e5ff9790e8e5cc11453948ea128ee] of subscribers (in ROS1 at least) to check if this is actually fine. Even though that would then not allow you to do a rostopic pub for testing purposes...

You need to make sure manually, that this requirement is met.