View Full Version : Kinect
roobert
08-12-2014, 01:02 PM
I tried connecting the kinect with vizard but the connection no work
I have this message
"check_vrpn_cookie(): VRPN Note: minor version number doesn't match: (prefer 'vrpn: ver. 07.30', got 'vrpn: ver. 07.29 0'). This is not normally a problem."
What is it???
my code is:
import viz
import vizshape
viz.go()
grid = vizshape.addGrid()
vrpn = viz.addExtension('vrpn7.dle')
t = vrpn.addTracker( 'Tracker0@localhost',8)
s = vizshape.addSphere(radius=.1)
l=viz.link(t,s)
Is the user tracked and showing up in FAAST? If so, are you getting position and orientation data when you run the following:
import viz
import vizshape
import vizact
viz.go()
grid = vizshape.addGrid()
vrpn = viz.addExtension('vrpn7.dle')
t = vrpn.addTracker( 'Tracker0@localhost',8)
s = vizshape.addSphere(radius=.1)
l=viz.link(t,s)
def printData():
print 'position', t.getPosition()
print 'euler', t.getEuler()
vizact.ontimer(1,printData)
roobert
08-14-2014, 11:40 AM
Hi Jeff.
you always have response for my questions, thank you.
The function (prindData) if you print the position, but I would like some model (ball.wrl) follow the position of my hands that detects kineck.
I do not know how to do, I thought with:
vrpn = viz.addExtension('vrpn7.dle')
t = vrpn.addTracker( 'Tracker0@localhost',8)
s = vizshape.addSphere(radius=.1)
l=viz.link(t,s)
would appear a ball in my left hand and would move when I move my hand.
roobert
08-14-2014, 11:55 AM
I could make and models to follow me.
Is there a best way?
import viz
import vizshape
import vizact
viz.go()
grid = vizshape.addGrid()
vrpn = viz.addExtension('vrpn7.dle')
hl = vrpn.addTracker( 'Tracker0@localhost',8)
hr= vrpn.addTracker( 'Tracker0@localhost',14)
handLeft=viz.add('hand_left.cfg')
handRight=viz.add('hand.cfg')
def followMe():
pl=hl.getPosition()
el=hl.getEuler()
handLeft.setPosition(pl)
handLeft.setEuler(el)
pr=hr.getPosition()
er=hr.getEuler()
handRight.setPosition(pr)
handRight.setEuler(er)
vizact.ontimer(0.01,followMe)
You should get the same result using links:
import viz
import vizshape
import vizact
viz.go()
grid = vizshape.addGrid()
vrpn = viz.addExtension('vrpn7.dle')
hl = vrpn.addTracker( 'Tracker0@localhost',8)
hr= vrpn.addTracker( 'Tracker0@localhost',14)
handLeft=viz.add('hand_left.cfg')
handRight=viz.add('hand.cfg')
linkLeft = viz.link(hl,handLeft)
linkRight = viz.link(rl,handRight)
vBulletin® v3.8.7, Copyright ©2000-2025, vBulletin Solutions, Inc.