-
Notifications
You must be signed in to change notification settings - Fork 435
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
Extend Time implementation into Timer and Rate objects #465
Comments
@tfoote Is there any progress on this issue? or Anyone who working on this issue? In my opinion, to solve this issue, it seems to implement To implement clock.sleep, Clock would be stuck in a while loop until the target time is coming. In the case of the simulation time, Clock doesn't subscribe clock_msg by itself. The solution would be the followings.
However, TimeSource can manage multiple Clocks. So, the first one is more preferred. Does it makes sense? |
Yes, a For the threading, this is something that I think that there's better solutions than just having each time source spin it's own thread. We don't yet have callback groups implemented either. I'd suggest starting an implementation without worrying about the extra thread and we can make that more robust in a second round. The developer facing API is the first thing to think about. If we don't find a better solution than adding a thread to the TimeSource it can be added to the implementation. But you're right that the Clock shouldn't know anything about subscribing. In the case that simulated time is active the clock can block waiting for a set_clock call from the time source. (And likely create an error if a TimeSource is not attached.) |
There's also a proposal to add common functionality to |
* Remove tests about FastRTPS not supporting MANUAL_BY_TOPIC liveliness Signed-off-by: Emerson Knapp <[email protected]> * Remove unused variable Signed-off-by: Emerson Knapp <[email protected]>
* Add target-ros2-distro to action CI to allow it to run correctly Signed-off-by: Emerson Knapp <[email protected]>
The Timer and Rate need to use a clock, with a coupled time source to accurately sleep.
The text was updated successfully, but these errors were encountered: