Is there support for ignoring a local writer? [14684] #2703
Replies: 2 comments
-
Hi @MPW-waters, You are correct. If the subscriber and publisher are run in different process you can use the ignore Participant flags. If this is not the case, then you can either redesign your application to have two different Participants, one dedicated to publication and the other one to subscription; or you can check the writer GUID when you take the local sample and dropped it if it is coming from the local publisher when you are reading/taking it (this is not really efficient as the sample is in fact being sent and you are just dropping it when your application is notified). Finally, in case that you are interested on accelerating the development of this API and other unsupported APIs you might need, you can contact our support team for more information. |
Beta Was this translation helpful? Give feedback.
-
ignore Participant flags worked great. Thank you for your quick and helpful response. |
Beta Was this translation helpful? Give feedback.
-
I have both a subscriber and publisher to the same topic. I want the subscriber to ignore the local publisher. I tried
DomainParticipant::ignore_publication(writer_->get_instance_handle()). It returns RETCODE_UNSUPPORTED. Does this mean that the ignore functionality is not implemented?
If ignore is not implemented, is there a way my subscriber can determine the writer for a given message and use that as a filter?
git log indicates I am using origin/2.6.x of Fast-DDS.
Thanks,
mw
Beta Was this translation helpful? Give feedback.
All reactions