|
typedef std::shared_ptr< This > | shared_ptr |
|
typedef KeyVector::iterator | iterator |
| Iterator over keys.
|
|
typedef KeyVector::const_iterator | const_iterator |
| Const iterator over keys.
|
|
|
std::vector< size_t > | dims_ |
|
size_t | rowDim_ |
| choose dimension for the rows
|
|
KeyVector | keys_ |
| The keys involved in this factor.
|
|
◆ DummyFactor() [1/2]
gtsam::DummyFactor::DummyFactor |
( |
| ) |
|
|
inline |
Default constructor: don't use directly
◆ DummyFactor() [2/2]
gtsam::DummyFactor::DummyFactor |
( |
const Key & |
key1, |
|
|
size_t |
dim1, |
|
|
const Key & |
key2, |
|
|
size_t |
dim2 |
|
) |
| |
standard binary constructor
◆ active()
virtual bool gtsam::NonlinearFactor::active |
( |
const Values & |
| ) |
const |
|
inlinevirtualinherited |
◆ begin() [1/2]
Iterator at beginning of involved variable keys
◆ begin() [2/2]
Iterator at beginning of involved variable keys
◆ clone()
NonlinearFactor::shared_ptr gtsam::DummyFactor::clone |
( |
| ) |
const |
|
inlineoverridevirtual |
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.
◆ dim()
size_t gtsam::DummyFactor::dim |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ end() [1/2]
Iterator at end of involved variable keys
◆ end() [2/2]
Iterator at end of involved variable keys
◆ equals()
bool gtsam::DummyFactor::equals |
( |
const NonlinearFactor & |
f, |
|
|
double |
tol = 1e-9 |
|
) |
| const |
|
overridevirtual |
◆ error() [1/2]
double gtsam::DummyFactor::error |
( |
const Values & |
c | ) |
const |
|
inlineoverridevirtual |
◆ error() [2/2]
double gtsam::NonlinearFactor::error |
( |
const HybridValues & |
c | ) |
const |
|
overridevirtualinherited |
All factor types need to implement an error function. In factor graphs, this is the negative log-likelihood.
Reimplemented from gtsam::Factor.
◆ FromIterators()
template<typename ITERATOR >
static Factor gtsam::Factor::FromIterators |
( |
ITERATOR |
first, |
|
|
ITERATOR |
last |
|
) |
| |
|
inlinestaticprotectedinherited |
Construct factor from iterator keys. This is called internally from derived factor static factor methods, as a workaround for not being able to call the protected constructors above.
◆ FromKeys()
template<typename CONTAINER >
static Factor gtsam::Factor::FromKeys |
( |
const CONTAINER & |
keys | ) |
|
|
inlinestaticprotectedinherited |
Construct factor from container of keys. This is called internally from derived factor static factor methods, as a workaround for not being able to call the protected constructors above.
◆ keys()
- Returns
- keys involved in this factor
◆ linearize()
◆ print()
void gtsam::DummyFactor::print |
( |
const std::string & |
s = "" , |
|
|
const KeyFormatter & |
keyFormatter = DefaultKeyFormatter |
|
) |
| const |
|
overridevirtual |
◆ rekey() [1/2]
virtual shared_ptr gtsam::NonlinearFactor::rekey |
( |
const std::map< Key, Key > & |
rekey_mapping | ) |
const |
|
virtualinherited |
◆ rekey() [2/2]
virtual shared_ptr gtsam::NonlinearFactor::rekey |
( |
const KeyVector & |
new_keys | ) |
const |
|
virtualinherited |
Clones a factor and fully replaces its keys
- Parameters
-
new_keys | is the full replacement set of keys |
Reimplemented in gtsam::LinearContainerFactor.
◆ sendable()
virtual bool gtsam::NonlinearFactor::sendable |
( |
| ) |
const |
|
inlinevirtualinherited |
Should the factor be evaluated in the same thread as the caller This is to enable factors that has shared states (like the Python GIL lock)
Reimplemented in gtsam::CustomFactor.
◆ size()
size_t gtsam::Factor::size |
( |
| ) |
const |
|
inlineinherited |
- Returns
- the number of variables involved in this factor
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/gtsam-jlblanco-docs/checkouts/latest/gtsam_unstable/slam/DummyFactor.h