A class for representing homogenous transformations.
More...
A class for representing homogenous transformations.
◆ __init__()
def spatial_casadi.spatial.Transformation.__init__ |
( |
|
self, |
|
|
Rotation |
rotation, |
|
|
Translation |
translation |
|
) |
| |
Initializer for the Transformation class.
@param rotation The rotation part of the homogenous transformation.
@param translation The translation part of the homogenous transformation.
@return An instance of the Transformation class.
◆ __mul__()
def spatial_casadi.spatial.Transformation.__mul__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Compose this transformation with the other.
@param 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.
@return The homgeonous transformation that is the product A * B.
◆ as_matrix()
def spatial_casadi.spatial.Transformation.as_matrix |
( |
|
self | ) |
|
Represent as homogenous transformation matrix.
@return A 4-by-4 homogenous transformation matrix.
◆ flatten()
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.
@return Vector representation for the homogeneous transform.
◆ from_matrix()
def spatial_casadi.spatial.Transformation.from_matrix |
( |
|
T | ) |
|
|
static |
Initialize from homogenous transformation matrix.
@param matrix A 4-by-4 homogeneous transformation matrix.
@return Object containing the homogeneous transformation represented by the matrix.
◆ identity()
def spatial_casadi.spatial.Transformation.identity |
( |
| ) |
|
|
static |
Get the identity homogenous transform.
◆ inv()
def spatial_casadi.spatial.Transformation.inv |
( |
|
self | ) |
|
Invert this homogeneous transformation.
◆ random()
def spatial_casadi.spatial.Transformation.random |
( |
| ) |
|
|
static |
Generate uniformly distributed homogeneous transforms.
@return Random homogeneous transform.
◆ rotation()
Rotation spatial_casadi.spatial.Transformation.rotation |
( |
|
self | ) |
|
Return the rotation part of the homogeneous transformation.
@return The rotation part of the homogeneous transformation.
◆ symbolic()
def spatial_casadi.spatial.Transformation.symbolic |
( |
| ) |
|
|
static |
Symbolic representation.
@return Symbolic homogenous transform.
◆ translation()
Translation spatial_casadi.spatial.Transformation.translation |
( |
|
self | ) |
|
Return the translation part of the homogeneous transformation.
@return The translation part of the homogeneous transformation.
◆ _rotation
spatial_casadi.spatial.Transformation._rotation |
|
private |
◆ _translation
spatial_casadi.spatial.Transformation._translation |
|
private |
The documentation for this class was generated from the following file: