Visual Servoing Platform  version 3.0.0
vpAfma4.h
1 /****************************************************************************
2  *
3  * This file is part of the ViSP software.
4  * Copyright (C) 2005 - 2015 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 
115  void init (void);
116 
117  vpHomogeneousMatrix getForwardKinematics(const vpColVector & q) const;
118 /* int getInverseKinematics(const vpHomogeneousMatrix & fMc, */
119 /* vpColVector & q, const bool &nearest=true); */
120  vpHomogeneousMatrix get_fMc (const vpColVector & q) const;
121  void get_fMe(const vpColVector & q, vpHomogeneousMatrix & fMe) const;
122  void get_fMc(const vpColVector & q, vpHomogeneousMatrix & fMc) const;
123 
124  void get_cMe(vpHomogeneousMatrix &cMe) const;
125  void get_cVe(vpVelocityTwistMatrix &cVe) const;
126  void get_cVf(const vpColVector & q, vpVelocityTwistMatrix &cVf) const;
127  void get_eJe(const vpColVector &q, vpMatrix &eJe) const;
128  void get_fJe(const vpColVector &q, vpMatrix &fJe) const;
129  void get_fJe_inverse(const vpColVector &q, vpMatrix &fJe_inverse) const;
130 
131  friend VISP_EXPORT std::ostream & operator << (std::ostream & os, const vpAfma4 & afma4);
132 
133  vpColVector getJointMin() const;
134  vpColVector getJointMax() const;
135 
136  public:
137 
138  static const unsigned int njoint;
139 
140  protected:
141  // Denavit Hartenberg parameters
142  double _a1; // distance along x2
143  double _d3; // distance along z2
144  double _d4; // distance along z3
145  double _joint_max[4]; // Maximal value of the joints
146  double _joint_min[4]; // Minimal value of the joints
147 
148  // Minimal representation of _eMc
150  vpRxyzVector _erc; // radian
151 
152  vpHomogeneousMatrix _eMc; // Camera extrinsic parameters: effector to camera
153 };
154 
155 /*
156  * Local variables:
157  * c-basic-offset: 2
158  * End:
159  */
160 
161 #endif
162 
Implementation of a matrix and operations on matrices.
Definition: vpMatrix.h:92
double _a1
Definition: vpAfma4.h:142
virtual ~vpAfma4()
Definition: vpAfma4.h:113
Implementation of an homogeneous matrix and operations on such kind of matrices.
vpHomogeneousMatrix _eMc
Definition: vpAfma4.h:152
double _d4
Definition: vpAfma4.h:144
vpTranslationVector _etc
Definition: vpAfma4.h:149
static const unsigned int njoint
Number of joint.
Definition: vpAfma4.h:138
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:150
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:143
Class that consider the case of a translation vector.