Currently OSX only, please feel free to help remove that dependency.
If you don't care for building from source, there are a couple of downloads available.
17 Apr 2011
10.6 - Snow leopard: http://nrocy.github.com/files/kinect20110417.zip
10.5 - Leopard: http://nrocy.github.com/files/kinect20110417_leopard.zip
19 Dec 2010
10.6 - Snow leopard: http://nrocy.github.com/files/kinect20101222.zip
10.5 - Leopard: http://nrocy.github.com/files/kinect20101222_leopard.zip
NativeKinect.init() - initialize the Kinect
NativeKinect.setVideoRGB() - output RGB video (default)
NativeKinect.setVideoIR() - output IR video
NativeKinect.start() - tell the Kinect to start streaming data to the library
NativeKinect.getVideo() - pull the latest video frame
NativeKinect.getDepthMap() - pull the latest depthMap frame
NativeKinect.getDepthMapRaw() - pull the latest depthMap raw data
NativeKinect.setLed(int) - change the Kinect LED colour (0-6)
import king.kinect.*;
PImage img, depth;
short[] rawDepth;
void setup()
{
size(1280, 480);
img = createImage(640,480,RGB);
depth = createImage(640,480,RGB);
NativeKinect.init();
NativeKinect.setVideoIR(); // View the IR images, see also setVideoRGB()
NativeKinect.start();
}
void draw()
{
img.pixels = NativeKinect.getVideo();
img.updatePixels();
depth.pixels = NativeKinect.getDepthMap();
depth.updatePixels();
rawDepth = NativeKinect.getDepthMapRaw();
println( rawDepth[0] );
image(img,0,0,640,480);
image(depth,640,0,640,480);
}
Prebuilt 32-bit libraries are included, so no external deps.
- Xcode
Coming soon.
- More error checking
- Implement motor control methods
- Implement accelerometer methods
- Remove OSX/XCode specific dependencies