WorldViz User Forum  

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-09-2013, 11:05 PM
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, 11:16 AM
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

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


All times are GMT -7. The time now is 12:20 PM.


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