WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-20-2010, 09:38 AM
aghena aghena is offline
Member
 
Join Date: Jul 2010
Posts: 7
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
Reply With Quote
  #2  
Old 07-20-2010, 06:56 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
Reply With Quote
  #3  
Old 07-21-2010, 10:24 AM
aghena aghena is offline
Member
 
Join Date: Jul 2010
Posts: 7
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
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: Failed to initialize python kay Vizard 1 10-07-2009 12:51 PM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 12:13 PM
Python update? Brett Lindberg Vizard 1 02-26-2009 01:07 PM
python 2.4 instead of 2.3? perselletje Vizard 7 03-14-2006 12:06 PM
Extending Python With C++ Vygreif Vizard 2 01-18-2006 10:21 AM


All times are GMT -7. The time now is 08:42 PM.


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