Skip to content
Snippets Groups Projects
Commit 0bda60f7 authored by asantamaria's avatar asantamaria
Browse files

minor changes to leave CalcPinv working in master

parent 8e8992f1
No related branches found
No related tags found
No related merge requests found
...@@ -59,8 +59,6 @@ class CCommon_Fc ...@@ -59,8 +59,6 @@ class CCommon_Fc
* *
* Compute the matrix pseudo-inverse using SVD * Compute the matrix pseudo-inverse using SVD
*/ */
//static Eigen::MatrixXd CalcPinv(const Eigen::MatrixXd &a);
template<typename _Matrix_Type_> static _Matrix_Type_ CalcPinv(const _Matrix_Type_ &a, double epsilon = std::numeric_limits<double>::epsilon()) template<typename _Matrix_Type_> static _Matrix_Type_ CalcPinv(const _Matrix_Type_ &a, double epsilon = std::numeric_limits<double>::epsilon())
{ {
Eigen::JacobiSVD< _Matrix_Type_ > svdd(a, Eigen::ComputeThinU | Eigen::ComputeThinV); Eigen::JacobiSVD< _Matrix_Type_ > svdd(a, Eigen::ComputeThinU | Eigen::ComputeThinV);
......
...@@ -44,8 +44,7 @@ void CTaskIR::TaskErrorJac(const int& arm_dof, const double& inf_rad, const Eige ...@@ -44,8 +44,7 @@ void CTaskIR::TaskErrorJac(const int& arm_dof, const double& inf_rad, const Eige
} }
// } // }
//Eigen::MatrixXd Hinv = UAM::CCommon_Fc::CalcPinv(H); Eigen::MatrixXd Hinv = UAM::CCommon_Fc::CalcPinv(H);
Eigen::MatrixXd Hinv = H.transpose();
// weighting matrix // weighting matrix
Eigen::MatrixXd temp = JIR*Hinv*JIR.transpose(); Eigen::MatrixXd temp = JIR*Hinv*JIR.transpose();
......
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