3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Hooking up a Kinect to your Computer (Using Ubuntu)

Hooking up a Kinect to your Computer (Using Ubuntu)
«
  • 101.png
  • 105.png
  • 102.jpg
  • 103-1.jpg
  • 103-2.jpg

I've been watching the Kinect hacks online for the past several months and really enjoyed them. I started thinking recently that I would kind of like to work with it myself, see what kinds of things I might be able to make and do, and decided to get a Kinect to play with.

The first thing I found was that there are a lot of different development platforms that all connect the Kinect to the computer in different ways. I also found out that all of these platforms were in different stages of development, and I don't think any of them are finished.

In the end, I found a lot of information about Kinect 1.2 running under Ubuntu, and felt that this platform gave me the most initial options for immediate enjoyment.

Trying to install, I found that the instructions that are given on the webpage (which are incredibly difficult to find), aren't really helpful in installing them on a computer, so after spending two weeks with google and three computers, I finally feel I've figured out the best way to install the working application. This instructable will be my attempt to convey that information I learned to you!
 
Remove these adsRemove these ads by Signing Up
 

Step 1An Operating System

An Operating System
«
  • Ubuntu02.png
  • Ubuntu01.png

For the purpose of this instructable, I installed all of my applications on the current version of the Ubuntu Operating system. So If you head over to ubuntu.com, and download the desktop version of Ubuntu 10.10 either 32 or 64 bit depending on your system hardware and you'll be ready to begin!

[Note: I have not tried this with Ubuntu 11.04 and can therefor not guarantee any of this will work within that OS]

Follow the directions on their page for installing either via a usb thumb drive or a cd (or your own preferred method). Once Ubuntu is installed on your computer, you're ready to move on to step two!
« Previous StepDownload PDFView All StepsNext Step »
25 comments
May 13, 2012. 5:41 PMmoncvan says:
Hi, I installed the new version one like the Kinect 2.0 and Vrui-2.2-003 in my Ubuntu terminal cause I need to apply multiple kinects like in the video of youtube: http://www.youtube.com/watch?v=5-w7UXCAUJE

After I followed the instruction above, when I type in inside of folder Kinect 2.0 like
sudo ./bin/RawKinectViewer > CalibrationData.scv

It said :"error while loading shared libraries: libKinect.g++-3.so.2: cannot open shared object file: No such file or directory"

So, what should I do ? Do I have to install another library ? If yes, how?

Thanks
Apr 26, 2012. 8:28 PMGr3at_Whit3_North_Guy says:
is there any easier way to do this or i have to follow this long and complex procedure
Feb 22, 2012. 10:57 PMmaarige says:
thanku very much for the tutorial....

every thing was working fine before i reached the step to MAKE the Kinect 1.2 and got the following error...

Compiling USBContext.cpp...
USBContext.cpp:25: fatal error: libusb-1.0/libusb.h: No such file or directory
compilation terminated.
make: *** [o/USBContext.o] Error 1

i can't understand where it looks for 'libusb' file....
waiting for ur reply
thanks in advance
Feb 23, 2012. 10:33 PMmaarige says:
thanks for reply....

one more thing i would like to ask is that what is the purpose of Vrui while using Kinect????

regards
Dec 10, 2011. 11:38 AMmicrobot says:
StumpChunkman, has anyone told you that you rock today?

I was slightly frustrated for a bit there. I reckon the problem is disorganization on my part. I have been able to get point cloud and ir camera data out of the kinect after 15 minutes of playing around. For the last two weeks have read sooo many tutorials. and followed like five of them. ROS file system, openNI, etc. I want to do finger/gesture tracking. I confused myself pretty well on what talks to what and by what mechanism. i wiped the box and started from scratch. Found an Engineers checklist, and started over again. Documenting my steps...

Here is the manual: http://www.guymacon.com/ENGINEER/PLANNING/INDEX.HTM


On to tracking environmental variables!

Thanks Bud!
Dec 10, 2011. 9:00 AMmicrobot says:
Thanks for the reply Stumpchuck.

I re-read your instructions, decided to follow them directly, with the same versions of Vrui and everything else. Yeah! I at least have a different error. I feel like its some kind of dependency , as it refers to a file that is missing.
I found the ValueSource.h file. My problem is that I do not have a proper education in Xnix. I am on Ubuntu, Natty. for the last ten months. I know windows systems throughly. Does not appear to help much, hehe.

me@Computer:~/src/Kinect-1.2b$ make
Compiling KinectCamera.cpp...
KinectCamera.cpp:32:28: fatal error: IO/ValueSource.h: No such file or directory
compilation terminated.
make: *** [o/KinectCamera.o] Error 1

Again, thanks for your time.
Dec 9, 2011. 3:48 PMmicrobot says:
I should have used my eyes a little better. I found that "the VRUIDIR variable at the top of Kinect-1.2's makefile needs to be changed, to $(HOME)/Vrui-2.0-001 or $(HOME)/Vrui-2.0-002, respectively" - so I changed that, now I get this error:


me@ocmputer:~/src/Kinect-1.2a$ make
Compiling KinectCamera.cpp...
KinectCamera.cpp: In static member function ‘static void KinectCamera::StreamingState::transferCallback(libusb_transfer*)’:
KinectCamera.cpp:233:53: error: no matching function for call to ‘Threads::MutexCond::signal(Threads::MutexCond::Lock&)’
/home/me/Vrui-2.2/include/Threads/MutexCond.h:97:7: note: candidate is: void Threads::MutexCond::signal()
make: *** [o/KinectCamera.o] Error 1
Dec 8, 2011. 10:06 AMmicrobot says:
Hi, StumpChunkman.
I really like your guide.
I am stuck at make on "Go to src, then Kinect-1.2 folder".
I am sure it is because I am new to linux. I guess I just don't fully get it yet.

Here is my terminal output: me@Computer:~/src/Kinect-1.2b$ make
makefile:49: /home/me/Vrui-2.1/share/Vrui.makeinclude: No such file or directory
make: *** No rule to make target `/home/me/Vrui-2.1/share/Vrui.makeinclude'. Stop.

I have Vrui-2.2-001 installed, I know some of the packages changed, nevertheless I am not sure how to handle this. Any help would be greatly appreciated.

Thanks again,
Microbot

Aug 12, 2011. 10:30 AMkpolzounov says:
Just a suggestion if your new to linux you should use Zorin OS instead of ubuntu (a modded vesion of ubuntu) and its much easier to install it on a flash drive using unetbootin :) just a helpful tip
Aug 4, 2011. 5:41 PMlocofocos says:
Nice. I tried to get my Kinect running in Ubuntu 11.04, but got caught up in all the dependencies and other things that needed to be compiled from source (which weren't in Synpatic). Do you think there's any way your setup could be used with https://github.com/petermoz/keyboard-anywhere? It lets you play a virtual piano with the Kinect.
Aug 7, 2011. 12:42 PMrread says:
Thank you so much for this very clearly written instructable. I'm writing this from ubuntu, I have never read such a good description of what is going on in terminal. just followed blindly and got lucky in the past.

I hope to eventually build a similar system to the kinect +++ in order to control kites by computer... eventually for power generation.
Once I nail it I'll get you the instructable back. Hopefully as clear as this one.
Aug 8, 2011. 11:39 AMtzsch says:
Wow, super awesome idea!
Sep 19, 2011. 6:35 AMrread says:
ok... here's the concept ... And it's kicking off
https://sites.google.com/site/kitepowerresearch/
Aug 7, 2011. 3:03 PMXTL says:
" my grandma's PC she was throwing away(in last picture bubble)
OMG - time is moving so quickly. my mother still refuses to have one and his grandmother is throwing her old one out. LOL

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
219
Followers
16
Author:StumpChunkman