错误ValueError: Buffer dtype mismatch, expected ‘float32_t‘ but got ‘double

PCL library call error 

cloud0.from_array(all_pointcloud_world)
  File "pcl/pxi/PointCloud_PointXYZ_180.pxi", line 160, in pcl._pcl.PointCloud.from_array

Solution:

Need to save np array as float32

points_on_ground=np.array(points_on_ground,dtype=np.float32)

Like it

Guess you like

Origin blog.csdn.net/li4692625/article/details/127192533