Issue when I have the same gesture detected with two different joints

Jul 23, 2012 at 1:09 AM

I created a gesture called step.  It works well when I have one of them, but when I make two detectors and pass one the left foot and the other the right, they both trigger when either of them happen.

 

if (joint.JointType == JointType.HandRight)
{
    swipeGestureRecognizer.Add(joint.Position, kinectSensor);
    circleGestureRecognizer.Add(joint.Position, kinectSensor);
}
else if (joint.JointType == JointType.FootRight)
{
    stepGestureRecognizer.Add(joint.Position, kinectSensor);
}
else if (joint.JointType == JointType.FootLeft)
{
    stepGestureRecognizerL.Add(joint.Position, kinectSensor);
}

stepGestureRecognizer and stepGestureRecognizerL are different objects.

They are initialized with the same gesture:

using (Stream recordStream = File.Open(stepPath,FileMode.OpenOrCreate))
{
    stepGestureRecognizer = new TemplatedGestureDetector("Step", recordStream);
    stepGestureRecognizer.TraceTo(gesturesCanvas, Colors.LimeGreen);
     stepGestureRecognizer.OnGestureDetected += OnGestureDetected;
}

using (Stream recordStream = File.Open(stepPath, FileMode.OpenOrCreate))
{
    stepGestureRecognizerL = new TemplatedGestureDetector("StepL", recordStream);
    stepGestureRecognizerL.TraceTo(gesturesCanvas, Colors.Yellow);
    stepGestureRecognizerL.OnGestureDetected += OnGestureDetected;
}

Coordinator
Jul 23, 2012 at 7:13 PM

really strange...Can you send me your project?