public KinectBodyTracker(SmartKinectSensor smartSensor, ArduinoSerialPort arduinoSerialPort) { this.skeletonController = smartSensor.SkeletonController; this.arduinoSerialPort = arduinoSerialPort; this.joints = new Joints(); this.previousTimeStamp = DateTime.MinValue; this.frameCount = 0; CreateEmergencyStop(); LoadJointProfiles(); ConnectSkeletonController(); }
public Joints GetJointsOfType(JointType jointType) { Joints joints = new Joints(); foreach (Joint joint in this) { if (joint.JointType == jointType) { joints.Add(joint); } } return(joints); }
private void AlertJoints(MovingJoint joint, DateTime timeStamp) { IJointFrameParameter parameter = GetJointFrameParameter(joint, timeStamp); previousMovingJoint = joint; previousTimeStamp = timeStamp; Joints jointsToAlert = joints.GetJointsOfType(joint.JointType); foreach (Joint jointToAlert in jointsToAlert) { jointToAlert.JointTrackingFrameCaptured(parameter); } }
public Finger() { this.joints = new Joints(); }