WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-14-2011, 11:19 AM
Kaminski Kaminski is offline
Member
 
Join Date: Nov 2010
Posts: 36
preEuler help?

Hey all,

preEuler doesn't seem to work how I understand it to. I want to wear the HMD at a certain orientation, measure the Euler, and then apply the opposite of the Euler values as a preEuler. Would that not then make the orientation [0,0,0]?

the code that I am using is like this:

Code:
isense = viz.add('intersense.dle')
tr = isense.addTracker()
main = viz.link(tr,viz.MainView)

def mainLoop():
    viztask.waitKeyDown(' ')
    ori = main.getEuler()
    main.preEuler([-1*ori[0],-1*ori[1],-1*ori[2]],2,viz.LINK_ORI_OP)
    print main.getEuler()
When I run this, however, the printed orientations will vary from 0 to 3 degrees. I don't believe it is drift from the intersense because if I run the program multiple times with the HMD stationary I always get the same output.

Am I doing this right?
Reply With Quote
  #2  
Old 06-14-2011, 12:43 PM
Kaminski Kaminski is offline
Member
 
Join Date: Nov 2010
Posts: 36
So it seems to work if I run the preEuler a few times in a loop, each time taking the new getEuler values and inputting the opposite of those into preEuler. I still don't completely understand why it would need this.
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


All times are GMT -7. The time now is 02:44 AM.


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