|
GTSAM
4.0.2
C++ library for smoothing and mapping (SAM)
|
#include <IncrementalFixedLagSmoother.h>


Public Types | |
| typedef std::shared_ptr< IncrementalFixedLagSmoother > | shared_ptr |
| Typedef for a shared pointer to an Incremental Fixed-Lag Smoother. | |
| typedef std::map< Key, double > | KeyTimestampMap |
| Typedef for a Key-Timestamp map/database. | |
| typedef std::multimap< double, Key > | TimestampKeyMap |
Public Member Functions | |
| IncrementalFixedLagSmoother (double smootherLag=0.0, const ISAM2Params ¶meters=DefaultISAM2Params()) | |
| ~IncrementalFixedLagSmoother () override | |
| void | print (const std::string &s="IncrementalFixedLagSmoother:\, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override |
| bool | equals (const FixedLagSmoother &rhs, double tol=1e-9) const override |
| Result | update (const NonlinearFactorGraph &newFactors=NonlinearFactorGraph(), const Values &newTheta=Values(), const KeyTimestampMap ×tamps=KeyTimestampMap(), const FactorIndices &factorsToRemove=FactorIndices()) override |
| Values | calculateEstimate () const override |
| template<class VALUE > | |
| VALUE | calculateEstimate (Key key) const |
| const ISAM2Params & | params () const |
| const NonlinearFactorGraph & | getFactors () const |
| const Values & | getLinearizationPoint () const |
| const VectorValues & | getDelta () const |
| Matrix | marginalCovariance (Key key) const |
| Calculate marginal covariance on given variable. | |
| const ISAM2Result & | getISAM2Result () const |
| Get results of latest isam2 update. | |
| const ISAM2 & | getISAM2 () const |
| Get the iSAM2 object which is used for the inference internally. | |
| double | smootherLag () const |
| double & | smootherLag () |
| const KeyTimestampMap & | timestamps () const |
Protected Member Functions | |
| void | eraseKeysBefore (double timestamp) |
| void | createOrderingConstraints (const KeyVector &marginalizableKeys, std::optional< FastMap< Key, int > > &constrainedKeys) const |
| void | updateKeyTimestampMap (const KeyTimestampMap &newTimestamps) |
| void | eraseKeyTimestampMap (const KeyVector &keys) |
| double | getCurrentTimestamp () const |
| KeyVector | findKeysBefore (double timestamp) const |
| KeyVector | findKeysAfter (double timestamp) const |
Static Protected Member Functions | |
| static ISAM2Params | DefaultISAM2Params () |
Protected Attributes | |
| ISAM2 | isam_ |
| ISAM2Result | isamResult_ |
| double | smootherLag_ |
| TimestampKeyMap | timestampKeyMap_ |
| KeyTimestampMap | keyTimestampMap_ |
This is a base class for the various HMF2 implementations. The HMF2 eliminates the factor graph such that the active states are placed in/near the root. This base class implements a function to calculate the ordering, and an update function to incorporate new factors into the HMF.
|
inline |
default constructor
|
inlineoverride |
destructor
|
inlineoverridevirtual |
Compute an estimate from the incomplete linear delta computed during the last update. This delta is incomplete because it was not updated below wildfire_threshold. If only a single variable is needed, it is faster to call calculateEstimate(const KEY&).
Implements gtsam::FixedLagSmoother.
|
inline |
Compute an estimate for a single variable using its incomplete linear delta computed during the last update. This is faster than calling the no-argument version of calculateEstimate, which operates on all variables.
| key |
|
protected |
Fill in an iSAM2 ConstrainedKeys structure such that the provided keys are eliminated before all others
|
inlinestaticprotected |
Create default parameters
|
overridevirtual |
Check if two IncrementalFixedLagSmoother Objects are equal
Reimplemented from gtsam::FixedLagSmoother.
|
protected |
Erase any keys associated with timestamps before the provided time
|
protectedinherited |
Erase keys from the Key-Timestamps database
|
protectedinherited |
Find all of the keys associated with timestamps before the provided time
|
protectedinherited |
Find all of the keys associated with timestamps before the provided time
|
protectedinherited |
Find the most recent timestamp of the system
|
inline |
Access the current set of deltas to the linearization point
|
inline |
Access the current set of factors
|
inline |
Access the current linearization point
|
inline |
return the current set of iSAM2 parameters
|
overridevirtual |
Print the factor for debugging and testing (implementing Testable)
Reimplemented from gtsam::FixedLagSmoother.
|
inlineinherited |
read the current smoother lag
|
inlineinherited |
write to the current smoother lag
|
inlineinherited |
Access the current set of timestamps associated with each variable
|
overridevirtual |
Add new factors, updating the solution and re-linearizing as needed.
| newFactors | new factors on old and/or new variables |
| newTheta | new values for new variables only |
| timestamps | an (optional) map from keys to real time stamps |
| factorsToRemove | an (optional) list of factors to remove. |
Implements gtsam::FixedLagSmoother.
|
protectedinherited |
Update the Timestamps associated with the keys
|
protected |
An iSAM2 object used to perform inference. The smoother lag is controlled by what factors are removed each iteration
|
protected |
Store results of latest isam2 update
|
protectedinherited |
The length of the smoother lag. Any variable older than this amount will be marginalized out.
|
protectedinherited |
The current timestamp associated with each tracked key
1.8.13