Public Member Functions | Public Attributes | Private Member Functions | List of all members
test_quaternion.QuaternionTest Class Reference
Inheritance diagram for test_quaternion.QuaternionTest:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, args, kwargs)
 
def test_constructor (self)
 
def test_conversion (self)
 
def test_mul (self)
 
def test_transform (self)
 
- Public Member Functions inherited from test_quaternion.QuaternionBaseTest
def __init__ (self, args, kwargs)
 
def test_constructor (self)
 
def test_conversion (self)
 
def test_div (self)
 
def test_inversed (self)
 
def test_mul (self)
 
def test_norm (self)
 
def test_transform (self)
 

Public Attributes

 quaternions
 
- Public Attributes inherited from test_quaternion.QuaternionBaseTest
 quaternions
 

Private Member Functions

def _all_quaternions (self)
 
def _helper_test_constructor (self, q, euler, dcm)
 

Detailed Description

Class to test Quaternion

Definition at line 204 of file test_quaternion.py.

Constructor & Destructor Documentation

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.

Member Function Documentation

def test_quaternion.QuaternionTest._all_quaternions (   self)
private
Generate quaternions from all euler angles

Definition at line 214 of file test_quaternion.py.

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)
Test the constructor functionality

Definition at line 218 of file test_quaternion.py.

def test_quaternion.QuaternionTest.test_conversion (   self)
Tests forward and backward conversions

Definition at line 301 of file test_quaternion.py.

def test_quaternion.QuaternionTest.test_mul (   self)
Test multiplication

Definition at line 329 of file test_quaternion.py.

def test_quaternion.QuaternionTest.test_transform (   self)
Test transform

Definition at line 318 of file test_quaternion.py.

Member Data Documentation

test_quaternion.QuaternionTest.quaternions

Definition at line 212 of file test_quaternion.py.


The documentation for this class was generated from the following file:


mavlink
Author(s): Lorenz Meier
autogenerated on Sun Jul 7 2019 03:22:08