gtsam  4.0.0
gtsam
gtsam::DummyFactor Class Reference
+ Inheritance diagram for gtsam::DummyFactor:

Public Member Functions

 DummyFactor ()
 Default constructor: don't use directly.
 
 DummyFactor (const Key &key1, size_t dim1, const Key &key2, size_t dim2)
 standard binary constructor
 
virtual void print (const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
 print
 
virtual bool equals (const NonlinearFactor &f, double tol=1e-9) const
 Check if two factors are equal.
 
const std::vector< size_t > & dims () const
 
virtual double error (const Values &c) const
 Calculate the error of the factor - zero for dummy factors.
 
virtual size_t dim () const
 get the dimension of the factor (number of rows on linearization)
 
virtual boost::shared_ptr< GaussianFactorlinearize (const Values &c) const
 linearize to a GaussianFactor
 
virtual NonlinearFactor::shared_ptr clone () const
 Creates a shared_ptr clone of the factor - needs to be specialized to allow for subclasses. More...
 

Protected Attributes

std::vector< size_t > dims_
 
size_t rowDim_
 choose dimension for the rows
 

Member Function Documentation

◆ clone()

virtual NonlinearFactor::shared_ptr gtsam::DummyFactor::clone ( ) const
inlinevirtual

Creates a shared_ptr clone of the factor - needs to be specialized to allow for subclasses.

By default, throws exception if subclass does not implement the function.

Reimplemented from gtsam::NonlinearFactor.


The documentation for this class was generated from the following files: