GimbalLock
Gimbal lock is a phenomenon in orientation representation that occurs when a system using a triple-gimbal mechanism loses one degree of freedom, typically because two of the gimbals become aligned. This loss happens most often when using Euler angles to describe attitude, such as a yaw-pitch-roll sequence (z-y-x). When the pitch angle approaches ±90 degrees, the yaw and roll axes align and rotate about the same axis, making it impossible to distinguish or independently control those two components.
In practical terms, gimbal lock means the attitude cannot be uniquely determined from the three angles, and
The term originates from mechanical gimbals used to stabilize devices like compasses and cameras. The lock
Mitigation approaches include using alternative orientation representations that do not suffer from the same singularities, such