amino  1.0-beta2
Lightweight Robot Utility Library
amino.tf.QuatTrans Class Reference

Class for Quaternion-Translation. More...

Inheritance diagram for amino.tf.QuatTrans:
amino.mixin.CopyEltsMixin

Public Member Functions

def __init__ (self, arg=None)
 
def set_identity (self)
 Set to identity.
 
def conv_from (self, src)
 Converts src to quaternion-translation.
 
def __mul__ (self, other)
 Chains two Dual Quaternions.
 
def conj (self)
 Returns the conjugate.
 
def __invert__ (self)
 Returns the inverse (same as conjugate)
 
def transform (self, p)
 Chains two Quaternion-translations.
 
def __repr__ (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, item)
 
def rotation (self)
 Rotation part.
 
def rotation (self, value)
 
def translation (self)
 Translation.
 
def translation (self, value)
 
def __len__ (self)
 
- Public Member Functions inherited from amino.mixin.CopyEltsMixin
def copy_from (self, src)
 Copy elements from src to self.
 
def copy_to (self, dst)
 Copy elements from self to dst.
 

Static Public Member Functions

def identity ()
 Returns the identity QuatTrans.
 
def ensure (thing)
 Ensures thing is a QuatTrans. More...
 

Detailed Description

Class for Quaternion-Translation.

Definition at line 1092 of file tf.py.

Member Function Documentation

◆ ensure()

def amino.tf.QuatTrans.ensure (   thing)
static

Ensures thing is a QuatTrans.

If it's not, convert it.

Definition at line 1127 of file tf.py.


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