From 653d4fef4b9a4c1d9ebbbc70e8c22b0088c4f62b Mon Sep 17 00:00:00 2001 From: matlabbe Date: Mon, 26 Jun 2017 15:45:30 -0400 Subject: [PATCH] Fixed Windows+PCL1.8 build (std::vector/Eigen error) --- corelib/include/rtabmap/core/util3d_surface.h | 4 ++++ corelib/src/util3d_surface.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/corelib/include/rtabmap/core/util3d_surface.h b/corelib/include/rtabmap/core/util3d_surface.h index 68da1d48..0489281f 100644 --- a/corelib/include/rtabmap/core/util3d_surface.h +++ b/corelib/include/rtabmap/core/util3d_surface.h @@ -177,7 +177,11 @@ void RTABMAP_EXP concatenateTextureMaterials( pcl::TextureMesh::Ptr RTABMAP_EXP assembleTextureMesh( const cv::Mat & cloudMat, const std::vector > > & polygons, +#if PCL_VERSION_COMPARE(>=, 1, 8, 0) + const std::vector > > & texCoords, +#else const std::vector > & texCoords, +#endif cv::Mat & textures, bool mergeTextures = false); diff --git a/corelib/src/util3d_surface.cpp b/corelib/src/util3d_surface.cpp index 98a976d5..e1648110 100644 --- a/corelib/src/util3d_surface.cpp +++ b/corelib/src/util3d_surface.cpp @@ -1194,7 +1194,11 @@ void concatenateTextureMaterials(pcl::TextureMesh & mesh, const cv::Size & image pcl::TextureMesh::Ptr assembleTextureMesh( const cv::Mat & cloudMat, const std::vector > > & polygons, +#if PCL_VERSION_COMPARE(>=, 1, 8, 0) + const std::vector > > & texCoords, +#else const std::vector > & texCoords, +#endif cv::Mat & textures, bool mergeTextures) {