ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
If you refer the PointCloud2 data structure, you can see that the width (in case of an unstructured point cloud) gives the length of the point cloud. In other words, height * size gives you the size of the point cloud (number of points in the complete scan).
I wanna measure the width of a box from the laser data
What box? It would be helpful if you post a sample of your data and/or maybe images that depict what you are trying to convey. It is unclear what size you are trying to calculate