mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Fixed OctoMap build error with version <1.8
This commit is contained in:
@@ -147,8 +147,11 @@ class RtabmapColorOcTree : public octomap::OccupancyOcTreeBase <RtabmapColorOcTr
|
||||
public:
|
||||
StaticMemberInitializer() {
|
||||
RtabmapColorOcTree* tree = new RtabmapColorOcTree(0.1);
|
||||
tree->clearKeyRays();
|
||||
AbstractOcTree::registerTreeType(tree);
|
||||
|
||||
// octomap >=1.8 (to save some memory)
|
||||
//tree->clearKeyRays();
|
||||
|
||||
AbstractOcTree::registerTreeType(tree);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user