32 using namespace gtsam;
41 double total_error = 0.;
42 for(
const GaussianFactor::shared_ptr& factor: fg)
43 total_error += factor->error(x);
63 auto subgraph = builder(
Ab);
113 auto Rc1 = *Ab1.eliminateSequential();
TEST(SubgraphSolver, Parameters)
static int runAllTests(TestResult &result)
Subgraph Solver from IROS 2010.
#define DOUBLES_EQUAL(expected, actual, threshold)
Iterative methods, implementation.
BiCGSTAB< SparseMatrix< double > > solver
Some functions to compute numerical derivatives.
static const SmartProjectionParams params
double augmentationFactor
factor multiplied with n, yields number of extra edges.
size_t maxIterations() const
static double error(const GaussianFactorGraph &fg, const VectorValues &x)
static SubgraphSolverParameters kParameters
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Linear Factor Graph where all factors are Gaussians.
Verbosity verbosity() const
#define LONGS_EQUAL(expected, actual)
Ordering planarOrdering(size_t N)
std::pair< GaussianFactorGraph, VectorValues > planarGraph(size_t N)
VectorValues optimize() const
Optimize from zero.
#define EXPECT_LONGS_EQUAL(expected, actual)
Create small example with two poses and one landmark.
Chordal Bayes Net, the result of eliminating a factor graph.
std::pair< GaussianFactorGraph, GaussianFactorGraph > splitFactorGraph(const GaussianFactorGraph &factorGraph, const Subgraph &subgraph)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
std::pair< GaussianFactorGraph, GaussianFactorGraph > splitOffPlanarTree(size_t N, const GaussianFactorGraph &original)