mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
fixed compilation errors on octomap >=1.8 introduced by previous commit for octomap < 1.8
This commit is contained in:
@@ -66,19 +66,11 @@ public:
|
||||
const octomap::point3d & getPointRef() const {return pointRef_;}
|
||||
|
||||
// following methods defined for octomap < 1.8 compatibility
|
||||
inline RtabmapColorOcTreeNode* getChild(unsigned int i) {
|
||||
return static_cast<RtabmapColorOcTreeNode*> (OcTreeNode::getChild(i));
|
||||
}
|
||||
inline const RtabmapColorOcTreeNode* getChild(unsigned int i) const {
|
||||
return static_cast<const RtabmapColorOcTreeNode*> (OcTreeNode::getChild(i));
|
||||
}
|
||||
RtabmapColorOcTreeNode* getChild(unsigned int i);
|
||||
const RtabmapColorOcTreeNode* getChild(unsigned int i) const;
|
||||
bool pruneNode();
|
||||
void expandNode();
|
||||
bool createChild(unsigned int i) {
|
||||
if (children == NULL) allocChildren();
|
||||
children[i] = new RtabmapColorOcTreeNode();
|
||||
return true;
|
||||
}
|
||||
bool createChild(unsigned int i);
|
||||
|
||||
private:
|
||||
int nodeRefId_;
|
||||
|
||||
Reference in New Issue
Block a user