One last omission
parent
353a5b3574
commit
874f0deeee
|
|
@ -31,6 +31,9 @@ using namespace gtsam::symbol_shorthand;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using sharedNode = SymbolicEliminationTree::sharedNode;
|
using sharedNode = SymbolicEliminationTree::sharedNode;
|
||||||
|
|
||||||
|
// Use list_of replacement defined in symbolicExampleGraphs.h
|
||||||
|
using ChildNodes = ChainedVector<sharedNode>;
|
||||||
|
|
||||||
class EliminationTreeTester {
|
class EliminationTreeTester {
|
||||||
public:
|
public:
|
||||||
// build hardcoded tree
|
// build hardcoded tree
|
||||||
|
|
@ -65,8 +68,7 @@ class EliminationTreeTester {
|
||||||
return tree;
|
return tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SymbolicEliminationTree MakeTree(
|
static SymbolicEliminationTree MakeTree(const ChildNodes::Result& roots) {
|
||||||
const std::vector<sharedNode>& roots) {
|
|
||||||
SymbolicEliminationTree et;
|
SymbolicEliminationTree et;
|
||||||
et.roots_.assign(roots.begin(), roots.end());
|
et.roots_.assign(roots.begin(), roots.end());
|
||||||
return et;
|
return et;
|
||||||
|
|
@ -81,9 +83,6 @@ static sharedNode Leaf(Key key, const SymbolicFactorGraph& factors) {
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use list_of replacement defined in symbolicExampleGraphs.h
|
|
||||||
using ChildNodes = ChainedVector<sharedNode>;
|
|
||||||
|
|
||||||
// Create a node with children.
|
// Create a node with children.
|
||||||
static sharedNode Node(Key key, const SymbolicFactorGraph& factors,
|
static sharedNode Node(Key key, const SymbolicFactorGraph& factors,
|
||||||
const ChildNodes::Result& children) {
|
const ChildNodes::Result& children) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue