5#include <AH/PrintStream/PrintStream.hpp>
17 return os <<
"(" << q.
w <<
", " << q.
x <<
", " << q.
y <<
", " << q.
z <<
")";
29 return os <<
"(" << q.
w <<
", " << q.
x <<
", " << q.
y <<
", " << q.
z <<
")";
#define BEGIN_AH_NAMESPACE
Definition of Quaternion and EulerAngles.
#define AH_DIAGNOSTIC_POP()
#define AH_DIAGNOSTIC_WERROR()
constexpr std::enable_if< std::is_floating_point< T >::value, T >::type rad2deg(T r)
Convert radians to degrees.
Print & operator<<(Print &os, Quaternion e)
Printing.
Struct for Euler angles of floating point numbers.
float roll
X": drone X = world +Y.
float pitch
Y': drone Y = world -X.
float yaw
Z : drone Z = world +Z.
Type for quaternions of floating point numbers.
float w
Scalar (real) component.
float y
Second vector (imaginary) component .
float x
First vector (imaginary) component .
float z
Third vector (imaginary) component .