【发布时间】:2019-08-12 17:49:10
【问题描述】:
我正在使用来自 PCL 的 this 来转换我拥有的点云。基本上,我只是将云平移了一些偏移量。
问题是应用此转换后我失去了精度。下图更清楚。
我发现只有当我的偏移量有较大的值(>6 位)时才会发生这种情况,云正在被转换。
下面是使用 pcl 库的代码
Eigen::Matrix4d translationMatrix = Eigen::Matrix4d::Identity();
//translation
translationMatrix(0,3) = 1000000;
translationMatrix(1,3) = 1000000;
pcl::PointCloud<pcl::PointXYZ>::Ptr translatedCloud;
translatedCloud.reset(new pcl::PointCloud<pcl::PointXYZ>());
pcl::transformPointCloud(*cloud,*translatedCloud,translationMatrix);
pcl::io::savePCDFileASCII ("translatedCloud.pcd",*translatedCloud);
原云
变形的云
我怀疑问题可能出在使用的数据类型的范围上。
任何有关这方面的信息都会有所帮助。
【问题讨论】:
标签: matrix point-cloud-library coordinate-transformation lidar