Visual Servoing Platform  version 3.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
vpAfma4.h
1 /****************************************************************************
2  *
3  * This file is part of the ViSP software.
4  * Copyright (C) 2005 - 2017 by Inria. All rights reserved.
5  *
6  * This software is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * ("GPL") version 2 as published by the Free Software Foundation.
9  * See the file LICENSE.txt at the root directory of this source
10  * distribution for additional information about the GNU GPL.
11  *
12  * For using ViSP with software that can not be combined with the GNU
13  * GPL, please contact Inria about acquiring a ViSP Professional
14  * Edition License.
15  *
16  * See http://visp.inria.fr for more information.
17  *
18  * This software was developed at:
19  * Inria Rennes - Bretagne Atlantique
20  * Campus Universitaire de Beaulieu
21  * 35042 Rennes Cedex
22  * France
23  *
24  * If you have questions regarding the use of this file, please contact
25  * Inria at visp@inria.fr
26  *
27  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29  *
30  * Description:
31  * Interface for the Irisa's Afma4 robot.
32  *
33  * Authors:
34  * Fabien Spindler
35  *
36  *****************************************************************************/
37 
38 #ifndef __vpAfma4_h
39 #define __vpAfma4_h
40 
101 #include <visp3/core/vpHomogeneousMatrix.h>
102 #include <visp3/core/vpImage.h>
103 #include <visp3/core/vpRGBa.h>
104 #include <visp3/core/vpCameraParameters.h>
105 #include <visp3/core/vpVelocityTwistMatrix.h>
106 
107 
108 class VISP_EXPORT vpAfma4
109 {
110  public:
111  vpAfma4();
113  virtual ~vpAfma4() {};
114 
117  void init (void);
118 
119  vpHomogeneousMatrix getForwardKinematics(const vpColVector & q) const;
120 /* int getInverseKinematics(const vpHomogeneousMatrix & fMc, */
121 /* vpColVector & q, const bool &nearest=true); */
122  vpHomogeneousMatrix get_fMc (const vpColVector & q) const;
123  void get_fMe(const vpColVector & q, vpHomogeneousMatrix & fMe) const;
124  void get_fMc(const vpColVector & q, vpHomogeneousMatrix & fMc) const;
125 
126  void get_cMe(vpHomogeneousMatrix &cMe) const;
127  void get_cVe(vpVelocityTwistMatrix &cVe) const;
128  void get_cVf(const vpColVector & q, vpVelocityTwistMatrix &cVf) const;
129  void get_eJe(const vpColVector &q, vpMatrix &eJe) const;
130  void get_fJe(const vpColVector &q, vpMatrix &fJe) const;
131  void get_fJe_inverse(const vpColVector &q, vpMatrix &fJe_inverse) const;
132 
133  friend VISP_EXPORT std::ostream & operator << (std::ostream & os, const vpAfma4 & afma4);
134 
135  vpColVector getJointMin() const;
136  vpColVector getJointMax() const;
138 
139  public:
140 
141  static const unsigned int njoint;
142 
143  protected:
144  // Denavit Hartenberg parameters
145  double _a1; // distance along x2
146  double _d3; // distance along z2
147  double _d4; // distance along z3
148  double _joint_max[4]; // Maximal value of the joints
149  double _joint_min[4]; // Minimal value of the joints
150 
151  // Minimal representation of _eMc
153  vpRxyzVector _erc; // radian
154 
155  vpHomogeneousMatrix _eMc; // Camera extrinsic parameters: effector to camera
156 };
157 
158 /*
159  * Local variables:
160  * c-basic-offset: 2
161  * End:
162  */
163 
164 #endif
165 
Implementation of a matrix and operations on matrices.
Definition: vpMatrix.h:97
double _a1
Definition: vpAfma4.h:145
virtual ~vpAfma4()
Definition: vpAfma4.h:113
Implementation of an homogeneous matrix and operations on such kind of matrices.
vpHomogeneousMatrix _eMc
Definition: vpAfma4.h:155
double _d4
Definition: vpAfma4.h:147
vpTranslationVector _etc
Definition: vpAfma4.h:152
static const unsigned int njoint
Number of joint.
Definition: vpAfma4.h:141
Modelisation of Irisa's cylindrical robot named Afma4.
Definition: vpAfma4.h:108
Implementation of a velocity twist matrix and operations on such kind of matrices.
vpRxyzVector _erc
Definition: vpAfma4.h:153
Implementation of column vector and the associated operations.
Definition: vpColVector.h:72
Implementation of a rotation vector as Euler angle minimal representation.
Definition: vpRxyzVector.h:154
double _d3
Definition: vpAfma4.h:146
Class that consider the case of a translation vector.