Removed obsolete sharedKs

release/4.3a0
dellaert 2015-02-26 14:19:36 +01:00
parent be26d99f1e
commit b8d39e8aea
1 changed files with 0 additions and 10 deletions

View File

@ -50,8 +50,6 @@ protected:
LinearizationMode linearizeTo_; ///< How to linearize the factor (HESSIAN, JACOBIAN_SVD, JACOBIAN_Q) LinearizationMode linearizeTo_; ///< How to linearize the factor (HESSIAN, JACOBIAN_SVD, JACOBIAN_Q)
std::vector<boost::shared_ptr<CALIBRATION> > sharedKs_; ///< shared pointer to calibration object (one for each camera)
public: public:
/// shorthand for a smart pointer to a factor /// shorthand for a smart pointer to a factor
@ -86,8 +84,6 @@ public:
void print(const std::string& s = "", const KeyFormatter& keyFormatter = void print(const std::string& s = "", const KeyFormatter& keyFormatter =
DefaultKeyFormatter) const { DefaultKeyFormatter) const {
std::cout << s << "SmartProjectionPoseFactor, z = \n "; std::cout << s << "SmartProjectionPoseFactor, z = \n ";
BOOST_FOREACH(const boost::shared_ptr<CALIBRATION>& K, sharedKs_)
K->print("calibration = ");
Base::print("", keyFormatter); Base::print("", keyFormatter);
} }
@ -130,11 +126,6 @@ public:
} }
} }
/** return calibration shared pointers */
inline const std::vector<boost::shared_ptr<CALIBRATION> > calibration() const {
return sharedKs_;
}
private: private:
/// Serialization function /// Serialization function
@ -142,7 +133,6 @@ private:
template<class ARCHIVE> template<class ARCHIVE>
void serialize(ARCHIVE & ar, const unsigned int version) { void serialize(ARCHIVE & ar, const unsigned int version) {
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base); ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
ar & BOOST_SERIALIZATION_NVP(sharedKs_);
} }
}; // end of class declaration }; // end of class declaration