ViSP  2.9.0
vpViper.h
1 /****************************************************************************
2  *
3  * $Id: vpViper.h 4620 2014-01-27 21:28:32Z fspindle $
4  *
5  * This file is part of the ViSP software.
6  * Copyright (C) 2005 - 2014 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) const;
118  unsigned int getInverseKinematicsWrist(const vpHomogeneousMatrix & fMw, vpColVector & q, const bool &verbose=false) const;
119  unsigned int getInverseKinematics(const vpHomogeneousMatrix & fMc, vpColVector & q, const bool &verbose=false) const;
120  vpHomogeneousMatrix get_fMc (const vpColVector & q) const;
121  void get_fMw(const vpColVector & q, vpHomogeneousMatrix & fMw) const;
122  void get_wMe(vpHomogeneousMatrix & wMe) const;
123  void get_eMc(vpHomogeneousMatrix & eMc) const;
124  void get_fMe(const vpColVector & q, vpHomogeneousMatrix & fMe) const;
125  void get_fMc(const vpColVector & q, vpHomogeneousMatrix & fMc) const;
126 
127  void get_cMe(vpHomogeneousMatrix &cMe) const;
128  void get_cVe(vpVelocityTwistMatrix &cVe) const;
129  void get_fJw(const vpColVector &q, vpMatrix &fJw) const;
130  void get_fJe(const vpColVector &q, vpMatrix &fJe) const;
131  void get_eJe(const vpColVector &q, vpMatrix &eJe) const;
132 
133  friend VISP_EXPORT std::ostream & operator << (std::ostream & os, const vpViper & viper);
134 
135  vpColVector getJointMin() const;
136  vpColVector getJointMax() const;
137  double getCoupl56() const;
138 
139  private:
140  bool convertJointPositionInLimits(unsigned int joint, const double &q, double &q_mod, const bool &verbose=false) const;
141 
142  public:
143  static const unsigned int njoint;
144 
145  protected:
147  // Minimal representation of eMc
149  vpRxyzVector erc; // radian
150 
151  // Denavit-Hartenberg parameters
152  double a1, d1;
153  double a2;
154  double a3;
155  double d4;
156  double d6;
157  double c56;
158 
159  // Software joint limits in radians
160  vpColVector joint_max; // Maximal value of the joints
161  vpColVector joint_min; // Minimal value of the joints
162 };
163 
164 #endif
165 
Definition of the vpMatrix class.
Definition: vpMatrix.h:98
double a3
for joint 3
Definition: vpViper.h:154
vpHomogeneousMatrix eMc
End effector to camera transformation.
Definition: vpViper.h:146
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:149
double a2
for joint 2
Definition: vpViper.h:153
virtual ~vpViper()
Definition: vpViper.h:115
double d1
for joint 1
Definition: vpViper.h:152
double c56
Mechanical coupling between joint 5 and joint 6.
Definition: vpViper.h:157
vpTranslationVector etc
Definition: vpViper.h:148
vpColVector joint_max
Definition: vpViper.h:160
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:155
Class that consider the case of a translation vector.
static const unsigned int njoint
Number of joint.
Definition: vpViper.h:143
double d6
for joint 6
Definition: vpViper.h:156
vpColVector joint_min
Definition: vpViper.h:161