Skip to content

construct TimerBase/GenericTimer with Clock#523

Merged
dirk-thomas merged 3 commits intomasterfrom
timer-with-clock
Jul 28, 2018
Merged

construct TimerBase/GenericTimer with Clock#523
dirk-thomas merged 3 commits intomasterfrom
timer-with-clock

Conversation

@dirk-thomas
Copy link
Copy Markdown
Member

@dirk-thomas dirk-thomas commented Jul 23, 2018

Extend the Timer API to take a Clock.

Requires ros2/rcl#272.

@dirk-thomas dirk-thomas added enhancement New feature or request in review Waiting for review (Kanban column) labels Jul 23, 2018
@dirk-thomas dirk-thomas self-assigned this Jul 23, 2018
@dirk-thomas dirk-thomas requested review from dhood and sloretz July 23, 2018 23:58
@dirk-thomas
Copy link
Copy Markdown
Member Author

dirk-thomas commented Jul 24, 2018

CI builds only up to rclcpp:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Copy Markdown
Member

@dhood dhood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks alright to me, just some docs I noticed would be out-of-date.

@@ -112,8 +112,10 @@ class GenericTimer : public TimerBase
* \param[in] period The interval at which the timer fires.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing parameter doc

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in 0462196.

@@ -95,11 +97,9 @@ using TimerCallbackType = std::function<void (TimerBase &)>;
/// Generic timer templated on the clock type. Periodically executes a user-specified callback.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doc needs update

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in 0462196.

@dirk-thomas
Copy link
Copy Markdown
Member Author

some docs I noticed would be out-of-date.

Absolutely, packages on-top of rclcpp also haven't been updated yet. Will put it back in review when that is the case and the docblocks are updated too.

@dirk-thomas dirk-thomas added in progress Actively being worked on (Kanban column) and removed in review Waiting for review (Kanban column) labels Jul 24, 2018
@dirk-thomas
Copy link
Copy Markdown
Member Author

CI builds with FastRTPS (both static as well as dynamic since we can't select them individually atm):

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Putting this and the connected tickets back in review.

@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Jul 26, 2018
@dirk-thomas
Copy link
Copy Markdown
Member Author

New CI builds after rebasing rclpy:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@dirk-thomas
Copy link
Copy Markdown
Member Author

Another round of CI builds:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@dirk-thomas dirk-thomas merged commit 4ddb76f into master Jul 28, 2018
@dirk-thomas dirk-thomas deleted the timer-with-clock branch July 28, 2018 01:27
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Jul 28, 2018
@KenYN
Copy link
Copy Markdown

KenYN commented May 29, 2020

It would be nice to have a RosTimer as well as the WallTimer class, and/or a more generic create_timer() that takes an rcl_clock_type_t as an additional parameter.

nnmm pushed a commit to ApexAI/rclcpp that referenced this pull request Jul 9, 2022
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
DensoADAS pushed a commit to DensoADAS/rclcpp that referenced this pull request Aug 5, 2022
* Add record test for ros2bag

A nominal smoke test to confirm that the tool is working.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Remove unused import

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Fix lint

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Expect exit code 2 from rclcpp

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Remove unused import

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Fix test for Windows

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants