ROS Specialized Messages

Access messages from specialized sensors and inputs

Specialized message functions enable you to create and access sensors and data types using specific ROS message types. For examples of accessing data from these sensors, see Work with Specialized ROS Messages.


CompressedImageCreate compressed image message
ImageCreate image message
LaserScanCreate laser scan message
OccupancyGridCreate occupancy grid message
PointCloud2Access point cloud messages


expand all

readImageConvert ROS image data into MATLAB image
writeImageWrite MATLAB image to ROS image message
readCartesianRead laser scan ranges in Cartesian coordinates
readScanAnglesReturn scan angles for laser scan range readings
plotDisplay laser or lidar scan readings
readXYZExtract XYZ coordinates from point cloud data
readRGBExtract RGB values from point cloud data
readAllFieldNamesGet all available field names from ROS point cloud
readFieldRead point cloud data based on field name
scatter3Display point cloud in scatter plot


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.