Creating depth generator failed

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Creating depth generator failed

Andrew Nolan
This post has NOT been accepted by the mailing list yet.
When I run 'roslaunch openni_camera openni_node.launch' I get the following error printed over and over

[ INFO] [1300447717.033515909]: [/openni_node1] Number devices connected: 1
[ INFO] [1300447717.034093731]: [/openni_node1] 1. device on bus 001:48 is a Xbox NUI Camera (2ae) from Microsoft (45e) with serial id 'A00361A00911103A'
[ INFO] [1300447717.036768663]: [/openni_node1] searching for device with index = 1
[ INFO] [1300447721.051884525]: [/openni_node1] No matching device found.... waiting for devices. Reason: openni_wrapper::OpenNIDevice::OpenNIDevice(xn::Context&, const xn::NodeInfo&, const xn::NodeInfo&, const xn::NodeInfo&) @ /home/axxin/openni_kinect/openni_kinect/openni_camera/src/openni_device.cpp @ 60 : creating depth generator failed. Reason: Got a timeout while waiting for a network command to complete!

My USB permissions look like this.

/dev/bus/usb/001:
total 0
0 drwxr-xr-x 2 root root      100 2011-03-18 22:19 .
0 drwxr-xr-x 4 root root       80 2011-03-07 19:28 ..
0 crw-rw-r-- 1 root root  189,  0 2011-03-07 19:29 001
0 crw-rw-rw- 1 root video 189, 46 2011-03-18 22:19 047
0 crw-rw-rw- 1 root video 189, 47 2011-03-18 22:34 048

/dev/bus/usb/002:
total 0
0 drwxr-xr-x 2 root root       100 2011-03-18 22:19 .
0 drwxr-xr-x 4 root root        80 2011-03-07 19:28 ..
0 crw-rw-r-- 1 root root  189, 128 2011-03-07 19:29 001
0 crw-rw-r-- 1 root root  189, 129 2011-03-07 19:29 002
0 crw-rw-rw- 1 root video 189, 165 2011-03-18 22:19 038


Any ideas?

Thanks
Andrew
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Creating depth generator failed

Suat Gedikli
Can you check whether XnSensorServer is still running?
The OpenNI driver start this server, which is the actual driver communicating with the devices and providing an interface for clients. Sometimes the driver crashes, so does not respond to new clients. If this is the problem, just kill it and start the openni_node again.
Suat
Suat
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Creating depth generator failed

Andrew Nolan
This post has NOT been accepted by the mailing list yet.
Thanks for the response. I restarted the XnSensorServer and the process got further.

No when I run RViz I get the following error

[ INFO] [1300501378.588534412]: [/openni_node1] Number devices connected: 1
[ INFO] [1300501378.589004686]: [/openni_node1] 1. device on bus 001:60 is a Xbox NUI Camera (2ae) from Microsoft (45e) with serial id 'A00361A00911103A'
[ INFO] [1300501378.591019353]: [/openni_node1] searching for device with index = 1
[ INFO] [1300501380.257708389]: [/openni_node1] Opened 'Xbox NUI Camera' on bus 1:60 with serial number 'A00361A00911103A'
[ INFO] [1300501380.271904235]: rgb_frame_id = '/openni_rgb_optical_frame'
[ INFO] [1300501380.277450914]: depth_frame_id = '/openni_depth_optical_frame'
terminate called after throwing an instance of 'openni_wrapper::OpenNIException'
  what():  virtual void openni_wrapper::OpenNIDevice::startImageStream() @ /home/axxin/openni_kinect/openni_kinect/openni_camera/src/openni_device.cpp @ 159 : starting image stream failed. Reason: Xiron OS got an event timeout!
[openni_node1-1] process has died [pid 28567, exit code -6].
log files: /home/axxin/.ros/log/5489e3f2-51cc-11e0-aadd-000c29ac65ff/openni_node1-1*.log



The log file reads:
rnal] [2011-03-19 13:22:58,488] [thread 0xb6797740]: [DEBUG] UDPROS server listening on port [48436]
[roscpp_internal] [2011-03-19 13:22:58,492] [thread 0xb6797740]: [DEBUG] Started node [/openni_node1], pid [28567], bound on [ubuntu], xmlrpc port [58363], tcpros port [50281], logging to [/home/axxin/.ros/log/5489e3f2-51cc-11e0-aadd-000c29ac65ff/openni_node1-1.log], using [real] time
[roscpp_internal] [2011-03-19 13:22:58,497] [thread 0xb6797740]: [DEBUG] XML-RPC call [getParam] returned an error (-1): [Parameter [/openni_node1/num_worker_threads] is not set]
[ros.openni_camera./openni_node1] [2011-03-19 13:22:58,588] [thread 0xb6797740]: [INFO] [/openni_node1] Number devices connected: 1
[ros.openni_camera./openni_node1] [2011-03-19 13:22:58,588] [thread 0xb6797740]: [INFO] [/openni_node1] 1. device on bus 001:60 is a Xbox NUI Camera (2ae) from Microsoft (45e) with serial id 'A00361A00911103A'
[ros.openni_camera./openni_node1] [2011-03-19 13:22:58,591] [thread 0xb6797740]: [INFO] [/openni_node1] searching for device with index = 1
[roscpp_internal] [2011-03-19 13:22:58,780] [thread 0xb6795b70]: [DEBUG] Accepted connection on socket [7], new socket [16]
[roscpp_internal] [2011-03-19 13:22:58,780] [thread 0xb6795b70]: [DEBUG] TCPROS received a connection from [127.0.0.1:32879]
[roscpp_internal] [2011-03-19 13:22:58,780] [thread 0xb6795b70]: [DEBUG] Connection: Creating TransportSubscriberLink for topic [/rosout] connected to [callerid=[/rosout] address=[TCPROS connection to [127.0.0.1:32879 on socket 16]]]
[ros.openni_camera./openni_node1] [2011-03-19 13:23:00,257] [thread 0xb6797740]: [INFO] [/openni_node1] Opened 'Xbox NUI Camera' on bus 1:60 with serial number 'A00361A00911103A'
[ros.openni_camera./openni_node1] [2011-03-19 13:23:00,271] [thread 0xb6797740]: [INFO] rgb_frame_id = '/openni_rgb_optical_frame'
[ros.openni_camera./openni_node1] [2011-03-19 13:23:00,277] [thread 0xb6797740]: [INFO] depth_frame_id = '/openni_depth_optical_frame'
[roscpp_internal] [2011-03-19 13:23:00,900] [thread 0xb6795b70]: [DEBUG] Accepted connection on socket [7], new socket [18]
[roscpp_internal] [2011-03-19 13:23:00,900] [thread 0xb6795b70]: [DEBUG] TCPROS received a connection from [127.0.0.1:33043]
[roscpp_internal] [2011-03-19 13:23:00,900] [thread 0xb6795b70]: [DEBUG] Connection: Creating TransportSubscriberLink for topic [/camera/rgb/points] connected to [callerid=[/rviz_1300501339499225308] address=[TCPROS connection to [127.0.0.1:33043 on socket 18]]]


Any ideas?

Thanks again Andrew
Loading...