DCM.log
DCM.log : Logarithm of DCM.
code
The logarithmic map is defined as the inverse of the exponential map
[[CSL09](/u/fab8b0a9fec670cf#id6)]. It corresponds to the logarithm given by the Rodrigues
rotation formula:
with .
The angle of rotation , satisfies
.
When , we have the trivial case :
Returns:
: **log** – Logarithm of DCM
Return type:
: numpy.ndarray
Examples
```defaultR = DCM(rpy=[10.0, -20.0, 30.0] * ahrs.DEG2RAD) R.view() DCM([[ 0.92541658, -0.31879578, -0.20487413], [ 0.16317591, 0.82317294, -0.54383814], [ 0.34202014, 0.46984631, 0.81379768]])
R.log array([[ 0. , 0.26026043, 0.29531805], [-0.26026043, 0. , 0.5473806 ], [-0.29531805, -0.5473806 , 0. ]]) ```