47 #include <visp3/core/vpCameraParameters.h> 48 #include <visp3/core/vpDebug.h> 49 #include <visp3/core/vpRotationMatrix.h> 50 #include <visp3/core/vpRxyzVector.h> 51 #include <visp3/core/vpTranslationVector.h> 52 #include <visp3/core/vpVelocityTwistMatrix.h> 53 #include <visp3/robot/vpAfma4.h> 54 #include <visp3/robot/vpRobotException.h> 93 this->
_erc[1] = -M_PI / 2.;
219 fMc = fMe * this->
_eMc;
274 fMe[0][0] = c1 * s4 * c5 + s1 * c4 * c5;
275 fMe[0][1] = -c1 * s4 * s5 - s1 * c4 * s5;
276 fMe[0][2] = c1 * c4 - s1 * s4;
277 fMe[0][3] = c1 * this->
_a1 - s1 * (this->
_d3);
279 fMe[1][0] = s1 * s4 * c5 - c1 * c4 * c5;
280 fMe[1][1] = -s1 * s4 * s5 + c1 * c4 * s5;
281 fMe[1][2] = s1 * c4 + c1 * s4;
282 fMe[1][3] = s1 * this->
_a1 + c1 * (this->
_d3);
287 fMe[2][3] = this->
_d4 + q2;
409 eJe[0][0] = -(this->
_a1 * c4 + this->
_d3 * s4) * c5;
411 eJe[1][0] = (this->
_a1 * c4 + this->
_d3 * s4) * s5;
413 eJe[2][0] = (this->
_a1 * s4 - this->
_d3 * c4);
414 eJe[3][0] = eJe[3][2] = -s5;
415 eJe[4][0] = eJe[4][2] = -c5;
459 double c14 = cos(q1 + q4);
460 double s14 = sin(q1 + q4);
464 fJe[0][0] = -s1 * this->
_a1 - c1 * this->
_d3;
466 fJe[1][0] = c1 * this->
_a1 - s1 * this->
_d3;
474 fJe[5][0] = fJe[5][2] = 1.0;
516 double c14 = cos(q1 + q4);
517 double s14 = sin(q1 + q4);
519 double det = this->
_a1 * this->
_a1 + this->
_d3 * this->
_d3;
521 fJe_inverse[0][0] = (-s1 * this->
_a1 - c1 * this->
_d3) / det;
522 fJe_inverse[0][1] = (c1 * this->
_a1 - s1 * this->
_d3) / det;
524 fJe_inverse[1][2] = fJe_inverse[2][5] = 1.;
526 fJe_inverse[2][0] = -fJe_inverse[0][0];
527 fJe_inverse[2][1] = -fJe_inverse[0][1];
529 fJe_inverse[3][3] = c14;
530 fJe_inverse[3][4] = s14;
544 for (
unsigned int i = 0; i < 4; i++)
560 for (
unsigned int i = 0; i < 4; i++)
580 os <<
"Joint Max:" << std::endl
584 <<
"Joint Min: " << std::endl
588 <<
"a1: " << std::endl
589 <<
"\t" << afma4.
_a1 <<
"\t" << std::endl
591 <<
"d3: " << std::endl
592 <<
"\t" << afma4.
_d3 <<
"\t" << std::endl
594 <<
"d4: " << std::endl
595 <<
"\t" << afma4.
_d4 <<
"\t" << std::endl
597 <<
"eMc: " << std::endl
598 <<
"\tTranslation (m): " << afma4.
_eMc[0][3] <<
" " << afma4.
_eMc[1][3] <<
" " << afma4.
_eMc[2][3] <<
"\t" 600 <<
"\tRotation Rxyz (rad) : " << rxyz[0] <<
" " << rxyz[1] <<
" " << rxyz[2] <<
"\t" << std::endl
602 <<
"\t" << std::endl;
Implementation of a matrix and operations on matrices.
vpHomogeneousMatrix get_fMc(const vpColVector &q) const
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true)
void get_fMe(const vpColVector &q, vpHomogeneousMatrix &fMe) const
void get_cMe(vpHomogeneousMatrix &cMe) const
Implementation of an homogeneous matrix and operations on such kind of matrices.
vpColVector getJointMax() const
void get_cVe(vpVelocityTwistMatrix &cVe) const
void get_cVf(const vpColVector &q, vpVelocityTwistMatrix &cVf) const
void get_eJe(const vpColVector &q, vpMatrix &eJe) const
Implementation of a rotation matrix and operations on such kind of matrices.
vpVelocityTwistMatrix buildFrom(const vpTranslationVector &t, const vpRotationMatrix &R)
static const unsigned int njoint
Number of joint.
Modelisation of Irisa's cylindrical robot named Afma4.
void extract(vpRotationMatrix &R) const
void buildFrom(const vpTranslationVector &t, const vpRotationMatrix &R)
friend VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpAfma4 &afma4)
vpHomogeneousMatrix getForwardKinematics(const vpColVector &q) const
static double deg(double rad)
Implementation of column vector and the associated operations.
vpColVector getJointMin() const
vpHomogeneousMatrix inverse() const
void get_fJe_inverse(const vpColVector &q, vpMatrix &fJe_inverse) const
Implementation of a rotation vector as Euler angle minimal representation.
void get_fJe(const vpColVector &q, vpMatrix &fJe) const