Cheetah Software
1.0
|
Test orientation functions. More...
Go to the source code of this file.
Functions | |
TEST (Orientation, rad2deg) | |
TEST (Orientation, almostEqual) | |
TEST (Orientation, coordinateRotation) | |
TEST (Orientation, skew) | |
TEST (Orientation, quatToRotm) | |
TEST (Orientation, quatToRpy) | |
TEST (Orientation, quatToRpy2) | |
TEST (Orientation, quatToRpy3) | |
TEST (Orienation, quaternionDerivative) | |
TEST (Orientation, quaternionProduct) | |
TEST (Orientation, quaternionProductDirection) | |
TEST (Orientation, quaternionIntegration) | |
TEST (Orientation, rpyToRotMat) | |
TEST (Orientation, allOrientationConversions) | |
Test orientation functions.
Test the orientation related functions in orientation_tools.h Does not check any spatial stuff
Definition in file test_orientation_tools.cpp.
TEST | ( | Orientation | , |
rad2deg | |||
) |
Check radians to degrees
Definition at line 17 of file test_orientation_tools.cpp.
References ori::deg2rad(), and ori::rad2deg().
TEST | ( | Orientation | , |
almostEqual | |||
) |
Check the "almostEqual" function for comparing two eigen quantities
Definition at line 25 of file test_orientation_tools.cpp.
References almostEqual().
TEST | ( | Orientation | , |
coordinateRotation | |||
) |
Check the coordinateRotation algorithm which generates rotaiton matrices for axis rotations
Definition at line 54 of file test_orientation_tools.cpp.
References ori::coordinateRotation(), ori::X, ori::Y, and ori::Z.
TEST | ( | Orientation | , |
skew | |||
) |
Check the skew functions, which go between vectors and skew-symmetric matrices
Definition at line 71 of file test_orientation_tools.cpp.
References ori::matToSkewVec(), and ori::vectorToSkewMat().
TEST | ( | Orientation | , |
quatToRotm | |||
) |
Check the quaternion to rotation matrix and rotation matrix to quaternion functions
Definition at line 89 of file test_orientation_tools.cpp.
References almostEqual(), ori::quaternionToRotationMatrix(), and ori::rotationMatrixToQuaternion().
TEST | ( | Orientation | , |
quatToRpy | |||
) |
Test the quaternion to roll-pitch-yaw conversion
Definition at line 103 of file test_orientation_tools.cpp.
References almostEqual(), and ori::quatToRPY().
TEST | ( | Orientation | , |
quatToRpy2 | |||
) |
Test the quaternion to roll-pitch-yaw conversion direction
Definition at line 113 of file test_orientation_tools.cpp.
References almostEqual(), ori::coordinateRotation(), ori::quatToRPY(), ori::rotationMatrixToQuaternion(), and ori::Y.
TEST | ( | Orientation | , |
quatToRpy3 | |||
) |
Check that rpy is in roll-pitch-yaw order
Definition at line 125 of file test_orientation_tools.cpp.
References almostEqual(), ori::coordinateRotation(), ori::quatToRPY(), ori::rotationMatrixToQuaternion(), and ori::Z.
TEST | ( | Orienation | , |
quaternionDerivative | |||
) |
Check the quaternion derivative function. This isn't used and probably should be removed
Definition at line 138 of file test_orientation_tools.cpp.
References almostEqual(), and ori::quatDerivative().
TEST | ( | Orientation | , |
quaternionProduct | |||
) |
Check the quaternion product
Definition at line 148 of file test_orientation_tools.cpp.
References almostEqual(), and ori::quatProduct().
TEST | ( | Orientation | , |
quaternionProductDirection | |||
) |
Definition at line 155 of file test_orientation_tools.cpp.
References almostEqual(), ori::coordinateRotation(), ori::quaternionToRotationMatrix(), ori::quatProduct(), ori::rotationMatrixToQuaternion(), ori::X, ori::Y, and ori::Z.
TEST | ( | Orientation | , |
quaternionIntegration | |||
) |
Check that the quaternion integration goes in the correct direction
Definition at line 178 of file test_orientation_tools.cpp.
References almostEqual(), ori::coordinateRotation(), ori::integrateQuat(), ori::quaternionToRotationMatrix(), ori::rotationMatrixToQuaternion(), ori::X, ori::Y, and ori::Z.
TEST | ( | Orientation | , |
rpyToRotMat | |||
) |
Check rpy to rotation matrix
Definition at line 206 of file test_orientation_tools.cpp.
References almostEqual(), ori::deg2rad(), ori::quatToRPY(), ori::rotationMatrixToQuaternion(), and ori::rpyToRotMat().
TEST | ( | Orientation | , |
allOrientationConversions | |||
) |
Check all 6 possible conversions between rotation matrix, quaternion, and rpy
Definition at line 219 of file test_orientation_tools.cpp.
References almostEqual(), ori::deg2rad(), ori::quaternionToRotationMatrix(), ori::quatToRPY(), ori::rotationMatrixToQuaternion(), ori::rotationMatrixToRPY(), ori::rpyToQuat(), and ori::rpyToRotMat().