From c271874bc25f3a9ff6cb36a5509b03be55879c55 Mon Sep 17 00:00:00 2001 From: dellaert Date: Sun, 22 Feb 2015 17:20:03 +0100 Subject: [PATCH] Starting the change to isotropic --- gtsam/slam/SmartFactorBase.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gtsam/slam/SmartFactorBase.h b/gtsam/slam/SmartFactorBase.h index 8cbc2f73c..e66b6ca6a 100644 --- a/gtsam/slam/SmartFactorBase.h +++ b/gtsam/slam/SmartFactorBase.h @@ -55,8 +55,7 @@ protected: */ std::vector measured_; - //SharedIsotropic noiseModel_; - std::vector noise_; ///< noise model used + SharedIsotropic noiseModel_; boost::optional body_P_sensor_; ///< The pose of the sensor in the body frame (one for all cameras) @@ -159,8 +158,8 @@ public: } /** return the noise models */ - const std::vector& noise() const { - return noise_; + const SharedIsotropic& noise() const { + return noiseModel_; } /** @@ -173,7 +172,7 @@ public: std::cout << s << "SmartFactorBase, z = \n"; for (size_t k = 0; k < measured_.size(); ++k) { std::cout << "measurement, p = " << measured_[k] << "\t"; - noise_[k]->print("noise model = "); + noiseModel_->print("noise model = "); } if (this->body_P_sensor_) this->body_P_sensor_->print(" sensor pose in body frame: ");