Added constructor for ClusterNode
parent
08f6f58af7
commit
263805a329
|
|
@ -41,6 +41,11 @@ namespace gtsam
|
|||
typedef FastVector<sharedFactor> Factors;
|
||||
typedef FastVector<boost::shared_ptr<Cluster> > 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue