How to use/install OpenCV with Indigo?
Hi,
I know that this question have been asked so many times and I have seen many threads about this topic but still I haven't found a tutorial or a thread that answer these questions:
- In order to use ROS Indigo with OpenCV, do I have to install OpenCV separately? if so, which version?
- Is there is a problem if I install first ROS and then OpenCV? or the other way around? which is the right way?
- Then, how do I link the OpenCV libraries in ROS code?
I also found this thread:
http://answers.ros.org/question/185105/add-opencv-to-indigo/
where @fergs says that the right way to do it is using the system OpenCV rather than the one built for ROS. I believe that opencv2 is the one built for ROS and libopencv-dev is the OpenCV system. Then my question is: If I haven't installed OpenCV and I have ROS Indigo installed in my computer then what are the steps I need to do in order to use OpenCV with Indigo in the right way?
I forget to mention that I also downloaded and compiled visionopencv to use cvbridge believing that with that I could use some OpenCV's functions without the need to install the OpenCV system. Now I believe that the cvbridge package needs OpenCV system in order to work and cvbridge it is just a package that is used as a bridge between ROS and OpenCV.
Best,
Asked by andrestoga on 2015-10-13 21:43:05 UTC
Answers
Just running
sudo apt-get install ros-indigo-cv-bridge
should give you a working opencv install (and the cv-bridge ROS integration). A fairly minimal example of usage: https://github.com/tu-darmstadt-ros-pkg/hector_image_proc/tree/master/cv_image_proc
Asked by Stefan Kohlbrecher on 2015-10-14 02:15:05 UTC
Comments
Yes but is this the OpenCV version built for ROS? if yes, does it have all the same libraries as the system OpenCV?
Asked by andrestoga on 2015-10-20 01:04:18 UTC
Have you found any solution? I have installed Kinetic and looking for how to work with opencv. I have libopencv-dev in the cache (not yet installed ). I would like to check if the version I have is working properly with ROS. Should I download it ? and how do I proceed to check if it's working fine?
Asked by sam26 on 2017-03-31 07:00:29 UTC
Comments