ViSP  2.9.0
vpBiclops.h
1 /****************************************************************************
2  *
3  * $Id: vpBiclops.h 4632 2014-02-03 17:06:40Z 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 the Biclops robot.
36  *
37  * Authors:
38  * Fabien Spindler
39  *
40  *****************************************************************************/
41 
42 #ifndef __vpBiclops_H
43 #define __vpBiclops_H
44 
45 /* ----------------------------------------------------------------------- */
46 /* --- INCLUDES -------------------------------------------------------- */
47 /* --------------------------------------------------------------------- */
48 
49 /* --- ViSP --- */
50 #include <visp/vpMatrix.h>
51 #include <visp/vpHomogeneousMatrix.h>
52 #include <visp/vpPoseVector.h>
53 #include <visp/vpMath.h>
54 #include <visp/vpRxyzVector.h>
55 #include <visp/vpTranslationVector.h>
56 #include <visp/vpVelocityTwistMatrix.h>
57 
58 /* --- GENERAL --- */
59 #include <iostream>
60 
78 class VISP_EXPORT vpBiclops
79 {
80 public:
119  typedef enum
120  {
121  DH1,
122  DH2
123  } DenavitHartenbergModel;
124 
125 public: /* Constants */
126 
127  static const unsigned int ndof;
129  /* Geometric model */
130  static const float h;
131 
132  static const float panJointLimit;
133  static const float tiltJointLimit;
134  static const float speedLimit;
135 
136 
137 protected:
139  vpHomogeneousMatrix cMe_; // Camera frame to mobile platform frame
140 
141 public:
142  vpBiclops (void);
144  virtual ~vpBiclops() {};
145 
146  void init (void);
147 
148  void computeMGD (const vpColVector &q, vpHomogeneousMatrix & fMc) const;
149  vpHomogeneousMatrix computeMGD (const vpColVector & q) const;
150  void computeMGD (const vpColVector &q, vpPoseVector &fvc) const;
151 
157  {
158  return cMe_;
159  }
160 
161  void get_cVe(vpVelocityTwistMatrix &_cVe) const;
162  void get_fMc (const vpColVector &q, vpHomogeneousMatrix &fMc) const;
163  void get_fMc (const vpColVector &q, vpPoseVector &fvc) const;
164  vpHomogeneousMatrix get_fMc (const vpColVector &q) const;
165  vpHomogeneousMatrix get_fMe (const vpColVector &q) const;
166 
167  void get_eJe(const vpColVector &q, vpMatrix &eJe) const;
168  void get_fJe(const vpColVector &q, vpMatrix &fJe) const;
169 
175  {
176  return dh_model_;
177  }
178 
179  void set_cMe() ;
183  void set_cMe(const vpHomogeneousMatrix &cMe)
184  {
185  cMe_ = cMe;
186  }
193  {
194  dh_model_ = m;
195  }
196 
197  friend VISP_EXPORT std::ostream & operator << (std::ostream & os, const vpBiclops & constant);
198 };
199 
200 
201 #endif
Jacobian, geometric model functionnalities... for biclops, pan, tilt head.
Definition: vpBiclops.h:78
Definition of the vpMatrix class.
Definition: vpMatrix.h:98
void set_cMe(const vpHomogeneousMatrix &cMe)
Definition: vpBiclops.h:183
vpHomogeneousMatrix cMe_
Definition: vpBiclops.h:139
static const unsigned int ndof
Definition: vpBiclops.h:127
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
static const float tiltJointLimit
Definition: vpBiclops.h:133
static const float speedLimit
Definition: vpBiclops.h:134
virtual ~vpBiclops()
Definition: vpBiclops.h:144
static const float panJointLimit
Definition: vpBiclops.h:132
static const float h
Definition: vpBiclops.h:130
DenavitHartenbergModel
Definition: vpBiclops.h:119
void setDenavitHartenbergModel(vpBiclops::DenavitHartenbergModel m=vpBiclops::DH1)
Definition: vpBiclops.h:192
DenavitHartenbergModel dh_model_
Definition: vpBiclops.h:138
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
The pose is a complete representation of every rigid motion in the euclidian space.
Definition: vpPoseVector.h:92
vpHomogeneousMatrix get_cMe() const
Definition: vpBiclops.h:156
vpBiclops::DenavitHartenbergModel getDenavitHartenbergModel() const
Definition: vpBiclops.h:174