Notice: MediaWiki has been updated. Report any rough edges to marcan@marcan.st

CSharp Wrapper

From OpenKinect
Revision as of 05:26, 26 November 2010 by 173.66.169.37 (talk) (Corrected source tag parameter to csharp instead of C#)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This effort will provide a wrapper to access the Kinect through C#.

About

Who is involved

Coordinator/Development: Aditya Gaddam (User:LostInCake)

Current Status

Feature Supported? Notes
Connect to Kinect (heh) Yes
Control LED Yes 0x04 and 0x05 for the LED status seem to do the same thing - Blink Green. Seems to be something on the native lib side though.
Control motor No
Get accelerometer data No
RGB data callback No
Depth data callback No

Demos / Videos

Some demo links / videos / images will go here

Installation/Configuration

  1. Step one
  2. Step two
  3. Step three


Sample Code

using LibFreenect;

...

// Getting device count
Console.WriteLine("Number of devices = " + Kinect.DeviceCount);

if(Kinect.DeviceCount > 0)
{
    // Connecting to a device
    Kinect k = new Kinect(0);
    k.Open();

    // Setting LED color
    k.LED.Color = KinectLED.ColorOption.Yellow;

    // Closing connection
    k.Close();
}

// Shutdown library and close any open devices
// Should probably do this at the end of every program.
Kinect.Shutdown();