PDA

View Full Version : Quat to matrix in Python 2.4


aghena
07-20-2010, 08:38 AM
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: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