PDA

View Full Version : vizconnect optotrak sensors to avatar


shashkes
03-09-2016, 02:19 AM
I'm managing to connect to optotrak in a script by:

opto = viz.add('optotrak.dle',0,'192.168.1.1' )

body = opto.getBody(0) for m in opto.getBodyList():
ball = viz.add('white_ball.wrl',color=viz.RED,cache=viz.C ACHE_CLONE)

optolink1=viz.link(m,ball)

This provides me with two balls that follow the optotrak rigid bodies
but when I try to connect to optotrack through vizconnect with the same parameters I get:

** ERROR: Failed to load plug-in: 'optotrack.dle'
** WARNING: can't connect to Northern Digital Optotrack with index 0. It's likely that not enough sensors are connected.

Any idea why? My goal is to connect an avatar's hands to the optotrak sensors and use reverse kinematics, the simplest way seemed to be through vizconnect.
Is there any other way I could do this?
Thanks
Sarah

Jeff
03-09-2016, 06:49 AM
Can you attach your vizconnect configuration file here?

shashkes
03-09-2016, 07:24 AM
thanks
(the forum wouldn't allow .py files)

Jeff
03-09-2016, 08:20 PM
Do you get any errors when you run the following code?

import viz
viz.go()

opto = viz.add('optotrak.dle',0,'192.168.1.1' )

body1 = opto.getBody(0)
body2 = opto.getBody(1)

shashkes
03-10-2016, 05:33 AM
this runs fine.

Jeff
03-10-2016, 11:48 PM
Attached is your configuration file modified to look for sensors 0 and 1. Run the file, go to the advanced configuration menu, and click on the trackers tab. Are both trackers showing a connection there? If not, is one of them connecting?

shashkes
03-11-2016, 02:12 AM
Thanks, I'll only have access to the lab on monday again. I'll keep you updated

shashkes
03-14-2016, 05:01 AM
any other ideas?
Thanks
Sarah

Jeff
03-14-2016, 07:26 AM
Please contact support@worldviz.com and we'll help troubleshoot further.