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 or ROS 2 message types. For examples of accessing data from these sensors, see Work with Specialized ROS Messages.

Functions

expand all

rosReadImageConvert ROS or ROS 2 image data into MATLAB image
rosWriteImageWrite MATLAB image to ROS or ROS 2 image message
rosWriteCameraInfoWrite monocular or stereo camera parameters to ROS or ROS 2 message structure
rosReadLidarScanDisplay lidar scan or point cloud from ROS or ROS 2 message structure
rosReadCartesianRead laser scan ranges in Cartesian coordinates from ROS or ROS 2 message structure
rosReadScanAnglesReturn scan angles from ROS or ROS 2 message structure
rosPlotDisplay lidar scan or point cloud from ROS or ROS 2 message structures
rosReadXYZExtract XYZ coordinates from ROS or ROS 2 point cloud message structure
rosReadRGBExtract RGB color values from ROS or ROS 2 point cloud message structure
rosReadAllFieldNamesGet all available field names from ROS or ROS 2 point cloud message structure
rosReadFieldRead point cloud data from ROS or ROS 2 message structure based on field name
rosPlotDisplay lidar scan or point cloud from ROS or ROS 2 message structures
rosReadQuaternionCreate MATLAB quaternion object from ROS or ROS 2 message structure
velodyneROSMessageReaderRead Velodyne ROS messages
hasFrameDetermine if another Velodyne point cloud is available in the ROS messages
readFrameRead point cloud frame from ROS message
resetReset CurrentTime property of velodyneROSMessageReader object to default value
rosReadBinaryOccupancyGridRead binary occupancy grid data from ROS or ROS 2 message structure
rosReadOccupancyGridRead occupancy grid data from ROS or ROS 2 message structure
rosReadOccupancyMap3DRead 3-D map from ROS or ROS 2 Octomap message structure
rosWriteBinaryOccupancyGridWrite values from binary occupancy grid to ROS or ROS 2 message structure
rosWriteOccupancyGridWrite values from occupancy grid to ROS or ROS 2 message structure

Topics