Talk:Conversion between quaternions and Euler angles: Difference between revisions

Content deleted Content added
SineBot (talk | contribs)
Line 131:
 
:: @[[User:Ebernardes|Ebernardes]], thank you for all of the responses and links! This is helpful. For anyone wishing to have some Python code to use and test, here is my [https://github.com/ElectricRCAircraftGuy/eRCaGuy_hello_world/blob/master/python/quaternions_to_euler_angles.py quaternions_to_euler_angles.py] Python program from my [https://github.com/ElectricRCAircraftGuy/eRCaGuy_hello_world eRCaGuy_hello_world] repo. I test both techniques. See functions <code>quaternion2euler()</code> and <code>quaternion2euler2()</code>. I run unit tests on them both too. <!-- Template:Unsigned --><small class="autosigned">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:ERCaGuy|ERCaGuy]] ([[User talk:ERCaGuy#top|talk]] • [[Special:Contributions/ERCaGuy|contribs]]) 16:24, 19 October 2023 (UTC)</small> <!--Autosigned by SineBot-->
:::@[[User:ERCaGuy|ERCaGuy]] I'm glad I could help! If you're interested, you can find my implementation of the general method [https://github.com/evbernardes/quaternion_to_euler in my repo].
:::Moreover, in the SciPy implementation there are also two implemented conversion methods: an older one from matrix to angles, and the one I published from quaternions directly to angles. The former is not used anymore, except for the unit tests: we wanted to make absolutely sure that the new conversions gave the same answers. [[User:Ebernardes|Ebernardes]] ([[User talk:Ebernardes|talk]]) 07:40, 20 October 2023 (UTC)