From 0b4927cafe2133b87f0058dc4f8669c404f62bdc Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 31 Jul 2016 18:22:49 -0400 Subject: [PATCH] exposed new degeneracy flags in smart factors (they were already exposed in triangulation and only partially exposed in smart factors) --- gtsam/slam/SmartProjectionFactor.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gtsam/slam/SmartProjectionFactor.h b/gtsam/slam/SmartProjectionFactor.h index 65a532dc0..d34ba11e3 100644 --- a/gtsam/slam/SmartProjectionFactor.h +++ b/gtsam/slam/SmartProjectionFactor.h @@ -534,19 +534,19 @@ public: } /// Is result valid? - bool isValid() const { - return result_; - } + bool isValid() const { return result_.valid(); } /** return the degenerate state */ - bool isDegenerate() const { - return result_.degenerate(); - } + bool isDegenerate() const { return result_.degenerate(); } /** return the cheirality status flag */ - bool isPointBehindCamera() const { - return result_.behindCamera(); - } + bool isPointBehindCamera() const { return result_.behindCamera(); } + + /** return the outlier state */ + bool isOutlier() const { return result_.outlier(); } + + /** return the farPoint state */ + bool isFarPoint() const { return result_.farPoint(); } private: