jawaff / KinectController

Control your computer using your body. The KinectController turns the Kinect into a controller that allows configurable actions to be emulated when configurable gestures are triggered by the user.
0 stars 0 forks source link

Add support for more posturerules in the KinectController! #22

Closed jawaff closed 8 years ago

jawaff commented 8 years ago

Let's make all of the posturerules from the prototype supported by the new KinectController. So far we have the Angle rule supported. We just need to also support the AbsoluteDistance, AbsDistX, AbsDistY, AbsDistZ, Distance, DistX, DistY, DistZ. These are all relatively similar and simple.

jawaff commented 8 years ago

The Distance rule is now supported!

jawaff commented 8 years ago

DistanceX, DistanceY and DistanceZ are now supported!

jawaff commented 8 years ago

The AbsoluteDistance posutrerules are going to be implemented as a position that's relative to a point at the middle of the viewing area for the Kinect. This position would be able to be configurable later on so that users with a small area can still make use of this controller without having to modify gesture definitions -- the position would be able to be moved closer to the Kinect.

Important: The Kinect uses millimeters for the distance units!

After testing out the coordinates given by Nite, I've found out a good middle point for the KinectController to use. It's at position (0, 0, 1500), but this number can potentially be changed later on.

The X and Y coordinates already work as I'd hope they would -- x's and y's 0 values are in the middle of the scene that the Kinect can see. The Z coordinates are the distance from the Kinect in millimeters. You can't get a skeleton joint closer than 0.5 meters away from the Kinect, but you can get up to around 2 meters from the Kinect.

jawaff commented 8 years ago

I've officially gotten support for PositionX/Y/X in the project. They aren't tested yet and the DistanceFromPoint rule still needs to be integrated.

jawaff commented 8 years ago

DistanceFromPoint is officially working!