Go to the documentation of this file.00001
00002
00003 #ifndef KDL_CHAIN_IKSOLVERVEL_PINV_GIVENS_HPP
00004 #define KDL_CHAIN_IKSOLVERVEL_PINV_GIVENS_HPP
00005
00006 #include "chainiksolver.hpp"
00007 #include "chainjnttojacsolver.hpp"
00008
00009 #include <Eigen/Core>
00010
00011 using namespace Eigen;
00012
00013 namespace KDL
00014 {
00024 class ChainIkSolverVel_pinv_givens : public ChainIkSolverVel
00025 {
00026 public:
00027
00039 explicit ChainIkSolverVel_pinv_givens(const Chain& chain);
00040 ~ChainIkSolverVel_pinv_givens();
00041
00042 virtual int CartToJnt(const JntArray& q_in, const Twist& v_in, JntArray& qdot_out);
00047 virtual int CartToJnt(const JntArray& q_init, const FrameVel& v_in, JntArrayVel& q_out){return (error = E_NOT_IMPLEMENTED);};
00048
00049 private:
00050 const Chain chain;
00051 unsigned int nj;
00052 ChainJntToJacSolver jnt2jac;
00053 Jacobian jac;
00054 bool transpose,toggle;
00055 unsigned int m,n;
00056 MatrixXd jac_eigen,U,V,B;
00057 VectorXd S,tempi,tempj,UY,SUY,qdot_eigen,v_in_eigen;
00058 };
00059 }
00060 #endif