ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

Cant see Kinect Data. [closed]

asked 2013-03-07 01:49:02 -0600

preetham.hegde gravatar image

updated 2014-04-20 14:09:27 -0600

ngrennan gravatar image

Hi, I am working on this project that involves using the Kinect for XBOX 360S with ROS.

I did all the steps mentioned in the ROS Tutorials to have Openni Installed and the Prime sense and other drivers. and when i go to Openni samples i see a output. But in ROS i do a roscore and in another terminal do a roslaunch openni_launch openni.launch. And it loads with the regular calibration warnings and service already registered errors. Then in another terminal i open Rviz which gives a error /.rviz/display_config does not exist. And even though i accept the error and go ahead i see a black window which shows no output ,even if i do all tasks mentioned at the RVIZ Tutorials. Also i tried running "rosrun image_view image_view image:=/camera/rgb/image_color" and it shows up a blank window with no output. How do i resolve this and get ros to show my kinect data??

I need to run RGBDSLAM and use this kinect later.

I am on Ubuntu 12.04 and ROS-Fuerte.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2013-04-15 12:37:11

Comments

Could you pls paste your openni window output? Or maybe try rostopic hz or echo to see whether there is some output.

tianb03 gravatar imagetianb03 ( 2013-03-07 03:28:59 -0600 )edit

Well when i launch the openni.launch it starts as usual except for the errors ¨Tried to advertise a service that is already advertised in this node [/camera/depth_registered/image_rect_raw/compressedDepth/set_parameters]¨

preetham.hegde gravatar imagepreetham.hegde ( 2013-03-07 04:01:39 -0600 )edit

You can use "rostopic hz /camera/rgb/image_color" to check whether anything is sent on that topic. Rviz may display nothing because you haven't told it to do so. Also check out, whether there is data on other topics, e.g. "rostopic hz /camera/depth_registered/image_rect"

Felix Endres gravatar imageFelix Endres ( 2013-03-07 04:04:31 -0600 )edit

And when i run a rostopic it just says subscribed to the /camera/depth_registered/points and keeps blinking.

preetham.hegde gravatar imagepreetham.hegde ( 2013-03-07 04:05:29 -0600 )edit

Ok. I checked and had the same symptoms as you for the topics you mention, but I get data at the rectified topics, e.g. /camera/depth_registered/image_rect. But .../points works for me.

Felix Endres gravatar imageFelix Endres ( 2013-03-07 04:12:28 -0600 )edit

Even subscribing to the rectified topics just says subscribed and nothing more happens.

preetham.hegde gravatar imagepreetham.hegde ( 2013-03-07 19:47:43 -0600 )edit

Then it's definitely the driver. Can you post its output in your question (and format it as code please)

Felix Endres gravatar imageFelix Endres ( 2013-03-09 02:33:29 -0600 )edit

@Felix Endres : On running roswtf i get 17 Errors "Communication with /camera/depth/metric/ failed

preetham.hegde gravatar imagepreetham.hegde ( 2013-03-12 02:49:59 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2013-03-12 21:52:56 -0600

preetham.hegde gravatar image

updated 2013-03-16 04:39:49 -0600

roslaunch openni_launch openni.launch 
... logging to /home/preetham/.ros/log/c54e85c6-8bb2-11e2-81d2-000c2972eac5/roslaunch-ubuntu-21982.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:47488/

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 [21998]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to c54e85c6-8bb2-11e2-81d2-000c2972eac5
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 [22011]
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 [22023]
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 [22024]
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 [22038]
[ INFO] [1363161071.687625327]: Initializing nodelet with 1 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/rgb/rectify_mono-5]: started with pid [22086]
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
process[camera/rgb/rectify_color-6]: started with pid [22104]
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
process[camera/ir/rectify_ir-7]: started with pid [22119]
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
process[camera/depth/rectify_depth-8]: started with pid [22142]
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
process[camera/depth/metric_rect-9]: started with pid [22156]
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
process[camera/depth/metric-10]: started with pid [22214]
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading ...
(more)
edit flag offensive delete link more

Comments

@Felix Endres: Is this the output you were asking for?? Or is it a differnt one?? let me know which one u need exactly and i will post it. Sorry but i am new to ROS and this community and am getting things slowly.

preetham.hegde gravatar imagepreetham.hegde ( 2013-03-12 21:54:42 -0600 )edit

Seems all good. I have no idea what's wrong.

Felix Endres gravatar imageFelix Endres ( 2013-03-16 04:41:52 -0600 )edit

Have you tried in RVIZ to show the pointcloud ? (camera/depth/points or camera/depth_registered/points) ? Or try to show the depth/image_raw or depth_registered/image_raw in Rviz. Let me know the results.

Stephane.M gravatar imageStephane.M ( 2013-03-16 11:22:42 -0600 )edit

@Stephane.M : Yeah ive tried that. When i launch RViz i get a display_config not found error. But then i click OK and proceed and i configure as mentioned in the Rviz Tutorials in ROS. But they simply show a blank window. nothing displayed in it.

preetham.hegde gravatar imagepreetham.hegde ( 2013-03-17 23:00:07 -0600 )edit

@Felix Endres: I followed this guide to install the drivers. Let me know if this was the right one or was there a different one?? Link: http://mitchtech.net/ubuntu-kinect-openni-primesense/

preetham.hegde gravatar imagepreetham.hegde ( 2013-03-18 04:48:05 -0600 )edit

@Felix Endres: I would like to do a fresh Install of Ubuntu and then Kinect drivers & ROS. Could you give me a quick description on how to do it. Or a link of any good article you know on how to do it.

preetham.hegde gravatar imagepreetham.hegde ( 2013-03-18 04:51:40 -0600 )edit

Install ubuntu. Then ROS. Then openni-* (all packages openni). Then download Nite 1.5.2... . Run the script uninstall first ! (very important). Then run the script install. I did installations multiple times following this way (Ubuntu >12.04, ROs Groovy). Should work for Fuerte also.

Stephane.M gravatar imageStephane.M ( 2013-03-18 21:57:24 -0600 )edit

@Stephane.M & @Felix Endres:- I did all the installs and it still is the same. I am guessing i am installing the wrong software. Can anybody guide me to the right link for the softwares. Here is the link to what i used:

preetham.hegde gravatar imagepreetham.hegde ( 2013-03-20 23:51:36 -0600 )edit

Question Tools

Stats

Asked: 2013-03-07 01:49:02 -0600

Seen: 875 times

Last updated: Mar 16 '13