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

Class for rotation matrices. More...

Inheritance diagram for amino.tf.RotMat:
amino.mixin.MatMixin

Public Member Functions

def __init__ (self, arg=None)
 Construct a RotMat object. More...
 
def conv_from (self, src)
 Converts src to a rotation matrix.
 
def set_identity (self)
 Set to identity.
 
def rotate (self, p)
 Rotate a point.
 
def __mul__ (self, other)
 Chains two matrices.
 
def to_quat (self, h)
 Converts to a quaternion and store in h.
 
def to_rotmat (self, r)
 Converts (copy) to a rotation matrix and store in.
 
def to_axang (self, a)
 Converts to an axis-angle and store in a.
 
def ln (self)
 Returns the natural logarithm.
 
def __invert__ (self)
 Returns the inverse.
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, item)
 
def rows (self)
 Number of rows.
 
def cols (self)
 Number of columns.
 
def __repr__ (self)
 
def isclose (self, other, tol=1e-9)
 Returns True if self is within tol rotation angle to other.
 

Static Public Member Functions

def ensure (thing)
 Ensures thing is a RotMat. More...
 
def row_matrix (args)
 Constructs rotation matrix from rows in args.
 
def col_matrix (args)
 Constructs rotation matrix from columns in args.
 

Detailed Description

Class for rotation matrices.

Definition at line 694 of file tf.py.

Constructor & Destructor Documentation

◆ __init__()

def amino.tf.RotMat.__init__ (   self,
  arg = None 
)

Construct a RotMat object.

   * If arg is None, the object is unitialized.
   * If arg is 1, the object is the identity rotation matrix.
   * Else arg is converted to a rotation matrix.

Definition at line 706 of file tf.py.

Member Function Documentation

◆ ensure()

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

Ensures thing is a RotMat.

If it's not, convert it.

Definition at line 733 of file tf.py.


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