Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi, i have accomplished to use openCV in ROS.

I have installed opencv [https://help.ubuntu.com/community/OpenCV], and then just included it in my CMakeList.txt. In the CMakeList you need to add:

find_package(OpenCV REQUIRED) target_link_libaries(your_node ${OpenCV_LIBS})

hope that helps you

Hi, i have accomplished to use openCV in ROS.

I have installed opencv [https://help.ubuntu.com/community/OpenCV], and then just included it in my CMakeList.txt. In the CMakeList you need to add:

find_package(OpenCV REQUIRED) REQUIRED)

target_link_libaries(your_node ${OpenCV_LIBS})

hope that helps you

Hi, i have accomplished to use openCV in ROS.

I have installed opencv [https://help.ubuntu.com/community/OpenCV], [https://help.ubuntu.com/community/OpenCV],not sure if it is necesarry i had it on the pc before i intalled ros.

The vision_opencv is a "bridge" to use opencv with ros, for further information look http://www.ros.org/wiki/vision_opencv and then just included it in my CMakeList.txt. In the CMakeList http://www.ros.org/wiki/opencv2

And of course you need to add:tell ros that the package needs opencv to run/compile. So you need to include it into your CMakeList.txt (here i mean the CMakeList.txt in your package):

find_package(OpenCV REQUIRED)

target_link_libaries(your_node ${OpenCV_LIBS})

your_node is just a placeholder, there should be the name of your library or execution. If you are not so familiar with CMake, read on http://cmake.org/cmake/help/v2.8.8/cmake.html about the target_link_libaries/find_package macro. And you need to create a dependenc in your manifest.xml

<rosdep name="opencv2"/>

hope that helps you