Skip to content

Conversation

Yadunund
Copy link
Member

@Yadunund Yadunund commented May 5, 2024

By default the talker publishes an 8mB message every 3 seconds. I haven't been able to reproduce any message lost callback triggers with such a low frequency. It helps to increase the publishing rate.
This PR

  • Adds support to pass a -r CLI arg to message_lost_talker to configure the timer's period. Default behavior is still the same 3s period.
  • Sets sub's reliability QoS to best_effort to increase the probability of dropping a message. -> I can undo this change if needed.

Copy link
Member

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Command line arg looks wrong.

Yadunund and others added 2 commits May 5, 2024 18:16
std::exit(0);
}
timer_period_ = std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::duration<double, std::ratio<1>>(1.0 / timer_rate));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if -r 0, this could generate 0 division exception?

@sloretz
Copy link
Contributor

sloretz commented May 16, 2024

@Yadunund friendly ping 🧇

@Yadunund
Copy link
Member Author

Sorry for the delay. Will have this cleaned up by end of this week

ahcorde and others added 3 commits October 6, 2025 11:13
Co-authored-by: Tomoya Fujita <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Co-authored-by: Tomoya Fujita <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
@ahcorde
Copy link
Contributor

ahcorde commented Oct 6, 2025

@Yadunund I applied the suggested changes. Do you mind to take a look ?

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.

6 participants