WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 08-28-2009, 10:31 PM
Vkathrynr Vkathrynr is offline
Member
 
Join Date: Sep 2005
Posts: 12
trouble tracking with VRPN

We are trying to simply track one light on someone's head to move them through a virtual world. This is our code.

Code:
	PORT_PPT = 1									
	isense = viz.add('intersense.dls')	# load Intersense
	viz.tracker()						# start tracking
	
	isense.reset()						# reset Intersense cube

	PPT_HOSTNAME = '171.64.32.164'

	vrpn = viz.add('vrpn7.dle')

	
	
	trackers = []
	for id in range(0,1):
		
		marker = vrpn.addTracker('PPT0@' + PPT_HOSTNAME, id)
		trackers.append (marker)

                 if id is 1:
			view = viz.get(viz.MAIN_VIEWPOINT)
			viz.link(marker, view)

We put marker ID 1 on the HMD, and we have the VRPN loaded in the PPT and we hit talk and we see the light being tracked and we can get data out in Vizard, but the person doesn't move in the world.

Thanks for your help!
Reply With Quote
  #2  
Old 09-22-2009, 11:09 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You code is not actually linking the marker to the viewpoint. You are iterating over range(0,1) which is equal to the list [0]. But your if statement is linking to the viewpoint if the id equals 1, which will never happen.
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
VRPN info sdiverdi Precision Position Tracker (PPT) 5 01-16-2011 12:00 PM
trouble tracking multiple lights Vkathrynr Precision Position Tracker (PPT) 2 08-26-2009 12:07 PM
tracking with multiple LEDS dan12345 Precision Position Tracker (PPT) 7 04-02-2008 10:44 PM
ImmersaDesk system tracking kgarr Vizard 10 09-14-2006 11:17 AM
tracking using quaternarion data jfreeman Vizard 2 06-01-2005 08:48 AM


All times are GMT -7. The time now is 10:26 PM.


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