code-iai / iai_kinect2

Tools for using the Kinect One (Kinect v2) in ROS
Apache License 2.0
877 stars 520 forks source link

error while running kinect2_bridge #473

Open mohamedsemz opened 6 years ago

mohamedsemz commented 6 years ago

i installed libfreenect2 and iai_kinect2 and while running roslaunch kinect2_bridge kinect2_bridge.launch gives error

how to solve ?

`$ roslaunch kinect2_bridge kinect2_bridge.launch ... logging to /home/samy/.ros/log/44555db6-0bf8-11e8-a5a1-08edb932b12b/roslaunch-samy-N5110-2498.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://samy-N5110:38899/

SUMMARY

PARAMETERS

NODES / kinect2 (nodelet/nodelet) kinect2_bridge (nodelet/nodelet) kinect2_points_xyzrgb_hd (nodelet/nodelet) kinect2_points_xyzrgb_qhd (nodelet/nodelet) kinect2_points_xyzrgb_sd (nodelet/nodelet)

ROS_MASTER_URI=http://localhost:11311

process[kinect2-1]: started with pid [2515] process[kinect2_bridge-2]: started with pid [2516] process[kinect2_points_xyzrgb_sd-3]: started with pid [2517] process[kinect2_points_xyzrgb_qhd-4]: started with pid [2518] process[kinect2_points_xyzrgb_hd-5]: started with pid [2519] [ INFO] [1518002170.193311422]: Loading nodelet /kinect2_bridge of type kinect2_bridge/kinect2_bridge_nodelet to manager kinect2 with the following remappings: [ INFO] [1518002170.203248270]: waitForService: Service [/kinect2/load_nodelet] has not been advertised, waiting... [ INFO] [1518002170.494899965]: Initializing nodelet with 4 worker threads. [ INFO] [1518002170.512298162]: waitForService: Service [/kinect2/load_nodelet] is now available. [ INFO] [1518002173.227427155]: [Kinect2Bridge::initialize] parameter: base_name: kinect2 sensor: default fps_limit: -1 calib_path: /home/samy/catkin_ws/src/iai_kinect2/kinect2_bridge/data/ use_png: false jpeg_quality: 90 png_level: 1 depth_method: default depth_device: -1 reg_method: default reg_device: -1 max_depth: 12 min_depth: 0.1 queue_size: 5 bilateral_filter: true edge_aware_filter: true publish_tf: false base_name_tf: kinect2 worker_threads: 4 beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware (If you have multiple ICDs installed and OpenCL works, you can ignore this message) [Info] [OpenCLDepthPacketProcessorImpl] devices: [Error] [OpenCLDepthPacketProcessorImpl] could not find any suitable device [Error] [OpenCLAllocator] b->buffer = cl::Buffer(context, CL_MEM_WRITE_ONLY | CL_MEM_ALLOC_HOST_PTR, size, NULL, &err): -34 [Error] [OpenCLAllocator] b->buffer = cl::Buffer(context, CL_MEM_WRITE_ONLY | CL_MEM_ALLOC_HOST_PTR, size, NULL, &err): -34 libva info: VA-API version 0.39.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_0_39 libva info: va_openDriver() returns 0 [Info] [VaapiRgbPacketProcessorImpl] driver: Intel i965 driver for Intel(R) Sandybridge Mobile - 1.7.0 [Error] [VaapiRgbPacketProcessorImpl] vaQueryConfigEntrypoints(display, VAProfileJPEGBaseline, entrypoints, &num_entrypoints): the requested VAProfile is not supported [Error] [OpenCLAllocator] b->buffer = cl::Buffer(context, CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR, size, NULL, &err): -34 [Info] [Freenect2Impl] enumerating devices... [Info] [Freenect2Impl] 12 usb devices connected [Info] [Freenect2Impl] found valid Kinect v2 @4:3 with serial 021608444547 [Info] [Freenect2Impl] found 1 devices [ INFO] [1518002175.137944225]: [Kinect2Bridge::initDevice] Kinect2 devices found: [ INFO] [1518002175.138035442]: [Kinect2Bridge::initDevice] 0: 021608444547 (selected) [Info] [Freenect2DeviceImpl] opening... [Info] [Freenect2DeviceImpl] transfer pool sizes rgb: 2016384 ir: 608*33792 [Info] [Freenect2DeviceImpl] opened [ INFO] [1518002175.334482650]: [Kinect2Bridge::initDevice] starting kinect2 [Info] [Freenect2DeviceImpl] starting... [Error] [OpenCLDepthPacketProcessorImpl] OpenCLDepthPacketProcessor is not initialized! [Error] [OpenCLDepthPacketProcessorImpl] OpenCLDepthPacketProcessor is not initialized! [Error] [OpenCLDepthPacketProcessorImpl] OpenCLDepthPacketProcessor is not initialized! [Info] [Freenect2DeviceImpl] submitting rgb transfers... [Info] [Freenect2DeviceImpl] submitting depth transfers... [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Info] [Freenect2DeviceImpl] started [ INFO] [1518002175.996694977]: [Kinect2Bridge::initDevice] device serial: 021608444547 [ INFO] [1518002175.996793044]: [Kinect2Bridge::initDevice] device firmware: 4.0.3916.0 [Info] [Freenect2DeviceImpl] stopping... [Info] [Freenect2DeviceImpl] canceling rgb transfers... [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL [Error] [DepthPacketStreamParser] Packet buffer is NULL

[Info] [Freenect2DeviceImpl] canceling depth transfers... [Info] [Freenect2DeviceImpl] stopped beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware (If you have multiple ICDs installed and OpenCL works, you can ignore this message) [Info] [OpenCLDepthPacketProcessorImpl] building OpenCL program... [Error] [OpenCLDepthPacketProcessorImpl] program = cl::Program(context, source, &err): -34 [ WARN] [1518002176.406218732]: [Kinect2Bridge::initCalibration] using sensor defaults for color intrinsic parameters. [ WARN] [1518002176.406337709]: [Kinect2Bridge::initCalibration] using sensor defaults for ir intrinsic parameters. [ WARN] [1518002176.406416307]: [Kinect2Bridge::initCalibration] using defaults for rotation and translation. [ WARN] [1518002176.406503063]: [Kinect2Bridge::initCalibration] using defaults for depth shift. [ INFO] [1518002176.579380137]: [DepthRegistration::New] Using OpenCL registration method! [ INFO] [1518002176.579500249]: [DepthRegistration::New] Using OpenCL registration method! beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware (If you have multiple ICDs installed and OpenCL works, you can ignore this message) [ INFO] [1518002176.638025143]: [DepthRegistrationOpenCL::init] devices: [ERROR] [1518002176.638092484]: [DepthRegistrationOpenCL::init] could not find any suitable device [Info] [Freenect2DeviceImpl] closing... [Info] [Freenect2DeviceImpl] releasing usb interfaces... [Info] [Freenect2DeviceImpl] deallocating usb transfer pools... [Info] [Freenect2DeviceImpl] closing usb device... [Info] [Freenect2DeviceImpl] closed [ERROR] [1518002176.639631543]: [Kinect2Bridge::start] Initialization failed! [Info] [Freenect2DeviceImpl] closing... [Info] [Freenect2DeviceImpl] already closed, doing nothing [Error] [OpenCLAllocator] queue.enqueueUnmapMemObject(b->buffer, b->data, NULL, &event): -36 [Error] [OpenCLAllocator] queue.enqueueUnmapMemObject(b->buffer, b->data, NULL, &event): -36 [Error] [OpenCLAllocator] queue.enqueueUnmapMemObject(b->buffer, b->data, NULL, &event): -36 [FATAL] [1518002176.740685781]: Failed to load nodelet '/kinect2_bridgeof typekinect2_bridge/kinect2_bridge_nodeletto managerkinect2' [kinect2_bridge-2] process has died [pid 2516, exit code 255, cmd /opt/ros/kinetic/lib/nodelet/nodelet load kinect2_bridge/kinect2_bridge_nodelet kinect2 __name:=kinect2_bridge __log:=/home/samy/.ros/log/44555db6-0bf8-11e8-a5a1-08edb932b12b/kinect2_bridge-2.log]. log file: /home/samy/.ros/log/44555db6-0bf8-11e8-a5a1-08edb932b12b/kinect2_bridge-2*.log `

SingularTnT commented 6 years ago

The same issue, any idea? Thank you!