From 263805a329e3f41a3e38e92e2620ee4b0c9664de Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sat, 20 Jun 2015 22:01:37 -0700 Subject: [PATCH] Added constructor for ClusterNode --- gtsam/inference/ClusterTree.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtsam/inference/ClusterTree.h b/gtsam/inference/ClusterTree.h index 435631b21..bb7cf17e1 100644 --- a/gtsam/inference/ClusterTree.h +++ b/gtsam/inference/ClusterTree.h @@ -41,6 +41,11 @@ namespace gtsam typedef FastVector Factors; typedef FastVector > Children; + Cluster() {} + Cluster(Key key, const Factors& factors) : factors(factors) { + orderedFrontalKeys.push_back(key); + } + Keys orderedFrontalKeys; ///< Frontal keys of this node Factors factors; ///< Factors associated with this node Children children; ///< sub-trees