spatial-casadi
1.1.0
Spatial transformation library for CasADi Python.
|
Classes | |
class | Rotation |
class | Translation |
A class defining a translation vector. More... | |
class | Transformation |
A class for representing homogenous transformations. More... | |
Functions | |
bool | _iszero (Array a) |
CasadiArray | _cross3 (Array a, Array b) |
CasadiArray | _make_elementary_quat (str axis, Array angles) |
CasadiArray | _dot3 (Array a, Array b) |
CasadiArray | _norm3 (Array elems) |
CasadiArray | _normalize4 (Array elems) |
def | _argmax4 (a) |
CasadiArray | _quat_canonical_single (Array q) |
CasadiArray | _quat_canonical (Array q) |
def | _get_angles (angles, extrinsic, symmetric, sign, lamb, a, b, c, d) |
def | _compose_quat (p, q) |
def | _elementary_quat_compose (seq, angles, intrinsic) |
def | _single_matrix_to_quat (matrix) |
Variables | |
eps = np.finfo(float).eps | |
CasadiArray = cs.MX | cs.SX | cs.DM | |
NonSymbolicCasadiArray = cs.DM | |
Array = cs.MX | cs.SX | cs.DM | np.ndarray | |
NonSymbolicArray = cs.DM | np.ndarray | |
_ex = cs.DM([1.0, 0.0, 0.0]) | |
_ey = cs.DM([0.0, 1.0, 0.0]) | |
_ez = cs.DM([0.0, 0.0, 1.0]) | |
dictionary | _elementary_basis_vector = {"x": _ex, "y": _ey, "z": _ez} |
|
private |
Index for the element with maximum value.
|
private |
Compose two quaternions by performing quaternion multiplication. Args p (array-like): The first quaternion as an array-like object. q (array-like): The second quaternion as an array-like object. Returns casadi-array: The resulting quaternion from the multiplication of p and q.
|
private |
Cross product for vectors a and b of length 3.
|
private |
Dot-product with vectors of length 3.
|
private |
Compose a sequence of elementary quaternions into a single quaternion. Args seq (array-like): A sequence of axes ('x', 'y', 'z') around which to rotate. angles (array-like): A sequence of rotation angles in radians corresponding to each axis in `seq`. intrinsic (bool): If `True`, applies intrinsic rotations; otherwise, applies extrinsic rotations. Returns casadi-array: The resulting quaternion from composing the sequence of elementary quaternions.
|
private |
|
private |
True when a is numerically zero, False otherwise.
|
private |
Create an elementary quaternion representing a rotation around a specified axis. Args axis (str): The axis to rotate around. Must be 'x', 'y', or 'z'. angles (array-like): The rotation angle(s) in radians. Returns casadi-array: A quaternion representing the rotation.
|
private |
Euclidean norm for a vector of length 3.
|
private |
Normalize vector of length 4.
|
private |
|
private |
Reduce the quaternion double coverage of the rotation group to a unique canonical 'positive' single cover.
|
private |
|
private |
|
private |
|
private |
|
private |
spatial_casadi.spatial.Array = cs.MX | cs.SX | cs.DM | np.ndarray |
spatial_casadi.spatial.CasadiArray = cs.MX | cs.SX | cs.DM |
spatial_casadi.spatial.eps = np.finfo(float).eps |
spatial_casadi.spatial.NonSymbolicArray = cs.DM | np.ndarray |
spatial_casadi.spatial.NonSymbolicCasadiArray = cs.DM |