TensorFlow 2.0 RC is available Learn more

tfg.geometry.transformation.euler.from_quaternion

Converts quaternions to Euler angles.

tfg.geometry.transformation.euler.from_quaternion(
    quaternions,
    name=None
)

Defined in geometry/transformation/euler.py.

Args:

  • quaternions: A tensor of shape [A1, ..., An, 4], where the last dimension represents a normalized quaternion.
  • name: A name for this op that defaults to "euler_from_quaternion".

Returns:

A tensor of shape [A1, ..., An, 3], where the last dimension represents the three Euler angles.