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

openni not working

asked 2014-01-23 13:31:40 -0600

updated 2014-01-23 19:56:21 -0600

Dear all,

So, I finally dared to give Hydro a spin and installed it on a fresh Ubuntu 12.04 64bit machine. (The machine's only purpose in this life is to run ROS, so all I did was to install Ubuntu 12.04 and its latest updates right before installing ROS Hydro).

The thing is that when I plug a Microsoft Kinect and execute roslaunch openni_launch openni.launch everything is OK. But, when I plug a PrimeSense RD1.08 or PrimeSense RD1.09 it does not detect them::

[ INFO] [1390375625.910692278]: No matching device found.... waiting for devices. Reason: openni_wrapper::OpenNIDevice::OpenNIDevice(xn::Context&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&) @ /tmp/buildd/ros-hydro-openni-camera-1.9.2-0precise-20140117-2223/src/openni_device.cpp @ 61 : creating depth generator failed. Reason: USB interface is not supported!

More over, when I plug an ASUS Xtion Pro, the thing just blows up:

martin@martin-U24E:~$ roslaunch openni_launch openni.launch 
... 
process[camera/depth_registered_rectify_depth-14]: started with pid [7090]
process[camera/points_xyzrgb_hw_registered-15]: started with pid [7104]
[ INFO] [1390375812.746335307]: Number devices connected: 1
process[camera/disparity_depth-16]: started with pid [7119]
process[camera/disparity_registered_sw-17]: started with pid [7133]
[FATAL] [1390375812.838870747]: Service call failed!
[FATAL] [1390375812.839177731]: Service call failed!
[FATAL] [1390375812.839430812]: Service call failed!
[FATAL] [1390375812.839533404]: Service call failed!
[FATAL] [1390375812.840017362]: Service call failed!
[FATAL] [1390375812.840183592]: Service call failed!
[FATAL] [1390375812.840222229]: Service call failed!
[FATAL] [1390375812.846948463]: Service call failed!
[FATAL] [1390375812.847145521]: Service call failed!
[FATAL] [1390375812.849545313]: Service call failed!
[FATAL] [1390375812.850908795]: Service call failed!
[camera/camera_nodelet_manager-2] process has died [pid 6894, exit code -11, cmd /opt/ros/hydro/lib/nodelet/nodelet manager __name:=camera_nodelet_manager __log:=/home/martin/.ros/log/06ead13e-8337-11e3-a3f7-c860003ebb31/camera-camera_nodelet_manager-2.log].
log file: /home/martin/.ros/log/06ead13e-8337-11e3-a3f7-c860003ebb31/camera-camera_nodelet_manager-2*.log
process[camera/disparity_registered_hw-18]: started with pid [7148]
process[camera_base_link-19]: started with pid [7162]
process[camera_base_link1-20]: started with pid [7195]
process[camera_base_link2-21]: started with pid [7206]
[camera/rectify_mono-5] process has died [pid 6952, exit code 255, cmd /opt/ros/hydro/lib/nodelet/nodelet load image_proc/rectify camera_nodelet_manager --no-bond image_mono:=rgb/image_mono image_rect:=rgb/image_rect_mono __name:=rectify_mono __log:=/home/martin/.ros/log/06ead13e-8337-11e3-a3f7-c860003ebb31/camera-rectify_mono-5.log].
log file: /home/martin/.ros/log/06ead13e-8337-11e3-a3f7-c860003ebb31/camera-rectify_mono-5*.log
[camera/rectify_color-6] process has died [pid 6970, exit code 255, cmd /opt/ros/hydro/lib/nodelet/nodelet load image_proc/rectify camera_nodelet_manager --no-bond image_mono:=rgb/image_color image_rect:=rgb/image_rect_color __name:=rectify_color __log:=/home/martin/.ros/log/06ead13e-8337-11e3-a3f7-c860003ebb31/camera-rectify_color-6.log].
log file: /home/martin/.ros/log/06ead13e-8337-11e3-a3f7-c860003ebb31/camera-rectify_color-6*.log
[camera/rectify_ir-7] process has died [pid 6984, exit code 255, cmd /opt/ros/hydro/lib/nodelet/nodelet load image_proc/rectify camera_nodelet_manager --no-bond image_mono:=ir/image_raw image_rect:=ir/image_rect_ir __name:=rectify_ir __log:=/home/martin/.ros/log/06ead13e-8337-11e3-a3f7-c860003ebb31/camera-rectify_ir-7.log].
log file: /home/martin/.ros/log/06ead13e-8337-11e3-a3f7-c860003ebb31/camera-rectify_ir-7*.log
[camera/register_depth_rgb-12] process has died [pid 7060, exit code 255, cmd /opt/ros/hydro/lib/nodelet/nodelet load depth_image_proc/register camera_nodelet_manager --no-bond rgb/camera_info:=rgb/camera_info depth/camera_info:=depth/camera_info depth/image_rect:=depth/image_rect_raw depth_registered/image_rect:=depth_registered/sw_registered/image_rect_raw __name ...
(more)
edit retag flag offensive close merge delete

Comments

It could be because openni2_camera is explicitly made for this purpose. http://wiki.ros.org/openni_camerahttp://wiki.ros.org/openni2_camera

Athoesen gravatar image Athoesen  ( 2014-01-24 06:14:39 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2014-01-24 09:27:59 -0600

fergs gravatar image

For the newer Primesense sensors, you must use OpenNI2, OpenNI doesn't recognize them because the USB device ID has changed. The ROS version of OpenNI2 does not support the Kinect, and it probably doesn't support the Xtion Pro (it does support the Xtion Pro Live which has the color camera).

You can install openni/openni2 side by side, and use openni for Kinect and openni2 for newer primesense sensors. Given the question of future availability of either Kinect/Primesense, it is unlikely that anyone is going to put in the effort to integrate Kinect support with openni2.

edit flag offensive delete link more

Comments

Thank you so much for your answer, what bugs me is that the PrimeSense sensors that I am using, were working perfectly fine before I upgraded to Groovy. If newer Primesense sensors must use OpenNI2, I believe you, but mine were working with OpenNI... but anyway... I'll just use OpenNI2

Martin Peris gravatar image Martin Peris  ( 2014-01-26 17:36:09 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-01-23 13:31:40 -0600

Seen: 1,635 times

Last updated: Jan 24 '14