Micro-XRCE-DDS-Client icon indicating copy to clipboard operation
Micro-XRCE-DDS-Client copied to clipboard

Miss the 1st one

Open jinfeihan57 opened this issue 1 year ago • 7 comments

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.

jinfeihan57 avatar Nov 10 '22 01:11 jinfeihan57

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

pablogs9 avatar Nov 10 '22 06:11 pablogs9

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.

jinfeihan57 avatar Nov 11 '22 01:11 jinfeihan57

Ok, provide feedback and close if the issue is solved.

pablogs9 avatar Nov 11 '22 06:11 pablogs9

It did not solve my issue.

jinfeihan57 avatar Nov 11 '22 09:11 jinfeihan57

What else do you need beyond modifying the QoS of your entities?

pablogs9 avatar Nov 11 '22 09:11 pablogs9

image I didn't change anything.

jinfeihan57 avatar Nov 11 '22 09:11 jinfeihan57

Well, when you change the code to apply the required QoS, then, provide feedback and close if the issue is solved.

pablogs9 avatar Nov 11 '22 09:11 pablogs9