WorldViz User Forum  

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-10-2013, 12:05 AM
piyush piyush is offline
Member
 
Join Date: Jan 2013
Posts: 7
passing coordinates

how to pass the coordinates of position of sensor from
PPT to vizard file.?
Reply With Quote
  #2  
Old 04-10-2013, 12:16 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
First get a handle to the PPT tracker in Vizard via VRPN:
Code:
vrpn = viz.add('vrpn7.dle')
tracker = vrpn.addTracker('PPT0@hostname',0)
Then you can print the position data every frame or write it to a text file:
Code:
def printPPTData():
	print tracker.getPosition()
	
vizact.onupdate(0,printPPTData)
Reply With Quote
Reply


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
Haptic touch texture coordinates yth Vizard 0 06-02-2012 04:40 AM
How do coordinates in IS900 thransform into coordinates in vizard's world jacky Vizard 1 08-11-2011 11:44 AM
Avatar passing through room walls Mike@vrs Vizard 1 07-21-2010 05:07 PM
child-objects in VRML-file all have the same coordinates Sven Vizard 4 06-09-2010 03:07 AM
viz.vertex coordinates lilio Vizard 6 05-16-2009 05:36 PM


All times are GMT -7. The time now is 08:28 AM.


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