concepts.simulator.pybullet.rotation_utils.get_quaternion_from_matrix#

get_quaternion_from_matrix(mat)[source]#

Convert a rotation matrix to a quaternion.

The quaternion is represented as a 4-element array in the order of (x, y, z, w), which follows the convention of pybullet.