Designed to contain orientation (quaternion) data of the positional tracking. More...
Functions | |
| def | init_orientation (self, Orientation orient) |
| Deep copy from another Orientation. More... | |
| def | init_vector (self, float v0, float v1, float v2, float v3) |
| Inits Orientation from float values. More... | |
| def | init_rotation (self, Rotation rotation) |
| Inits Orientation from Rotation . More... | |
| def | init_translation (self, Translation tr1, Translation tr2) |
| Inits Orientation from Translation. More... | |
| def | set_rotation_matrix (self, Rotation py_rotation) |
| Sets the orientation from a Rotation. More... | |
| def | get_rotation_matrix (self) |
| Returns the current orientation as a Rotation . More... | |
| def | set_identity (self) |
| Sets the current Orientation to identity. | |
| def | identity (self) |
| Creates an Orientation initialized to identity. More... | |
| def | set_zeros (self) |
| Fills the current Orientation with zeros. | |
| def | zeros (self, orient=Orientation()) |
| Creates an Orientation filled with zeros. More... | |
| def | normalize (self) |
| Normalizes the current Orientation . | |
| def | size (self) |
| The size of the orientation vector. More... | |
| def | get (self) |
| Returns a numpy array of the Orientation . More... | |
Static Functions | |
| def | normalize_orientation (Orientation orient) |
| Creates the normalized version of an existing Orientation . More... | |
Designed to contain orientation (quaternion) data of the positional tracking.
Orientation is a vector defined as [ox, oy, oz, ow].
| def init_orientation | ( | self, | |
| Orientation | orient | ||
| ) |
Deep copy from another Orientation.
| orient | : Orientation to be copied. |
| def init_vector | ( | self, | |
| float | v0, | ||
| float | v1, | ||
| float | v2, | ||
| float | v3 | ||
| ) |
Inits Orientation from float values.
| v0 | : ox value |
| v1 | : oy value |
| v2 | : oz value |
| v3 | : ow value |
| def init_rotation | ( | self, | |
| Rotation | rotation | ||
| ) |
Inits Orientation from Rotation .
It converts the Rotation representation to the Orientation one.
| rotation | : Rotation to be converted |
| def init_translation | ( | self, | |
| Translation | tr1, | ||
| Translation | tr2 | ||
| ) |
Inits Orientation from Translation.
| tr1 | : First Translation |
| tr2 | : Second Translation |
| def set_rotation_matrix | ( | self, | |
| Rotation | py_rotation | ||
| ) |
| def get_rotation_matrix | ( | self | ) |
Returns the current orientation as a Rotation .
| def identity | ( | self | ) |
Creates an Orientation initialized to identity.
| def zeros | ( | self, | |
orient = Orientation() |
|||
| ) |
Creates an Orientation filled with zeros.
|
static |
Creates the normalized version of an existing Orientation .
| orient | : the Orientation to be used. |
| def size | ( | self | ) |
The size of the orientation vector.
Referenced by Translation.get(), and Orientation.get().
| def get | ( | self | ) |
Returns a numpy array of the Orientation .