Go to the documentation of this file.
28 using namespace gtsam;
43 leaf0->factors.push_back(fg[0]);
44 leaf0->factors.push_back(fg[1]);
48 node1->factors.push_back(fg[2]);
49 node1->children.push_back(leaf0);
53 node2->factors.push_back(fg[3]);
54 node2->children.push_back(node1);
58 leaf3->factors.push_back(fg[4]);
62 root->children.push_back(leaf3);
63 root->children.push_back(node2);
66 tree.roots_.push_back(root);
72 et.
roots_.assign(roots.begin(), roots.end());
87 const ChildNodes::Result& children) {
89 node->children.assign(children.begin(), children.end());
static int runAllTests(TestResult &result)
FastVector< sharedNode > roots_
static sharedNode Leaf(Key key, const SymbolicFactorGraph &factors)
#define EXPECT(condition)
const GaussianFactorGraph factors
static SymbolicEliminationTree buildHardcodedTree(const SymbolicFactorGraph &fg)
Provides additional testing facilities for common data structures.
std::shared_ptr< Node > sharedNode
Shared pointer to Node.
const gtsam::Symbol key('X', 0)
TEST(SmartFactorBase, Pinhole)
const_iterator end() const
static SymbolicEliminationTree MakeTree(const ChildNodes::Result &roots)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
const_iterator begin() const
NonlinearFactorGraph graph
std::uint64_t Key
Integer nonlinear key type.
static sharedNode Node(Key key, const SymbolicFactorGraph &factors, const ChildNodes::Result &children)
ChainedVector< sharedNode > ChildNodes
SymbolicEliminationTree::sharedNode sharedNode
IsDerived< DERIVEDFACTOR > emplace_shared(Args &&... args)
Emplace a shared pointer to factor of given type.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:08:45