Bug fix in BayesTree::removeClique - only frontal variables should be cleared from the nodes_ index.
parent
60d3ba2d0e
commit
812f441d79
|
|
@ -260,8 +260,7 @@ namespace gtsam {
|
||||||
BOOST_FOREACH(sharedClique child, clique->children_)
|
BOOST_FOREACH(sharedClique child, clique->children_)
|
||||||
child->parent_ = typename Clique::weak_ptr();
|
child->parent_ = typename Clique::weak_ptr();
|
||||||
|
|
||||||
BOOST_FOREACH(Index j, (*clique->conditional())) {
|
BOOST_FOREACH(Index j, clique->conditional()->frontals()) {
|
||||||
assert(j < nodes_.size()); // Don't want to overrun nodes list
|
|
||||||
nodes_[j].reset();
|
nodes_[j].reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue