42 using namespace NEWMAT;
50 Clik::Clik(
const Robot & robot_,
const DiagonalMatrix & Kp_,
const DiagonalMatrix & Ko_,
51 const Real eps_,
const Real lambda_max_,
const Real dt_):
54 lambda_max(lambda_max_),
64 v = ColumnVector(6);
v = 0;
70 Kp = DiagonalMatrix(3);
Kp = 0.0;
71 cerr <<
"Clik::Clik-->Robot, Kp if not 3x3, set gain to 0." << endl;
77 Ko = DiagonalMatrix(3);
Ko = 0.0;
78 cerr <<
"Clik::Clik-->Robot, Ko if not 3x3, set gain to 0." << endl;
88 Clik::Clik(
const mRobot & mrobot_,
const DiagonalMatrix & Kp_,
const DiagonalMatrix & Ko_,
89 const Real eps_,
const Real lambda_max_,
const Real dt_):
92 lambda_max(lambda_max_),
102 v = ColumnVector(6);
v = 0;
108 Kp = DiagonalMatrix(3);
Kp = 0.0;
109 cerr <<
"Clik::Clik-->mRobot, Kp if not 3x3, set gain to 0." << endl;
115 Ko = DiagonalMatrix(3);
Ko = 0.0;
116 cerr <<
"Clik::Cli, Ko if not 3x3, set gain to 0." << endl;
127 const DiagonalMatrix & Ko_,
const Real eps_,
const Real lambda_max_,
131 lambda_max(lambda_max_),
132 mrobot_min_para(mrobot_min_para_)
141 v = ColumnVector(6);
v = 0;
147 Kp = DiagonalMatrix(3);
Kp = 0.0;
148 cerr <<
"Clik::Clik-->mRobot, Kp if not 3x3, set gain to 0." << endl;
154 Ko = DiagonalMatrix(3);
Ko = 0.0;
155 cerr <<
"Clik::Cli, Ko if not 3x3, set gain to 0." << endl;
222 const Quaternion & qqqd,
const ColumnVector & wd)
254 if(qq.dot_prod(qqqd) < 0)
267 const ColumnVector & pdd,
const ColumnVector & wd,
268 ColumnVector & q_, ColumnVector & qp_)
279 v.SubMatrix(1,3,1,1) = pdd +
Kpep;