Micro-XRCE-DDS-Client
Micro-XRCE-DDS-Client copied to clipboard
Miss the 1st one
I am a new user of dds. when I run example PublishHelloWorld->SubscribeHelloWorld or CustomTransports->SubscribeHelloWorld. The first topic is lost almost every time. I want to know WHY? and how to fix this. Thanks.
You can create your entities with transient local QoS and a certain amount of history in order to ensure the reception of all samples. You can learn more about QoS in the Fast DDS documentation: https://fast-dds.docs.eprosima.com/en/latest/fastdds/rtps_layer/rtps_layer.html?highlight=TRANSIENT_LOCAL#setting-the-data-durability-kind
You can create your entities with transient local QoS and a certain amount of history in order to ensure the reception of all samples. You can learn more about QoS in the Fast DDS documentation: https://fast-dds.docs.eprosima.com/en/latest/fastdds/rtps_layer/rtps_layer.html?highlight=TRANSIENT_LOCAL#setting-the-data-durability-kind
VOLATILE (default): Messages are discarded as they are sent. If a new Reader matches after message n, it will start received from message n+1. I start the Subscribe first, when MicroXRCEAgent found Subscribe, then I start Publish. this should not topic miss.
Ok, provide feedback and close if the issue is solved.
It did not solve my issue.
What else do you need beyond modifying the QoS of your entities?
I didn't change anything.
Well, when you change the code to apply the required QoS, then, provide feedback and close if the issue is solved.