-
Notifications
You must be signed in to change notification settings - Fork 417
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
Re-add Clock::sleep_until #1814
Commits on Nov 3, 2021
-
Revert "Revert "Add Clock::sleep_until method (#1748)" (#1793)"
This reverts commit d04319a. Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 4f49e11 - Browse repository at this point
Copy the full SHA 4f49e11View commit details -
Context, Shutdown Callback, Condition Var per call
The `Clock` doesn't have enough information to know which Context should wake it on shutdown, so this adds a Context as an argument to sleep_until(). Since the context is per call, the shutdown callback is also registered per call and cannot be stored on impl_. The condition_variable is also unique per call to reduce spurious wakeups when multiple threads sleep on the same clock. Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 2b7043d - Browse repository at this point
Copy the full SHA 2b7043dView commit details -
Throw if until has wrong clock type
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for ae1e4b7 - Browse repository at this point
Copy the full SHA ae1e4b7View commit details -
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for c772f8c - Browse repository at this point
Copy the full SHA c772f8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a9fbfdd - Browse repository at this point
Copy the full SHA a9fbfddView commit details -
Fix time jump thresholds and add ROS time test
Use -1 and 1 thresholds because 0 and 0 is supposed to disable the callbacks Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 02c7d35 - Browse repository at this point
Copy the full SHA 02c7d35View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3de0e7 - Browse repository at this point
Copy the full SHA c3de0e7View commit details -
rclcpp::ok() -> context->is_valid()
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 216dc74 - Browse repository at this point
Copy the full SHA 216dc74View commit details -
No pre-jump handler instead of noop handler
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 4714a8a - Browse repository at this point
Copy the full SHA 4714a8aView commit details -
If ros_time_is_active errors, let it throw
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 92aa699 - Browse repository at this point
Copy the full SHA 92aa699View commit details -
Get time source change from callback to avoid race if ROS time toggle…
…d quickly Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 3b5db75 - Browse repository at this point
Copy the full SHA 3b5db75View commit details -
Fix threshold and no pre-jump callback
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 54f7421 - Browse repository at this point
Copy the full SHA 54f7421View commit details -
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 1eb79dc - Browse repository at this point
Copy the full SHA 1eb79dcView commit details
Commits on Nov 4, 2021
-
Explicit cast for duration to system time
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 3122c35 - Browse repository at this point
Copy the full SHA 3122c35View commit details -
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 27b3668 - Browse repository at this point
Copy the full SHA 27b3668View commit details -
Add tests for invalid and non-global contexts
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Configuration menu - View commit details
-
Copy full SHA for 0e7af6e - Browse repository at this point
Copy the full SHA 0e7af6eView commit details