pytransform3d.rotations
.random_quaternion#
- pytransform3d.rotations.random_quaternion(rng=Generator(PCG64) at 0x78F0D2D7C580)[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)