Kinectaby is a first pass at Ruby bindings to the amazing Kinect libfreenect driver.
First you need a Kinect.
Then you need to install libfreenect.
Next, you need to install rake-compiler:
$ sudo gem install rake-compiler
Then you need to get and compile this.
$ git clone git://github.com/schacon/kinectaby.git
$ cd kinectaby
$ rake compile
$ rake test
require 'kinectaby'
context = Kinectaby::Context.new
context.num_devices
context.shutdown
device = context.open_device(0)
device.set_led(Kinectaby::LED_RED)
device.close
Fork schacon/kinectaby on GitHub, make it awesomer (preferably in a branch named for the topic), send me a pull request.
- Scott Chacon schacon@gmail.com
MIT. See LICENSE file.