Access point cloud messages
The PointCloud2 object is an implementation of the
sensor_msgs/PointCloud2 message type in ROS. The object contains
meta-information about the message and the point cloud data. To access the actual data,
use readXYZ to
get the point coordinates and readRGB to
get the color information, if available.
ptcloud = rosmessage('sensor_msgs/PointCloud2')
creates an empty PointCloud2 object. To specify point
cloud data, use the ptcloud.Data property. You can also
get point cloud data messages off the ROS network using rossubscriber.
readAllFieldNames | Get all available field names from ROS point cloud |
readField | Read point cloud data based on field name |
readRGB | Extract RGB values from point cloud data |
readXYZ | Extract XYZ coordinates from point cloud data |
scatter3 | Display point cloud in scatter plot |
showdetails | Display all ROS message contents |
readAllFieldNames | readField | readRGB | readXYZ | rosmessage | rossubscriber | scatter3 | showdetails