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
I don't think anyone is actively working on this. If you'd like to start work on the clock, timer and rate that would be feasible. The time source is blocked on the availability of parameters. If you'd like to pick it up I'd suggest creating a separate ticket for one of the smaller parts to sketch out how you're going to approach it to get feedback before you jump in and implement it.
Here's some additional detail about the steps that would be required.
Time class wrapping rcl types (rcl_time_point, rcl_duration) and functions (rcl_difference_times, rcl_get_time_now). Conversions to/from builtin_interfaces msg type.
Clock class wrapping rcl's rcl_clock_t, exposing get_now; Node has a clock; demos using node.now() if appropriate.
TimeSource wrapping rcl; implementation of ROS time support: A node is used to create a TimeSource of "ROS time" (subscription to /clock, use_sim_time support by some means), node's clock is managed by the TimeSource.
Time jump types (TimeJump, JumpThreshold) and logic moved from rclcpp to rcl, wrapped in python. Jump handlers in python.
Timer using specific Clock (rclpy Timer currently wraps an rcl timer that rcl_wait uses) in a similar manner to what will be done for rclcpp.
Addition of Rate in a similar manner to what will be done for rclcpp.
Activity
Nickolaim commentedon May 11, 2018
I can take this item if nobody is looking at it yet.
tfoote commentedon May 15, 2018
I don't think anyone is actively working on this. If you'd like to start work on the clock, timer and rate that would be feasible. The time source is blocked on the availability of parameters. If you'd like to pick it up I'd suggest creating a separate ticket for one of the smaller parts to sketch out how you're going to approach it to get feedback before you jump in and implement it.
dhood commentedon Jul 16, 2018
Here's some additional detail about the steps that would be required.
rcl_time_point,rcl_duration) and functions (rcl_difference_times,rcl_get_time_now). Conversions to/from builtin_interfaces msg type.rcl_clock_t, exposing get_now; Node has a clock; demos using node.now() if appropriate.TimeJump,JumpThreshold) and logic moved from rclcpp to rcl, wrapped in python. Jump handlers in python.stonier commentedon Oct 30, 2018
Another one for the list, oneshot timers?
dirk-thomas commentedon Oct 30, 2018
A oneshot timer should be straight forward to implement on top of regular timers by cancelling the timer in the first callback.
Please consider to contribute a pull request for this feature.
slessans commentedon Jun 8, 2019
@dirk-thomas do you know if anyone took a shot at contributing a simple one shot timer? If not I will give it a try
dirk-thomas commentedon Jun 8, 2019
Not that I am aware of.
That would be great.
mhpanah commentedon Jul 31, 2019
I'm in need of Rate method to use
sim_time. Has Rate method been implemented on rclpy yet? Thanks.jacobperron commentedon Aug 21, 2019
Nope. PRs welcome ;)
ros-discourse commentedon Jun 13, 2025
This issue has been mentioned on ROS Discourse. There might be relevant details there:
https://discourse.ros.org/t/mapping-between-rospy-and-rclpy/5737/1
Merge pull request ros2#186 from Carter12s/update-lock-and-logger-dep