-
Notifications
You must be signed in to change notification settings - Fork 69
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
rmw_time_t is redundant with rcutils_duration_value_t and doesn't need to be a struct #215
Comments
It occurs to me that there is (until #214) no rmw concept of absolute time. It may make sense in the future to think about adding a rmw-implemented timestamp and comparator function so the RMW can use a different time concept, like vector clocks. |
Why do you think That means it would be redundant with |
Because every existing use of it (wait time, liveliness, lifespan, deadline) is a relative time and because https://github.com/ros2/rclcpp/blob/911291f8d32da8a9a70f69adc7bcf1e41477e017/rclcpp/include/rclcpp/duration.hpp#L111. Both time_point and duration are |
BTW, I don’t think this issue is high priority. I’d like to see it eventually fixed. |
related to #210 |
I'm looking at working on this in parallel to #210 Right now, I think It makes sense to make a pass through |
Noting discussion from middleware WG meeting - no immediate concern about calling this type deprecated in Galactic to be removed in H-turtle. Expectation would be to remove the use of the types from |
I think certain time window should be given for deprecation, the reasons are
|
Agreed. We actually talked about this in more detail over at #298 (comment) , and the consensus there was to revisit this after Galactic. |
rmw_time_t
is defined as:This differs from
rcutils_duration_value_t
which admits a value as just aint64_t
holding nanoseconds. It probably makes sense to replacermw_time_t
with a type alias forrcutils_duration_value_t
, and to make clear that it is a duration, not a time point.The text was updated successfully, but these errors were encountered: