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

Revision history [back]

The PointCloud2Ptr is just a pointer to your PointCloud2 datatype. The actual sensor data is held in the PointCloud2 message structure and a pointer is passed to the callback to prevent duplication of data (saving time and memory) and other benefits that CS majors can fill you in.

You can still access your data in your callback using the -> operator. For eg: cloud_msg->size()