WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-09-2015, 03:19 AM
Samuli Samuli is offline
Member
 
Join Date: Aug 2015
Posts: 15
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()
or:
Code:
spacez=viz.add('zspace.dle')
wand=spacez.addWandTracker()
but neither works. From the latter I get the following error message:
Quote:
** ERROR: Failed to initialize zSpace: Runtime Not Found
** ERROR: Failed to create extension sensor with zspace.dle
skydome.dlc
.
The first code snippet produces following error message:
Quote:
trying serial 3
Wand: input buffer not flushed
(Make sure port name is valid and it has not been opened by another program)
What is the correct way to get wand tracker?
Reply With Quote
  #2  
Old 09-16-2015, 04:04 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote
  #3  
Old 09-17-2015, 07:02 AM
Samuli Samuli is offline
Member
 
Join Date: Aug 2015
Posts: 15
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.
Reply With Quote
  #4  
Old 09-18-2015, 01:00 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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)
Reply With Quote
  #5  
Old 09-18-2015, 01:09 PM
Samuli Samuli is offline
Member
 
Join Date: Aug 2015
Posts: 15
Thanks, I'll try that.
Reply With Quote
Reply

Tags
ppt, runtime not found, wand, zspace

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


All times are GMT -7. The time now is 03:06 PM.


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