mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Fixed build with PCL < 1.7.2, fixed some warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user