// ジェスチャーを検出した
        void gesture_GestureRecognized(object sender, GestureRecognizedEventArgs e)
        {
            gestureStatus = GestureStatus.Recognized;

              // 手のトラッキングを開始する
              hands.StartTracking(e.EndPosition);
        }
 // ジェスチャーを検出した
 void gesture_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     gestureStatus = GestureStatus.Recognized;
 }
 void gesture_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     Debug.Log(e.Gesture);
     if(e.Gesture==WAVE){
         this.hands.StartTracking(e.EndPosition);
     }else if(e.Gesture==CLICK){
         Debug.Log("Pausa");
         isMenu=true;
         audio.Pause();
         seleccionarCamara(CAMARA_MENU);
     }
 }
 void gestureGenerator_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     Trace.WriteLine("Gesture recognized");
     gestureGenerator.RemoveGesture(e.Gesture);
     handsGenerator.StartTracking(e.EndPosition);
 }
Exemple #5
0
 void gesture_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     if(e.Gesture==WAVE){
         this.hands.StartTracking(e.EndPosition);
     }
 }
Exemple #6
0
 void gestureGenerator_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     //MessageBox.Show("Gesture recognized");
     this.handsGenerator.StartTracking(e.EndPosition);
     this.gestureGenerator.RemoveGesture("Wave");
     this.gestureGenerator.RemoveGesture("Click");
 }
    void gestures_GestureRecognized(object Sender, GestureRecognizedEventArgs e)
    {
        // wave stealing
        if (handId != -1 && e.Gesture == "Wave" && StealOnWave) {
            EndSession();
        }

        if (handId == -1) {
            if (e.Gesture == "RaiseHand" && ExperimentalGestureless) {
                int user = WhichUserDoesThisPointBelongTo(e.IdentifiedPosition);
                if (0 == user) {
                    // false positive if no one raised their hand, miss detect if user
                    // isn't on usermap (at this during this frame at the gesture position)
                    return;
                }

                // TODO: make sure point is in a good position relative to the CoM of the user
                // TODO: possibly take top user point into account?
                //Vector3 CoM = Point3DToVector3(userGenerator.GetCoM(user));
                //Vector3 gesturePoint = Point3DToVector3(e.IdentifiedPosition);
                this.hands.StartTracking(e.IdentifiedPosition);
            }

            if ( (e.Gesture == "Wave" && DetectWave) ||
                 (e.Gesture == "Click" && DetectPush) ) {
                this.hands.StartTracking (e.IdentifiedPosition);
            }
        }
    }
 //START-HAND Tracking
 void gesture_GestureRecognized(object sender, GestureRecognizedEventArgs e)
 {
     Debug.Log("Algo --> "+e.Gesture);
     if(e.Gesture=="Wave"){
         this.hands.StartTracking(e.EndPosition);
         Debug.Log("Tracking ");
     }
 }
        void _GestureGenerator_GestureRecognized(object sender, GestureRecognizedEventArgs e)
        {
            if (!this.Enabled)
            {
                return;
            }

            lock (_ListenerLock)
            {
                if (_EventHandlers.ContainsKey(e.Gesture))
                {
                    _EventHandlers[e.Gesture].ForEach(l =>
                    {
                        if (this.ParkEngine.ContainsName(l))
                        {
                            var handler = this.ParkEngine.GetElementByName(l) as ITimelineExecutable;

                            if (handler != null)
                            {
                                handler.Execute(this, new KinectGesture(e.Gesture, 100f, e.IdentifiedPosition.ToVector3(), e.EndPosition.ToVector3()));
                            }
                        }
                    });
                }
            }

            this.LogProvider.Write(string.Format("Gesture '{0}' recognised", e.Gesture), LogLevel.Notice);
        }
Exemple #10
0
 void HandleGestureGestureRecognized(object sender, GestureRecognizedEventArgs ge)
 {
     // these points don't appear useful haha
     Vector3 point = new Vector3(ge.IdentifiedPosition.X, ge.IdentifiedPosition.Y, ge.IdentifiedPosition.Z);
     Vector3 spoint = Camera.mainCamera.WorldToScreenPoint(point);
     HUD.text = (HUD.text + "\nGesture Recognized: " + ge.Gesture + " at: " + spoint.ToString());
 }