Skip to content

Commit

Permalink
Fixed Windows+PCL1.8 build (std::vector/Eigen error)
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Jun 26, 2017
1 parent 5cc04b5 commit 653d4fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions corelib/include/rtabmap/core/util3d_surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ void RTABMAP_EXP concatenateTextureMaterials(
pcl::TextureMesh::Ptr RTABMAP_EXP assembleTextureMesh(
const cv::Mat & cloudMat,
const std::vector<std::vector<std::vector<unsigned int> > > & polygons,
#if PCL_VERSION_COMPARE(>=, 1, 8, 0)
const std::vector<std::vector<Eigen::Vector2f, Eigen::aligned_allocator<Eigen::Vector2f> > > & texCoords,
#else
const std::vector<std::vector<Eigen::Vector2f> > & texCoords,
#endif
cv::Mat & textures,
bool mergeTextures = false);

Expand Down
4 changes: 4 additions & 0 deletions corelib/src/util3d_surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,11 @@ void concatenateTextureMaterials(pcl::TextureMesh & mesh, const cv::Size & image
pcl::TextureMesh::Ptr assembleTextureMesh(
const cv::Mat & cloudMat,
const std::vector<std::vector<std::vector<unsigned int> > > & polygons,
#if PCL_VERSION_COMPARE(>=, 1, 8, 0)
const std::vector<std::vector<Eigen::Vector2f, Eigen::aligned_allocator<Eigen::Vector2f> > > & texCoords,
#else
const std::vector<std::vector<Eigen::Vector2f> > & texCoords,
#endif
cv::Mat & textures,
bool mergeTextures)
{
Expand Down

0 comments on commit 653d4fe

Please sign in to comment.