|
Re: Kinect problems please help!
The issue is that tracked means that the Kinect processing code knows where your foot is. It doesn't mean that it moved. If you check that the foot is tracked and check that the position is different by a large enough amount, that would be a better trigger.
More than likely, you probably want to look at a single measure of the foot, just the Y if you want to raise it, just X if you step to the side, or just z if you step forward. And you will likely want to make it a relative compare, between the foot and hip for instance, and give it a threshold that you have to cross.
If you have an English sentence such as ...
When my right foot moves twelve inches to the right of my hip, I want the pneumatic ram to push the basketball into the spinning flywheel.
then you can translate that into code. Discuss the sentence with the appropriate team members first so that you know what the trigger is, and then write the code. Post it if you want confirmation.
Greg McKaskle
|