Posted Tue, 17 Aug 2021 08:00:43 GMT by zheng dajiang
How to calculate the global yaw, pitch, roll of the 360 image according to the pano-poses.csv?Quaternion convert to Euler using "X-Y-Z" order or "Z-Y-X" ?
# pano poses v1.0: ID;  filename;  timestamp;  pano_pos_x;  pano_pos_y;  pano_pos_z;  pano_ori_w;  pano_ori_x;  pano_ori_y;  pano_ori_z
0;  00000-pano.jpg; 1618382847; 447865.995; 4422511.246; 40.198; 0.998054; -0.001177; -0.061687; 0.009056
1;  00001-pano.jpg; 1618382852; 447864.984; 4422511.823; 40.179; 0.989703; -0.007427; -0.058321; 0.130505
2;  00002-pano.jpg; 1618382884; 447862.586; 4422510.496; 40.016; 0.72261; 0.025959; -0.072374; 0.686966
Posted Fri, 27 Aug 2021 14:12:05 GMT by Srdjan Milojevic
Hi Zheng,
Thank you for your message and sorry for the late reply. For quick conversions you can use an online converter like https://www.andre-gaschler.com/rotationconverter/ 

If you are interested in the mathematics of the conversion or how you can implement a code to automate the process, Wikipedia has a really nice article: https://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles

Again, for automating it there are already very fast and efficient built-in libraries that you can use (Python, C++, etc.).

Best,
Srdjan

You must be signed in to post in this forum.

Feedback