Skip to content
Snippets Groups Projects
Commit 6d79d11a authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

remove commented code

parent 1e03cb1f
No related branches found
No related tags found
1 merge request!335Resolve "Covariances manipulations in a specific file"
Pipeline #4866 passed
......@@ -101,10 +101,6 @@ class FeatureBase : public NodeBase, public std::enable_shared_from_this<Feature
static std::shared_ptr<classType> emplace(CaptureBasePtr _cpt_ptr, T&&... all);
// protected:
//
// Eigen::MatrixXd computeSqrtUpper(const Eigen::MatrixXd& _M) const;
private:
void setCapture(CaptureBasePtr _cap_ptr){capture_ptr_ = _cap_ptr;}
FactorBasePtr addFactor(FactorBasePtr _co_ptr);
......
......@@ -134,28 +134,6 @@ void FeatureBase::setProblem(ProblemPtr _problem)
fac->setProblem(_problem);
}
//Eigen::MatrixXd FeatureBase::computeSqrtUpper(const Eigen::MatrixXd & _info) const
//{
// // impose symmetry
// Eigen::MatrixXd info = _info.selfadjointView<Eigen::Upper>();
//
// // Normal Cholesky factorization
// Eigen::LLT<Eigen::MatrixXd> llt_of_info(info);
// Eigen::MatrixXd R = llt_of_info.matrixU();
//
// // Good factorization
// if (info.isApprox(R.transpose() * R, Constants::EPS))
// return R;
//
// // Not good factorization: SelfAdjointEigenSolver
// Eigen::SelfAdjointEigenSolver<Eigen::MatrixXd> es(info);
// Eigen::VectorXd eval = es.eigenvalues().real().cwiseMax(Constants::EPS);
//
// R = eval.cwiseSqrt().asDiagonal() * es.eigenvectors().real().transpose();
//
// return R;
//}
void FeatureBase::link(CaptureBasePtr _cpt_ptr)
{
assert(!is_removing_ && "linking a removed feature");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment