Building OpenNI + SensorKinect on Ubuntu 12.04

1,819 views
Skip to first unread message

Tom Cook

unread,
Jun 1, 2012, 6:07:53 AM6/1/12
to openn...@googlegroups.com
Hi,

I'm trying to build OpenNI + SensorKinect on Ubuntu 12.04, running in a VMWare virtual machine.  Can someone recommend a good way to get this combination working?

I've tried getting the latest of both projects from GitHub, but the Linux USB interface code seems to be out of sync - recent changes to SensorKinect seem to depend on changes to OpenNI that haven't been merged to GitHub yet. The problems start in XnDeviceSensorIO.h, which refers to a type, XnUSBEventArgs, which isn't defined anywhere.

I've tried getting the SensorKinect code from Dec 22 last year.  It builds, but when I try to run it I get the message that the Xiron OS got an event timeout.  The XnSensorServer process is running, but the logs don't show anything interesting.

Any hints?

Thanks,
Tom

Xavier Mendez

unread,
Jun 1, 2012, 10:45:32 AM6/1/12
to openn...@googlegroups.com
I've built OpenNI + Sensor + SensorKinect + NITE
on my 32-bit Ubuntu 12.04 with no problems.

2012/6/1 Tom Cook <tom.k...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openni-dev/-/tUqo5qdpYi4J.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.

Tom Cook

unread,
Jun 1, 2012, 11:05:17 AM6/1/12
to openn...@googlegroups.com
Thanks for responding.  Did you build released versions or the git head?


On Friday, 1 June 2012 15:45:32 UTC+1, jmendeth wrote:
I've built OpenNI + Sensor + SensorKinect + NITE
on my 32-bit Ubuntu 12.04 with no problems.

2012/6/1 Tom Cook
Hi,

I'm trying to build OpenNI + SensorKinect on Ubuntu 12.04, running in a VMWare virtual machine.  Can someone recommend a good way to get this combination working?

I've tried getting the latest of both projects from GitHub, but the Linux USB interface code seems to be out of sync - recent changes to SensorKinect seem to depend on changes to OpenNI that haven't been merged to GitHub yet. The problems start in XnDeviceSensorIO.h, which refers to a type, XnUSBEventArgs, which isn't defined anywhere.

I've tried getting the SensorKinect code from Dec 22 last year.  It builds, but when I try to run it I get the message that the Xiron OS got an event timeout.  The XnSensorServer process is running, but the logs don't show anything interesting.

Any hints?

Thanks,
Tom

--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openni-dev/-/tUqo5qdpYi4J.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+unsubscribe@googlegroups.com.

Xavier Mendez

unread,
Jun 1, 2012, 12:05:31 PM6/1/12
to openn...@googlegroups.com
I built the last unstable OpenNI, Sensor, and SensorKinect from Git.

2012/6/1 Tom Cook <tom.k...@gmail.com>
To view this discussion on the web visit https://groups.google.com/d/msg/openni-dev/-/udAZ2mD-HuUJ.

To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.

Xavier Mendez

unread,
Jun 1, 2012, 12:06:32 PM6/1/12
to openn...@googlegroups.com
Ah, remember to disable the kinect kernel module.
gspc_kinect or something like that.

2012/6/1 Xavier Mendez <jmen...@gmail.com>

Tom Cook

unread,
Jun 1, 2012, 12:35:37 PM6/1/12
to openn...@googlegroups.com
Yes, I did that.  It looked like this:

cd OpenNI/Platform/Linux/CreateRedist
./RedistMaker
cd ../Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.2.23/
sudo ./install.sh
cd
git clone https://github.com/avin2/SensorKinect
cd SensorKinect/Platform/Linux/CreateRedist
./RedistMaker
cd Sensor-Bin-Linux-x64-v5.1.0.25
sudo ./install.sh

But I get errors as described in my original post.  Have I missed something.  You said you built something called Sensor as well as SensorKinect - what is that?

Thanks again,
Tom


On Friday, 1 June 2012 17:06:32 UTC+1, jmendeth wrote:
Ah, remember to disable the kinect kernel module.
gspc_kinect or something like that.

2012/6/1 Xavier Mendez
I built the last unstable OpenNI, Sensor, and SensorKinect from Git.


2012/6/1 Tom Cook
Thanks for responding.  Did you build released versions or the git head?

Xavier Mendez

unread,
Jun 1, 2012, 2:04:27 PM6/1/12
to openn...@googlegroups.com
PrimeSense released the open-source drivers (called Sensor) for the Xtion Pro.
Then, Microsoft used that same technology for the Kinect.
Even although the technology is the same, Sensor isn't compatible with Kinect.

Then, avin2 forked the Sensor drivers and adapted them to work with the kinect.
So, they're called SensorKinect.

I don't have an Xtion, but I also install Sensor before installing SensorKinect. ;-)
Just to make sure, did you blacklist the kinect module?

2012/6/1 Tom Cook <tom.k...@gmail.com>
To view this discussion on the web visit https://groups.google.com/d/msg/openni-dev/-/tg9bLjFU_E0J.

To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.

Xavier Mendez

unread,
Jun 2, 2012, 4:11:33 AM6/2/12
to openn...@googlegroups.com
Your error is that you aren't checking out the unstable branch,
so SensorKinect can't build because it needs some of the latest features.
After cloning the repo:

do:
cd OpenNI
git checkout unstable

then, build/install as normal.
The problem should be gone.

I recommend you to do the same on SensorKinect.

2012/6/1 Xavier Mendez <jmen...@gmail.com>
Reply all
Reply to author
Forward
0 new messages