Closed lix19937 closed 1 month ago
@lix19937 galactic is already E.O.L, can you try supported distribution instead? see more details for https://docs.ros.org/en/rolling/Releases.html.
the following is humble example, and that works no problem.
root@tomoyafujita:/# apt install ros-humble-rosbag2-storage-mcap
...
root@tomoyafujita:~# source /opt/ros/humble/setup.bash
root@tomoyafujita:~# ros2 bag record -s mcap -a
[INFO] [1726678921.351196073] [rosbag2_recorder]: Press SPACE for pausing/resuming
[INFO] [1726678921.352961700] [rosbag2_recorder]: Listening for topics...
[INFO] [1726678921.352971747] [rosbag2_recorder]: Event publisher thread: Starting
[INFO] [1726678921.353823403] [rosbag2_recorder]: Subscribed to topic '/rosout'
[INFO] [1726678921.354265543] [rosbag2_recorder]: Subscribed to topic '/events/write_split'
[INFO] [1726678921.354301923] [rosbag2_recorder]: Recording...
[INFO] [1726678923.866222393] [rosbag2_cpp]: Writing remaining messages from cache to the bag. It may take a while
[INFO] [1726678923.867891619] [rosbag2_recorder]: Event publisher thread: Exiting
[INFO] [1726678923.868073778] [rosbag2_recorder]: Recording stopped
root@tomoyafujita:~# ros2 bag info rosbag2_2024_09_18-17_02_01
Files: rosbag2_2024_09_18-17_02_01_0.mcap
Bag size: 8.1 KiB
Storage id: mcap
Duration: 0.000027805s
Start: Sep 18 2024 17:02:01.354440363 (1726678921.354440363)
End: Sep 18 2024 17:02:01.354468168 (1726678921.354468168)
Messages: 6
Topic information: Topic: /events/write_split | Type: rosbag2_interfaces/msg/WriteSplitEvent | Count: 0 | Serialization Format: cdr
Topic: /rosout | Type: rcl_interfaces/msg/Log | Count: 6 | Serialization Format: cdr
i think we can close this issue, but please feel free to keep if you have any problems with supported distribution.
ros2 galactic deault not include mcap
https://discourse.ros.org/t/ros-galactic-rosbag2-storage-mcap-released/25505
https://mcap.dev/guides/getting-started/ros-2