ros2 / ros2/rclcpp

Extend Time implementation into Timer and Rate objects

Open
#465 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

backlog enhancement help wanted
Dominant language
C++
Stars
805
Forks
564
Avg merge
1d 17h
Merged PRs (30d)
27

Description

The Timer and Rate need to use a clock, with a coupled time source to accurately sleep.

  • Remove internal Rate sleep method, and externalize it with a valid clock or pass in the clock.
  • Provide a sleep method for the Timer class.

Contributor guide

Open the contributing guide

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.

Research direction

Locate the Timer and Rate class implementations and read how their current clock and sleep behavior work. Then address the two listed tasks: couple sleeping to a valid clock and provide Timer sleep behavior, with tests showing accurate timing and the intended interfaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
robotics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.