readMessages
R2026bRead messages from ros2bagreader object
Description
returns data from all messages in the msgs = readMessages(bag)ros2bagreader object
bag. The function returns the messages as a cell array of
structures.
returns data from the messages in the rows specified by msgs = readMessages(bag,rows)rows.Valid row
indices range from 1 to bag.NumMessages.
readMessages begins reading as soon as the requested index range has
been indexed in the background, without waiting for the entire message list to be built. If
the requested range extends beyond the currently indexed portion, MATLAB® waits until that range becomes available.