Tango: Fixed computeNormals() type conversion build error #90

This commit is contained in:
matlabbe
2016-08-01 16:00:58 -04:00
parent 071670e24c
commit 72a76f6c80

View File

@@ -754,8 +754,10 @@ bool RTABMapApp::exportMesh(const std::string & filePath)
iter->second.polygons.size()) iter->second.polygons.size())
{ {
// OBJ format requires normals // OBJ format requires normals
pcl::PointCloud<pcl::Normal>::Ptr normals = rtabmap::util3d::computeNormals(iter->second.cloud, 20);
pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr cloudWithNormals; pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr cloudWithNormals;
cloudWithNormals = rtabmap::util3d::computeNormals(iter->second.cloud, 20); pcl::concatenateFields(*iter->second.cloud, *normals, *cloudWithNormals);
// create dense cloud // create dense cloud
pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr denseCloud(new pcl::PointCloud<pcl::PointXYZRGBNormal>); pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr denseCloud(new pcl::PointCloud<pcl::PointXYZRGBNormal>);