Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0301· OpenAIAi2 WildChat-4.8M (AI2)

Find the matrices used for mapping from body angular velocity vector to euler angle…

  1. User

    Find the matrices used for mapping from body angular velocity vector to euler angle rates and their singularities for each of 12 euler rotations.

  2. Assistant

    Mapping from body angular velocity vector to euler angle rates involves taking the partial derivative of euler angles with respect to angular velocity vector. The resulting matrices and their singularities for each of the 12 euler rotations are:

    1. XYZ rotation (roll, pitch, yaw):
    • Mapping matrix: [ 1, 0, -sin(pitch)] [ 0, cos(roll), cos(pitch)*sin(roll)] [ 0, -sin(roll), cos(pitch)*cos(roll)]
    • Singularities: Gimbal lock at pitch = +/- 90 degrees
    1. XZY rotation:
    • Mapping matrix: [ 1, -sin(yaw)*sin(pitch), cos(yaw)*sin(pitch)] [ 0, cos(roll)*cos(yaw) + sin(roll)*sin(yaw)*cos(pitch), -cos(yaw)*sin(roll) + cos(roll)*sin(yaw)*cos(pitch)] [ 0, sin(roll)*cos(yaw) - cos(roll)*sin(yaw)*cos(pitch), cos(roll)*cos(yaw)*cos(pitch) + sin(roll)*sin(yaw)]
    • Singularities: None
    1. YXZ rotation:
    • Mapping matrix: [ cos(pitch)*cos(yaw), -cos(pitch)*sin(yaw), sin(pitch)] [ sin(roll)*sin(pitch)*cos(yaw) + cos(roll)*sin(yaw), -sin(roll)*sin(pitch)*sin(yaw) + cos(roll)*cos(yaw), -sin(roll)*cos(pitch)] [-cos(roll)*sin(pitch)*cos(yaw) + sin(roll)*sin(yaw), cos(roll)*sin(pitch)*sin(yaw) + sin(roll)*cos(yaw), cos(roll)*cos(pitch)]
    • Singularities: Gimbal lock at pitch = +/- 90 degrees
    1. YZX rotation:
    • Mapping matrix: [ cos(pitch)*cos(yaw), -sin(yaw), cos(yaw)*sin(pitch)] [ sin(roll)*sin(yaw) + cos(roll)*cos(yaw)*sin(pitch), cos(roll)*cos(yaw) - sin(roll)*sin(yaw)*sin(pitch), -cos(yaw)*cos(pitch)*sin(roll)] [-cos(roll)*sin(yaw) + cos(yaw)*sin(roll)*sin(pitch), cos(yaw)*cos(roll)*sin(pitch) + sin(yaw)*sin(roll), cos(roll)*cos(yaw)*cos(pitch)]
    • Singularities: None
    1. ZXY rotation:
    • Mapping matrix: [ cos(pitch)*cos(yaw), sin(roll)*sin(pitch) - cos(roll)*cos(pitch)*sin(yaw), cos(roll)*sin(pitch) + cos(pitch)*sin(roll)*sin(yaw)] [ cos(yaw)*sin(pitch), cos(roll)*cos(yaw) + sin(roll)*sin(yaw)*cos(pitch), sin(roll)*cos(yaw)*cos(pitch) - cos(roll)*sin(yaw)] [-sin(yaw), cos(yaw)*sin(roll)*cos(pitch) - cos(roll)*sin(pitch), cos(roll)*cos(pitch) + sin(roll)*sin(yaw)*sin(pitch)]
    • Singularities: None
    1. ZYX rotation:
    • Mapping matrix: [cos(pitch)*cos(yaw), -cos(yaw)*sin(pitch), sin(yaw)] [cos(pitch)*sin(yaw), cos(yaw)*cos(roll) + sin(pitch)*sin(roll)*sin(yaw), -cos(yaw)*sin(roll) + cos(roll)*sin(pitch)*sin(yaw)] [-sin(pitch), cos(pitch)*sin(roll), cos(pitch)*cos(roll)]
    • Singularities: Gimbal lock at pitch = +/- 90 degrees
    1. XYX rotation:
    • Mapping matrix: [ 1, 0, 0] [ 0, cos(roll)*cos(pitch)*cos(roll) - sin(roll)*sin(roll), cos(pitch)*cos(roll)*sin(roll)] [ 0, -cos(pitch)*sin(roll), cos(roll)*cos(roll) + cos(pitch)*sin(roll)*sin(roll)]
    • Singularities: Gimbal lock at roll = +/- 90 degrees
    1. XZX rotation:
    • Mapping matrix: [ 1, 0, 0] [ 0, cos(roll)*cos(pitch)*cos(roll) + sin(roll)*sin(roll), -cos(pitch)*cos(roll)*sin(roll)] [ 0, cos(pitch)*sin(roll), cos(roll)*cos(roll) - cos(pitch)*sin(roll)*sin(roll)]
    • Singularities: Gimbal lock at roll = +/- 90 degrees
    1. YXY rotation:
    • Mapping matrix: [ cos(pitch)*cos(roll)*cos(pitch) - sin(pitch)*sin(pitch), cos(roll)*sin(pitch), cos(pitch)*sin(roll)*cos(pitch) + sin(pitch)*sin(roll)] [ sin(roll)*sin(pitch), cos(roll), -cos(pitch)*sin(roll)] [-sin(pitch)*cos(roll)*cos(pitch) - cos(pitch)*sin(roll)*sin(pitch), sin(roll)*cos(pitch), cos(pitch)*cos(roll)*cos(pitch) - sin(pitch)*sin(roll)]
    • Singularities: Gimbal lock at pitch = +/- 90 degrees
    1. YZY rotation:
    • Mapping matrix: [ cos(pitch)*cos(roll)*cos(pitch) + sin(pitch)*sin(pitch), cos(yaw)*sin(pitch), -cos(pitch)*sin(roll)*cos(pitch) + sin(pitch)*cos(roll)] [-cos(yaw)*sin(pitch), cos(roll), sin(roll)*sin(yaw)] [cos(pitch)*sin(roll)*cos(pitch) - sin(pitch)*cos(roll)*sin(pitch), sin(yaw)*sin(roll), cos(pitch)*cos(roll)*cos(pitch) + sin(pitch)*sin(roll)*sin(pitch)]
    • Singularities: Gimbal lock at pitch = +/- 90 degrees
    1. ZXZ rotation:
    • Mapping matrix: [ cos(pitch)*cos(yaw)*cos(pitch) - sin(yaw)*sin(pitch), -cos(pitch)*sin(yaw), cos(yaw)*cos(pitch)*sin(pitch) + cos(pitch)*sin(yaw)*sin(pitch)] [ cos(yaw)*sin(pitch), cos(yaw)*cos(pitch)*cos(roll) - sin(roll)*sin(yaw), -cos(yaw)*cos(roll)*sin(pitch) - cos(pitch)*sin(yaw)*sin(roll)] [sin(yaw)*sin(pitch), cos(yaw)*sin(roll) + cos(pitch)*cos(roll)*sin(yaw), cos(pitch)*cos(yaw) - cos(roll)*sin(pitch)*sin(yaw)]
    • Singularities: Gimbal lock at pitch = +/- 90 degrees
    1. ZYZ rotation:
    • Mapping matrix: [ cos(yaw)*cos(pitch)*cos(yaw) - sin(pitch)*sin(yaw), -cos(pitch)*sin(yaw), cos(yaw)*sin(pitch)*cos(yaw) + cos(pitch)*cos(yaw)*sin(yaw)] [sin(yaw)*sin(pitch), cos(roll)*cos(yaw) - sin(roll)*sin(pitch)*sin(yaw), -sin(roll)*cos(yaw) - cos(roll)*cos(pitch)*sin(yaw)] [cos(pitch)*sin(yaw)*cos(yaw) + cos(yaw)*sin(pitch)*sin(yaw), cos(yaw)*sin(roll) + cos(roll)*sin(pitch)*sin(yaw), cos(roll)*cos(pitch) - sin(pitch)*sin(roll)*sin(yaw)]
    • Singularities: Gimbal lock at pitch = +/- 90 degrees

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.