Skip to content

Conversation

@vishrutsingh1
Copy link

Small delay is added in the 'mqtt2primitive' function because whenever the first message is received, it creates a publisher. Since there is no delay in creating a publisher and publishing a message, the first message is always missed on the ROS topic. Adding a delay in creating the publisher solved the problem.

@lreiher
Copy link
Member

lreiher commented Apr 12, 2024

Thank you for the contribution!

Is there perhaps a better way to wait for the publisher to be ready? The 200ms seems arbitrary. Maybe there is a dedicated function/attribute of the publisher.

@JayHerpin
Copy link
Contributor

If its problematic for the first message to be missed, perhaps a better roption is to support explicitly setting the QoS?

@JayHerpin
Copy link
Contributor

I believe that this #61 makes this unnecessary if you are willing to configure the types explicitly

@lreiher
Copy link
Member

lreiher commented May 29, 2024

These changes should be made obsolete by #61, thank you very much, anyway! Hopefully your problem is resolved now!

@lreiher lreiher closed this May 29, 2024
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

Successfully merging this pull request may close these issues.

3 participants