ViSP  2.8.0
vpViper.h
1 /****************************************************************************
2  *
3  * $Id: vpViper.h 4191 2013-04-01 07:46:05Z fspindle $
4  *
5  * This file is part of the ViSP software.
6  * Copyright (C) 2005 - 2013 by INRIA. All rights reserved.
7  *
8  * This software is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * ("GPL") version 2 as published by the Free Software Foundation.
11  * See the file LICENSE.txt at the root directory of this source
12  * distribution for additional information about the GNU GPL.
13  *
14  * For using ViSP with software that can not be combined with the GNU
15  * GPL, please contact INRIA about acquiring a ViSP Professional
16  * Edition License.
17  *
18  * See http://www.irisa.fr/lagadic/visp/visp.html for more information.
19  *
20  * This software was developed at:
21  * INRIA Rennes - Bretagne Atlantique
22  * Campus Universitaire de Beaulieu
23  * 35042 Rennes Cedex
24  * France
25  * http://www.irisa.fr/lagadic
26  *
27  * If you have questions regarding the use of this file, please contact
28  * INRIA at visp@inria.fr
29  *
30  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
31  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32  *
33  *
34  * Description:
35  * Interface for a generic ADEPT Viper (either 650 or 850) robot.
36  *
37  * Authors:
38  * Fabien Spindler
39  *
40  *****************************************************************************/
41 
42 #ifndef vpViper_h
43 #define vpViper_h
44 
53 #include <visp/vpHomogeneousMatrix.h>
54 #include <visp/vpImage.h>
55 #include <visp/vpRGBa.h>
56 #include <visp/vpCameraParameters.h>
57 #include <visp/vpVelocityTwistMatrix.h>
58 #include <visp/vpRobotException.h>
59 
111 class VISP_EXPORT vpViper
112 {
113  public:
114  vpViper();
115  virtual ~vpViper() {};
116 
117  vpHomogeneousMatrix getForwardKinematics(const vpColVector & q);
118  unsigned int getInverseKinematicsWrist(const vpHomogeneousMatrix & fMw, vpColVector & q, const bool &verbose=false);
119  unsigned int getInverseKinematics(const vpHomogeneousMatrix & fMc, vpColVector & q, const bool &verbose=false);
120  vpHomogeneousMatrix get_fMc (const vpColVector & q);
121  void get_fMw(const vpColVector & q, vpHomogeneousMatrix & fMw);
122  void get_wMe(vpHomogeneousMatrix & wMe);
123  void get_eMc(vpHomogeneousMatrix & eMc);
124  void get_fMe(const vpColVector & q, vpHomogeneousMatrix & fMe);
125  void get_fMc(const vpColVector & q, vpHomogeneousMatrix & fMc);
126 
127  void get_cMe(vpHomogeneousMatrix &cMe) ;
128  void get_cVe(vpVelocityTwistMatrix &cVe) ;
129  void get_fJw(const vpColVector &q, vpMatrix &fJw) ;
130  void get_fJe(const vpColVector &q, vpMatrix &fJe) ;
131  void get_eJe(const vpColVector &q, vpMatrix &eJe) ;
132 
133  friend VISP_EXPORT std::ostream & operator << (std::ostream & os,
134  const vpViper & viper);
135 
136  vpColVector getJointMin();
137  vpColVector getJointMax();
138  double getCoupl56();
139 
140  private:
141  bool convertJointPositionInLimits(unsigned int joint, const double &q, double &q_mod, const bool &verbose=false);
142 
143  public:
144  static const unsigned int njoint;
145 
146  protected:
148  // Minimal representation of eMc
150  vpRxyzVector erc; // radian
151 
152  // Denavit-Hartenberg parameters
153  double a1, d1;
154  double a2;
155  double a3;
156  double d4;
157  double d6;
158  double c56;
159 
160  // Software joint limits in radians
161  vpColVector joint_max; // Maximal value of the joints
162  vpColVector joint_min; // Minimal value of the joints
163 
164 
165 };
166 
167 /*
168  * Local variables:
169  * c-basic-offset: 2
170  * End:
171  */
172 
173 #endif
174 
Definition of the vpMatrix class.
Definition: vpMatrix.h:96
double a3
for joint 3
Definition: vpViper.h:155
vpHomogeneousMatrix eMc
End effector to camera transformation.
Definition: vpViper.h:147
Modelisation of the ADEPT Viper robot.
Definition: vpViper.h:111
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
vpRxyzVector erc
Definition: vpViper.h:150
double a2
for joint 2
Definition: vpViper.h:154
virtual ~vpViper()
Definition: vpViper.h:115
double d1
for joint 1
Definition: vpViper.h:153
double c56
Mechanical coupling between joint 5 and joint 6.
Definition: vpViper.h:158
vpTranslationVector etc
Definition: vpViper.h:149
vpColVector joint_max
Definition: vpViper.h:161
Class that consider the particular case of twist transformation matrix that allows to transform a vel...
Class that provides a data structure for the column vectors as well as a set of operations on these v...
Definition: vpColVector.h:72
Class that consider the case of the Euler angle using the x-y-z convention, where are respectively ...
Definition: vpRxyzVector.h:152
double d4
for joint 4
Definition: vpViper.h:156
Class that consider the case of a translation vector.
static const unsigned int njoint
Number of joint.
Definition: vpViper.h:144
double d6
for joint 6
Definition: vpViper.h:157
vpColVector joint_min
Definition: vpViper.h:162