28#include <Eigen/Geometry>
47 "North",
"South",
"East",
"West",
"Down",
"Up",
116 return (Eigen::AngleAxisf(
yaw, Eigen::Vector3f::UnitZ()) *
117 Eigen::AngleAxisf(
pitch, Eigen::Vector3f::UnitY()) *
118 Eigen::AngleAxisf(
roll, Eigen::Vector3f::UnitX()))
169 Eigen::Vector3f vx, vy, vz;
176 mat.row(0) << vx.transpose();
177 mat.row(1) << vy.transpose();
178 mat.row(2) << vz.transpose();
This file includes all the types the logdecoder script will decode.
constexpr const char * humanFriendlyDirection[]
Eigen::Vector3f orientationToVector(Direction direction)
This struct uses the three angles yaw, pitch and roll to define a transformation.
Eigen::Matrix3f getMatrix() const override
AxisAngleOrientation(float _yaw, float _pitch, float _roll)
This struct represents in the most general way any kind of transformation of the reference frame (axi...
virtual Eigen::Matrix3f getMatrix() const =0
This struct represents orthogonal rotations.
AxisOrthoOrientation(Direction _xAxis, Direction _yAxis)
Eigen::Matrix3f getMatrix() const override
Returns a rotation matrix.
This struct represents axis orientation relative to a reference system.
const AxisOrientation & orientationA
const AxisOrientation & orientationB
AxisRelativeOrientation(const AxisOrientation &orientationA, const AxisOrientation &orientationB)
Eigen::Matrix3f getMatrix() const override