示例#1
0
        public SmartKinectSensor(KinectSensor sensor)
        {
            this.sensor       = sensor;
            this.skeletonData = new Skeleton[this.sensor.SkeletonStream.FrameSkeletonArrayLength];

            this.skeletonController = new SkeletonController(this.sensor);
            this.sensorMode         = SensorMode.Disabled;
        }
示例#2
0
        public SmartKinectSensor()
        {
            // RBakerFlag -> Need error handling for this.
            this.sensor       = KinectSensor.KinectSensors[0];
            this.skeletonData = new Skeleton[this.sensor.SkeletonStream.FrameSkeletonArrayLength];

            this.skeletonController = new SkeletonController(this.sensor);
            this.sensorMode         = SensorMode.Disabled;
        }
示例#3
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();
        }