'Cannot dereference iterator at end of result set!' error from ros2bag function

2 views (last 30 days)
I'm using MATLAB R2022a, and trying to read my .db3 file by ros2bag function.
When I run the function, it returned the error message 'Cannot dereference iterator at end of result set!' and failed.
What should I do to run ros2bag successfully?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 29 May 2023
When you use ros2bag function to rosbag files which .yaml file register more than two .db3 files, the function will fail and return the message.
Please record the data into individual bag folders such that they have their own "metadata.yaml". 

More Answers (0)


Find more on Develop Apps Using App Designer in Help Center and File Exchange


No tags entered yet.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!