Skip to content

deleteNode children == __null assertion fails #287

@xinyiz

Description

@xinyiz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions