예제 #1
0
        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();
        }
예제 #2
0
파일: Joints.cs 프로젝트: rjabaker/Skynet
        public Joints GetJointsOfType(JointType jointType)
        {
            Joints joints = new Joints();

            foreach (Joint joint in this)
            {
                if (joint.JointType == jointType)
                {
                    joints.Add(joint);
                }
            }

            return(joints);
        }
예제 #3
0
        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);
            }
        }
예제 #4
0
파일: Finger.cs 프로젝트: rjabaker/Skynet
 public Finger()
 {
     this.joints = new Joints();
 }