Ask Your Question
1

OpenCV with ROS Groovy

asked 2012-12-21 13:20:05 -0500

keavenM gravatar image

Hi,

I'm trying to use opencv library in ROS Groovy but I doesn't find how exactly it's working. A lot of time I have some errors like this: undefined reference to cv::cvtColor

On the wiki, the package opencv2 is deprecated because you doesn't want to link opencv whit ROS, but the library was include in ROS directory, why?

I'm searching how, with the proper method, to create CMakelist.txt (with catkin), Package.xml and include lib in .cpp.

If you have some example, It's appreciate.

Thanks in advance for help

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2012-12-21 21:25:00 -0500

Eric Perko gravatar image

updated 2012-12-21 21:25:21 -0500

OpenCV is no longer treated specially inside of ROS and is simply a standalone library. You should be able to link your executable against it by adding something like the following to your CMakeLists.txt:

find_package(OpenCV REQUIRED)
target_link_libraries(my_application_target ${OpenCV_LIBS})

There's some more migration information on the Fuerte opencv2 wiki page.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-12-21 13:20:05 -0500

Seen: 2,417 times

Last updated: Dec 21 '12