Pose.h
Go to the documentation of this file.
1 /*
2  * This file is part of ALVAR, A Library for Virtual and Augmented Reality.
3  *
4  * Copyright 2007-2012 VTT Technical Research Centre of Finland
5  *
6  * Contact: VTT Augmented Reality Team <alvar.info@vtt.fi>
7  * <http://www.vtt.fi/multimedia/alvar.html>
8  *
9  * ALVAR is free software; you can redistribute it and/or modify it under the
10  * terms of the GNU Lesser General Public License as published by the Free
11  * Software Foundation; either version 2.1 of the License, or (at your option)
12  * any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
17  * for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with ALVAR; if not, see
21  * <http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html>.
22  */
23 
24 #ifndef POSE_H
25 #define POSE_H
26 
27 #include "Alvar.h"
28 #include "Rotation.h"
29 
36 namespace alvar {
37 
50 class ALVAR_EXPORT Pose : public Rotation {
51 protected:
52  // Note, although we are using homogeneous coordinates x, y, z, w -- w is now mostly ignored
53 public:
54  double translation[4];
56 
58  void Output() const;
60  Pose();
66  Pose(CvMat *tra, CvMat *rot, RotationType t);
70  Pose(CvMat *mat);
72  Pose(const Pose& p);
74  void Reset();
78  void SetMatrix(const CvMat *mat);
83  void SetMatrixGL(double gl[16], bool mirror=true);
87  void GetMatrix(CvMat *mat) const;
92  void GetMatrixGL(double gl[16], bool mirror=true);
94  void Transpose();
96  void Invert();
102  void Mirror(bool x, bool y, bool z);
106  void SetTranslation(const CvMat *tra);
110  void SetTranslation(const double *tra);
112  void SetTranslation(const double x, const double y, const double z);
116  void GetTranslation(CvMat *tra) const;
118  Pose& operator = (const Pose& p);
119 };
120 
121 } // namespace alvar
122 
123 #endif
Main ALVAR namespace.
Definition: Alvar.h:174
CvMat translation_mat
Definition: Pose.h:55
Output
RotationType
Rotation can be represented in four ways: quaternion (QUAT), matrix (MAT), euler angles (EUL) and exp...
Definition: Rotation.h:53
This file implements a parametrized rotation.
Pose representation derived from the Rotation class
Definition: Pose.h:50
#define ALVAR_EXPORT
Definition: Alvar.h:168
Rotation structure and transformations between different parameterizations.
Definition: Rotation.h:43
This file defines library export definitions, version numbers and build information.


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Mon Jun 10 2019 12:47:04