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; }
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; }
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(); }