diff --git a/include/core/factor/factor_base.h b/include/core/factor/factor_base.h index 9baf4488a74026363f55871988318c2a64cda3df..ef3825efda953db8a80f0b22f104ce1a9651d1c7 100644 --- a/include/core/factor/factor_base.h +++ b/include/core/factor/factor_base.h @@ -180,11 +180,6 @@ class FactorBase : public NodeBase, public std::enable_shared_from_this<FactorBa protected: void setFeature(const FeatureBasePtr _ft_ptr){feature_ptr_ = _ft_ptr;} -// protected: -// template<typename D> -// void print(const std::string& name, const Eigen::MatrixBase<D>& mat) const; // Do nothing if input Scalar type is ceres::Jet -// template<int R, int C> -// void print(const std::string& name, const Eigen::Matrix<Scalar, R, C>& mat) const; // Normal print if Scalar type is wolf::Scalar }; } @@ -199,25 +194,6 @@ class FactorBase : public NodeBase, public std::enable_shared_from_this<FactorBa namespace wolf{ -//template<typename D> -//inline void FactorBase::print(const std::string& name, const Eigen::MatrixBase<D>& mat) const {} // Do nothing if input Scalar type is ceres::Jet -//template<int R, int C> -//inline void FactorBase::print(const std::string& name, const Eigen::Matrix<Scalar, R, C>& mat) const // Normal print if Scalar type is wolf::Scalar -//{ -// if (mat.cols() == 1) -// { -// WOLF_TRACE(name, ": ", mat.transpose()); -// } -// else if (mat.rows() == 1) -// { -// WOLF_TRACE(name, ": ", mat); -// } -// else -// { -// WOLF_TRACE(name, ":\n", mat); -// } -//} - template<typename classType, typename... T> std::shared_ptr<FactorBase> FactorBase::emplace(FeatureBasePtr _ftr_ptr, T&&... all) {