50 #include <visp/vpDebug.h>
51 #include <visp/vpVelocityTwistMatrix.h>
52 #include <visp/vpRobotException.h>
53 #include <visp/vpCameraParameters.h>
54 #include <visp/vpRxyzVector.h>
55 #include <visp/vpTranslationVector.h>
56 #include <visp/vpRotationMatrix.h>
57 #include <visp/vpAfma4.h>
99 this->
_erc[1] = -M_PI/2.;
233 fMc = fMe * this->
_eMc;
287 fMe[0][0] = c1*s4*c5 + s1*c4*c5;
288 fMe[0][1] = -c1*s4*s5 - s1*c4*s5;
289 fMe[0][2] = c1*c4 - s1*s4;
290 fMe[0][3] = c1*this->
_a1 - s1*(this->
_d3);
292 fMe[1][0] = s1*s4*c5 - c1*c4*c5;
293 fMe[1][1] = -s1*s4*s5 + c1*c4*s5;
294 fMe[1][2] = s1*c4+c1*s4;
295 fMe[1][3] = s1*this->
_a1 + c1*(this->
_d3);
300 fMe[2][3] = this->
_d4 + q2;
431 eJe[0][0] = -(this->
_a1*c4 + this->
_d3*s4)*c5; eJe[0][1] = -s5;
432 eJe[1][0] = (this->
_a1*c4 + this->
_d3*s4)*s5; eJe[1][1] = -c5;
433 eJe[2][0] = (this->
_a1*s4 - this->
_d3*c4);
434 eJe[3][0] = eJe[3][2] = -s5;
435 eJe[4][0] = eJe[4][2] = -c5;
480 double c14 = cos(q1 + q4);
481 double s14 = sin(q1 + q4);
485 fJe[0][0] = -s1*this->
_a1 - c1*this->
_d3;
487 fJe[1][0] = c1*this->
_a1 - s1*this->
_d3;
495 fJe[5][0] = fJe[5][2] = 1.0;
529 fJe_inverse.
resize(4, 6) ;
537 double c14 = cos(q1 + q4);
538 double s14 = sin(q1 + q4);
540 double det = this->
_a1 * this->
_a1 + this->
_d3 * this->
_d3;
542 fJe_inverse[0][0] = (-s1*this->
_a1 - c1*this->
_d3)/det;
543 fJe_inverse[0][1] = (c1*this->
_a1 - s1*this->
_d3)/det;
545 fJe_inverse[1][2] = fJe_inverse[2][5] = 1.;
547 fJe_inverse[2][0] = - fJe_inverse[0][0];
548 fJe_inverse[2][1] = - fJe_inverse[0][1];
550 fJe_inverse[3][3] = c14;
551 fJe_inverse[3][4] = s14;
566 for (
unsigned int i=0; i < 4; i ++)
583 for (
unsigned int i=0; i < 4; i ++)
607 <<
"Joint Max:" << std::endl
614 <<
"Joint Min: " << std::endl
621 <<
"a1: " << std::endl
625 <<
"d3: " << std::endl
629 <<
"d4: " << std::endl
633 <<
"eMc: "<< std::endl
634 <<
"\tTranslation (m): "
635 << afma4.
_eMc[0][3] <<
" "
636 << afma4.
_eMc[1][3] <<
" "
639 <<
"\tRotation Rxyz (rad) : "
644 <<
"\tRotation Rxyz (deg) : "
648 <<
"\t" << std::endl;
Definition of the vpMatrix class.
void get_eJe(const vpColVector &q, vpMatrix &eJe)
void resize(const unsigned int nrows, const unsigned int ncols, const bool nullify=true)
void get_fMe(const vpColVector &q, vpHomogeneousMatrix &fMe)
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
vpHomogeneousMatrix getForwardKinematics(const vpColVector &q)
void get_fJe_inverse(const vpColVector &q, vpMatrix &fJe_inverse)
vpColVector getJointMax()
The vpRotationMatrix considers the particular case of a rotation matrix.
vpColVector getJointMin()
vpVelocityTwistMatrix buildFrom(const vpTranslationVector &t, const vpRotationMatrix &R)
void get_fJe(const vpColVector &q, vpMatrix &fJe)
static const unsigned int njoint
Number of joint.
Modelisation of Irisa's cylindrical robot named Afma4.
void extract(vpRotationMatrix &R) const
Class that consider the particular case of twist transformation matrix that allows to transform a vel...
VISP_EXPORT std::ostream & operator<<(std::ostream &os, const vpImagePoint &ip)
void buildFrom(const vpTranslationVector &t, const vpRotationMatrix &R)
Construction from translation vector and rotation matrix.
vpHomogeneousMatrix get_fMc(const vpColVector &q)
void get_cVe(vpVelocityTwistMatrix &cVe)
static double deg(double rad)
Class that provides a data structure for the column vectors as well as a set of operations on these v...
void get_cVf(const vpColVector &q, vpVelocityTwistMatrix &cVf)
vpHomogeneousMatrix inverse() const
Class that consider the case of the Euler angle using the x-y-z convention, where are respectively ...
void get_cMe(vpHomogeneousMatrix &cMe)