fixed build on system with PCL < 1.7.2

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1624 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-07-29 21:55:32 +00:00
parent 69ad085f88
commit d3599f7937

View File

@@ -391,10 +391,12 @@ bool CloudViewer::addOccupancyGridMap(
void CloudViewer::removeOccupancyGridMap()
{
#if PCL_VERSION_COMPARE(>=, 1, 7, 2)
if(_visualizer->getShapeActorMap()->find("map") == _visualizer->getShapeActorMap()->end())
{
_visualizer->removeShape("map");
}
#endif
}
void CloudViewer::setTrajectoryShown(bool shown)