WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Quat to matrix in Python 2.4 (https://forum.worldviz.com/showthread.php?t=2840)

aghena 07-20-2010 08:38 AM

Quat to matrix in Python 2.4
 
Hi,
does someone know functions or commands to transform Quaternions to Rotation matrixes?? I downloaded Numpy but i can't... I searched online but i have found only Python 2.6 scripts (while I have the 2.4 version).

thank you

farshizzo 07-20-2010 05:56 PM

Vizard comes included with this functionality. The following code shows how to construct a 4x4 transform matrix from an [x,y,z,w] quaternion:
Code:

m = viz.Matrix.quat(x,y,z,w)

aghena 07-21-2010 09:24 AM

Thank you very much but unlucky I have another problem...
I'm using xsens MTXs which have a right handed reference system and I need to do a reset which probably will contain a matrix (or quaternion) transformation but I can't find the right command. Can you help me??

Thanks


All times are GMT -7. The time now is 06:44 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC