-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMySkeleton.cs
More file actions
45 lines (40 loc) · 1.27 KB
/
Copy pathMySkeleton.cs
File metadata and controls
45 lines (40 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using Microsoft.Kinect;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SitPerfect
{
class MySkeleton
{
//
// Summary:
// Gets or sets the skeleton's joints.
public JointCollection Joints { get; protected set; }
//
// Summary:
// Gets or sets the skeleton's position.
public SkeletonPoint Position { get; set; }
//
// Summary:
// Gets or sets the skeleton's tracking ID.
public int TrackingId { get; set; }
//
// Summary:
// Gets or sets the skeleton's current tracking state.
public SkeletonTrackingState TrackingState { get; set; }
public double AngleHeadShoulderCenter;
public double AngleHeadShoulderRight;
public DateTime Timestamp { get; set; }
public MySkeleton(DateTime ts, Skeleton skel)
{
Timestamp = ts;
//Joints = skel.Joints;
Position = skel.Position;
TrackingId = skel.TrackingId;
TrackingState = skel.TrackingState;
AngleHeadShoulderCenter = skel.GetAngleHeadShoulderCenter();
AngleHeadShoulderRight = skel.GetAngleHeadShoulderRight();
}
}
}