Skip to content

Add rosbag2 keyboard handler patch #445

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

lalten
Copy link
Contributor

@lalten lalten commented Feb 25, 2025

This removes the registering a keyboard handler from the system when using the rosbag2 keyboard handler.

With this patch, you can set nullptr as keyboard handler and it will not fiddle with the system internals. If not supplied, it will work as before...

Background is that this causes side effects on the system:

  • Terminal will ignore any further inputs and freeze.
  • Tests will not properly finish and crash on gtest cleanup code.

@mvukov
Copy link
Owner

mvukov commented Feb 26, 2025

Just curious: is this patched in the official repo as well?

@lalten
Copy link
Contributor Author

lalten commented Mar 1, 2025

Just curious: is this patched in the official repo as well?

There is indeed something similar in ros2/rosbag2@4882d30 but that's not backported to Humble. The patch in this PR is much simpler and has the same effect.

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.

2 participants