Kinect Body Tracking  1.0
 All Classes Functions
shahqaan.kinect.Skeletons Class Reference

Inherited by shahqaan.kinect.ExtendedSkeletons.

Classes

class  CalibrationCompleteObserver
 
class  LostUserObserver
 
class  NewUserObserver
 
class  PoseDetectedObserver
 

Public Member Functions

int getXRes ()
 
int getYRes ()
 
void update ()
 

Protected Member Functions

void updateJoint (HashMap< SkeletonJoint, SkeletonJointPosition > skel, int userID, SkeletonJoint joint)
 
Point3D getJointPos (HashMap< SkeletonJoint, SkeletonJointPosition > skel, SkeletonJoint j)
 

Protected Attributes

UserGenerator userGen
 
DepthGenerator depthGen
 
SkeletonCapability skelCap
 
PoseDetectionCapability poseDetectionCap
 
String calibPoseName = null
 
HashMap< Integer, HashMap
< SkeletonJoint,
SkeletonJointPosition > > 
userSkels
 
Context context
 
DepthMetaData depthMD
 
boolean isRunning
 

Detailed Description

Definition at line 26 of file Skeletons.java.

Member Function Documentation

void shahqaan.kinect.Skeletons.update ( )

Update the skeleton of each user Called from run() in TrackerPanel

Definition at line 117 of file Skeletons.java.

117  {
118  try {
119  context.waitAnyUpdateAll();
120  } catch (StatusException e) {
121  System.out.println(e);
122  System.exit(1);
123  }
124  try {
125  int[] userIDs = userGen.getUsers(); // there may be many users in the scene
126  for (int i = 0; i < userIDs.length; ++i) {
127  int userID = userIDs[i];
128  if (skelCap.isSkeletonCalibrating(userID)) {
129  continue; // test to avoid occassional crashes with isSkeletonTracking()
130  }
131  if (skelCap.isSkeletonTracking(userID)) {
132  updateJoints(userID);
133  }
134  }
135  } catch (StatusException e) {
136  System.out.println(e);
137  }
138  }

The documentation for this class was generated from the following file: