#1
|
|||
|
|||
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, |
#2
|
|||
|
|||
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?
|
#3
|
|||
|
|||
The code to access to the vrpn tracker is :
Code:
def bigAndSmall(): while True: yield viztask.waitTime(0.0001) x, z, y, h, p, r, ang_der, ang_izq = tracker.getData() 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, |
#4
|
|||
|
|||
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() x = data[0] |
#5
|
|||
|
|||
Hello,
Thanks for this answer, of course this is the solution. It's working perfectly Bérengère |
Tags |
tracker, viztracker |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cave Collision problem | TopazFrost | Vizard | 2 | 02-13-2014 03:34 PM |
Vizard problem | mizutani_jun | Vizard | 4 | 01-09-2011 04:39 PM |
Problem with getEuler and setEuler | Sandro Holzer | Vizard | 6 | 10-21-2008 06:01 AM |
onkeydown list of values | Cheff | Vizard | 2 | 07-02-2008 03:00 AM |
problem with female animations | vmonkey | Vizard | 1 | 10-07-2005 11:36 AM |