gtsam
4.0.0
gtsam
|
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< GaussianFactor > | linearize (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 | |
|
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.