WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-16-2008, 11:32 AM
wouters wouters is offline
Member
 
Join Date: Jan 2008
Location: Salt Lake City, Utah
Posts: 13
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
Any suggestions would be helpful.

Thanks,
Leah
Reply With Quote
  #2  
Old 04-16-2008, 11:43 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Try removing the viz.tracker() command from your code. That command should not be used and only exists for backward compatibility with older scripts.
Reply With Quote
  #3  
Old 04-16-2008, 01:15 PM
wouters wouters is offline
Member
 
Join Date: Jan 2008
Location: Salt Lake City, Utah
Posts: 13
Thanks. Its working now!

Leah
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
intersense question cade_mccall Vizard 0 07-25-2007 05:11 PM
using demo with intersense G-Chan Vizard 1 02-06-2006 02:05 PM
Intersense Server & 3d Max Hodge1620 Vizard 4 10-26-2005 01:39 PM
intersense orientation jargon Vizard 2 05-14-2005 04:55 PM
Problem with newer Intersense Inertiacube 2 esmith4 Vizard 3 03-18-2005 08:13 AM


All times are GMT -7. The time now is 09:25 AM.


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