pytransform3d.rotations
.random_quaternion#
- pytransform3d.rotations.random_quaternion(rng=Generator(PCG64) at 0x7E3407968BA0)[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
Transformation Manager
Compare Rotation Sampling Methods
Compare Rotation Sampling Methods