-
Notifications
You must be signed in to change notification settings - Fork 251
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 simple keyboard control for playback rate #893
Conversation
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just nits on providing more info to user on whats happening
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Gist: https://gist.githubusercontent.com/emersonknapp/9c69653c783a4be4489d75b410c02512/raw/bbfc4ef33db92050d3c8366917e493dc56105dad/ros2.repos |
@@ -147,6 +155,9 @@ TEST_F(RosBag2PlayTestFixture, test_keyboard_controls) | |||
keyboard_handler->simulate_key_press(play_options_.pause_resume_toggle_key); | |||
EXPECT_THAT(player->is_paused(), true); | |||
|
|||
keyboard_handler->simulate_key_press(play_options_.increase_rate_key); | |||
keyboard_handler->simulate_key_press(play_options_.decrease_rate_key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for posting in closed PR.
Just in case for future. It would be better to check rate va player->get_rate()
before changing it again.
No description provided.