[cpp] Serialize ROS2 message for mcap outside of ROS2 #1116
-
Hello, Writing data to mcap file (shown below)
Reading data from mcap file (not shown below)
Does foxglove provide any cpp libraries that serialize a ROS2 message? So far, I've looked into the serialization code in rclcpp, included in ROS2, but it appears that rclcpp has lots of dependencies, making it cumbersome to include as a library in our software. I would prefer to use a library instead of writing the serialization/deserialization myself, because I think it is easier to upgrade a library than rewrite custom code in the event that the ROS2 message definitions change in the future. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 2 replies
-
The only implementation we currently provide is in TypeScript, in @foxglove/rosmsg2-serialization which uses @foxglove/cdr under the hood. |
Beta Was this translation helpful? Give feedback.
-
I apologize for the late reply. Thank you for your help; I've decided to use flatbuffers, since this is another workflow supported by Foxglove |
Beta Was this translation helpful? Give feedback.
The only implementation we currently provide is in TypeScript, in @foxglove/rosmsg2-serialization which uses @foxglove/cdr under the hood.