Bug fix in BayesTree::removeClique - only frontal variables should be cleared from the nodes_ index.

release/4.3a0
Richard Roberts 2013-03-05 05:47:23 +00:00
parent 60d3ba2d0e
commit 812f441d79
1 changed files with 1 additions and 2 deletions

View File

@ -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();
} }
} }