added measurement typedef to StereoFactor & GeneralSFMFactor
parent
dbe7093f4d
commit
2ce69a7250
|
|
@ -28,6 +28,7 @@ namespace gtsam {
|
|||
typedef typename CamK::Value Cam;
|
||||
typedef GeneralSFMFactor<Cfg, CamK, LmK> Self ;
|
||||
typedef NonlinearFactor2<Cfg, CamK, LmK> Base;
|
||||
typedef Point2 Measurement;
|
||||
|
||||
// shorthand for a smart pointer to a factor
|
||||
typedef boost::shared_ptr<GeneralSFMFactor<Cfg, LmK, CamK> > shared_ptr;
|
||||
|
|
|
|||
|
|
@ -38,11 +38,9 @@ public:
|
|||
|
||||
// shorthand for base class type
|
||||
typedef NonlinearFactor2<VALUES, KEY1, KEY2> Base;
|
||||
|
||||
// shorthand for a smart pointer to a factor
|
||||
typedef boost::shared_ptr<GenericStereoFactor> shared_ptr;
|
||||
|
||||
typedef typename KEY1::Value CamPose;
|
||||
typedef StereoPoint2 Measurement;
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
|
|
@ -101,6 +99,11 @@ public:
|
|||
return z_;
|
||||
}
|
||||
|
||||
/** return the measured */
|
||||
inline const StereoPoint2 measured() const {
|
||||
return z_;
|
||||
}
|
||||
|
||||
private:
|
||||
/** Serialization function */
|
||||
friend class boost::serialization::access;
|
||||
|
|
|
|||
Loading…
Reference in New Issue