-
Notifications
You must be signed in to change notification settings - Fork 0
Closed as not planned
Closed as not planned
Copy link
Labels
bag-formatbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestmcap-format
Description
Resolution
After evaluating the complexity and use case, we decided not to implement cross-format conversion between BAG and MCAP.
Rationale
- Limited Use Case: Format conversion is rarely needed in practice
- Existing Tools:
rosbag,ros2 bag, and Foxglove'smcapCLI already handle conversions - Core Value: robocodec's strength is reading both formats well, not converting between them
- Complexity: ROS1 and ROS2 have fundamental serialization differences (alignment, headers, etc.)
- Semantic Loss: ROS1
std_msgs/Headerhasseqfield that ROS2 doesn't - conversion loses information
Changes Made
- Modified
convert to-mcapandconvert to-bagcommands to:- Return a clear error when cross-format conversion is attempted
- Still work for same-format normalization (rewriting a file in the same format)
- Provide helpful error message suggesting alternative tools
Example Error Message
Error: Cross-format conversion (BAG → MCAP) is not supported.
robocodec can read and write both BAG and MCAP formats, but cannot convert between them.
The serialization formats are fundamentally different (ROS1 vs ROS2).
For format conversion, consider using:
- Foxglove's mcap CLI: https://github.com/foxglove/mcap
- rosbag tool for ROS1 bags
- ros2 bag tool for ROS2
Use 'robocodec convert normalize' to rewrite a file in the same format.
Focus Instead
The project will focus on:
- ✅ Robust BAG file reading (fixed in recent commits)
- ✅ Robust MCAP file reading
- ✅ BAG/MCAR extraction features (see issues [BAG] Implement partial message extraction (extract messages --count) #30-32)
- ✅ Same-format normalization and transformations
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bag-formatbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestmcap-format