GUI: fixed seg fault when showing scan with intensity and computed normals

This commit is contained in:
matlabbe
2019-02-21 17:51:07 -05:00
parent 49a41d7e46
commit f27da7c8a5

View File

@@ -3405,7 +3405,7 @@ void MainWindow::createAndAddScanToMap(int nodeId, const Transform & pose, int m
normals = util3d::computeNormals(cloudI, _preferencesDialog->getScanNormalKSearch(), _preferencesDialog->getScanNormalRadiusSearch(), scanViewpoint);
}
cloudIWithNormals.reset(new pcl::PointCloud<pcl::PointXYZINormal>);
pcl::concatenateFields(*cloud, *normals, *cloudIWithNormals);
pcl::concatenateFields(*cloudI, *normals, *cloudIWithNormals);
cloudI.reset();
}
}