Kinect on linux
On Ubuntu 14.04, I got libpcl-1.7-bin and openni-utils and plugged in an XBOX 360 Kinect (older style). It errored like this:
% pcl_openni_viewer
terminate called after throwing an instance of 'pcl::IOException'
what(): void pcl::OpenNIGrabber::setupDevice(const string&, const pcl::OpenNIGrabber::Mode&, const pcl::OpenNIGrabber::Mode&) in /build/buildd/pcl-1.7-1.7.2/io/src/openni_grabber.cpp @ 344 : No devices connected.
zsh: abort (core dumped) pcl_openni_viewer
Then I got it to work like this:
Go to https://github.com/avin2/SensorKinect/tree/unstable/Bin and get the right archive. Install it with
sudo checkinstall ./install.sh
and edit the line that's like
3 - Version: [ v5.1.2.1 ]
to be just "5.1.2.1" to avoid an error. checkinstall lets you track the installed files and uninstall them all with the standard package tools. Note that this wrote /etc/modprobe.d/blacklist-gspca-kinect.conf , so unplug/replug your kinect if necessary.
Now you should be able to run these:
% NiViewer
% Sample-NiSimpleViewer
% pcl_openni_viewer