math¶
Rotations and rigid transforms that run on numpy arrays and CasADi symbols alike.
Write a model’s frame with these and it works on numbers, to look at it, and on symbols, to
differentiate it. A rotation vector is the axis times the angle [rad]; a twist is (ω, v).
Module Attributes
|
Added under the square root of a squared angle, so that every function is smooth at zero. |
|
Angles below this [rad] use a series where the exact form loses its digits. |
Functions
|
The 6 by 6 matrix that carries a twist |
|
The transform of the twist |
|
The rotation matrix of the rotation vector |
|
The inverse of a 4 by 4 rigid transform. |
|
The twist |
|
The rotation vector of |
|
The rotation matrix of the unit quaternion |
|
Rotation by |
|
Rotation by |
|
Rotation by |
|
Rotation by |
|
The matrix [w]× with [w]× x = w × x. |
|
The 4 by 4 matrix of the rotation |
|
The vector w of a skew-symmetric matrix [w]×. |