Main Content

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, seeWork with Specialized ROS Messages.

Objects

expand all

CompressedImage Create compressed image message
Image Create image message
LaserScan Create laser scan message
OccupancyGrid Create occupancy grid message
PointCloud2 Access point cloud messages
velodyneROSMessageReader ReadVelodyneROS messages

Functions

expand all

readImage Convert ROS image data intoMATLABimage
writeImage WriteMATLABimage to ROS image message
readCartesian Read laser scan ranges in Cartesian coordinates
readScanAngles Return scan angles for laser scan range readings
plot Display laser or lidar scan readings
readXYZ Extract XYZ coordinates from point cloud data
readRGB Extract RGB values from point cloud data
readAllFieldNames Get all available field names from ROS point cloud
readField Read point cloud data based on field name
scatter3 Display point cloud in scatter plot
velodyneROSMessageReader ReadVelodyneROS messages
hasFrame Determine if anotherVelodynepoint cloud is available in the ROS messages
readFrame Read point cloud frame from ROS message
reset ResetCurrentTimeproperty ofvelodyneROSMessageReaderobject to default value

Topics

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.