WorldViz User Forum  

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

 
 
Thread Tools Rating: Thread Rating: 33 votes, 4.76 average. Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-24-2009, 05:01 PM
Vkathrynr Vkathrynr is offline
Member
 
Join Date: Sep 2005
Posts: 12
marker id plug-in

We are trying to track 2 lights, one on the head and one on the hand. The head light should move the view. And the hand light should not be linked to anything, we just get data from it. We have code working without the markerID plug-in, where we just use one light on the head (and when we add it we don't specify ID).

For example:

Code:
headMarker = vrpn.addTracker('PPT0@' + PPT_HOSTNAME)
Then we tried specifying an id for the head marker. We used light 6. So we changed our code to:

Code:
headMarker = vrpn.addTracker('PPT0@' + PPT_HOSTNAME, 5)
We loaded the marker ID plug-in and set marker 6 as active (mapped to virtual ID 6), and the world did not track. We then tried specifying the idea as 6 in our code, just in case. But it still did not track. Data was being printed out on the console though.

How can we get the tracker to update the view when specifying an marker ID?

Working code:
Code:
Code:
PPT_HOSTNAME = '171.64.32.54'
#
#	# Add the VRPN7 module to Vizard
	vrpn = viz.add('vrpn7.dle')

	
	# We need to create a VRPN connection for each marker in PPT
	trackers = []

		# Make the request for the particular id via VRPN from the hostname
	headMarker = vrpn.addTracker('PPT0@' + PPT_HOSTNAME)
	
	filter = viz.add("filter.dle")
	headMarker = filter.average(headMarker, samples = 5)
	trackers.append (headMarker)
		
	view = viz.MainView
	link = viz.link(headMarker, view)
	link.reset(viz.RESET_X|viz.RESET_Y|viz.RESET_Z)
Broken code:

Code:
Code:
PPT_HOSTNAME = '171.64.32.54'
#
#	# Add the VRPN7 module to Vizard
	vrpn = viz.add('vrpn7.dle')

	
	# We need to create a VRPN connection for each marker in PPT
	trackers = []

		# Make the request for the particular id via VRPN from the hostname
	headMarker = vrpn.addTracker('PPT0@' + PPT_HOSTNAME, 5)
	
	filter = viz.add("filter.dle")
	headMarker = filter.average(headMarker, samples = 5)
	trackers.append (headMarker)
		
	view = viz.MainView
	link = viz.link(headMarker, view)
	link.reset(viz.RESET_X|viz.RESET_Y|viz.RESET_Z)
Reply With Quote
 


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
Tracking with Marker ID plugin mjabon Precision Position Tracker (PPT) 9 07-13-2009 12:36 PM
Punch demo with marker ids? mjabon Precision Position Tracker (PPT) 0 07-08-2009 12:51 AM


All times are GMT -7. The time now is 03:38 AM.


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