I have 2 separate computers, one with Vizard and one with Optotrak. They are both connected to the same hospital network via ethernet cables.
I ran the following code:
opto = viz.add('optotrak.dle',0,'192.168.0.114')
body = opto.getBody(0)
marker = opto.getMarker(0)
print body.getName()
print marker.getName()
I also tried replacing the 192.168.0.114 with the IP address of the Optotrak computer. Neither of the codes worked.
I've been getting this error message, AttributeError: 'VizExtension' object has no attribute 'getBody'
Is there something I'm inputting incorrectly? Is it possible the 2 computers need to be physically connected (e.g. USB to USB, crossover ethernet cable, etc.) instead of just being on the same network for Vizard to fetch the Optotrak data?
Thanks!
|