iai_kinect2 needs libopencv_core.so.3.0 ?
hi, i build iaikinect2 with the docu from https://github.com/code-iai/iaikinect2 , but when i run rosrun kinect2bridge kinect2bridge i get:
catkinws/devel/lib/kinect2bridge/kinect2bridge: error while loading shared libraries: libopencvcore.so.3.0: cannot open shared object file: No such file or directory
when i do a search , there is only /usr/lib/x8664-linux-gnu/libopencvcore.so.2.4.8 installed on my ubuntu 14.04 ?
Does it needs the beta 3.0 version of opencv, or do i something wrong ?
edit: When we need edit: tags to mark something as edited, then the edit-system failed , or? But anyway, i de-installed the OpenCV 3.0: NOT FINAL package with ubuntu software center, and rebuild all, then i can run rosrun kinect2bridge kinect2bridge, but i get after some lines of parameters a Segmentation fault ?
what do i wrong , or what can i do to get more info about the seg fault ?
edit-2: when i rosrun kinect2_bridge and then look at syslog it tells me:
Apr 16 16:38:09 rospc kernel: [ 7210.941947] kinect2_bridge[12323]: segfault at 1c0 ip 00007f51d3905518 sp 00007fff66476050 error 4 in libglfw.so.3.0[7f51d38fe000+12000]
thanks for help flo
Asked by inflo on 2015-04-16 08:51:14 UTC
Answers
hi,
as the comment are too short,i post an answer which is just more info. when i run:
rosrun kinect2_bridge kinect2_bridge _depth_method:=cpu
parameter:
base_name: kinect2
sensor:
fps_limit: -1
calib_path: /home/ros/catkin_ws/src/iai_kinect2/kinect2_bridge/data/
use_png: false
jpeg_quality: 90
png_level: 1
depth_method: cpu
depth_device: -1
reg_method: default
reg_devive: -1
max_depth: 12
min_depth: 0.1
queue_size: 2
bilateral_filter: true
edge_aware_filter: true
publish_tf: false
base_name_tf: kinect2
worker_threads: 4
[Freenect2Impl] enumerating devices... [Freenect2Impl] 15 usb devices connected [Freenect2Impl] failed to open Kinect v2 @9:5! [Freenect2Impl] found 0 devices Error: no Kinect2 devices found!
it tells something about @9:5 ? If i run tail -f /var/log/syslog while plug-out-and-in the kinect, it tells me:
Apr 17 18:46:31 rospc kernel: [ 6974.355147] usb 9-2: USB disconnect, device number 2
Apr 17 18:46:31 rospc kernel: [ 6974.355151] usb 9-2.1: USB disconnect, device number 3
Apr 17 18:46:32 rospc kernel: [ 6974.486861] usb 8-2: USB disconnect, device number 2
Apr 17 18:46:36 rospc kernel: [ 6978.816433] usb 8-2: new high-speed USB device number 3 using xhci_hcd
Apr 17 18:46:36 rospc kernel: [ 6978.836115] usb 8-2: New USB device found, idVendor=045e, idProduct=02d9
Apr 17 18:46:36 rospc kernel: [ 6978.836119] usb 8-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 17 18:46:36 rospc kernel: [ 6978.836120] usb 8-2: Product: NuiSensor Adaptor
Apr 17 18:46:36 rospc kernel: [ 6978.836122] usb 8-2: Manufacturer: Microsoft Corporation
Apr 17 18:46:36 rospc kernel: [ 6978.837272] hub 8-2:1.0: USB hub found
Apr 17 18:46:36 rospc kernel: [ 6978.837736] hub 8-2:1.0: 1 port detected
Apr 17 18:46:36 rospc kernel: [ 6979.281826] usb 9-2: new SuperSpeed USB device number 4 using xhci_hcd
Apr 17 18:46:38 rospc kernel: [ 6980.613764] usb 9-2: Parent hub missing LPM exit latency info. Power management will be impacted.
Apr 17 18:46:39 rospc kernel: [ 6982.260837] usb 9-2: New USB device found, idVendor=045e, idProduct=02d9
Apr 17 18:46:39 rospc kernel: [ 6982.260841] usb 9-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 17 18:46:39 rospc kernel: [ 6982.260843] usb 9-2: Product: NuiSensor Adaptor
Apr 17 18:46:39 rospc kernel: [ 6982.260844] usb 9-2: Manufacturer: Microsoft Corporation
Apr 17 18:46:39 rospc kernel: [ 6982.262244] hub 9-2:1.0: USB hub found
Apr 17 18:46:39 rospc kernel: [ 6982.262704] hub 9-2:1.0: 1 port detected
Apr 17 18:46:40 rospc kernel: [ 6982.732741] usb 9-2.1: new SuperSpeed USB device number 5 using xhci_hcd
Apr 17 18:46:40 rospc kernel: [ 6982.748203] usb 9-2.1: Parent hub missing LPM exit latency info. Power management will be impacted.
Apr 17 18:46:40 rospc kernel: [ 6982.751192] usb 9-2.1: New USB device found, idVendor=045e, idProduct=02c4
Apr 17 18:46:40 rospc kernel: [ 6982.751196] usb 9-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=4
Apr 17 18:46:40 rospc kernel: [ 6982.751197] usb 9-2.1: Product: Xbox NUI Sensor
Apr 17 18:46:40 rospc kernel: [ 6982.751199] usb 9-2.1: Manufacturer: Microsoft
Apr 17 18:46:40 rospc kernel: [ 6982.751200] usb 9-2.1: SerialNumber: 111452734247
does kinect_bridge searches for the wrong device number, or anything like that ?
thanks for help
flo
Asked by inflo on 2015-04-17 12:17:01 UTC
Comments
Hi, could you update the solution you found? Thanks :D
Asked by pallavbakshi on 2017-01-19 14:16:20 UTC
Comments
Opencv 2.4.xx should be enough.
Is libreenect2 working properly ? do you have a segfault when you run protonect alone ? Or only when you run the kinect2_bridge node ?
It seems to be an openGL issue, if you register on the CPU do you have a segfault ? (set depth_method to CPU)
Asked by marguedas on 2015-04-16 23:37:41 UTC
hi, how can i check if libfreenect2 is working properly ?
how can i run protonect alone ?
what means "if you register on the CPU do you have a segfault?" ? set_depth_method to CPU ?
is there anywhere another howto i dont know ?
thanks flo
Asked by inflo on 2015-04-17 09:54:53 UTC
hi, i found Protonect in libfreenct2/ folder , but after running it returns also:
segfault ???
Asked by inflo on 2015-04-17 11:28:54 UTC