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

Test kinect:No devices connected.... waiting for devices to be connected

asked 2016-05-27 23:18:48 -0600

Ziwen Qin gravatar image

updated 2016-05-29 03:13:02 -0600

gvdhoorn gravatar image

My environment is Ubuntu12.04, ros indigo. "http://learn.turtlebot.com" was followed by me, but when i run

roslaunch openni_launch openni.launch

the logs of terminal show

[ INFO] [1463638647.225005146]: No devices connected.... waiting for devices to be connected

It hits me with long time, help me!

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
2

answered 2016-05-28 05:57:27 -0600

ROSkinect gravatar image

updated 2016-05-29 05:00:02 -0600

openni_kinect is deprecated, you should use freenect_stack instead from here

sudo apt-get install ros-indigo-freenect-stack

And make sure the Kinect is connected, and if you are using Kinect V2, it should be connected to Intel USB3.0 port.

Once you install it, you need to start publishing the kinect camera topics by running the freenect_launch file:

roslaunch freenect_launch freenect.launch

Then open another shell to visualize the rgb image or any other topic:

rosrun image_view image_view image:=/camera/rgb/image_color
edit flag offensive delete link more

Comments

2

Yes and if that doesn't work then make sure the Kinect is getting 12v of power. Pretty obvious but it happens to the best of us hehe

K7 gravatar image K7  ( 2016-05-28 16:40:26 -0600 )edit

I follow your approach, but the problem still appear.Could you give me a way which include all step for connect kinect2?

Ziwen Qin gravatar image Ziwen Qin  ( 2016-05-28 19:55:19 -0600 )edit

The kinect seems working! I just edited my answer, check it out

ROSkinect gravatar image ROSkinect  ( 2016-05-29 05:00:31 -0600 )edit

Is this with Kinect v2?

K7 gravatar image K7  ( 2016-05-29 05:12:45 -0600 )edit

Should works for both. freenect_launch seems already working!

ROSkinect gravatar image ROSkinect  ( 2016-05-29 06:26:21 -0600 )edit

Should? Have you tested with both?

K7 gravatar image K7  ( 2016-05-29 06:59:44 -0600 )edit

@ROSkinect, Yes, freenect_launch already working. But no devices connected.... waiting for devices to be connected. I'm sure that i connect Kinect2 with my computer, typing lsusb, 3 Microsoft Corp had arised.

Ziwen Qin gravatar image Ziwen Qin  ( 2016-05-29 19:58:25 -0600 )edit
0

answered 2016-05-28 22:10:26 -0600

Ziwen Qin gravatar image

updated 2017-04-28 20:47:16 -0600

130s gravatar image

@K7,The same problem still appears in my terminal. There is messages in detial. When i type lsusb into the terminal, the messages shows following:

$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 045e:02c4 Microsoft Corp. 
Bus 004 Device 002: ID 045e:02d9 Microsoft Corp. 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 003 Device 007: ID 04d9:1503 Holtek Semiconductor, Inc. Shortboard Lefty
Bus 003 Device 002: ID 045e:02d9 Microsoft Corp. 
Bus 003 Device 008: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

then i tried:

$  roslaunch freenect_launch freenect.launch depth_registration:=true
 ... logging to /home/turtlebot/.ros/log/06249706-2549-11e6-a74b-fcaa14dfa0b1/roslaunch-turtlebot-M4HM87P-00-17646.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://localhost:54035/

SUMMARY
========

PARAMETERS
* /camera/camera_nodelet_manager/num_worker_threads: 4
* /camera/depth_rectify_depth/interpolation: 0
* /camera/depth_registered_rectify_depth/interpolation: 0
* /camera/disparity_depth/max_range: 4.0
* /camera/disparity_depth/min_range: 0.5
* /camera/disparity_registered_hw/max_range: 4.0
* /camera/disparity_registered_hw/min_range: 0.5
* /camera/disparity_registered_sw/max_range: 4.0
* /camera/disparity_registered_sw/min_range: 0.5
* /camera/driver/data_skip: 0
* /camera/driver/debug: False
* /camera/driver/depth_camera_info_url: 
* /camera/driver/depth_frame_id: camera_depth_opti...
* /camera/driver/depth_registration: True
* /camera/driver/device_id: #1
* /camera/driver/diagnostics_max_frequency: 30.0
* /camera/driver/diagnostics_min_frequency: 30.0
* /camera/driver/diagnostics_tolerance: 0.05
* /camera/driver/diagnostics_window_time: 5.0
* /camera/driver/enable_depth_diagnostics: False
* /camera/driver/enable_ir_diagnostics: False
* /camera/driver/enable_rgb_diagnostics: False
* /camera/driver/rgb_camera_info_url: 
* /camera/driver/rgb_frame_id: camera_rgb_optica...
* /rosdistro: indigo
* /rosversion: 1.11.10

NODES
  /camera/
    camera_nodelet_manager (nodelet/nodelet)
    debayer (nodelet/nodelet)
    depth_metric (nodelet/nodelet)
    depth_metric_rect (nodelet/nodelet)
    depth_points (nodelet/nodelet)
    depth_rectify_depth (nodelet/nodelet)
    depth_registered_rectify_depth (nodelet/nodelet)
    disparity_depth (nodelet/nodelet)
    disparity_registered_hw (nodelet/nodelet)
    disparity_registered_sw (nodelet/nodelet)
    driver (nodelet/nodelet)
    points_xyzrgb_hw_registered (nodelet/nodelet)
    points_xyzrgb_sw_registered (nodelet/nodelet)
    rectify_color (nodelet/nodelet)
    rectify_ir (nodelet/nodelet)
    rectify_mono (nodelet/nodelet)
    register_depth_rgb (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)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[camera/camera_nodelet_manager-1]: started with pid [17664]
[ INFO] [1464491179.502564627]: Initializing nodelet with 4 worker threads.
process[camera/driver-2]: started with pid [17685]
process[camera/debayer-3]: started with pid [17701]
process[camera/rectify_mono-4]: started with pid [17718]
process[camera/rectify_color-5]: started with pid [17732]
process[camera/rectify_ir-6]: started with pid [17754]
process[camera/depth_rectify_depth-7]: started with pid [17780]
process[camera/depth_metric_rect-8]: started with pid [17800]
[ INFO] [1464491179.859241746]: No devices connected.... waiting for devices to be connected
process[camera/depth_metric-9]: started with pid [17834]
process[camera/depth_points-10]: started with pid [17922]
process[camera/register_depth_rgb-11]: started with pid [17951]
process[camera/points_xyzrgb_sw_registered-12]: started with pid [17980]
process ...
(more)
edit flag offensive delete link more

Comments

Looks like it might be there although it is strange that they do not say camera or audio after Microsoft Corp. I have not used the Kinect 2. It could be another device (like a mouse).

Are you sure freenect is not publishing any topics? Type $ rostopic list (after running freenect)

K7 gravatar image K7  ( 2016-05-28 23:27:06 -0600 )edit

After typing rostopic list do you see any topics under /camera? There should be a whole bunch of them (ie /camera/depth_registered/points)

K7 gravatar image K7  ( 2016-05-28 23:29:12 -0600 )edit

When I run "roslaunch freenect_launch freenect.launch depth_registration:=true", the error, [ INFO] [1464504903.449033967]: No devices connected.... waiting for devices to be connected, appears again.After typing rostopic list , i see truly many topics under /camera.

Ziwen Qin gravatar image Ziwen Qin  ( 2016-05-29 02:00:33 -0600 )edit

While i typing "rosrun image_view image_view image:=/camera/pth/image", nothing is there showing. Many topic of /camera has been tried,nothing appears.

Ziwen Qin gravatar image Ziwen Qin  ( 2016-05-29 02:05:09 -0600 )edit

This may be an issue with Kinect v2. I have not used it before so I can't help beyond this. I would start by making sure that freenect actually works with Kinect v2. Check if the lib supports it.

K7 gravatar image K7  ( 2016-05-29 02:55:47 -0600 )edit

If you have a Kinect v1 try it with that and see if it works.

K7 gravatar image K7  ( 2016-05-29 02:58:59 -0600 )edit

I don't have kinect v1. -_- Using libfreenect2 and iai_kinect2, I can get some data from kinect2. But some program does not perfectly run.

Ziwen Qin gravatar image Ziwen Qin  ( 2016-05-29 03:57:52 -0600 )edit

What do you mean by not running perfect? If you have not calibrated your Kinect you may get some warnings but it should still work. Are you able to see point cloud in rviz?

K7 gravatar image K7  ( 2016-05-29 04:19:12 -0600 )edit
0

answered 2016-05-28 21:16:03 -0600

K7 gravatar image

updated 2016-05-29 03:05:40 -0600

What do you see when you type lsusb into the terminal? You should see 3 Microsoft Corp devices in the list (Kinect v1):

Microsoft Corp. Xbox NUI Camera

Microsoft Corp. Xbox NUI Motor

Microsoft Corp. Xbox NUI Audio

If it is there then try: $ roslaunch freenect_launch freenect.launch depth_registration:=true

Not sure with Kinect v2. But have a look here: https://github.com/code-iai/iai_kinect2

edit flag offensive delete link more

Comments

@K7 I only have Microsoft Corp. Xbox NUI Motor listed for Kinect XBOX 360. I searched all over web for solution, unsuccessfully. Could you maybe provide some insight? When I plug it in other PCs I have all 3 devices listed. Could it be that something is conflicting with it on Ubuntu 16.04?
Tnx

Dox gravatar image Dox  ( 2018-04-08 11:14:51 -0600 )edit

It may be a problem of the power, when I do not have connected to the power I only see "Motor".

Montes gravatar image Montes  ( 2018-04-12 03:10:44 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2016-05-27 23:18:48 -0600

Seen: 9,375 times

Last updated: Apr 28 '17