Coder Social home page Coder Social logo

Comments (5)

prarinya-s avatar prarinya-s commented on July 21, 2024

I have both OpenCV2.4 and 3.0 in my machine. It seem that the ZED sdk wrapper called some of my ROS components built by OpenCV3. So I just recompile my workspace with OpenCV2.4. Problem solved.

from zed-ros-wrapper.

znculee avatar znculee commented on July 21, 2024

I had the exactly same problem. Could you tell more detail about how to compile your workspace with OpenCV 2.4? (Not just catkin_make?) Thanks a lot!!!

from zed-ros-wrapper.

prarinya-s avatar prarinya-s commented on July 21, 2024

@znculee I am not sure if you have the same problem as mine. First of all, you may need to check if your opencv is built with CUDA enabled or not.

In my case, I have "cvbridge" component that particularly built for OpenCV3.0. So I just remove that component and use default cvbridge.

from zed-ros-wrapper.

znculee avatar znculee commented on July 21, 2024

@prarinya-s I have solve it with compile wrapper package and vision_opencv package (https://github.com/ros-perception/vision_opencv) simultaneously. Thanks!

from zed-ros-wrapper.

griz1112 avatar griz1112 commented on July 21, 2024

ROS has its own copy of opencv. Currently with kinetic its 3.2. When you source the setup,bash script it makes sure it runs that copy of opencv. Sets it up in /tmp during runtime only. Hard to spot it since it disappears as soon as you stop the app that is using it. I have once piece of code that requires 2.4 3.1.1 and 3.2 all cuda enabled including the one that is private to ROS. In order to use cuda you have to grab the source for the ROS package and recompile it with cuda enabled. Uninstall the package from ROS install from the deb you made of opencv with cuda for ROS then reinstall ros-kinetic-desktop or whatever version you previously installed. This is the only way you can get cuda enabled opencv in ROS that will work consistently. If you try and path around it or fiddle with pkgconfig sooner or later it will bite you. ROS does this with several libraries so just because you built them with cuda enabled it doesn't mean they will be that when called by ROS. Really made a difference in the app I was building which is a monocular slam system.

from zed-ros-wrapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.