mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30: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())
|
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>);
|
||||||
|
|||||||
Reference in New Issue
Block a user