1 #include <unsupported/Eigen/EulerAngles> 18 MyArmyAngles vehicleAngles(
24 EulerAnglesZYZd planeAngles(0.78474, 0.5271, -0.513794);
26 MyArmyAngles planeAnglesInMyArmyAngles(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 = 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.
Namespace containing all symbols from the Eigen library.
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.