Skip to content
Snippets Groups Projects

Resolve "Emplace API inconsistent with ProcessorTrackerFeature/Landmark functions"

1 file
+ 0
24
Compare changes
  • Side-by-side
  • Inline
@@ -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)
{
Loading