![]() |
NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
|
#include <loc_projection_factor.h>

Public Types | |
| typedef NoiseModelFactor1< POSE > | Base |
| shorthand for base class type More... | |
| typedef LocProjectionFactor< POSE, LANDMARK, CALIBRATION > | This |
| shorthand for this class More... | |
| typedef boost::shared_ptr< This > | shared_ptr |
| shorthand for a smart pointer to a factor More... | |
Public Member Functions | |
| LocProjectionFactor () | |
| Default constructor. More... | |
| LocProjectionFactor (const Point2 &measured, const LANDMARK &landmark_point, const SharedNoiseModel &model, Key poseKey, const boost::shared_ptr< CALIBRATION > &K, boost::optional< POSE > body_P_sensor=boost::none) | |
| LocProjectionFactor (const Point2 &measured, const LANDMARK &landmark_point, const SharedNoiseModel &model, Key poseKey, const boost::shared_ptr< CALIBRATION > &K, bool throwCheirality, bool verboseCheirality, boost::optional< POSE > body_P_sensor=boost::none) | |
| virtual | ~LocProjectionFactor () |
| virtual NonlinearFactor::shared_ptr | clone () const |
| void | print (const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const |
| virtual bool | equals (const NonlinearFactor &p, double tol=1e-9) const |
| equals More... | |
| Vector | evaluateError (const Pose3 &pose, boost::optional< Matrix & > H1=boost::none) const |
| Evaluate error h(x)-z and optionally derivatives. More... | |
| bool | cheiralityError (const Pose3 &pose) const |
| const Point2 & | measured () const |
| const LANDMARK & | landmark_point () const |
| LANDMARK & | landmark_point () |
| const boost::shared_ptr< CALIBRATION > | calibration () const |
| bool | verboseCheirality () const |
| bool | throwCheirality () const |
| boost::optional< POSE > | body_P_sensor () const |
Protected Attributes | |
| Point2 | measured_ |
| 2D measurement More... | |
| LANDMARK | landmark_point_ |
| Landmark point. More... | |
| boost::shared_ptr< CALIBRATION > | K_ |
| shared pointer to calibration object More... | |
| boost::optional< POSE > | body_P_sensor_ |
| The pose of the sensor in the body frame. More... | |
| bool | throwCheirality_ |
| bool | verboseCheirality_ |
Friends | |
| class | boost::serialization::access |
| Serialization function. More... | |
Non-linear factor for a constraint derived from a 2D measurement. The calibration and landmark point are known here. Adapted from gtsam GenericProjectionFactor.
| typedef NoiseModelFactor1<POSE> gtsam::LocProjectionFactor< POSE, LANDMARK, CALIBRATION >::Base |
shorthand for base class type
| typedef boost::shared_ptr<This> gtsam::LocProjectionFactor< POSE, LANDMARK, CALIBRATION >::shared_ptr |
shorthand for a smart pointer to a factor
| typedef LocProjectionFactor<POSE, LANDMARK, CALIBRATION> gtsam::LocProjectionFactor< POSE, LANDMARK, CALIBRATION >::This |
shorthand for this class
|
inline |
Default constructor.
|
inline |
Constructor
| measured | is the 2 dimensional location of point in image (the measurement) |
| model | is the standard deviation |
| poseKey | is the index of the camera |
| pointKey | is the index of the landmark |
| K | shared pointer to the constant calibration |
| body_P_sensor | is the transform from body to sensor frame (default identity) |
|
inline |
Constructor with exception-handling flags
| measured | is the 2 dimensional location of point in image (the measurement) |
| model | is the standard deviation |
| poseKey | is the index of the camera |
| pointKey | is the index of the landmark |
| K | shared pointer to the constant calibration |
| throwCheirality | determines whether Cheirality exceptions are rethrown |
| verboseCheirality | determines whether exceptions are printed for Cheirality |
| body_P_sensor | is the transform from body to sensor frame (default identity) |
|
inlinevirtual |
Virtual destructor
|
inline |
|
inline |
return the calibration object
|
inline |
|
inlinevirtual |
|
inlinevirtual |
equals
|
inline |
Evaluate error h(x)-z and optionally derivatives.
|
inline |
|
inline |
|
inline |
return the measurement
|
inline |
| s | optional string naming the factor |
| keyFormatter | optional formatter useful for printing Symbols |
|
inline |
return flag for throwing cheirality exceptions
|
inline |
return verbosity
|
friend |
Serialization function.
|
protected |
The pose of the sensor in the body frame.
|
protected |
shared pointer to calibration object
|
protected |
Landmark point.
|
protected |
2D measurement
|
protected |
If true, rethrows Cheirality exceptions (default: false)
|
protected |
If true, prints text for Cheirality exceptions (default: false)