RegistrationICP: fixed local scan transform issue

This commit is contained in:
matlabbe
2016-08-31 12:43:54 -04:00
parent 48f54cf2f2
commit edee909324
6 changed files with 66 additions and 26 deletions
+3 -3
View File
@@ -1705,7 +1705,7 @@ void DatabaseViewer::view3DLaserScans()
{
scan = util3d::downsample(scan, downsamplingStepSize);
}
cloud = util3d::laserScanToPointCloud(scan);
cloud = util3d::laserScanToPointCloud(scan, data.laserScanInfo().localTransform());
if(cloud->size())
{
@@ -1947,7 +1947,7 @@ void DatabaseViewer::generate3DLaserScans()
{
scan = util3d::downsample(scan, downsamplingStepSize);
}
cloud = util3d::laserScanToPointCloud(scan);
cloud = util3d::laserScanToPointCloud(scan, data.laserScanInfo().localTransform());
if(cloud->size())
{
@@ -3280,7 +3280,7 @@ void DatabaseViewer::updateConstraintView(
data.uncompressDataConst(0, 0, &scan, 0);
if(!scan.empty())
{
pcl::PointCloud<pcl::PointXYZ>::Ptr scanCloud = util3d::laserScanToPointCloud(scan);
pcl::PointCloud<pcl::PointXYZ>::Ptr scanCloud = util3d::laserScanToPointCloud(scan, data.laserScanInfo().localTransform());
if(assembledScans->size() == 0)
{
assembledScans = util3d::transformPointCloud(scanCloud, iter->second);