报错如下: terminate called after throwing an instance of 'pcl::IOException' what(): : [pcl::PCDWriter::writeASCII] Input point cloud has no data! 解决方法: 保存之前先检查点云大小: if(cloud->size() > 0) 来源:这里。