How to prevent the second publisher to publish on the same topic?
Hello everyone,
I am working with ROS2 in my project and I know ROS/ROS2 is capable to handle multiple publishers and subscribers on the same topic. Due to some limitations in my project, I would like to prevent the second publisher to publish on the same topic. It needs to be kind of one publisher for one topic.
Basically, is it something doable in the ROS environment? If so, is there any option or notification infrastructure that notifies the first publisher or any other node?
Thanks in advance.
an observation: you tagged this question as ROS1 and ROS2, spanning multiple distros (noetic&melodic vs. foxy&eloquent). Anything specific this refers to?
twist_mux package does something similar for
geometry_msgs::Twist
messages.