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

Throttle based on custom clock #110

Open
osrf-migration opened this issue Aug 2, 2019 · 0 comments
Open

Throttle based on custom clock #110

osrf-migration opened this issue Aug 2, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@osrf-migration
Copy link

Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Summary

It's currently possible to throttle a publisher's update rate by setting the SetMsgsPerSec option. But the implementation is currently always using wall time.

Motivation

It would be useful to be able to throttle based on custom clocks, so a simulator could throttle based on the current simulation time, for example.

Describe alternatives you've considered

Throttling from outside Ignition Transport, preventing the call to Publish.

Additional context

The Clock class is being used to timestamp logs with custom time. The same class could be used for throttling.

@osrf-migration osrf-migration added minor enhancement New feature or request labels Apr 15, 2020
@chapulina chapulina removed the minor label May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants