pytransform3d.rotations.random_compact_axis_angle

pytransform3d.rotations.random_compact_axis_angle(random_state=RandomState(MT19937) at 0x7FE0FA06A940)[source]

Generate random compact axis-angle.

The angle will be sampled uniformly from the interval [0, \pi) and each component of the rotation axis will be sampled from \mathcal{N}(\mu=0, \sigma=1) and than the axis will be normalized to length 1.

Parameters
random_statenp.random.RandomState, 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