upkie 9.0.0
Open-source wheeled biped robots
Loading...
Searching...
No Matches

◆ quaternion_from_rotation_matrix()

np.ndarray quaternion_from_rotation_matrix ( np.ndarray  rotation_matrix)

Convert a rotation matrix to a unit quaternion for the same rotation.

Parameters
rotation_matrixRotation matrix to convert.
Returns
Unit quaternion in [w, x, y, z] format.