OrientationConversion.h
Go to the documentation of this file.
1 
2 /*
3  * This file is part of ArmarX.
4  *
5  * ArmarX is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * ArmarX is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  *
17  * @package ArmarXGuiPlugins::RobotTrajectoryDesigner::Interpolation
18  * @author Timo Birr
19  * @date 2018
20  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
21  * GNU General Public License
22  */
23 
24 #ifndef ORIENTATIONCONVERSION_H
25 
26 #define ORIENTATIONCONVERSION_H
27 
28 #include "RobotAPI/interface/core/PoseBase.h"
29 
30 #include "Eigen/Geometry"
31 
32 #include <memory>
33 
34 namespace armarx
35 {
36 
38  {
39  public:
40  static std::vector<double> toEulerAngle(QuaternionBasePtr q);
41 
42  static QuaternionBasePtr toQuaternion(const double roll, const double pitch, const double yaw);
43 
44  static Eigen::Quaternion<double> toEigen(QuaternionBasePtr q);
45 
46  static QuaternionBasePtr toArmarX(Eigen::Quaternion<double> q);
47  };
48 }
49 
50 #endif
armarx::OrientationConversion::toEulerAngle
static std::vector< double > toEulerAngle(QuaternionBasePtr q)
Definition: OrientationConversion.cpp:33
armarx::OrientationConversion
Definition: OrientationConversion.h:37
armarx::OrientationConversion::toQuaternion
static QuaternionBasePtr toQuaternion(const double roll, const double pitch, const double yaw)
Definition: OrientationConversion.cpp:57
armarx::OrientationConversion::toArmarX
static QuaternionBasePtr toArmarX(Eigen::Quaternion< double > q)
Definition: OrientationConversion.cpp:79
q
#define q
armarx::OrientationConversion::toEigen
static Eigen::Quaternion< double > toEigen(QuaternionBasePtr q)
Definition: OrientationConversion.cpp:74
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28