34 typedef boost::shared_ptr<BatchFixedLagSmoother>
shared_ptr;
158 void removeFactors(
const std::set<size_t>& deleteFactors);
170 void marginalize(
const KeyVector& marginalizableKeys);
174 static void PrintKeySet(
const std::set<Key>& keys,
const std::string& label);
179 static void PrintSymbolicGraph(
const GaussianFactorGraph& graph,
const std::string& label);
void print(const Matrix &A, const string &s, ostream &stream)
void PrintKeySet(const KeySet &keys, const string &s, const KeyFormatter &keyFormatter)
Utility function to print sets of keys with optional prefix.
std::map< Key, double > KeyTimestampMap
Typedef for a Key-Timestamp map/database.
boost::shared_ptr< BatchFixedLagSmoother > shared_ptr
Typedef for a shared pointer to an Incremental Fixed-Lag Smoother.
std::queue< size_t > availableSlots_
Base class for a fixed-lag smoother. This mimics the basic interface to iSAM2.
FastVector< FactorIndex > FactorIndices
Define collection types:
BatchFixedLagSmoother(double smootherLag=0.0, const LevenbergMarquardtParams ¶meters=LevenbergMarquardtParams(), bool enforceConsistency=true)
Values retract(const VectorValues &delta) const
NonlinearFactorGraph graph
static const KeyFormatter DefaultKeyFormatter
std::pair< boost::shared_ptr< GaussianConditional >, boost::shared_ptr< GaussianFactor > > EliminatePreferCholesky(const GaussianFactorGraph &factors, const Ordering &keys)
const Values & getLinearizationPoint() const
VALUE calculateEstimate(Key key) const
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Point3 optimize(const NonlinearFactorGraph &graph, const Values &values, Key landmarkKey)
~BatchFixedLagSmoother() override
boost::shared_ptr< This > shared_ptr
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
LevenbergMarquardtParams & params()
A nonlinear optimizer that uses the Levenberg-Marquardt trust-region scheme.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
static ConjugateGradientParameters parameters
const VectorValues & getDelta() const
std::vector< float > Values
Values calculateEstimate() const override
boost::function< EliminationResult(const FactorGraphType &, const Ordering &)> Eliminate
The function type that does a single dense elimination step on a subgraph.
const Ordering & getOrdering() const
NonlinearFactorGraph factors_
std::map< Key, std::set< Key > > FactorIndex
std::uint64_t Key
Integer nonlinear key type.
LevenbergMarquardtParams parameters_
const NonlinearFactorGraph & getFactors() const
const LevenbergMarquardtParams & params() const