pytransform3d.rotations.random_quaternion#

pytransform3d.rotations.random_quaternion(rng=Generator(PCG64) at 0x7F2FD9687200)[source]#

Generate random quaternion.

Parameters:
rngnp.random.Generator, 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#

Quaternion Integration

Quaternion Integration

Transformation Manager

Transformation Manager

Compare Rotation Sampling Methods

Compare Rotation Sampling Methods