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

iai_kinect2 needs libopencv_core.so.3.0 ?

asked 2015-04-16 08:51:14 -0600

inflo gravatar image

updated 2015-04-16 09:42:22 -0600

hi, i build iai_kinect2 with the docu from https://github.com/code-iai/iai_kinect2 , but when i run rosrun kinect2_bridge kinect2_bridge i get:

catkin_ws/devel/lib/kinect2_bridge/kinect2_bridge: error while loading shared libraries: libopencv_core.so.3.0: cannot open shared object file: No such file or directory

when i do a search , there is only /usr/lib/x86_64-linux-gnu/libopencv_core.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 kinect2_bridge kinect2_bridge, 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

edit retag flag offensive close merge delete

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)

marguedas gravatar image marguedas  ( 2015-04-16 23:37:41 -0600 )edit

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

inflo gravatar image inflo  ( 2015-04-17 09:54:53 -0600 )edit

hi, i found Protonect in libfreenct2/ folder , but after running it returns also:

segfault ???

inflo gravatar image inflo  ( 2015-04-17 11:28:54 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-04-17 12:17:01 -0600

inflo gravatar image

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 ...



(more)

edit flag offensive delete link more

Comments

Hi, could you update the solution you found? Thanks :D

pallavbakshi gravatar image pallavbakshi  ( 2017-01-19 13:16:20 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-04-16 08:51:14 -0600

Seen: 1,120 times

Last updated: Apr 17 '15