对一个两百多万个点云进行操作提示:
terminate called after throwing an instance of 'pcl::IOException'
what(): : [pcl::PCDWriter::writeASCII] Could not open file for writing!
已放弃 (核心已转储)
看到“核心已转储”以为是内存出错,后来发现并非内存操作出错。
原因是pcl::io::savePCDFileASCII(ss.str (), *cloud_cluster)或者writer.write<pcl::PointXYZ>(ss.str (), *cloud_cluster, false)
函数中地址不合法,即ss.str ()路径出错。