Class to test Quaternion
Definition at line 204 of file test_quaternion.py.
def test_quaternion.QuaternionTest.__init__ |
( |
|
self, |
|
|
|
args, |
|
|
|
kwargs |
|
) |
| |
Constructor, set up some data that is reused in many tests
Definition at line 209 of file test_quaternion.py.
def test_quaternion.QuaternionTest._all_quaternions |
( |
|
self | ) |
|
|
private |
def test_quaternion.QuaternionTest._helper_test_constructor |
( |
|
self, |
|
|
|
q, |
|
|
|
euler, |
|
|
|
dcm |
|
) |
| |
|
private |
Helper function for constructor test
Calls constructor for the quaternion from q euler and dcm and checks
if the resulting converions are equivalent to the arguments.
The test for the euler angles is weak as the solution is not unique
:param q: quaternion 4x1, [w, x, y, z]
:param euler: Vector3(roll, pitch, yaw), needs to be equivalent to q
:param q: Matrix3, needs to be equivalent to q
Definition at line 237 of file test_quaternion.py.
def test_quaternion.QuaternionTest.test_constructor |
( |
|
self | ) |
|
def test_quaternion.QuaternionTest.test_conversion |
( |
|
self | ) |
|
def test_quaternion.QuaternionTest.test_mul |
( |
|
self | ) |
|
def test_quaternion.QuaternionTest.test_transform |
( |
|
self | ) |
|
test_quaternion.QuaternionTest.quaternions |
The documentation for this class was generated from the following file: