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