Notice: MediaWiki has been updated. Report any rough edges to marcan@marcan.st
Difference between revisions of "CSharp Wrapper"
From OpenKinect
(Corrected source tag parameter to csharp instead of C#) |
|||
Line 21: | Line 21: | ||
|- | |- | ||
| Control motor | | Control motor | ||
− | | | + | | Yes |
− | | | + | | Motor status is still not in. |
|- | |- | ||
| Get accelerometer data | | Get accelerometer data | ||
− | | | + | | Yes |
− | | | + | | Currently using old accelerometer stuff. Need to move to the new "get state" type of stuff. |
|- | |- | ||
| RGB data callback | | RGB data callback | ||
− | | | + | | Yes |
| | | | ||
|- | |- | ||
| Depth data callback | | Depth data callback | ||
− | | | + | | Yes |
− | | | + | | Still fairly slow if being polled along with RGB camera. Definitely needs speed improvements. |
|} | |} | ||
Revision as of 19:14, 28 November 2010
This effort will provide a wrapper to access the Kinect through C#.
Contents
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 | Yes | Motor status is still not in. |
Get accelerometer data | Yes | Currently using old accelerometer stuff. Need to move to the new "get state" type of stuff. |
RGB data callback | Yes | |
Depth data callback | Yes | Still fairly slow if being polled along with RGB camera. Definitely needs speed improvements. |
Demos / Videos
Some demo links / videos / images will go here
Installation/Configuration
- Step one
- Step two
- 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();