How to use ofxOpenNI for skeleton tracking

Hello, i use xbox 360(kinect) and i already installed openni, nite-win32, sensorKinect program.

Then i search some source codes to use kinect for skeleton tracking.


#ifndef _TEST_APP
#define _TEST_APP

#include “ofMain.h”
#include “ofxOpenNI.h”

class testApp : public ofBaseApp{

void setup();
void update();
void draw();

void keyPressed  (int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void windowResized(int w, int h);

bool				isMasking;

ofxOpenNIContext	mContext;
ofxDepthGenerator	mDepth;

ofxImageGenerator	mImage;

ofxUserGenerator	mUser;

#if defined (TARGET_OSX) //|| defined(TARGET_LINUX) // only working on Mac/Linux at the moment (but on Linux you need to run as sudo…)
ofxHardwareDriver hardware;

void				drawMasks();

int					nearThreshold, farThreshold;

ofImage				allUserMasks, user1Mask, user2Mask, depthRangeMask;

float				filterFactor;



But in this code their are some types like (ofxOpenNIContext, ofxDepthGenerator, ofxImageGenerator, ofxUserGenerator) are not in the “ofxOpenNI.h”.

So i do not know what can i do to solve this problem.

I want skeleton tracking and get world coordinate(x, y, z) about head and hand.

If do you have some idea which solve it, please teach me.
Thank to read my sentences!