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

Revision history [back]

click to hide/show revision 1
initial version

I spent several hours trying to solve that issue and finally I have found the solution (I know the topic is a little outdated, but it might be helpful for others). Which is pathetically easy :)

I am using ph4m version of SensorKinect, cause avin2 failed during building and ROS-Kinetic.

Shorter version of error I used to receive by executing roslaunch openni_launch openni.launch

...
[ INFO] [1512932358.038225148]: Initializing nodelet with 4 worker threads.
[ INFO] [1512932360.867815700]: Number devices connected: 2
[ INFO] [1512932360.968706220]: 1. device on bus 001:08 is a SensorKinect (2ae) from PrimeSense (45e) with serial id '0'
[ INFO] [1512932360.968758126]: 2. device on bus 001:08 is a SensorV2 (2ae) from PrimeSense (45e) with serial id 'B00367611818052B'
[ INFO] [1512932360.969746663]: Searching for device with index = 1
nodelet: /usr/include/boost/smart_ptr/shared_ptr.hpp:641: typename boost::detail::sp_dereference<T>::type boost::shared_ptr<T>::operator*() const [with T = xn::NodeInfo; typename boost::detail::sp_dereference<T>::type = xn::NodeInfo&]: Assertion `px != 0' failed.
[camera/camera_nodelet_manager-1] process has died [pid 6501, exit code -6, cmd /opt/ros/kinetic/lib/nodelet/nodelet manager __name:=camera_nodelet_manager __log:=/root/.ros/log/b5542c0e-dddb-11e7-b428-448a5b4484c7/camera-camera_nodelet_manager-1.log].
log file: /root/.ros/log/b5542c0e-dddb-11e7-b428-448a5b4484c7/camera-camera_nodelet_manager-1*.log
[FATAL] [1512932372.450632995]: Failed to load nodelet '/camera/disparity_registered_hw` of type `depth_image_proc/disparity` to manager `camera_nodelet_manager'
....

To fix that I went to openni.launch file and changed this: <arg name="device_id" default="#1" /> into that: <arg name="device_id" default="B00367611818052B" />, which is ID read from error message.