WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-12-2014, 01:02 PM
roobert roobert is offline
Member
 
Join Date: May 2014
Location: Pachuca, Hidalgo, México
Posts: 34
Send a message via Skype™ to roobert
Exclamation Kinect

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:
Quote:
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)
Reply With Quote
  #2  
Old 08-13-2014, 09:53 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,467
Is the user tracked and showing up in FAAST? If so, are you getting position and orientation data when you run the following:

Code:
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)
Reply With Quote
  #3  
Old 08-14-2014, 11:40 AM
roobert roobert is offline
Member
 
Join Date: May 2014
Location: Pachuca, Hidalgo, México
Posts: 34
Send a message via Skype™ to roobert
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:
Quote:
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.
Reply With Quote
  #4  
Old 08-14-2014, 11:55 AM
roobert roobert is offline
Member
 
Join Date: May 2014
Location: Pachuca, Hidalgo, México
Posts: 34
Send a message via Skype™ to roobert
I could make and models to follow me.
Is there a best way?
Quote:
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)
Reply With Quote
  #5  
Old 08-15-2014, 02:19 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,467
You should get the same result using links:

Code:
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)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kinect Data Extraction CG27 Vizard 1 03-03-2014 09:07 AM
Problems with using WIRKS without the Kinect in a mirror setting Jennifer Vizard 0 06-03-2013 03:17 PM
kinect + avatars Darkmax Vizard 7 04-19-2013 04:08 PM
Kinect auto selection of skeleton victorqx Vizard 0 05-29-2012 08:30 AM
vizard 4 with kinect Darkmax Vizard 3 05-04-2011 08:38 PM


All times are GMT -7. The time now is 12:03 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC