names = rosReadAllFieldNames(pcloud)
returns all the fields that are stored in the ROS or ROS 2
'sensor_msgs/PointCloud2' message structure,
pcloud, and returns them in names.
names — List of field names in PointCloud2 object cell array of character vectors
List of field names in 'sensor_msgs/PointCloud2'
message, returned as a cell array of character vectors. If no fields exist
in the message, fieldname returns an empty cell
array.
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
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.