pytransform3d.rotations
.random_compact_axis_angle¶
- pytransform3d.rotations.random_compact_axis_angle(rng=Generator(PCG64) at 0x7FA769435BA0)[source]¶
Generate random compact axis-angle.
The angle will be sampled uniformly from the interval and each component of the rotation axis will be sampled from and then the axis will be normalized to length 1.
- Parameters:
- rngnp.random.Generator, optional (default: random seed 0)
Random number generator
- Returns:
- aarray, shape (3,)
Axis of rotation and rotation angle: angle * (x, y, z)
Examples using pytransform3d.rotations.random_compact_axis_angle
¶
Compare Rotation Sampling Methods
Compare Rotation Sampling Methods
Quaternion Integration