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

Remove JumpHandler copy-implementation from PlayerClock/TimeControllerClock #935

Merged
merged 2 commits into from
Dec 9, 2021

Conversation

emersonknapp
Copy link
Collaborator

@emersonknapp emersonknapp commented Dec 8, 2021

This API was originally envisioned as a way to handle the seek/jump operation, but that feature ended up being implemented inline in the Player. This is not used now, and I do not anticipate using it in the future. Removing as housekeeping - if it is needed later it can always be re-added from history.

Depends on ros2/rclcpp#1842

@emersonknapp emersonknapp force-pushed the emersonknapp/remove-player-clock-jump-handler branch from baa8613 to 48585d0 Compare December 8, 2021 17:56
@emersonknapp emersonknapp marked this pull request as ready for review December 8, 2021 17:57
@emersonknapp emersonknapp requested a review from a team as a code owner December 8, 2021 17:57
@emersonknapp emersonknapp requested review from MichaelOrlov and removed request for a team December 8, 2021 17:57
Copy link
Contributor

@lihui815 lihui815 left a comment

Choose a reason for hiding this comment

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

Yay. Delete the redundant code!

@emersonknapp
Copy link
Collaborator Author

Gist: https://gist.githubusercontent.com/emersonknapp/2853603ea13179bcaaa53f419dc1421b/raw/a61c989f67630c06e2a4da576e6fabeb14ae9b69/ros2.repos
BUILD args: --packages-up-to rosbag2_cpp rosbag2_tests rosbag2
TEST args: --packages-select rosbag2_cpp rosbag2_tests rosbag2
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/9474

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

…rClock

This API was originally envisioned as a way to handle the `seek`/`jump` operation, but that feature ended up being implemented inline in the `Player`. This is not used now, and I do not anticipate using it in the future. Removing as housekeeping - if it is needed later it can always be re-added from history.

Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
@emersonknapp emersonknapp force-pushed the emersonknapp/remove-player-clock-jump-handler branch from 48585d0 to ec98835 Compare December 8, 2021 23:29
@emersonknapp
Copy link
Collaborator Author

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

@emersonknapp emersonknapp merged commit 387abff into master Dec 9, 2021
@delete-merged-branch delete-merged-branch bot deleted the emersonknapp/remove-player-clock-jump-handler branch December 9, 2021 01:12
Copy link
Contributor

@MichaelOrlov MichaelOrlov left a comment

Choose a reason for hiding this comment

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

@emersonknapp I didn't get from description of this task what does it means copy-implementation ? And why do you still need create_jump_callback(..) ?

ROSBAG2_CPP_PUBLIC
virtual void remove_jump_callbacks(PlayerClock::JumpHandler::SharedPtr handler) = 0;
virtual rclcpp::JumpHandler::SharedPtr create_jump_callback(
Copy link
Contributor

Choose a reason for hiding this comment

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

@emersonknapp If you are removing jump callbacks from player_clock class, why do you need this API create_jump_callback(..) which is returning null_ptr?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I meant "it's an implementation that was mostly copy-pasted from rclcpp". I will use the jump handler in the ROStime implementation #928 - i could have added this there but it will end up the same

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