Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miss the 1st one #333

Open
jinfeihan57 opened this issue Nov 10, 2022 · 7 comments
Open

Miss the 1st one #333

jinfeihan57 opened this issue Nov 10, 2022 · 7 comments

Comments

@jinfeihan57
Copy link

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.

@pablogs9
Copy link
Member

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

@jinfeihan57
Copy link
Author

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.

@pablogs9
Copy link
Member

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

@jinfeihan57
Copy link
Author

It did not solve my issue.

@pablogs9
Copy link
Member

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

@jinfeihan57
Copy link
Author

jinfeihan57 commented Nov 11, 2022

image
I didn't change anything.

@pablogs9
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants