From 7cd6eaa8e41da021bc4332fb9b69ea23bc2d6ed3 Mon Sep 17 00:00:00 2001 From: Chris Beall Date: Mon, 14 Nov 2011 20:22:20 +0000 Subject: [PATCH] get measurement --- gtsam/slam/ProjectionFactor.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtsam/slam/ProjectionFactor.h b/gtsam/slam/ProjectionFactor.h index 2d25d70a9..ee5649f78 100644 --- a/gtsam/slam/ProjectionFactor.h +++ b/gtsam/slam/ProjectionFactor.h @@ -87,6 +87,11 @@ namespace gtsam { return reprojectionError.vector(); } + /** return the measurement */ + inline const Point2 measured() const { + return z_; + } + private: /// Serialization function