ROS Log Files and Specialized Messages
ROS topics are stored in log files called rosbags. You can access and filter information from these rosbags in MATLAB®. For an example of working with rosbags, see Work with rosbag Logfiles.
Specialized message functions enable you to create and access sensors and data types using specific ROS and ROS 2 message types. You can use the same functions to work with specific ROS and ROS 2 specialized message types. For examples of accessing data from these sensors, see Work with Specialized ROS Messages.
Functions
Objects
BagSelection | Object for storing rosbag selection |
Blocks
Read Data | Play back data from log file |
Read Image | Extract image from ROS Image message |
Read Scan | Extract scan data from ROS or ROS 2 laser scan message |
Read Point Cloud | Extract point cloud from ROS PointCloud2 message |
Write Image | Write image data to a ROS or ROS 2 message |
Write Point Cloud | Write point cloud data to a ROS or ROS 2 message |
Topics
- ROS Log Files (rosbags)
Summary of the structure of rosbags and the workflow for selecting subsets of messages in a rosbag.
- Log ROS Messages from Simulink to a Rosbag Logfile
Save ROS message data from Simulink® to a rosbag file.
- Work with rosbag Logfiles
A rosbag or bag is a file format in ROS for storing message data.
- Work with Specialized ROS Messages
Some commonly used ROS messages store data in a format that requires some transformation before it can be used for further processing.
- Work with Velodyne ROS Messages
Velodyne ROS messages store data in a format that requires some interpretation before it can be used for further processing.
- Improve Performance of ROS Using Message Structures
This example demonstrates the use of ROS message structures, and their benefits and differences from message objects.