ViSP  2.8.0
vpVelocityTwistMatrix.h
1 /****************************************************************************
2  *
3  * $Id: vpVelocityTwistMatrix.h 4056 2013-01-05 13:04:42Z 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  * Velocity twist transformation matrix.
36  *
37  * Authors:
38  * Eric Marchand
39  * Fabien Spindler
40  *
41  *****************************************************************************/
42 
43 #ifndef vpVelocityRwistMatrix_h
44 #define vpVelocityRwistMatrix_h
45 
46 #include <visp/vpMatrix.h>
47 #include <visp/vpColVector.h>
48 #include <visp/vpHomogeneousMatrix.h>
49 #include <visp/vpRotationMatrix.h>
50 
51 
102 class VISP_EXPORT vpVelocityTwistMatrix : public vpMatrix
103 {
104  friend class vpMatrix;
105 
106  public:
107  // basic constructor
109  // copy constructor
111  // constructor from an homogeneous transformation
113 
114  // Construction from Translation and rotation (ThetaU parameterization)
116  // Construction from Translation and rotation (matrix parameterization)
118  vpVelocityTwistMatrix(const double tx, const double ty, const double tz,
119  const double tux, const double tuy, const double tuz) ;
120 
121  // Basic initialisation (identity)
122  void init() ;
123 
125  const vpRotationMatrix &R);
127  const vpThetaUVector &thetau);
128  vpVelocityTwistMatrix buildFrom(const vpHomogeneousMatrix &M) ;
129 
130  // Basic initialisation (identity)
131  void setIdentity() ;
132 
134  vpMatrix operator*(const vpMatrix &M) const ;
135 
136  vpColVector operator*(const vpColVector &v) const ;
137 
138  // copy operator from vpMatrix (handle with care)
140 
142  vpVelocityTwistMatrix inverse() const ;
144  void inverse(vpVelocityTwistMatrix &Wi) const;
145 
147  void extract( vpRotationMatrix &R) const;
149  void extract(vpTranslationVector &t) const;
150 } ;
151 
152 #endif
153 
154 /*
155  * Local variables:
156  * c-basic-offset: 2
157  * End:
158  */
Definition of the vpMatrix class.
Definition: vpMatrix.h:96
void init()
Initialization of the object matrix.
Definition: vpMatrix.cpp:93
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
The vpRotationMatrix considers the particular case of a rotation matrix.
void setIdentity(const double &val=1.0)
Definition: vpMatrix.cpp:1110
vpMatrix & operator=(const vpMatrix &B)
Copy operator. Allow operation such as A = B.
Definition: vpMatrix.cpp:316
Class that consider the particular case of twist transformation matrix that allows to transform a vel...
vpMatrix t() const
Definition: vpMatrix.cpp:1176
Class that provides a data structure for the column vectors as well as a set of operations on these v...
Definition: vpColVector.h:72
vpMatrix operator*(const vpMatrix &B) const
Definition: vpMatrix.cpp:436
Class that consider the case of a translation vector.
Class that consider the case of the parameterization for the rotation.