Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add param callback to time_source #297

Merged
merged 2 commits into from
Apr 1, 2019
Merged

Conversation

vinnamkim
Copy link
Contributor

@vinnamkim vinnamkim commented Mar 29, 2019

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 vinnam.kim@gmail.com

@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
Copy link
Member

@jacobperron jacobperron left a comment

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!

rclpy/rclpy/time_source.py Outdated Show resolved Hide resolved
rclpy/rclpy/time_source.py Outdated Show resolved Hide resolved
rclpy/rclpy/time_source.py Outdated Show resolved Hide resolved
rclpy/rclpy/time_source.py Outdated Show resolved Hide resolved
rclpy/test/test_time_source.py Outdated Show resolved Hide resolved
rclpy/test/test_time_source.py Outdated Show resolved Hide resolved
rclpy/test/test_time_source.py Show resolved Hide resolved
rclpy/rclpy/time_source.py Outdated Show resolved Hide resolved
rclpy/rclpy/time_source.py Show resolved Hide resolved
Signed-off-by: vinnamkim <vinnam.kim@gmail.com>
Signed-off-by: vinnamkim <vinnam.kim@gmail.com>
Copy link
Member

@jacobperron jacobperron left a comment

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
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.

None yet

3 participants