ROS Specialized Messages
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
ROS Message Objects
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
Images
readImage |
Convert ROS image data intoMATLABimage |
writeImage |
WriteMATLABimage to ROS image message |
Laser Scans
readCartesian |
Read laser scan ranges in Cartesian coordinates |
readScanAngles |
Return scan angles for laser scan range readings |
plot |
Display laser or lidar scan readings |
Point Clouds
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 |
Velodyne ROS Messages
velodyneROSMessageReader |
ReadVelodyneROS messages |
hasFrame |
Determine if anotherVelodynepoint cloud is available in the ROS messages |
readFrame |
Read point cloud frame from ROS message |
reset |
ResetCurrentTime property ofvelodyneROSMessageReader object 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.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina(Español)
- Canada(English)
- United States(English)
Europe
- Belgium(English)
- Denmark(English)
- Deutschland(Deutsch)
- España(Español)
- Finland(English)
- France(Français)
- Ireland(English)
- Italia(Italiano)
- Luxembourg(English)
- Netherlands(English)
- Norway(English)
- Österreich(Deutsch)
- Portugal(English)
- Sweden(English)
- Switzerland
- United Kingdom(English)