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

Openni or Freenect?

asked 2016-04-04 06:20:05 -0600

thepirate16 gravatar image

Hi guys,

I'm quite new in ROS and I would like to know a general opinion about which one would you use, or which are you using nowadays and why. I would like to use a KINECT to do a SLAM and try to subscribe to topics related with the measured depth.

Thanks everyone.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-04-04 13:13:08 -0600

fabian77 gravatar image

I will quote an answer which I found on Stackoverflow belonging to that question i found as i stood before that decision myself:

Libfreenect is mainly a driver which exposes the Kinect device's features: - depth stream - IR stream - color(RGB) stream - motor control - LED control - accelerometer

If does not provide any advanced processing features like scene segmentation, skeleton tracking, etc.

On the other hand, OpenNI allows generic access to Kinect's feature (mainly the image streams), but also provides rich processing features such as: - scene segmentation - skeleton tracking - hand detection and tracking - gesture recognition - user interface elements etc. but no low level controls to device features like motor/LED/accelerometer.

As opposed to libfreenect which AFAIK works only with the Kinect sensor, OpenNI works with Kinect but with other sensors as well like Asus Xtion Pro, Carmine, etc.

I am using freenect at the moment with success and haven't tried out out OpenNi so long. You can find some info on my projects website here (in german) and see what i have done so long with my kinect and ROS. Project is still under development.

On point i struggle at the moment is, that the ros-freenect-stack is just supported until ROS-Indigo and i want to update to Jade or Kinectic soon, if someone could help out here please contact me!

Fabian

edit flag offensive delete link more

Comments

Xtion is openni2 only. Taking a short look at your document you mainly seem to use the kinect for depthimage_to_laserscan, there shouldn't be any problem for you in using openni(2) instead.

Humpelstilzchen gravatar image Humpelstilzchen  ( 2016-04-04 13:43:20 -0600 )edit

I will have a look at OpenNi too, do you have a clue if both drivers work in parallel? In my opinion installing freenect on ubuntu is better documented or easier then OpenNi, or i haven't researched that well enough. Must have a look, cause openni_camera and openni_launch seems better supported

fabian77 gravatar image fabian77  ( 2016-04-04 15:44:41 -0600 )edit
1

I never used freenect, but installing both on the same computer should be no problem. Using both at the same time of course not, openni1 & 2 are packaged, so it should just be a matter of

apt-get install libopenni-dev (or libopenni2-dev)
Humpelstilzchen gravatar image Humpelstilzchen  ( 2016-04-05 00:00:40 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2016-04-04 06:20:05 -0600

Seen: 3,031 times

Last updated: Apr 04 '16