ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Raspberry Pi +Hydro + Openni/freenect

asked 2014-09-29 11:48:38 -0500

qlouis76 gravatar image

Hi All,

I am very new to ROS, raspberry pi and linux. I already install Hydro into my raspberry pi. I can run roscore.

Next I want to run freenect_launch. I can'y sudo apt-get install freenect_stack. It say Unable to locate package freenect_stack. I check with apt-cache search freenect. It didn't have anything about freenect_stack/freenect_launch

When I apt-cache search openni there is nothing. Should I add source.list? how do i do that?

How to i apt-get freenect_stack and use roslaunch freenect_launch freenect.launch ?

Sorry I am very new to all this. Do please link me if already have answered.

edit retag flag offensive close merge delete


Are you trying to connect a Microsoft Kinect to a raspberry pi? What linux are you using in rpi?

balakumar-s gravatar image balakumar-s  ( 2014-09-29 17:41:31 -0500 )edit

Debian. Thanks for your reply. I follow this tutorial to install hydro.

qlouis76 gravatar image qlouis76  ( 2014-09-29 18:45:10 -0500 )edit

If you are trying to connect Microsoft kinect to raspberry pi, it is not possible due to limitations in bandwidth on the rpi.

balakumar-s gravatar image balakumar-s  ( 2014-09-29 19:02:48 -0500 )edit

Are you sure? I search the net, there are some successful project on kinect and raspberry pi

qlouis76 gravatar image qlouis76  ( 2014-09-29 19:43:37 -0500 )edit

I've got indigo running on a rpi2B (raspbian:jessie) and the kinect works with the freenect drivers. I've read that you can compile openni from github and that works too.

jacksonkr_ gravatar image jacksonkr_  ( 2016-03-28 21:40:31 -0500 )edit

4 Answers

Sort by ยป oldest newest most voted

answered 2014-09-29 20:10:06 -0500

I tried interfacing kinect with a beaglebone black, I could not get the data stream from kinect. Try Odroid it is much faster. If you still want to use kinect with raspberry pi, you must either overclock it or like this, doing it from scratch. ROS +rpi + kinect cannot be done as it requires more processing power. Most of the projects that people have done would include a desktop pc to which they interface the kinect and stream the control data to rpi to control some actuators.

edit flag offensive delete link more


thank you for your explanation. I think i need to shift my work to using a laptop to process data from kinect and use raspberry pi as a controller.

Do you mind to share me some link about the project that kinect with PC + raspberry

qlouis76 gravatar image qlouis76  ( 2014-09-30 02:32:53 -0500 )edit

I was able to do it with freenect + indigo + rpi2B

jacksonkr_ gravatar image jacksonkr_  ( 2016-03-28 21:41:21 -0500 )edit

answered 2014-09-30 01:30:36 -0500

MarkyMark2012 gravatar image

I battled with the Kinect on my Pi for a while and gave up. I suggest using the ASUS Xtion . I managed to get that working without too much difficulty. Remember to use OpenNI2 though.


edit flag offensive delete link more


I wish i already had a kinect ready. So just thought of using it for a project.

qlouis76 gravatar image qlouis76  ( 2014-09-30 02:28:51 -0500 )edit

answered 2015-04-10 15:20:00 -0500

TimboInSpace gravatar image

I battled with the kinect and never gave up! I have a "working" implementation as a .img image and some code in . It eventually outputs an 8 bit depthimage as a 16-bit mm-encoded ROS depthimage. The intention was kinect --> raspi --> laptop

As far as I can tell, it's one of the few working ROS projects using kinect with Rasperry Pi 1 Model B+ My implementation uses the librekinect driver, but has big limitations: 6fps frame rate 640x40 resolution Connection often drops for 1s periods

Try it out. I just bought a raspberry pi 2, which can probably handle OpenNI, so I'll be trying that next as my current implementation is sub-par

edit flag offensive delete link more


hey... I am also working on a similar project using rpi2. I got the freenect working. Did openni work?

Kapil Yadav gravatar image Kapil Yadav  ( 2015-06-22 08:48:39 -0500 )edit

For any reading this: Yeah I got Openni working but NOT Openni2 Would highly recommend using a different depth camera, not Kinect

TimboInSpace gravatar image TimboInSpace  ( 2017-10-23 11:22:30 -0500 )edit

answered 2014-09-30 07:45:24 -0500

Maya gravatar image

updated 2014-09-30 07:46:39 -0500

I was able to get the Openni driver and a Xtion working on a Raspberry Pi with ROS. I detailed all the process here if you want to do it. It took me quite a few weeks to get it right. I might be able to send a image in a couple of weeks if you need it just send me a private message.

About the limitation in bandwidth I must say it is kinda very slow. It was more to say it's working than to use it in the end that I did this project. Just so you know.

edit flag offensive delete link more

Question Tools



Asked: 2014-09-29 11:48:38 -0500

Seen: 2,811 times

Last updated: Apr 10 '15