WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Precision Position Tracker (PPT) (https://forum.worldviz.com/forumdisplay.php?f=9)
-   -   passing coordinates (https://forum.worldviz.com/showthread.php?t=4551)

piyush 04-09-2013 11:05 PM

passing coordinates
 
how to pass the coordinates of position of sensor from
PPT to vizard file.?

Jeff 04-10-2013 11:16 AM

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)



All times are GMT -7. The time now is 11:21 AM.

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