pytransform3d.rotations.random_quaternion

pytransform3d.rotations.random_quaternion(random_state=RandomState(MT19937) at 0x7FF69207A840)[source]

Generate random quaternion.

Parameters
random_statenp.random.RandomState, optional (default: random seed 0)

Random number generator

Returns
qarray, shape (4,)

Unit quaternion to represent rotation: (w, x, y, z)

Examples using pytransform3d.rotations.random_quaternion