Kinect Motor Control (Windows)

I have created a command line program to control the Kinect motor using the OpenNI driver. As such, you must have the OpenNI driver installed and working. I do not do much error checking in my code and assume your Kinect and it’s drivers are already working properly. My code is based on the code found here:

https://skydrive.live.com/?cid=E0070FB8ECF9015F&id=E0070FB8ECF9015F!13558&sc=documents

Which in turn is based on the code found here:

https://groups.google.com/forum/#!msg/openni-dev/T_CeVW_d8ig/dsBKONIpNyQJ

You can get my compiled program here (recommended):

KinectMotorControl

Or, compile it yourself:

KinectMotorControlSource

Program Usage:

KinectMotorControl.exe [degree, reset, up, down, status]

Degree Integer between -31 and 31 to tilt the Kinect motor to.
Reset Tilts the Kinect motor to the degree of zero.
Up Tilts the Kinect motor up by six degrees.
Down Tilts the Kinect motor down by six degrees.
Status Retrieves the current degree of the Kinect motor.

NOTE: If the value for degree does not change by at least six from the previous value, the Kinect may ignore the new value and the motor position will not change. Degree values returned are approximate and may be incorrect.

This software is distributed “AS IS”, without warranty or implied warranty. By using this software you agree that the distributor and it’s creator is not liable for any damages or loss of data that may occur.

Known Bugs:

  • Entering a value that is not predefined, (ie. abcdef) will reset the Kinect motor to degree zero.

Type “KinectMotorControl.exe /?” for help.

This software will not be maintained.

Comments are closed.