readMessages
Read messages from rosbag
Syntax
Description
returns data as a cell array of structures or cell array of message objects using
either set of the previous input arguments. Specify msgs
= readMessages(___,"DataFormat",Format)Format
as
either "struct"
or "object"
.
Using structures can be significantly faster than using message objects, and
custom message data can be read directly without loading message definitions using
rosgenmsg
.
Note
In a future release, ROS Toolbox will use message structures instead of objects for ROS messages.
To use message structures now, set the "DataFormat"
name-value
argument to "struct"
. For more information, see ROS Message Structures.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019bSee Also
select
| rosbag
| timeseries
| rosbagreader