ros2 / rosbag2

Apache License 2.0
275 stars 247 forks source link

Support common trace format as storage type #588

Open windelbouwman opened 3 years ago

windelbouwman commented 3 years ago

Description

It would be pretty cool if we could log data into the common trace format (CTF). This is a format used by the linux LTTng tooling, and the format can be viewed in trace compass, which is a graphical trace viewer.

This would enable:

Steps involved

emersonknapp commented 3 years ago

This seems like a great candidate for a rosbag2_storage plugin, which could be implemented as a separate package. We don't currently deserialize at recording time, which means that translating the topics into your bag is nontrivial. It might be better written as a bag conversion after the fact? Just a thought.

windelbouwman commented 3 years ago

That's correct, this is a great candidate for a rosbag2_storage plugin. This certainly is non-trivial. Decoding live might be cool, because this enables live view of the trace in a CTF live view capable tool. Since LTTng also emits CTF, the two traces could be combined, yielding good application insight!