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

Cannot launch openni_camera: No devices connected (ROS electric)

asked 2012-03-30 09:55:26 -0600

jessicaaustin gravatar image

updated 2016-10-24 09:09:04 -0600

ngrennan gravatar image

I'm using Linux Mint 12 x64 (based on Ubuntu Oneiric) and ROS electric.

I installed the openni_kinect stack using the instructions here: http://www.ros.org/wiki/openni_kinect

sudo apt-get install ros-electric-openni-kinect

hg clone https://kforge.ros.org/openni/drivers openni-drivers
cd openni-drivers
make
sudo make install
cd ..
hg clone https://kforge.ros.org/openni/openni_ros 
rosmake openni_kinect --rosdep-install
sudo usermod -a -G video jaustin

I then restarted, made sure the Kinect had external power (got a blinking green light), saw the following from lsusb:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 013: ID 045e:02c2 Microsoft Corp. 
Bus 002 Device 014: ID 045e:02be Microsoft Corp. 
Bus 002 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 015: ID 045e:02bf Microsoft Corp. 
Bus 002 Device 007: ID 413c:2105 Dell Computer Corp. Model L100 Keyboard
Bus 002 Device 008: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0

But when I try to start up the openni_camera stack, it does not detect the device:

$ roslaunch openni_camera openni_node.launch
... logging to /home/jaustin/.ros/log/b8a3ebd8-7a9f-11e1-8f79-0090f5c64449/roslaunch-italy-18810.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://italy:48182/

SUMMARY
========

PARAMETERS
 * /rosdistro
 * /openni_node1/use_indices
 * /openni_node1/depth_registration
 * /openni_node1/image_time_offset
 * /openni_node1/depth_frame_id
 * /openni_node1/depth_mode
 * /openni_node1/debayering
 * /rosversion
 * /openni_node1/projector_depth_baseline
 * /openni_node1/rgb_frame_id
 * /openni_node1/depth_rgb_translation
 * /openni_node1/depth_time_offset
 * /openni_node1/image_mode
 * /openni_node1/shift_offset
 * /openni_node1/device_id
 * /openni_node1/depth_rgb_rotation

NODES
  /
    openni_node1 (openni_camera/openni_node)
    kinect_base_link (tf/static_transform_publisher)
    kinect_base_link1 (tf/static_transform_publisher)
    kinect_base_link2 (tf/static_transform_publisher)
    kinect_base_link3 (tf/static_transform_publisher)

auto-starting new master
process[master]: started with pid [18826]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to b8a3ebd8-7a9f-11e1-8f79-0090f5c64449
process[rosout-1]: started with pid [18839]
started core service [/rosout]
process[openni_node1-2]: started with pid [18851]
process[kinect_base_link-3]: started with pid [18852]
process[kinect_base_link1-4]: started with pid [18853]
[rospack] opendir error [No such file or directory] while crawling /ros/electric/stacks
process[kinect_base_link2-5]: started with pid [18861]
process[kinect_base_link3-6]: started with pid [18871]
[ INFO] [1333136221.786176644]: [/openni_node1] No devices connected.... waiting for devices to be connected
[ INFO] [1333136222.797003558]: [/openni_node1] No devices connected.... waiting for devices to be connected
[ INFO] [1333136223.808005494]: [/openni_node1] No devices connected.... waiting for devices to be connected
[ INFO] [1333136224.819467943]: [/openni_node1] No devices connected.... waiting for devices to be connected
[ INFO] [1333136225.830313418]: [/openni_node1] No devices connected.... waiting for devices to be connected

I know there is a related question here. That question was answered, but it's from a while ago, and the answer (basically, "I re-installed ubuntu and it just worked") is not very satisfactory. So I thought it couldn't hurt to bring it up again.

Does anyone have any ideas on things ... (more)

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
0

answered 2012-03-30 10:27:18 -0600

jessicaaustin gravatar image

Figured it out.

I bought a "Kinect for Windows" instead of XBOX 360 Kinect Sensor. Apparently this new version, while it has better hardware, is not yet supported by openni

edit flag offensive delete link more

Comments

Is it supported yet? Have you tried libfreenect?

Kevin gravatar image Kevin  ( 2012-09-11 15:05:28 -0600 )edit
2

answered 2013-02-03 10:45:17 -0600

davevh gravatar image

I get this error when I install Groovy on Ubuntu 12.10 and do the following:

1) Go to "www.openni.org/openni-sdk/openni-sdk-history-2" and download NiTE v1.5.2.21 for Linux-x64 2) Unzip it and go inside the top-level directory 3) Type: sudo ./install.sh

Before I do these 3 lines above, "roslaunch openni_launch openni.launch" works fine but after I do them I get:

No devices connected.... waiting for devices to be connected

Dave

edit flag offensive delete link more

Comments

I'm also getting this error on fuerte and ubuntu 12.04 32bits ( i install the 32bits NITE)

jcc gravatar image jcc  ( 2013-03-11 01:44:13 -0600 )edit
1

answered 2012-04-02 11:29:47 -0600

GermanUser gravatar image

Can you try it out with:

$ roslaunch openni_launch openni.launch

$ rosrun image_view image_view image:=/camera/rgb/image_color

and not with

$ roslaunch openni_camera openni_node.launch

and tell me which output you get.

BTW: Are you using the "Kinect for Winows"?

edit flag offensive delete link more
0

answered 2012-03-30 10:23:41 -0600

Bence Magyar gravatar image

updated 2012-03-30 10:24:51 -0600

This might be the same issue as this one: http://answers.ros.org/question/147/kinect-and-usb-30

I also had problems with the kinect and the solution was to plug it into a 2.0 slot.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-03-30 09:55:26 -0600

Seen: 4,024 times

Last updated: Feb 03 '13