WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-25-2004, 11:42 AM
jaytee jaytee is offline
Member
 
Join Date: Oct 2003
Posts: 7
VIEW_EULER coords

In an experiment I am working on, we have objects arranged in a circle around the subject. Part of the experiment requires that the subject face certain objects while wearing the HMD but with the display turned off. We then log the VIEW_EULER coordinates to a file and later need to determine how close the subject was from looking straight at the object (the yaw is the important angle in this case)

The problem I am running into, is that the yaw angles recorded seem to wrap around, or get counted from different axes, depending on where I am. I am only looking at the yaw. Test data shows the angles of the objects starting from straight ahead and going around clockwise:

Object 1: 2 degrees
Object 2: 48
Object 3: 85
Object 4: 40 (180-40 = 140)
Object 5: 6 (180-6 = 174)
Object 6: -30 (180+30 = 210)
Object 7: -76 (180 + 76 = 256)
Object 8: -44 (360 - 44 = 316)

I hope I am making sense... I have attached the log file, which logged multiple measurements of each object.
Attached Files
File Type: txt log.ref.2-16.txt (4.7 KB, 1184 views)
Reply With Quote
  #2  
Old 02-25-2004, 12:04 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

I've never experienced this problem before. Which version of Vizard are you running? Have you tried just retrieving VIEW_YAW:
Code:
yaw = viz.get(viz.VIEW_YAW)
Alternatively, you could manually calculate the yaw based on the look vector:
Code:
import math
look = viz.get(viz.VIEW_LOOK)
euler = math.atan2(look[0],look[2]) * (180.0/math.pi)
Hope this helps.
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 05:51 AM.


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