Class to test QuaternionBase
Definition at line 20 of file test_quaternion.py.
def test_quaternion.QuaternionBaseTest.__init__ |
( |
|
self, |
|
|
|
args, |
|
|
|
kwargs |
|
) |
| |
Constructor, set up some data that is reused in many tests
Definition at line 26 of file test_quaternion.py.
def test_quaternion.QuaternionBaseTest._all_angles |
( |
|
self, |
|
|
|
step = np.radians(45) |
|
) |
| |
|
private |
Creates a list of all euler angles
:param step: stepsixe in radians
:returns: euler angles [[phi, thea, psi], [phi, theta, psi], ...]
Definition at line 130 of file test_quaternion.py.
def test_quaternion.QuaternionBaseTest._all_quaternions |
( |
|
self | ) |
|
|
private |
def test_quaternion.QuaternionBaseTest._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: [roll, pitch, yaw], needs to be equivalent to q
:param q: dcm 3x3, needs to be equivalent to q
Definition at line 63 of file test_quaternion.py.
def test_quaternion.QuaternionBaseTest.test_constructor |
( |
|
self | ) |
|
def test_quaternion.QuaternionBaseTest.test_conversion |
( |
|
self | ) |
|
def test_quaternion.QuaternionBaseTest.test_div |
( |
|
self | ) |
|
def test_quaternion.QuaternionBaseTest.test_inversed |
( |
|
self | ) |
|
def test_quaternion.QuaternionBaseTest.test_mul |
( |
|
self | ) |
|
def test_quaternion.QuaternionBaseTest.test_norm |
( |
|
self | ) |
|
def test_quaternion.QuaternionBaseTest.test_transform |
( |
|
self | ) |
|
test_quaternion.QuaternionBaseTest.quaternions |
The documentation for this class was generated from the following file: