5DT glove ultra error 5dt.dls failed
Why do I get an error message with this script
when using the 5dt glove ultra?
The error is:
** ERROR: Failed to load plug-in: '5dt.dls' ?
import viz
viz.go()
PORT_5DT_USB = 0
sensor = viz.add('5dt.dls')
import hand
h = hand.add(sensor)
h.setEuler(0,-90,0)
#h.leftHand()
tips = []
S = 0.01
for x in range(5):
tips.append( viz.add('white_ball.wrl',scale=(S,S,S),color=viz.B LUE) )
def UpdateFingerTips():
for x in xrange(5):
mat = h.getFingerTip(x)
tips[x].setPosition(mat.getPosition())
tips[x].setQuat(mat.getQuat())
vizact.ontimer(0,UpdateFingerTips)
import vizcam
cam = vizcam.PivotNavigate()
cam.setCenter(0,0,0)
cam.setDistance(0.5)
viz.clearcolor(viz.GRAY)
|