-
Notifications
You must be signed in to change notification settings - Fork 111
Add rcutils_raw_steady_time_now method for slew-free clock #507
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
Add rcutils_raw_steady_time_now method for slew-free clock #507
Conversation
Signed-off-by: Sai Kishor Kothakota <[email protected]>
523237b to
a87a58b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @fujitatomoya or @alsora do you mind to take a look ? you were involved in the thread discussion
|
Thank you @ahcorde for the review. I would like to know if this can be backported till Jazzy? It is interesting to have it on older distros as it can fix some critical clock issues. |
It's new API, I would say it's save to backport this to other distros |
|
Pulls: #507 |
|
@saikishor @ahcorde actually i am really interested in this clock type extension, i will take a look. please let me have a couple of days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as rcutils implementation this looks good to me.
btw, to extend the clock type for the application via rclcpp and rclpy, we need to merge all related PRs all together. (although we can go step by step, my preference is to merge all related PRs together once they are ready. so that we do not need to revert or roll back the fixes if anything come up.)
@saikishor are you also willing to work on rcl, rclcpp and rclpy to support RCL_RAW_STEADY_TIME type?
Fair enough. I can try to work on this during these days. I'm also very much interested in having these changes on older distros |
|
@saikishor really appreciate your effort! thanks.
So am I. I am thinking that this is probably adding the functions and enum, so expecting that there is not ABI break for the downstream distros. i may be wrong, but that is my expectation at this point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with green CI.
|
Pulls: #507 |
|
I believe CI failures are unrelated, none of the added unit tests are failing. i will go head to merge this. |
|
|
@Mergifyio backport kilted jazzy humble |
✅ Backports have been created
|
* Add rcutils_raw_steady_time_now method for slew-free clock Signed-off-by: Sai Kishor Kothakota <[email protected]> * Added RCUTILS_LOG_WARN_ONCE about the behaviour on unsupported platforms --------- Signed-off-by: Sai Kishor Kothakota <[email protected]> (cherry picked from commit 89264ce)
* Add rcutils_raw_steady_time_now method for slew-free clock Signed-off-by: Sai Kishor Kothakota <[email protected]> * Added RCUTILS_LOG_WARN_ONCE about the behaviour on unsupported platforms --------- Signed-off-by: Sai Kishor Kothakota <[email protected]> (cherry picked from commit 89264ce)
* Add rcutils_raw_steady_time_now method for slew-free clock Signed-off-by: Sai Kishor Kothakota <[email protected]> * Added RCUTILS_LOG_WARN_ONCE about the behaviour on unsupported platforms --------- Signed-off-by: Sai Kishor Kothakota <[email protected]> (cherry picked from commit 89264ce) # Conflicts: # src/time_unix.c
|
Thank you @fujitatomoya |
(cherry picked from commit 89264ce) Signed-off-by: Sai Kishor Kothakota <[email protected]> Co-authored-by: Sai Kishor Kothakota <[email protected]>
(cherry picked from commit 89264ce) Signed-off-by: Sai Kishor Kothakota <[email protected]> Co-authored-by: Sai Kishor Kothakota <[email protected]>
…507) (#515) Signed-off-by: Tomoya Fujita <[email protected]> Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Sai Kishor Kothakota <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
fixes: #488
This PR adds monotonic slew-free clock implementation that can be used for industrial applications where a slew-free clock plays a very important role when integrating ros2_control with industrial applications to avoid rattling sound in the actuators when there is a time drift