38 typedef boost::shared_ptr<IncrementalFixedLagSmoother>
shared_ptr;
51 virtual void print(
const std::string& s =
"IncrementalFixedLagSmoother:\n",
52 const KeyFormatter& keyFormatter = DefaultKeyFormatter)
const;
66 const KeyTimestampMap& timestamps = KeyTimestampMap(),
74 return isam_.calculateEstimate();
85 return isam_.calculateEstimate<VALUE>(key);
90 return isam_.params();
95 return isam_.getFactorsUnsafe();
100 return isam_.getLinearizationPoint();
105 return isam_.getDelta();
110 return isam_.marginalCovariance(key);
125 void eraseKeysBefore(
double timestamp);
128 void createOrderingConstraints(
const KeyVector& marginalizableKeys,
133 static void PrintKeySet(
const std::set<Key>& keys,
const std::string& label =
137 const std::string& label =
"Factor Graph:");
139 const std::string& label =
"Bayes Tree:");
140 static void PrintSymbolicTreeHelper(
141 const gtsam::ISAM2Clique::shared_ptr& clique,
const std::string indent =
Incremental update functionality (ISAM2) for BayesTree, with fluid relinearization.
A non-templated config holding any types of Manifold-group elements.
Definition: Values.h:70
const NonlinearFactorGraph & getFactors() const
Access the current set of factors.
Definition: IncrementalFixedLagSmoother.h:94
Matrix marginalCovariance(Key key) const
Calculate marginal covariance on given variable.
Definition: IncrementalFixedLagSmoother.h:109
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition: Matrix.cpp:141
boost::shared_ptr< IncrementalFixedLagSmoother > shared_ptr
Typedef for a shared pointer to an Incremental Fixed-Lag Smoother.
Definition: IncrementalFixedLagSmoother.h:38
IncrementalFixedLagSmoother(double smootherLag=0.0, const ISAM2Params ¶meters=ISAM2Params())
default constructor
Definition: IncrementalFixedLagSmoother.h:41
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:57
Definition: FixedLagSmoother.h:33
Template to create a binary predicate.
Definition: Testable.h:110
A Linear Factor Graph is a factor graph where all factors are Gaussian, i.e.
Definition: GaussianFactorGraph.h:65
const VectorValues & getDelta() const
Access the current set of deltas to the linearization point.
Definition: IncrementalFixedLagSmoother.h:104
Base class for a fixed-lag smoother.
Definition: ISAM2Params.h:135
boost::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: Key.h:33
const ISAM2Params & params() const
return the current set of iSAM2 parameters
Definition: IncrementalFixedLagSmoother.h:89
Definition: ISAM2-impl.h:25
This class represents a collection of vector-valued variables associated each with a unique integer i...
Definition: VectorValues.h:73
void PrintKeySet(const KeySet &keys, const string &s, const KeyFormatter &keyFormatter)
Utility function to print sets of keys with optional prefix.
Definition: Key.cpp:82
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition: Key.h:56
A non-linear factor graph is a graph of non-Gaussian, i.e.
Definition: NonlinearFactorGraph.h:77
Definition: ISAM2Result.h:41
Values calculateEstimate() const
Compute an estimate from the incomplete linear delta computed during the last update.
Definition: IncrementalFixedLagSmoother.h:73
FastVector< FactorIndex > FactorIndices
Define collection types:
Definition: Factor.h:32
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
ISAM2 isam_
An iSAM2 object used to perform inference.
Definition: IncrementalFixedLagSmoother.h:119
virtual ~IncrementalFixedLagSmoother()
destructor
Definition: IncrementalFixedLagSmoother.h:47
const ISAM2Result & getISAM2Result() const
Get results of latest isam2 update.
Definition: IncrementalFixedLagSmoother.h:114
This is a base class for the various HMF2 implementations.
Definition: IncrementalFixedLagSmoother.h:33
VALUE calculateEstimate(Key key) const
Compute an estimate for a single variable using its incomplete linear delta computed during the last ...
Definition: IncrementalFixedLagSmoother.h:84
ISAM2Result isamResult_
Store results of latest isam2 update.
Definition: IncrementalFixedLagSmoother.h:122
const Values & getLinearizationPoint() const
Access the current linearization point.
Definition: IncrementalFixedLagSmoother.h:99
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
Definition: GaussianFactor.h:42