Kinect

Uses libfreenect from Kinect to grab images from a Kinect or a Xtion (http://Kinect.org/). Non-standard drivers are necessary for the Xtion. In raw-mode, the DEPTH ouput is in the range 0-1, where a lower value means that a detected object is closer to the Kinect. A value of 1 indicates that no object is detected or maximum distance. In mm-mode, the DEPTH output is the distance in mm to any detected object. There is one input to tilt the Kinect sensor and onte to set the color or the LED.

Example XML definition

A simple example

  <module
      class = "Kinect"
      name = "Kinect"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "Kinect".string
nameThe name of this instance of the module.string
modeThe type of depth imagechoices:
raw
mm
xtionIs the device an Xtion?boolfalse
indexThe index of the device (0, 1, 2...)int0

Module Connections

Inputs

NameDescription
TILTThe tilt of the Kinect (0-1)
LEDThe color of the LED. Values in the range 0-1 produces: black (0-0.25), red (0.25-0.5), yellow (0.5-0.75), green (0.75-1.0).

Outputs

NameDescription
DEPTHThe depth image
INTENSITYThe gray image
REDThe red channel of the image
GREENThe green channel of the image
BLUEThe blue channel of the image

Limitations

The module is not thread safe beacuase of limitations in the libfreenect-libraries. If several Kinect modules are used in thread-mode they have to run in the same thread. This an be done by connecting them to a single module using zero-delay connections.

Author

Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science

Files

Kinect.h
Kinect.cc
Kinect.ikc

blog comments powered by Disqus