Skip to content

Conversation

@jacobperron
Copy link

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Author

Note, the only new implementation is Node.createTimer. The rest is just renaming classes WallTimer* -> Timer*.

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

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

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

lgtm

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron merged commit 2c2b68b into feature/ros_time Sep 18, 2020
@jacobperron jacobperron deleted the ros_timers branch September 18, 2020 18:33
jacobperron added a commit that referenced this pull request Sep 18, 2020
* Support wall-time and ROS-time timers

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

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

* Add test

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

* Log error if failed to dispose timer

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Sep 18, 2020
* Support wall-time and ROS-time timers

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

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

* Add test

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

* Log error if failed to dispose timer

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Sep 18, 2020
* Support wall-time and ROS-time timers

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

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

* Add test

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

* Log error if failed to dispose timer

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Sep 18, 2020
* Support wall-time and ROS-time timers

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

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

* Add test

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

* Log error if failed to dispose timer

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
ivanpauno pushed a commit that referenced this pull request May 17, 2021
* Support wall-time and ROS-time timers

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

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

* Add test

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

* Log error if failed to dispose timer

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to ros2-java/ros2_java that referenced this pull request May 13, 2022
* Support wall-time and ROS-time timers

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

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

* Add test

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

* Log error if failed to dispose timer

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to ros2-java/ros2_java that referenced this pull request May 13, 2022
* Support wall-time and ROS-time timers

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

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

* Add test

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

* Log error if failed to dispose timer

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to ros2-java/ros2_java that referenced this pull request May 13, 2022
* Support wall-time and ROS-time timers

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

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

* Add test

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

* Log error if failed to dispose timer

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit to ros2-java/ros2_java that referenced this pull request May 17, 2022
* Support wall-time and ROS-time timers

Add a new method to Node for creating ROS timers.

Refactor timer implementation to account for the two different types of timers.
Deprecate WallTimer interface and WallTimerImpl and replace with unified Timer interface and TimerImpl.

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

* Add test

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

* Log error if failed to dispose timer

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants