Fixed build with PCL < 1.7.2, fixed some warnings

This commit is contained in:
matlabbe
2015-08-25 11:10:49 -04:00
parent cd77489704
commit b4efdec9fc
3 changed files with 11 additions and 8 deletions

View File

@@ -597,6 +597,7 @@ bool CloudViewer::addCloudTextureMesh(
const pcl::TextureMesh::Ptr & textureMesh,
const Transform & pose)
{
#if PCL_VERSION_COMPARE(>=, 1, 7, 2)
if(!_addedClouds.contains(id))
{
UDEBUG("Adding %s", id.c_str());
@@ -607,6 +608,8 @@ bool CloudViewer::addCloudTextureMesh(
return true;
}
}
#endif
// not implemented on lower version of PCL
return false;
}