WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 04-16-2008, 11:32 AM
wouters wouters is offline
Join Date: Jan 2008
Location: Salt Lake City, Utah
Posts: 13
Intersense Eyeheight


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:

if viz.get(viz.TRACKER):
	v = viz.add('intersense.dls')
	viz.mouse.setVisible(viz.OFF) #Hide mouse
	# Link sensor to view point and don't use eyeheight
	view = viz.MainView
	headLink = 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
	print 'eyeheight: '
	print headLink.getPosition()
	print v.getPosition()
			# This doesn't give us the correct eye height

	tracking = 1
	tracking = 0
Any suggestions would be helpful.

Reply With Quote
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
Old 04-16-2008, 01:15 PM
wouters wouters is offline
Join Date: Jan 2008
Location: Salt Lake City, Utah
Posts: 13
Thanks. Its working now!

Reply With Quote

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 10:15 PM.

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