View Single Post
  #2  
Old 06-23-2014, 05:43 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The 5dt glove does not provide position data of the hand. Some models provide pitch and roll. Most of the measurements are related to finger movements and hand gestures. You'll need an additional position/orientation tracker mounted on the glove for hand tracking. You can link the glove to the data from a physical tracking device (e.g. PPT, inertia cube) or a virtual tracker using keyboard/mouse inputs. The following code links the glove to a keyboard tracker:

Code:
glove = hand.add(sensor,hand.GLOVE_5DT)

#Create virtual tracker using WASD and other key inputs
import viztracker
handTracker = viztracker.Keyboard6DOF()

#Link the hand to the handTracker
gloveLink = viz.link(handTracker, glove)
Then you can link the vase directly to the handTracker:

Code:
vaseLink = viz.link(handTracker, vase)
or to the gloveLink:

Code:
vaseLink = viz.link(gloveLink, vase)
For future posts, please use code tags to preserve indentation. You can find the guidelines for posting code here.
Reply With Quote