値エラー: バッファー dtype が一致しません。「float32_t」が予期されましたが、「double」が返されました。

PCLライブラリ呼び出しエラー 

cloud0.from_array(all_pointcloud_world)
  ファイル「pcl/pxi/PointCloud_PointXYZ_180.pxi」、160 行目、pcl._pcl.PointCloud.from_array

解決:

np配列をfloat32として保存する必要があります

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

いいね

おすすめ

転載: blog.csdn.net/li4692625/article/details/127192533