Recording rosidl::Buffer (CUDA) topics in rosbag2: prototype and feedback wanted
A ROS2 community prototype allows recording of CUDA-backed rosidl::Buffer topics by enabling the recorder to handle serialization on a separate thread, reducing publish latency from approximately 4.6 ms to 0.14 ms for 1920x1080 images at 30 Hz on an RTX 3060. The tool introduces opt-in command-line flags --acceptable-buffer-backends and --buffer-aware-topics, with the bag format remaining unchanged. Only the CUDA backend has been tested on hardware, and manual topic listing is required since the recorder cannot automatically detect publisher backends.