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

How to use/install OpenCV with Indigo?

asked 2015-10-13 21:43:05 -0500

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

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 vision_opencv to use cv_bridge believing that with that I could use some OpenCV's functions without the need to install the OpenCV system. Now I believe that the cv_bridge package needs OpenCV system in order to work and cv_bridge it is just a package that is used as a bridge between ROS and OpenCV.

Best,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-10-14 02:15:05 -0500

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

edit flag offensive delete link more

Comments

Yes but is this the OpenCV version built for ROS? if yes, does it have all the same libraries as the system OpenCV?

andrestoga gravatar image andrestoga  ( 2015-10-20 01:04:18 -0500 )edit

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?

sam26 gravatar image sam26  ( 2017-03-31 07:00:29 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-10-13 21:43:05 -0500

Seen: 9,628 times

Last updated: Oct 14 '15