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 <memory>
29
30#include "RobotAPI/interface/core/PoseBase.h"
31
32#include "Eigen/Geometry"
33
34namespace armarx
35{
36
38 {
39 public:
40 static std::vector<double> toEulerAngle(QuaternionBasePtr q);
41
42 static QuaternionBasePtr
43 toQuaternion(const double roll, const double pitch, const double yaw);
44
45 static Eigen::Quaternion<double> toEigen(QuaternionBasePtr q);
46
47 static QuaternionBasePtr toArmarX(Eigen::Quaternion<double> q);
48 };
49} // namespace armarx
50
51#endif
static std::vector< double > toEulerAngle(QuaternionBasePtr q)
static Eigen::Quaternion< double > toEigen(QuaternionBasePtr q)
static QuaternionBasePtr toArmarX(Eigen::Quaternion< double > q)
static QuaternionBasePtr toQuaternion(const double roll, const double pitch, const double yaw)
#define q
This file offers overloads of toIce() and fromIce() functions for STL container types.