[ODE] How to compute local yaw, pitch and roll

Daniel K. O. danielko.listas at gmail.com
Fri Dec 22 21:20:09 MST 2006

2006/12/22, ouille <ouille at free.fr>:
> i need to have local yaw, pitch and roll of an object (the drone).
> Can i extract thoses informations from a quaternion ?

Google for "quaternion to euler angles".

> Did i have to be scared about gimbal lock ?

If you are manipulating the object through those angles, yes. I
believe aircrafts should be manipulated through forces applied in
special places, not by setting angles.

Also, related to the "quaternion to euler angles" conversion, make
sure to read the discussions about the special cases.

Daniel K. O.

More information about the ODE mailing list