Skip to content

Commit

Permalink
expose Measurement type in TriangulationFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Sep 25, 2024
1 parent 832ef77 commit e2fba7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gtsam/slam/TriangulationFactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class TriangulationFactor: public NoiseModelFactorN<Point3> {

/// CAMERA type
using Camera = CAMERA;
/// shorthand for measurement type, e.g. Point2 or StereoPoint2
using Measurement = typename CAMERA::Measurement;

protected:

Expand All @@ -43,9 +45,6 @@ class TriangulationFactor: public NoiseModelFactorN<Point3> {
/// shorthand for this class
using This = TriangulationFactor<CAMERA>;

/// shorthand for measurement type, e.g. Point2 or StereoPoint2
using Measurement = typename CAMERA::Measurement;

// Keep a copy of measurement and calibration for I/O
const CAMERA camera_; ///< CAMERA in which this landmark was seen
const Measurement measured_; ///< 2D measurement
Expand Down

0 comments on commit e2fba7a

Please sign in to comment.