ViSP  2.8.0
vpForceTwistMatrix.h
1 /****************************************************************************
2  *
3  * $Id: vpForceTwistMatrix.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  * Twist transformation matrix that allows to transform forces from one
36  * frame to an other.
37  *
38  * Authors:
39  * Fabien Spindler
40  *
41  *****************************************************************************/
42 
43 #ifndef vpForceTwistMatrix_h
44 #define vpForceTwistMatrix_h
45 
46 #include <visp/vpMatrix.h>
47 #include <visp/vpColVector.h>
48 #include <visp/vpHomogeneousMatrix.h>
49 #include <visp/vpRotationMatrix.h>
50 
51 
104 class VISP_EXPORT vpForceTwistMatrix : public vpMatrix
105 {
106  friend class vpMatrix;
107 
108  public:
109  // basic constructor
111  // copy constructor
113  // constructor from an homogeneous transformation
115 
116  // Construction from Translation and rotation (ThetaU parameterization)
117  vpForceTwistMatrix(const vpTranslationVector &t, const vpThetaUVector &thetau) ;
118  // Construction from Translation and rotation (matrix parameterization)
120  vpForceTwistMatrix(const double tx, const double ty, const double tz,
121  const double tux, const double tuy, const double tuz) ;
122 
123  // Basic initialisation (identity)
124  void init() ;
125 
126  vpForceTwistMatrix buildFrom(const vpTranslationVector &t,
127  const vpRotationMatrix &R);
128  vpForceTwistMatrix buildFrom(const vpTranslationVector &t,
129  const vpThetaUVector &thetau);
130  vpForceTwistMatrix buildFrom(const vpHomogeneousMatrix &M) ;
131 
132  // Basic initialisation (identity)
133  void setIdentity() ;
134 
136  vpMatrix operator*(const vpMatrix &M) const ;
137 
138  vpColVector operator*(const vpColVector &H) const ;
139 
140  // copy operator from vpMatrix (handle with care)
142 } ;
143 
144 #endif
145 
146 /*
147  * Local variables:
148  * c-basic-offset: 2
149  * End:
150  */
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 for...
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.