25 #include <boost/assign/std/list.hpp> 27 #include <boost/range/adaptor/map.hpp> 31 using namespace gtsam;
41 for (
int t = 1;
t <= 7;
t++) ordering +=
X(
t);
48 for(boost::shared_ptr<GaussianFactor> factor: smoother) {
51 actual.
update(factorGraph);
58 for(
const GaussianBayesTree::sharedClique& clique: expected.
nodes() | br::map_values) {
60 EXPECT(!conditional->get_model());
68 for (
int t = 1;
t <= 7;
t++) e.
insert(
X(
t), Vector::Zero(2));
void update(const FactorGraphType &newFactors, const Eliminate &function=EliminationTraitsType::DefaultEliminate)
GaussianFactorGraph createSmoother(int T)
static int runAllTests(TestResult &result)
static enum @843 ordering
const Nodes & nodes() const
IsDerived< DERIVEDFACTOR > push_back(boost::shared_ptr< DERIVEDFACTOR > factor)
Add a factor directly using a shared_ptr.
#define EXPECT(condition)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
VectorValues optimize() const
Create small example with two poses and one landmark.
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
iterator insert(const std::pair< Key, Vector > &key_value)
TEST(ISAM, iSAM_smoother)