Here's a way to use the Kinect's motor with OpenNI...

972 views
Skip to first unread message

Ixstala

unread,
Feb 7, 2011, 2:00:01 AM2/7/11
to OpenNI
So it seems the Kinect's motor is not currently supported with the
PrimeSense driver for OpenNI. However, there is a way to use the motor
concurrently with the OpenNI api. All that is involved is installing
only the motor portion of the CL-NUI kinect drivers alongside the
PrimeSense camera driver. I attempted this procedure with libfreenect
and it would not allow OpenNI to grab frames, but the NUI-drivers seem
to behave properly in conjunction with the PrimeSense drivers.

*Note* I am using Windows 7 x64 and no problems so far.

1. Remove OpenNI's primesense driver.

2. Install the CL-NUI platform, http://codelaboratories.com/downloads/
and driver - it will show camera, motor, and audio components in
device manager as NUI-components.

3. Remove all the NUI devices in device manager

4. Install the PrimeSense drivers, device manager will show a camera
and motor driver, but no audio component.

5. Select the PrimeSense motor device in device manager and update its
driver, but point it to the CL-NUI driver which is located in the CL-
NUI install directory (..\Code Laboratories\CL NUI Platform\Driver) -
The NUI driver for the motor will now be installed and device manager
will reflect this.

6. Repeat step 5 for the audio component too if you wish. Device
manager will show the PrimeSense camera driver and the NUI motor &
audio drivers side by side.

7. When you compile your program link to the CLNUIDevice.lib, make
sure to include CLNUIDevice.h in your project as well. CLNUIDevice.dll
must be in your path too.

8. If you already have a working OpenNI code base, just start using
the CLNUI api to signal motor positions. There's an example program
included with the CLNUI platform to help get you started.

The NUI drivers do not seem to interfere with OpenNI's interface to
the camera, they play nice!

Have fun!

Naëm Baron

unread,
Feb 7, 2011, 11:07:08 AM2/7/11
to OpenNI
Hello world,

Thanks a lot ! Very smart trick.

jrawk

unread,
Feb 8, 2011, 7:17:08 PM2/8/11
to OpenNI

This is very helpful!

On my Win 7 system I installed in reverse order. I had installed
primesense drivers, I plugged in the camera. Then installed CL NUI
and it associated only the Audio and Motor drivers, the camera driver
remained associated with primesense.

Ixstala

unread,
Feb 10, 2011, 6:04:26 PM2/10/11
to OpenNI
Yep,
whatever driver installation order works for you is great as long as
the Primesense driver is running the camera and the CL drivers are
taking care of the motor and or audio componenets.
> > Thanks a lot ! Very smart trick.- Hide quoted text -
>
> - Show quoted text -

andrissh

unread,
Feb 14, 2011, 3:36:58 AM2/14/11
to OpenNI
Hello everyone!
Does anybody have a solution to this problem in Linux 10,10?
Or is there any chance, the motor will be soon supported by OpenNI
also?
Is somebody from OpenNI working on this?
thanks

Rajen Kishna

unread,
Feb 28, 2011, 9:08:46 AM2/28/11
to OpenNI
Wouldn't the Kinect camera halt on the initialization by both drivers?
> > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages