Skip to content

Add param callback to time_source - #297

Merged
jacobperron merged 2 commits into
ros2:masterfrom
vinnamkim:use_sim_time
Apr 1, 2019
Merged

jacobperron merged 2 commits into
ros2:masterfrom
vinnamkim:use_sim_time

Conversation

@vinnamkim

@vinnamkim vinnamkim commented Mar 29, 2019 •

Copy link
Copy Markdown
Contributor

Targets to #240

Since it seems there have been no response on #240 for a long time, I made this PR. However, It seems that the callback function should be changed from parameter callback to something like rclcpp::SyncParametersClient or rclcpp::AsyncParametersClient.

Signed-off-by: vinnamkim [email protected]

@tfoote tfoote added the in review Waiting for review (Kanban column) label Mar 29, 2019
@jacobperron
jacobperron self-requested a review March 29, 2019 23:33

@jacobperron jacobperron left a comment

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.

Thanks for the PR!

I believe this TODO can also be removed:

# TODO(dhood): use sim time if parameter has been set on the node.

In addition to my comments below, please rebase on master (to get ab6f117) so tests will pass, thanks!

Comment thread rclpy/rclpy/time_source.py Resolved
Comment thread rclpy/rclpy/time_source.py Resolved
Comment thread rclpy/rclpy/time_source.py Resolved
Comment thread rclpy/rclpy/time_source.py Resolved
Comment thread rclpy/test/test_time_source.py Resolved
Comment thread rclpy/test/test_time_source.py Resolved
Comment thread rclpy/test/test_time_source.py Resolved
Comment thread rclpy/rclpy/time_source.py Resolved
Comment thread rclpy/rclpy/time_source.py Resolved
Signed-off-by: vinnamkim <[email protected]>

@jacobperron jacobperron left a comment

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.

Thanks for addressing feedback. LGTM pending green CI:

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

@jacobperron

Copy link
Copy Markdown
Member

Test failures are unrelated.

@jacobperron
jacobperron merged commit 36b0b8b into ros2:master Apr 1, 2019
@jacobperron jacobperron removed the in review Waiting for review (Kanban column) label Apr 1, 2019
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