spatial-casadi
1.1.0
Spatial transformation library for CasADi Python.
|
A class for representing homogenous transformations. More...
Public Member Functions | |
def | __init__ (self, Rotation rotation, Translation translation) |
Initializer for the Transformation class. More... | |
def | inv (self) |
Invert this homogeneous transformation. More... | |
Translation | translation (self) |
Return the translation part of the homogeneous transformation. More... | |
Rotation | rotation (self) |
Return the rotation part of the homogeneous transformation. More... | |
ArrayType | as_matrix (self) |
Represent as homogenous transformation matrix. More... | |
def | __mul__ (self, other) |
Compose this transformation with the other. More... | |
def | flatten (self) |
Returns the homogenous transform as a vector representation [quat, t] where quat is a unit-quaternion for the rotation and t is the translation. More... | |
Static Public Member Functions | |
def | identity () |
Get the identity homogenous transform. More... | |
def | random () |
Generate uniformly distributed homogeneous transforms. More... | |
def | symbolic () |
Symbolic representation. More... | |
def | from_matrix (ArrayType T) |
Initialize from homogenous transformation matrix. More... | |
Private Attributes | |
_rotation | |
Rotation object. More... | |
_translation | |
Translation object. More... | |
A class for representing homogenous transformations.
def spatial_casadi.spatial.Transformation.__init__ | ( | self, | |
Rotation | rotation, | ||
Translation | translation | ||
) |
Initializer for the Transformation class.
rotation | The rotation part of the homogenous transformation. |
translation | The translation part of the homogenous transformation. |
def spatial_casadi.spatial.Transformation.__mul__ | ( | self, | |
other | |||
) |
Compose this transformation with the other.
other | Object containing the transformation to be composed with this one. Note that transformation compositions are not commutative, so p * q is different from q * p. |
ArrayType spatial_casadi.spatial.Transformation.as_matrix | ( | self | ) |
Represent as homogenous transformation matrix.
def spatial_casadi.spatial.Transformation.flatten | ( | self | ) |
Returns the homogenous transform as a vector representation [quat, t] where quat is a unit-quaternion for the rotation and t is the translation.
|
static |
Initialize from homogenous transformation matrix.
matrix | A 4-by-4 homogeneous transformation matrix. |
|
static |
Get the identity homogenous transform.
def spatial_casadi.spatial.Transformation.inv | ( | self | ) |
Invert this homogeneous transformation.
|
static |
Generate uniformly distributed homogeneous transforms.
Rotation spatial_casadi.spatial.Transformation.rotation | ( | self | ) |
Return the rotation part of the homogeneous transformation.
|
static |
Symbolic representation.
Translation spatial_casadi.spatial.Transformation.translation | ( | self | ) |
Return the translation part of the homogeneous transformation.
|
private |
Rotation object.
|
private |
Translation object.