mirror of
https://github.com/storytold/LiveScan3D.git
synced 2026-10-09 00:09:58 +00:00
Skeleton data can now be seen in the client and in the live window. No skeleton merging/saving yet.
This commit is contained in:
@@ -13,9 +13,23 @@
|
||||
// year={2015},
|
||||
// }
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace KinectServer
|
||||
{
|
||||
public struct Point2f
|
||||
{
|
||||
public float X;
|
||||
public float Y;
|
||||
}
|
||||
|
||||
public struct Point3f
|
||||
{
|
||||
public float X;
|
||||
public float Y;
|
||||
public float Z;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class AffineTransform
|
||||
{
|
||||
@@ -92,4 +106,55 @@ namespace KinectServer
|
||||
|
||||
private float[] r = new float[3];
|
||||
}
|
||||
|
||||
public enum TrackingState
|
||||
{
|
||||
TrackingState_NotTracked = 0,
|
||||
TrackingState_Inferred = 1,
|
||||
TrackingState_Tracked = 2
|
||||
}
|
||||
|
||||
public enum JointType
|
||||
{
|
||||
JointType_SpineBase = 0,
|
||||
JointType_SpineMid = 1,
|
||||
JointType_Neck = 2,
|
||||
JointType_Head = 3,
|
||||
JointType_ShoulderLeft = 4,
|
||||
JointType_ElbowLeft = 5,
|
||||
JointType_WristLeft = 6,
|
||||
JointType_HandLeft = 7,
|
||||
JointType_ShoulderRight = 8,
|
||||
JointType_ElbowRight = 9,
|
||||
JointType_WristRight = 10,
|
||||
JointType_HandRight = 11,
|
||||
JointType_HipLeft = 12,
|
||||
JointType_KneeLeft = 13,
|
||||
JointType_AnkleLeft = 14,
|
||||
JointType_FootLeft = 15,
|
||||
JointType_HipRight = 16,
|
||||
JointType_KneeRight = 17,
|
||||
JointType_AnkleRight = 18,
|
||||
JointType_FootRight = 19,
|
||||
JointType_SpineShoulder = 20,
|
||||
JointType_HandTipLeft = 21,
|
||||
JointType_ThumbLeft = 22,
|
||||
JointType_HandTipRight = 23,
|
||||
JointType_ThumbRight = 24,
|
||||
JointType_Count = (JointType_ThumbRight + 1)
|
||||
}
|
||||
|
||||
public struct Joint
|
||||
{
|
||||
public Point3f position;
|
||||
public JointType jointType;
|
||||
public TrackingState trackingState;
|
||||
}
|
||||
|
||||
public struct Body
|
||||
{
|
||||
public bool bTracked;
|
||||
public List<Joint> lJoints;
|
||||
public List<Point2f> lJointsInColorSpace;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user