WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 10-24-2012, 12:26 PM
davev davev is offline
Join Date: Oct 2012
Posts: 2
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?
Attached Thumbnails
Click image for larger version

Name:	vizard vrpn.png
Views:	1670
Size:	408.4 KB
ID:	541  
Reply With Quote
Old 10-24-2012, 12:32 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
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:
import vizact
def PrintValues():
    print glasses.getPosition()
    print glasses.getQuat()

Reply With Quote
Old 10-24-2012, 12:45 PM
davev davev is offline
Join Date: Oct 2012
Posts: 2
Thanks! That did the trick.
Reply With Quote

infinite, vrpn, 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
VRPN info sdiverdi Precision Position Tracker (PPT) 5 01-16-2011 12:00 PM
The problem of tracker using via VRPN _kj_ Vizard 2 08-13-2009 12:03 AM
Turning info boxes on and off Karla Vizard 2 12-17-2007 03:13 PM

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

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