ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

It depends on the number of fields, and the size of the fields. These are defined in the message (http://docs.ros.org/api/sensor_msgs/html/msg/PointCloud2.html) fields[] array (http://docs.ros.org/api/sensor_msgs/html/msg/PointField.html).

If you're doing something quick and dirty and you know the shape of your incoming data, you can always hardcode the sizes, however the more robust approach would be to process based on the fields[] data.