#1
|
|||
|
|||
Intersense Eyeheight
Hi,
I am using an Intersense tracker and I can't seem to get the eye height correct. I want the current height of the view to be the same as the physical height of the HMD helmet I am tracking with the Intersense tracker. When I was reading through the documentation, it sounded like I needed to use viz.eyeheight(0.0) so that it would add 0 to the height the tracker was returning. Unfortunately, instead of making the eye height match the height of the HMD, it sets the height of the HMD to be 0.0. Here is the code that I am using to set this up: Code:
if viz.get(viz.TRACKER): v = viz.add('intersense.dls') viz.mouse.setVisible(viz.OFF) #Hide mouse viz.tracker() # Link sensor to view point and don't use eyeheight view = viz.MainView headLink = viz.link( v, view , dstFlag = viz.LINK_POS_RAW) headLink.preTrans([0, -0.0375, 0.20]) # Offset eyepoint from tracking point #on helmet by 20cm forward and 3.75 cm down viz.eyeheight(0.0) print 'eyeheight: ' print headLink.getPosition() print v.getPosition() # This doesn't give us the correct eye height tracking = 1 else: tracking = 0 Thanks, Leah |
#2
|
|||
|
|||
Try removing the viz.tracker() command from your code. That command should not be used and only exists for backward compatibility with older scripts.
|
#3
|
|||
|
|||
Thanks. Its working now!
Leah |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
intersense question | cade_mccall | Vizard | 0 | 07-25-2007 06:11 PM |
using demo with intersense | G-Chan | Vizard | 1 | 02-06-2006 03:05 PM |
Intersense Server & 3d Max | Hodge1620 | Vizard | 4 | 10-26-2005 02:39 PM |
intersense orientation | jargon | Vizard | 2 | 05-14-2005 05:55 PM |
Problem with newer Intersense Inertiacube 2 | esmith4 | Vizard | 3 | 03-18-2005 09:13 AM |