Ask Your Question
0

Asus Xtion, openni_camera_unstable

asked 2011-07-05 03:46:27 -0600

raphael favier gravatar image

Dear all,

I am trying to use the Diamondback's package openni_camera_unstable to visualize the depth or my Asus Xtion.

Following the tutorial presented on the wiki always results in the following trace:

$ roslaunch openni_camera_unstable openni.launch 
... logging to /home/raph/.ros/log/1d23db16-a71c-11e0-96f5-0013a98db3d0/roslaunch-DTI-NB014-1972.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://DTI-NB014:51409/

SUMMARY
========

PARAMETERS
 * /rosdistro
 * /camera/driver/rgb_frame_id
 * /camera/driver/rgb_camera_info_url
 * /camera/driver/depth_frame_id
 * /camera/depth_registered/rectify/interpolation
 * /rosversion
 * /camera/driver/device_id
 * /camera/depth/rectify/interpolation
 * /camera/driver/depth_camera_info_url

NODES
  /camera/depth/
    rectify (nodelet/nodelet)
    metric_rect (nodelet/nodelet)
    metric (nodelet/nodelet)
    disparity (nodelet/nodelet)
    points (nodelet/nodelet)
  /camera/rgb/
    rectify (nodelet/nodelet)
    rectify_color (nodelet/nodelet)
  /
    camera_nodelet_manager (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/
    driver (nodelet/nodelet)
    register_depth_rgb (nodelet/nodelet)
    points_xyzrgb_depth_rgb (nodelet/nodelet)
  /camera/ir/
    rectify (nodelet/nodelet)
  /camera/depth_registered/
    rectify (nodelet/nodelet)
    metric_rect (nodelet/nodelet)
    metric (nodelet/nodelet)
    disparity (nodelet/nodelet)

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

setting /run_id to 1d23db16-a71c-11e0-96f5-0013a98db3d0
process[rosout-1]: started with pid [2030]
started core service [/rosout]
process[camera_nodelet_manager-2]: started with pid [2033]
process[camera/driver-3]: started with pid [2034]
process[camera/rgb/rectify-4]: started with pid [2035]
process[camera/rgb/rectify_color-5]: started with pid [2036]
process[camera/ir/rectify-6]: started with pid [2037]
process[camera/depth/rectify-7]: started with pid [2038]
process[camera/depth/metric_rect-8]: started with pid [2039]
process[camera/depth/metric-9]: started with pid [2040]
process[camera/depth/disparity-10]: started with pid [2041]
process[camera/depth/points-11]: started with pid [2042]
process[camera/register_depth_rgb-12]: started with pid [2043]
process[camera/depth_registered/rectify-13]: started with pid [2044]
process[camera/depth_registered/metric_rect-14]: started with pid [2045]
process[camera/depth_registered/metric-15]: started with pid [2046]
process[camera/depth_registered/disparity-16]: started with pid [2047]
process[camera/points_xyzrgb_depth_rgb-17]: started with pid [2048]
process[camera_base_link-18]: started with pid [2049]
process[camera_base_link1-19]: started with pid [2050]
process[camera_base_link2-20]: started with pid [2051]
process[camera_base_link3-21]: started with pid [2052]
[ERROR] [1309880018.024766364]: Tried to advertise a service that is already advertised in this node [/camera/depth_registered/image_rect_raw/compressed/set_parameters]
[ERROR] [1309880018.031679707]: Tried to advertise a service that is already advertised in this node [/camera/depth_registered/image_rect_raw/theora/set_parameters]
terminate called after throwing an instance of 'openni_wrapper::OpenNIException'
  what():  unsigned int openni_wrapper::OpenNIDriver::updateDeviceList() @ /tmp/buildd/ros-diamondback-openni-kinect-0.2.1/debian/ros-diamondback-openni-kinect/opt/ros/diamondback/stacks/openni_kinect/openni_camera_unstable/src/openni_driver.cpp @ 116 : enumerating image generators failed. Reason: Can't create any node of the requested type!
[camera_nodelet_manager-2] process has died [pid 2033, exit code -6].
log files: /home/raph/.ros/log/1d23db16-a71c-11e0-96f5-0013a98db3d0/camera_nodelet_manager-2*.log

which somehow make sense as the device does not have any RGB camera. Still, if I try to understand the file openni_driver.cpp, I see that given the vendor Id, the device should be recognize and no Image generator should be created:

 if (vendor_id == 0x45e)
    {
      device = boost::shared_ptr<OpenNIDevice > (new ...
(more)
edit retag flag offensive close merge delete

Comments

I am having the same problem. As far as I can tell, the code listed above never executes, as the exception is thrown (openni_driver.cpp line 116) before it gets here. Have you made any progress on this?
prp gravatar imageprp ( 2011-07-11 05:17:41 -0600 )edit
I've traded emails with Suat Gedikli at Willow Garage, and he has implemented a workaround for this issue. He is going to add it to the ROS package in the next day or so.
prp gravatar imageprp ( 2011-07-13 04:17:37 -0600 )edit
Good news. Thanks for the info.
raphael favier gravatar imageraphael favier ( 2011-07-13 04:19:56 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2011-07-19 02:08:16 -0600

prp gravatar image

Ok, I gently prodded Suat Gedikli, and he updated the main trunk last night. If you install the openni_kinect stack:

$rosinstall ~/ros /opt/ros/diamondback 'http://www.ros.org/wiki/openni_kinect?action=AttachFile&do=get&target=openni_kinect.rosinstall'

then rosmake it, it should work with the Xtion Pro (it does for mine). Big thanks to Suat!

edit flag offensive delete link more

Comments

thx a lot!
raphael favier gravatar imageraphael favier ( 2011-07-22 04:27:29 -0600 )edit
0

answered 2011-07-15 06:56:24 -0600

Ulli gravatar image

Any news on this? Any suggestions for a workaround till the fix is out?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-07-05 03:46:27 -0600

Seen: 335 times

Last updated: Jul 19 '11