ViSP  2.9.0
vpRzyzVector.h
1 /****************************************************************************
2  *
3  * $Id: vpRzyzVector.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  * Euler angles parameterization for the rotation.
36  * Rzyz(phi,theta,psi) = Rot(z,phi)Rot(y,theta)Rot(z,psi)
37  *
38  * Authors:
39  * Eric Marchand
40  * Fabien Spindler
41  *
42  *****************************************************************************/
43 
44 
45 #ifndef vpRzyzVector_h
46 #define vpRzyzVector_h
47 
56 class vpRotationMatrix;
57 class vpThetaUVector;
58 
59 #include <visp/vpRotationVector.h>
60 #include <visp/vpRotationMatrix.h>
61 
150 class VISP_EXPORT vpRzyzVector : public vpRotationVector
151 {
152  friend class vpRotationMatrix;
153  friend class vpThetaUVector;
154 
155  public:
160 
167  vpRzyzVector(const double phi, const double theta, const double psi) :
168  vpRotationVector (3) { r[0]=phi;r[1]=theta;r[2]=psi; }
169 
170  // initialize a Rzyz vector from a rotation matrix
171  vpRzyzVector(const vpRotationMatrix& R);
172 
173  // initialize a Rzyz vector from a ThetaU vector
174  vpRzyzVector(const vpThetaUVector& tu);
175 
182  void buildFrom(const double phi, const double theta, const double psi)
183  {
184  r[0] = phi ;
185  r[1] = theta ;
186  r[2] = psi ;
187  }
188 
189  // convert a rotation matrix into Rzyz vector
191 
192  // convert a ThetaU vector into a Rzyz vector
194 
195  vpRzyzVector &operator=(double x) ;
196 
197 } ;
198 #endif
199 
vpRotationVector & operator=(const vpRotationVector &v)
Class that consider the case of a generic rotation vector (cannot be used as is !) consisting in thre...
vpThetaUVector buildFrom(const vpHomogeneousMatrix &M)
The vpRotationMatrix considers the particular case of a rotation matrix.
vpRzyzVector(const double phi, const double theta, const double psi)
Definition: vpRzyzVector.h:167
Class that consider the case of the Euler angles using the z-y-z convention, where are respectively...
Definition: vpRzyzVector.h:150
void buildFrom(const double phi, const double theta, const double psi)
Definition: vpRzyzVector.h:182
Class that consider the case of the parameterization for the rotation.
vpRzyzVector(const vpRzyzVector &rzyz)
Definition: vpRzyzVector.h:159