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

Kinect publishes no data on published topics

asked 2012-10-17 23:41:44 -0600

updated 2016-10-24 09:00:12 -0600

ngrennan gravatar image

In the lab we have a laptop (Asus X301A-RX111V with Intel i3-2350m, 1x usb 2.0 and 1x usb 3.0) to be on the turtlebot platform.

Before driving and connecting the turtlebot we can't get Kinect to work. I know that there are issues with usb 3.0, so Kinect is pluged to usb 2.0.

When we run

roslaunch openni_launch openni.launch

Kinect normaly starts, topics are published and no errors printed. But the problem is that nothing is published on the topics. Simptoms are similar when Kinect is connected to USB 3.0 port. It is the same on x64 and x86 versions of Ubuntu.

Does anybody have the fix for that?

Running Ubuntu 12.04 + Fuerte.

EDIT: There has to be the problem with Linux OpenNI driver for Kinect because also no data is received if using only OpenNI default drivers and samples (openni.org). In Windows everything works normally also with OpenNI drivers. Any ideas how to fix it?

EDIT2: I narrowed the problem down to libusb and two errors:

Endpoint 0x82, Buffer 15: Failed to re-submit asynch I/O transfer (err=-1)!
Endpoint 0x82, Buffer 15: Failed to cancel asynch I/O transfer (err=-5)!

Thank you.

edit retag flag offensive close merge delete

Comments

what do you see from rxgraph?

MarkyMark2012 gravatar image MarkyMark2012  ( 2012-10-18 01:30:54 -0600 )edit

I tried rxgraph with rostopic hz /camera/rgb/image_color on working desktop machine and on not working laptop. Both are showing the same. Here is the link to the rxgraph: http://postimage.org/image/4jp3ufl09/

Any ideas?

Grega Pusnik gravatar image Grega Pusnik  ( 2012-10-18 03:04:05 -0600 )edit

What is the output of rostopic hz /camera/depth/points (or some other Kinect topic) on the laptop that is not working?

jarvisschultz gravatar image jarvisschultz  ( 2012-10-18 03:07:01 -0600 )edit

It is showing "Subscribed to [/camera/depth/points]" and nothing else. The IR light is visible, but nothing is posted on the topic.

Grega Pusnik gravatar image Grega Pusnik  ( 2012-10-18 03:08:00 -0600 )edit

Hello @grega, Is depth_registration enabled? You can check it using dynamic_reconfigure package as described here http://www.ros.org/wiki/openni_launch#Quick_start

yigit gravatar image yigit  ( 2012-10-22 01:32:15 -0600 )edit

I tried with dynamic_reconfigure package but no luck. No data is coming. Also I don't think that depth registration has anything to do with the problem.

Grega Pusnik gravatar image Grega Pusnik  ( 2012-10-22 23:42:42 -0600 )edit

have the same problem how do i solve it?

daidalos gravatar image daidalos  ( 2013-12-29 18:57:21 -0600 )edit

3 Answers

Sort by » oldest newest most voted
2

answered 2012-10-26 04:27:06 -0600

I came to the conclusion that on Ubuntu 12.04 LTS Kinect doesn't work on Asus X301A-RX111V with Intel i3-2350m, 1x usb 2.0 and 1x usb 3.0). No drivers work. I think that the problem is with the Ubuntu kernel and new Ivy Bridge CPU and HM76 Intel Chipset.

So now I installed Ubuntu 12.10 and voila Kinect started working with OpenNI unstable version + avin2 Kinect drivers (manually compiled and installed!) + NITE unstable.

All I have to do now is install ROS from source and try if Kinect works in ROS. I'll publish my finding.

edit flag offensive delete link more

Comments

Did kinect work with ubuntu 12.10?..please let me know if how can i make kinect to work with ros

sai gravatar image sai  ( 2012-10-26 16:43:42 -0600 )edit

Kinect worked in Ubuntu 12.10 with OpenNI unstable version from git and avin2 Kinect drivers manualy compiled from git. I will try Kinect in ROS in monday morning and let you know.

Grega Pusnik gravatar image Grega Pusnik  ( 2012-10-27 00:17:32 -0600 )edit

Thanks and keep me updated

sai gravatar image sai  ( 2012-10-28 15:43:47 -0600 )edit

Did it work

sai gravatar image sai  ( 2012-11-04 22:45:16 -0600 )edit

Still having trouble building ROS from source :) Will keep you posted.

Grega Pusnik gravatar image Grega Pusnik  ( 2012-11-04 23:35:14 -0600 )edit

I m having trouble in building OpenNI..* Building OpenNI... ../../../../Source/OpenNI/XnPlayerImpl.cpp: In constructor ‘xn::PlayerImpl::PlayerImpl()’: ../../../../Source/OpenNI/XnPlayerImpl.cpp:71:33: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] ../../../../Source/Open

sai gravatar image sai  ( 2012-11-04 23:52:12 -0600 )edit

make[1]: * [../../../Bin/x86-Release/org.OpenNI.jar] Error 127 make: [Wrappers/OpenNI.java] Error 2 make: ** Waiting for unfinished jobs.... Building Failed!

sai gravatar image sai  ( 2012-11-04 23:52:37 -0600 )edit

make[1]: * [../../../Bin/x86-Release/org.OpenNI.jar] Error 127 make: [Wrappers/OpenNI.java] Error 2 make: ** Waiting for unfinished jobs....

sai gravatar image sai  ( 2012-11-04 23:52:42 -0600 )edit
1

answered 2012-11-20 00:01:27 -0600

btakac gravatar image

I have the same problem with Asus N56VZ (Intel i7-3160QM, Intel HM76 chipset), Ubuntu 12.04 64 bit and Kinect. After running openni.launch via roslaunch the behavior is the same as described above. Everything seems to start normal. Nodes are visible in rxgraph, but rostopic hz command doesn´t show anything being actually published. I just wanted to confirm the aforementioned suspicion about HM76 chispset under Ubuntu 12.04.

Does building ROS Fuerte from source for Ubuntu 12.10 solve the problem?

edit flag offensive delete link more

Comments

1

I wasn't able to install working Fuerte from source on Ubuntu 12.10. But I was able to install Groovy, manualy built openni_launch, avin2 Kinect drivers and openni. All from source. I can confirm that Kinect works in Groovy and Ubuntu 12.10. Now we just have to wait for more stable version ob Groovy

Grega Pusnik gravatar image Grega Pusnik  ( 2012-11-20 00:58:35 -0600 )edit
0

answered 2012-11-27 15:58:38 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I installed as you said and it works! However, having problems installing ROS Groovy from source. Any luck with that? Why do you need to install from source?

edit flag offensive delete link more

Comments

Great that it works. At the time when I was installing there has not yet been Groovy Beta 1 release. So I had to install it from source. Now you can install it more easily. Here are the details: http://www.ros.org/wiki/groovy/Installation/Ubuntu

Grega Pusnik gravatar image Grega Pusnik  ( 2012-11-28 19:36:48 -0600 )edit

You still have to manually build and install openni and avin2 drivers because there is no openni or kinect stack for groovy yet. To get Kinect running in Groovy Beta 1 with roslaunch openni_launch openni.launch you have to manualy install corresponding stacks/packets from source.

Grega Pusnik gravatar image Grega Pusnik  ( 2012-11-28 19:42:32 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2012-10-17 23:41:44 -0600

Seen: 1,705 times

Last updated: Nov 27 '12