pytransform3d.batch_rotations
.matrices_from_quaternions#
- pytransform3d.batch_rotations.matrices_from_quaternions(Q, normalize_quaternions=True, out=None)[source]#
Compute rotation matrices from quaternions.
- Parameters:
- Qarray-like, shape (…, 4)
Unit quaternions to represent rotations: (w, x, y, z)
- normalize_quaternionsbool, optional (default: True)
Normalize quaternions before conversion
- outarray, shape (…, 3, 3), optional (default: new array)
Output array to which we write the result
- Returns:
- Rsarray, shape (…, 3, 3)
Rotation matrices
Examples using pytransform3d.batch_rotations.matrices_from_quaternions
#
Compare Rotation Sampling Methods
Compare Rotation Sampling Methods