Cannot View Kinect Data on Fuerte [closed]
I am trying to use the RGBDSLAM package for my project. I got everything to build successfully according to the instructions on the wiki page after a few attempts. I can launch openni using roslaunch openni_launch openni.launch but, when I try running rgbdslam using rosrun rgbdslam rgbdslam I can`t see any image (depth or rgb).
I tried viewing the kinect data using rviz but, again, no luck. I followed the instructions on the rviz quick start tutorial page but pointclouds2 gives me a warning and says that nothing is being published to the topic.
I also tried rosrun image_view image_view image:=/camera/rgb/image_color; still no image.
The interesting thing is that the red lights in the depth sensor on the Kinect turns on when I try viewing the depth image...but no image!
Any thoughts on why this is happening and how to fix it? Thanks
EDIT: Here is the console output when I run roslaunch openni_launch openni.launch
XYZ@ubuntu:~$ roslaunch openni_launch openni.launch
... logging to /home/mehrdad/.ros/log/51b1b762-5a8b-11e2-adf5-e8e0b78c5661/roslaunch-ubuntu-4775.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://ubuntu:47290/
SUMMARY
========
PARAMETERS
* /camera/depth/rectify_depth/interpolation
* /camera/depth_registered/rectify_depth/interpolation
* /camera/disparity_depth/max_range
* /camera/disparity_depth/min_range
* /camera/disparity_depth_registered/max_range
* /camera/disparity_depth_registered/min_range
* /camera/driver/depth_camera_info_url
* /camera/driver/depth_frame_id
* /camera/driver/depth_registration
* /camera/driver/device_id
* /camera/driver/rgb_camera_info_url
* /camera/driver/rgb_frame_id
* /rosdistro
* /rosversion
NODES
/camera/depth/
metric (nodelet/nodelet)
metric_rect (nodelet/nodelet)
points (nodelet/nodelet)
rectify_depth (nodelet/nodelet)
/camera/rgb/
debayer (nodelet/nodelet)
rectify_color (nodelet/nodelet)
rectify_mono (nodelet/nodelet)
/
camera_base_link (tf/static_transform_publisher)
camera_base_link1 (tf/static_transform_publisher)
camera_base_link2 (tf/static_transform_publisher)
camera_base_link3 (tf/static_transform_publisher)
camera_nodelet_manager (nodelet/nodelet)
/camera/
disparity_depth (nodelet/nodelet)
disparity_depth_registered (nodelet/nodelet)
driver (nodelet/nodelet)
points_xyzrgb_depth_rgb (nodelet/nodelet)
register_depth_rgb (nodelet/nodelet)
/camera/ir/
rectify_ir (nodelet/nodelet)
/camera/depth_registered/
metric (nodelet/nodelet)
metric_rect (nodelet/nodelet)
rectify_depth (nodelet/nodelet)
auto-starting new master
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored
process[master]: started with pid [4791]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 51b1b762-5a8b-11e2-adf5-e8e0b78c5661
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored
process[rosout-1]: started with pid [4804]
started core service [/rosout]
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored
process[camera_nodelet_manager-2]: started with pid [4816]
[ INFO] [1357756520.727453287]: Initializing nodelet with 4 worker threads.
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored
process[camera/driver-3]: started with pid [4845]
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored
process[camera/rgb/debayer-4]: started with pid [4868]
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading'="" from="" '="" usr="" lib="" python2.7="" threading.pyc'=""> ignored
process[camera ...
When you run "roslaunch openni_launch openni.launch", does it find the kinect? Could you post the console output from that command?
Are you using USB 3.0? Have you searched through answers to similar problems? I had trouble with openni in fuerte, but found all my answers just by searching for older questions.
Thanks for the fast response. I posted the console output.
Regarding USB 3.0, I read that there are some issues with it. That's why I'm using USB 2.0 :). I have been going through the old questions, but haven't found a solution yet. I am going to search a bit more.
Your output seems OK, but very similar to what I got when connecting to USB 3.0: the hardware is found but data is nowhere to be seen. Maybe you have too many things connected on that USB bus? Are you using a USB hub by any chance?
@Merdad: Try checking if you have updated openni libraries. See http://answers.ros.org/question/51865/how-to-get-the-topics-data-from-kinect/
Tried everything that was suggested...even double checked to make sure my laptop ports are USB 2.0. Still no image. @georgebrindeiro: I am not using a USB hub wither. even disconnected my mouse to make sure the only thing connected is the Kinect
Could it be a hardware problem? I am working on a Toshiba Ultrabook with 3rd gen. i7 and HD4000 graphics.
Unlikely a hardware problem, but you shouldn't rule it out: if you can, install ROS Electric on a PC with an older Ubuntu version to check.
Have you checked out the verified answer to this question? It helped me when I had issues in ROS Fuerte+Ubuntu 12.04 64-bit: http://answers.ros.org/question/33622/openni_launch-not-working-in-fuerte-ubuntu-precise-1204/
@georgebrindeiro The new openni packages should take care of the problem mentioned in thread you mentioned. @Merdad My last recommendation would be to try the libfreenect system package, as well as add the output of lsusb and dmesg to your original question.
Maybe this question could help: http://answers.ros.org/question/51865/how-to-get-the-topics-data-from-kinect/
I switched to a workstation instead of laptops and no more issues with viewing Kinect images. I guess hardware was the issue.
@Merdad: This is a bit odd. I don't think I've seen hardware dependent problems with the Kinect apart from the USB 3.0 issue. It is good to know you have something working, Would you mind posting the output of dmesg right after plugging in the Kinect in your laptop?
Sure. I'll do that on Friday since I don't have access to that computer until then.
@Merdad: Did u get it to work finally. I am having the same issue and still couldn't figure out the issue. http://answers.ros.org/question/57412/cant-see-kinect-data/