Example #1
0
        void IKinect.Init()
        {
            // initialize the KinectData object
            if (_kinect != null && _kinect.GetSensor() == null)
            {
                Log.Error("Init cannot be completed. Kinect not active");
                return;
            }

            _gestureProcessor = new GestureProcessor(this, _kinect);
            Log.Info("Gesture processor created");

            _trackingEngine = new TrackingEngine(_kinect, this);

            _trackingEngine.Strategy = TrackingEngine.RECOGNIZED_FIRST;
            //_featureProcessor.StartProcess();
            if (_vocCom != null)
            {
                _vocCom.Start(_kinect.GetSensor());
            }
            else
            {
                Log.Error("Could not load voice commands.");
            }
            Log.Info("Voice Commands loaded.");
        }
Example #2
0
        void IKinect.Uninit()
        {
            _gestureProcessor = null;
            if (_kinect == null)
            {
                return;
            }
            var kinectSensor = _kinect.GetSensor();

            if (kinectSensor != null)
            {
                kinectSensor.Stop();
            }
        }
Example #3
0
        void IKinect.Init()
        {
            // initialize the KinectData object
            if(_kinect != null && _kinect.GetSensor() == null)
            {
                Log.Error("Init cannot be completed. Kinect not active");
                return;
            }

            _gestureProcessor = new GestureProcessor(this, _kinect);
            Log.Info("Gesture processor created");

            _trackingEngine = new TrackingEngine(_kinect,this);

            _trackingEngine.Strategy = TrackingEngine.RECOGNIZED_FIRST;
            //_featureProcessor.StartProcess();
            if (_vocCom != null)
                _vocCom.Start(_kinect.GetSensor());
            else
                Log.Error("Could not load voice commands.");
            Log.Info("Voice Commands loaded.");
        }
Example #4
0
 void IKinect.Uninit()
 {
     _gestureProcessor = null;
     if (_kinect == null) return;
     var kinectSensor = _kinect.GetSensor();
     if (kinectSensor != null) kinectSensor.Stop();
 }