ros2 / rosbag2

Apache License 2.0
285 stars 251 forks source link

Snapshot Mode with Duration #1795

Closed johnsonTyler0511 closed 2 months ago

johnsonTyler0511 commented 2 months ago

Description

I am using ros2 bag record in snapshot-mode and I want to be able to use both a max size for the bag file and a duration to split the bag files up by.

Currently with snapshot-mode and setting a max_bag_duration I end up getting bag files with no messages but has some metadata about topics etc.

it would be great if the bag files would not be created until the snapshot service was called and then they get split by duration and size as normal :+1:

Completion Criteria

snapshot-mode supports max_bag_duration argument with max_bag_size

Implementation Notes / Suggestions

Possibly look through the cache and split based on time in topic messages

Testing Notes / Suggestions

emersonknapp commented 2 months ago

Closing as duplicate of #900