TimersManager doesn't follow ROS time

Open
#2,480 4 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@alsora is already working on this.

Since Jul 12, 2024.

Assessment

This issue has not been assessed yet.

Description

Feature request

Feature description

Currently, the TimersManager class waits for timers to be ready using the following code

timers_cv_.wait_for(lock, time_to_sleep.value(), [this]() {return timers_updated_;});

This will always sleep using the system clock, even if the "time to sleep" was computed from a timer using the ROS clock

We should take into account the clock type when deciding how to sleep, and use an API that is aware of ROS clock

Dominant language
C++
Stars
829
Forks
587
Avg merge
4d 6h
Merged PRs (30d)
30

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/rclcpp

All issues in ros2/rclcpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.