I am working optical flow computation from an event based camera and I also need the roll pitch and yaw angles.
From the ground truth I am able to correctly compute the velocities from the traslation on x,y,z, but the conversion from the quaternions to RPY angles seems nosense, especially on the roll angles.
I tried to convert the quaternions into Euler angles with this simple python function
I am working optical flow computation from an event based camera and I also need the roll pitch and yaw angles.
From the ground truth I am able to correctly compute the velocities from the traslation on x,y,z, but the conversion from the quaternions to RPY angles seems nosense, especially on the roll angles.
I tried to convert the quaternions into Euler angles with this simple python function
and also by trying every of the 6 conventions (xyz, zyx, zxy, yxz, xzy, yzx), but none seems to work.
How can I correctly compute the RPY angles? Any recommendations?
Thanks in advance