rules_ros2 icon indicating copy to clipboard operation
rules_ros2 copied to clipboard

Add rosbag2 keyboard handler patch

Open lalten opened this issue 10 months ago • 3 comments

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.

lalten avatar Feb 25 '25 10:02 lalten

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

mvukov avatar Feb 26 '25 20:02 mvukov

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

There is indeed something similar in https://github.com/ros2/rosbag2/commit/4882d30fc2d1e5b9305e5d46b8460466f9280d27 but that's not backported to Humble. The patch in this PR is much simpler and has the same effect.

lalten avatar Mar 01 '25 15:03 lalten

@mvukov should we land #443 #444 #445 and #446?

lalten avatar Sep 01 '25 07:09 lalten