#1
|
|||
|
|||
How to get wand tracker?
Hi,
I've tried to get wand tracker (and later on use its orientation information) using either of the following code snippets: Code:
ppt=viz.add('ppt.dle') wand = ppt.addWand() Code:
spacez=viz.add('zspace.dle') wand=spacez.addWandTracker() Quote:
The first code snippet produces following error message: Quote:
|
#2
|
|||
|
|||
What version of Vizard are you running and do you have the PPT Wand or Wand 2013. If you have Vizard 5 try using vizconnect to connect to the hardware.
|
#3
|
|||
|
|||
The Vizard 5 and PPT wand (we assume) with PPT tracking and oculus rift. The wand works properly as does the ppt-tracking and the vizconnect file has been set properly to connect to the hardware, but the problem is how to get handle for the tracker correctly? Sorry for being imprecise with the original question. I want to for example print updated Euler angles of the wand orientation, but the code prints only (0,0,0) all the time even though the wand is being rotated.
|
#4
|
|||
|
|||
User the vizconnect.getTracker() command to get a handle to the trackers:
Code:
import viz import vizconnect import vizact vizconnect.go('vizconnect_config.py') head_tracker = vizconnect.getTracker('head_tracker').getNode3d() wand_tracker = vizconnect.getTracker('wand_tracker').getNode3d() def printData(): print 'head tracker',head_tracker.getPosition() print 'wand tracker',wand_tracker.getPosition() vizact.ontimer(1,printData) |
#5
|
|||
|
|||
Thanks, I'll try that.
|
Tags |
ppt, runtime not found, wand, zspace |
Thread Tools | |
Display Modes | Rate This Thread |
|
|