pytransform3d.rotations.euler_near_gimbal_lock#

pytransform3d.rotations.euler_near_gimbal_lock(e, i, j, k, tolerance=1e-06)[source]#

Check if Euler angles are close to gimbal lock.

Parameters:
earray-like, shape (3,)

Rotation angles in radians about the axes i, j, k in this order.

iint from [0, 1, 2]

The first rotation axis (0: x, 1: y, 2: z)

jint from [0, 1, 2]

The second rotation axis (0: x, 1: y, 2: z)

kint from [0, 1, 2]

The third rotation axis (0: x, 1: y, 2: z)

tolerancefloat

Tolerance for the comparison.

Returns:
near_gimbal_lockbool

Indicates if the Euler angles are near the gimbal lock singularity.