mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Tango: Fixed computeNormals() type conversion build error #90
This commit is contained in:
@@ -754,8 +754,10 @@ bool RTABMapApp::exportMesh(const std::string & filePath)
|
||||
iter->second.polygons.size())
|
||||
{
|
||||
// OBJ format requires normals
|
||||
pcl::PointCloud<pcl::Normal>::Ptr normals = rtabmap::util3d::computeNormals(iter->second.cloud, 20);
|
||||
|
||||
pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr cloudWithNormals;
|
||||
cloudWithNormals = rtabmap::util3d::computeNormals(iter->second.cloud, 20);
|
||||
pcl::concatenateFields(*iter->second.cloud, *normals, *cloudWithNormals);
|
||||
|
||||
// create dense cloud
|
||||
pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr denseCloud(new pcl::PointCloud<pcl::PointXYZRGBNormal>);
|
||||
|
||||
Reference in New Issue
Block a user