-
Notifications
You must be signed in to change notification settings - Fork 686
Description
I am getting the same problem in issue (#283 ) when trying to call deleteNode:
Code:
for (OcTree::leaf_iterator it = tree_->begin_leafs(), end = tree_->end_leafs(); it != end; ++it) {
if (it->getValue() < 0.0001) {
tree_->deleteNode(it.getKey(),it.getDepth());
}
}
Stack trace:
octomap::OcTreeDataNode::~OcTreeDataNode() [T = float]: children == __null
WARNING: thread.cc:1831 @ 0x7f14d9e27300 __assert_fail
WARNING: thread.cc:1831 @ 0x7f14dda9209e octomap::OcTreeDataNode<>::~OcTreeDataNode()
WARNING: thread.cc:1831 @ 0x7f14dda91e58
octomap::OcTreeNode::~OcTreeNode()
octomap::OcTreeBaseImpl<>::deleteNodeChild()
...
...
octomap::OcTreeBaseImpl<>::deleteNodeRecurs()
WARNING: thread.cc:1831 @ 0x7f14ddb60f37 octomap::OcTreeBaseImpl<>::deleteNodeRecurs()
WARNING: thread.cc:1831 @ 0x7f14ddb60f37 octomap::OcTreeBaseImpl<>::deleteNodeRecurs()
WARNING: thread.cc:1831 @ 0x7f14ddb60f37 octomap::OcTreeBaseImpl<>::deleteNodeRecurs()
WARNING: thread.cc:1831 @ 0x7f14ddb4e5bc
octomap::OcTreeBaseImpl<>::deleteNode()
I also checked and there are no children, yet the assert fails