- Specify each individual DB3 file separately, using the path to each file.
- Combine the segmented BAG files into one large BAG file.
How to parse rosbags split between multiple DB3 files using ros2bagreader?
6 views (last 30 days)
Show older comments
MathWorks Support Team
on 28 Feb 2023
Commented: Snehal
on 26 Mar 2025
I am trying to use the "ros2bagreader" function to directly parse rosbags where the messages are split between multiple DB3 files and the initial argument is the directory. How can I open each file?
Accepted Answer
MathWorks Support Team
on 28 Feb 2023
The ability to directly parse a directory with multiple DB3 files is not available as of release R2022b.
However, to work around this, you can either:
1 Comment
Snehal
on 26 Mar 2025
Update:
In MATLAB R2023b and later versions, you can parse multiple DB3 files within a common folder directly by specifying the ‘folderpath’ as a folder. Ensure that you have read and write access to the bag folder that contains the DB3 files.
Refer to the following documentation link for more details:
More Answers (0)
See Also
Categories
Find more on Bag File Logging and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!