Problem viztracker values
Hi,
I used a tracker with a vrpn. Sometimes when I do a tracker.getData() and I put it in 8 values, a mistake appears because there are " too many values to unpack" but sometimes it's working perfectly. I realy don't understand why and where I can fixed the problem. I think it's a problem of connection but I am not sure. If you can help me how to find the solution. Thanks, |
Can you post the code you're using to access the VRPN tracker and save the data to the 8 values? Also, can you post the Vizard output and error messages?
|
The code to access to the vrpn tracker is :
Code:
def bigAndSmall(): x, z, y, h, p, r, ang_der, ang_izq = tracker.getData() ValueError: too many values to unpack check_vrpn_cookie(): VRPN Note: minor version number doesn't match: (prefer 'vrpn: ver. 07.31', got 'vrpn: ver. 07.30 0'). This is not normally a problem. Thanks, |
That error means there are more than 8 values being returned. You could save the values to a list and then extract the first 8.
Code:
data = tracker.getData() |
Hello,
Thanks for this answer, of course this is the solution. It's working perfectly Bérengère |
All times are GMT -7. The time now is 04:41 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC