Add Measurement typedef
parent
454aec4554
commit
370b447e75
|
|
@ -32,6 +32,14 @@ namespace gtsam {
|
||||||
template<typename Calibration>
|
template<typename Calibration>
|
||||||
class PinholeCamera {
|
class PinholeCamera {
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Some classes template on either PinholeCamera or StereoCamera,
|
||||||
|
* and this typedef informs those classes what "project" returns.
|
||||||
|
*/
|
||||||
|
typedef Point2 Measurement;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Pose3 pose_;
|
Pose3 pose_;
|
||||||
Calibration K_;
|
Calibration K_;
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,14 @@ public:
|
||||||
*/
|
*/
|
||||||
class GTSAM_EXPORT StereoCamera {
|
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:
|
private:
|
||||||
Pose3 leftCamPose_;
|
Pose3 leftCamPose_;
|
||||||
Cal3_S2Stereo::shared_ptr K_;
|
Cal3_S2Stereo::shared_ptr K_;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue