You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When would a TimeSource manage multiple clocks? #516
A TimeSource can manage multiple Clocks (from the design doc and the rclcpp implementation).
Currently all clocks attached to a TimeSource use the same property for use_sim_time, and the time for each clock gets set to whatever is received on the /clock topic. What is the anticipated use case for having multiple clocks managed by a single time source? (all clocks attached to a TimeSource seem to behave the same at the moment, but that may just be a "for now" thing).
Is the predicted end state that multiple nodes' clocks are managed by a single TimeSource, but each clock would be able to have its use of sim time enabled/disabled independently? (Currently the use of sim time for each node is configured independently because each node has its own time source).
What is the anticipated use case for having multiple clocks managed by a single time source? (all clocks attached to a TimeSource seem to behave the same at the moment, but that may just be a "for now" thing).
The different clocks can have different callbacks registered on them. Thus you may want different clocks with different scopes. There's generally expected to be a one to one Time Source -> Clock ratio in most use cases. But with it's much smaller dependency the Clock can be integrated into libraries w/o incurring the cost of the full communication integration. For example as I just talked with @sloretz the tf2_ros::Buffer will need to be passed a Clock reference but does not need to have any external communications to operate.
We could consider pulling Clock Time and Duration out into a separate package outside of rclcpp but I think that would be more overhead than it's worth.
Is the predicted end state that multiple nodes' clocks are managed by a single TimeSource, but each clock would be able to have its use of sim time enabled/disabled independently?
If the clocks are managed by the same time source they're expected to have the same sim time. The timesource can only be associated with one node.
Activity
tfoote commentedon Jul 25, 2018
The different clocks can have different callbacks registered on them. Thus you may want different clocks with different scopes. There's generally expected to be a one to one Time Source -> Clock ratio in most use cases. But with it's much smaller dependency the Clock can be integrated into libraries w/o incurring the cost of the full communication integration. For example as I just talked with @sloretz the tf2_ros::Buffer will need to be passed a Clock reference but does not need to have any external communications to operate.
We could consider pulling Clock Time and Duration out into a separate package outside of rclcpp but I think that would be more overhead than it's worth.
If the clocks are managed by the same time source they're expected to have the same sim time. The timesource can only be associated with one node.
dhood commentedon Jul 25, 2018
Having different jump handlers for different clocks is what made the picture clearer to me, thanks!
Remove vestigial references to rcl_ok() (ros2#516)