kinect record and playback interface
try
{
_vkpipe = new VirtualKinectPipeClient();
#just setup event listener function here like in normal kinect
_vkpipe.SkeletonFrameReady += new EventHandler<MySkeletonFrameEventArgs>(MySkeletonFrameReady);
_vkpipe.Start();
}
catch (VirtualKinectException e)
{
Console.WriteLine(e.Message);
}
Start()
Stop()
Every event gets MySkeleton2 object from pipe server, its structure is as follows:
- public long timeStamp;
- public const int jointsSize = 20;
- public MyJoint[jointsSize] Joints;
- public short jointType;
- public short trackingState;
- public Point Position;
- public float X, Y, Z;