WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   <vicon>.getBody() problem (https://forum.worldviz.com/showthread.php?t=2829)

llqqff 07-13-2010 12:42 PM

<vicon>.getBody() problem
 
Hi, I am using Vicon tracker with Vizard, there are three objects in vicon tracker, my code is as below:
vicon = viz.add('vicon.dle',0,'129.59.70.136')
marker = vicon.getMarker(0)
print marker.getName()
body = vicon.getBody(0)
print body.getName()

But it shows error:
File "", line 11, in ?
File "test for getbody.py", line 24, in ?
body = vicon.getBody(0)
File "", line 29, in getBody
KeyError: 0

Is anyone know what's the problem.

And when I use:
for b in vicon.getBodyList():
print b.getName()
there is nothing print out.
Thanks.

farshizzo 07-13-2010 12:46 PM

This means that the Vicon server is not outputting body data. Another user reported a similar problem on the forum and claimed to fix it by enabling kinematic data to be output in the real-time stream.


All times are GMT -7. The time now is 08:05 PM.

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