weixin_39746794
2020-12-02 07:15 阅读 18

zed_wrapper zed.launch fails

when following the instructions here I get this error when testing the launch file:

[ERROR] [1481518490.283929123]: Failed to load nodelet [/zed/zed_wrapper_node] of type [zed_wrapper/ZEDWrapperNodelet] even after refreshing the cache: Failed to load library /home/aleks/Documents/catkin_ws/devel/lib//libZEDWrapper.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = libopencv_calib3d.so.3.1: cannot open shared object file: No such file or directory) [ERROR] [1481518490.283984374]: The error before refreshing the cache was: Failed to load library /home/aleks/Documents/catkin_ws/devel/lib//libZEDWrapper.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = libopencv_calib3d.so.3.1: cannot open shared object file: No such file or directory

I've got opencv 3.1 Do I need to give it paths somehow?

该提问来源于开源项目:stereolabs/zed-ros-wrapper

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

9条回答 默认 最新

  • weixin_39746794 weixin_39746794 2020-12-02 07:15

    TL;DR: for some reason ros installs opencv rather differently, so I had to build 3.1 from source to get the shared library files where they needed to be.

    Interesting. When building the samples I ran into the same issue, and decided to look around for my opencv 3.1 installation. According to python I had it installed, particularly through ros when calling cv2.file, however when going there I managed to find only one file related to opencv. Maybe I wasn't looking hard enough but I could not find the rest of the files. I decided to just give up, install opencv 3.1 using their instructions from source, and voila, everything wen't fine.

    点赞 评论 复制链接分享
  • weixin_39614754 weixin_39614754 2020-12-02 07:15

    Another workaround, if ROS Kinetic installs the libopencv_*.so.3.2 shared libraries, is to create symbolic links from the files zed_ros_wrapper wants to those files.

    libopencv_*.so.3.1 -> lilbopencv_*.so.3.2

    点赞 评论 复制链接分享
  • weixin_39672194 jck????? 2020-12-02 07:15

    I can confirm this is still an issue present, when using opencv 3.2 and the ros Zed nodelet on Ubuntu 16.04. Creating a symbolic link from version 3.2 to 3.1 did not solve it.

    点赞 评论 复制链接分享
  • weixin_39942108 weixin_39942108 2020-12-02 07:15

    Did anybody ever solve this issue?

    点赞 评论 复制链接分享
  • weixin_39629780 weixin_39629780 2020-12-02 07:15

    Any solutions anyone?

    点赞 评论 复制链接分享
  • weixin_39659748 weixin_39659748 2020-12-02 07:15

    I solved the error following this. But now found a different error (NO GPU found). Export the respect nvidia library path as mentioned here. zed_error

    点赞 评论 复制链接分享
  • weixin_39659748 weixin_39659748 2020-12-02 07:15

    Fixed NO_GPU error by selecting proprietary version- nvidia-384 and restarting the PC. properietary_driver

    点赞 评论 复制链接分享
  • weixin_39621235 weixin_39621235 2020-12-02 07:15

    I can confirm this is still an issue present, the above solution did not work for me. any solutions?

    点赞 评论 复制链接分享
  • weixin_39616477 weixin_39616477 2020-12-02 07:15

    all the solutions for this kind of problem are available in the previous posts. There are many causes, you must check which one is generating your error message

    点赞 评论 复制链接分享

相关推荐