#1
|
|||
|
|||
Problem reading VRPN info from ZSpace
I am attempting to read tracker data from a ZSpace system in Vizard. I am able to connect to the VRPN server using the vrpn_print_devices program provided with VRPN. When I connect using the same tracker and server name from Vizard I always get [0.0, 0.0, 0.0] for the tracker position.
Attached is a screenshot showing the output from vrpn_print_devices on the left and my vizard code and output on the right. It looks like the tracker does provide more data than just the position and quaternion. Could this be a problem when using the tracker from Vizard? |
#2
|
|||
|
|||
Your while loop is blocking the main update loop, so the tracker will never update. You should never use time.sleep in the main thread. Instead, register a function to be called every 0.25 seconds and print the tracker values within that function:
Code:
import vizact def PrintValues(): print glasses.getPosition() print glasses.getQuat() vizact.ontimer(0.25,PrintValues) |
#3
|
|||
|
|||
Thanks! That did the trick.
|
Tags |
infinite, vrpn, zspace |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VRPN info | sdiverdi | Precision Position Tracker (PPT) | 5 | 01-16-2011 01:00 PM |
The problem of tracker using via VRPN | _kj_ | Vizard | 2 | 08-13-2009 01:03 AM |
Turning info boxes on and off | Karla | Vizard | 2 | 12-17-2007 04:13 PM |