#1
|
|||
|
|||
about Kinect coordinate transformation
Code:
import viz import vizshape viz.go() grid = vizshape.addGrid() """ Kinect Tracker object ID's These are not actually being using in the script but are to help anyone who wants to get access to a specific bodypart. For example to just get a handle to tracking data for the head use: myHead = vrpn.addTracker( 'Tracker0@localhost', HEAD). """ HEAD = 0 NECK = 1 TORSO = 2 WAIST = 3 LEFTCOLLOR = 4 LEFTSHOULDER = 5 LEFTELBOW = 6 LEFTWRIST = 7 LEFTHAND = 8 LEFTFINGERTIP = 9 RIGHTCOLLAR = 10 RIGHTSHOULDER = 11 RIGHTELBOW = 12 RIGHTWRIST = 13 RIGHTHAND = 14 RIGHTFINGERTIP = 15 LEFTHIP = 16 LEFTKNEE = 17 LEFTANGLE = 18 LEFTFOOT = 19 RIGHTHIP = 20 RIGHTKNEE = 21 RIGHTANKLE = 22 RIGHTFOOT = 23 #store trackers, links, and vizshape objects trackers = [] links = [] shapes = [] #start vrpn vrpn = viz.addExtension('vrpn7.dle') #now add all trackers and link a shape to it for i in range(0, 24): t = vrpn.addTracker( 'Tracker0@localhost',i ) s = vizshape.addSphere(radius=.1) l = viz.link(t,s) trackers.append(t) links.append(l) shapes.append(s) Is there a way to convert the tracking white dots always shown in front of the mainview (maybe 1 or 2 meter distance from the mainview), when the mainview changed, the white dot will also follow the mainview to change to another position. It should be something regarding coordinate transformation. Thanks, |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Local coordinate and global coordinate | haohaoxuexi1 | Vizard | 2 | 07-24-2016 07:21 PM |
Problems with using WIRKS without the Kinect in a mirror setting | Jennifer | Vizard | 0 | 06-03-2013 03:17 PM |
Kinect auto selection of skeleton | victorqx | Vizard | 0 | 05-29-2012 08:30 AM |
Mouse 2D coordinate to viz world 3D coordinate | james007 | Vizard | 1 | 10-08-2009 12:11 PM |
creating multiple coordinate systems and making them visible | jalvarez | Vizard | 1 | 02-27-2009 12:36 PM |