I want to use vizard(python) to show the data. But why it cannot? The code is here.
import viz
import vizact
import hand
PORT_5DT_USB = 0
glove = viz.add('5dt.dls')
data = glove.getData()
print data
But the data printed is only one line
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
What should I do?
|