Add Measurement typedef

release/4.3a0
dellaert 2015-02-19 12:24:02 +01:00
parent 454aec4554
commit 370b447e75
2 changed files with 16 additions and 0 deletions

View File

@ -32,6 +32,14 @@ namespace gtsam {
template<typename Calibration>
class PinholeCamera {
public:
/**
* Some classes template on either PinholeCamera or StereoCamera,
* and this typedef informs those classes what "project" returns.
*/
typedef Point2 Measurement;
private:
Pose3 pose_;
Calibration K_;

View File

@ -38,6 +38,14 @@ public:
*/
class GTSAM_EXPORT StereoCamera {
public:
/**
* Some classes template on either PinholeCamera or StereoCamera,
* and this typedef informs those classes what "project" returns.
*/
typedef StereoPoint2 Measurement;
private:
Pose3 leftCamPose_;
Cal3_S2Stereo::shared_ptr K_;