[ros-users] how many points in 3D cloud?

Radu Bogdan Rusu rusu at willowgarage.com
Fri Jul 2 16:32:32 UTC 2010


Michael,

If it's a PointCloud, points.size () should give you the number of points. If it's a PointCloud2, cloud.width * 
cloud.height does the same.

Cheers,
Radu.

On 07/02/2010 08:04 AM, Michal.Stolba at cis.strath.ac.uk wrote:
> Hi,
>
> following a tutorial on laser_pipeline:
> http://www.ros.org/wiki/laser_pipeline/Tutorials/IntroductionToWorkingWithLaserScannerData
>
> how do I know how many points are in the resulting 3D point cloud?
>
> Thanks,
>
> Michal
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users

-- 
| Radu Bogdan Rusu | http://rbrusu.com/



More information about the ros-users mailing list