Open and parse ros2bag log file
The ros2bag object contains all the messages from the ROS 2 bag
log file.
creates a bag = ros2bag(folderpath)ros2bag object, bag, that contains all the
messages from the ROS 2 bag log file located at path folderPath. The
folderpath input sets the value of the
FilePath property.
ROS 2 bag files are used for storing ROS 2 message data. They are used primarily to log messages transmitted over a ROS 2 network. You can use these bag files for offline analysis, visualization, and storage.
Note
If the ROS 2 bag log file contains custom messages, create custom messages for
MATLAB using ros2genmsg
function before creating the ros2bag object.
readMessages | Read messages from ros2bag object |
select | Select subset of messages in ros2bag |