1 #include <unsupported/Eigen/EulerAngles> 18 MyArmyAngles vehicleAngles(
24 EulerAnglesZYZd planeAngles(0.78474, 0.5271, -0.513794);
26 MyArmyAngles planeAnglesInMyArmyAngles = MyArmyAngles::FromRotation<true, false, false>(planeAngles);
28 std::cout <<
"vehicle angles(MyArmy): " << vehicleAngles << std::endl;
29 std::cout <<
"plane angles(ZYZ): " << planeAngles << std::endl;
30 std::cout <<
"plane angles(MyArmy): " << planeAnglesInMyArmyAngles << std::endl;
33 std::cout <<
"==========================================================\n";
34 std::cout <<
"rotating plane now!\n";
35 std::cout <<
"==========================================================\n";
39 planeAngles = planeRotated;
40 planeAnglesInMyArmyAngles = MyArmyAngles::FromRotation<true, false, false>(planeRotated);
42 std::cout <<
"new plane angles(ZYZ): " << planeAngles << std::endl;
43 std::cout <<
"new plane angles(MyArmy): " << planeAnglesInMyArmyAngles << std::endl;
Represents a fixed Euler rotation system.
AngleAxis< double > AngleAxisd
Represents a rotation in a 3 dimensional space as three Euler angles.
The quaternion class used to represent 3D orientations and rotations.