-
Notifications
You must be signed in to change notification settings - Fork 76
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
Is RealtimeClock() still needed with ROS 2? #241
Comments
copilot says
|
Less code, healthier repo. Let's remove it |
I think by default the rclcpp STEADY clock might be real-time safe. We have to check it properly. I mean calling stead clock and rclcpp::Clock to see if we get same information. However, we cannot use steady clock everywhere in the controllers due to the ROS clock, as it is mostly needed for simulation. Instead with stead clock you only have wall time |
You mean that SystemTime is not?
But this is not the point of this issue, because the RealtimeClock is only a wrapper around a rclcpp::Clock, the user has to decide which clock_type to pass into it.
I agree. |
SystemTime is not monotonic so it is better not used in the RT applications. If no other repo is using it, we can remove it |
I've searched on github for it and haven't found any occurrences except of forks of this repo. I'll deprecate it for one release cycle |
Make sense. Let's do that! |
We don't use it anywhere.
Reading the discussion from #23, are those now realtime safe?
std::chrono::steady_clock::now()
rclcpp::Clock().now()
rclcpp::Clock::SharedPtr rclcpp::node_interfaces::NodeClockInterface::get_clock()
-> now()The text was updated successfully, but these errors were encountered: