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

Configure Eclipse to work with ROS and OpenCV

asked 2015-03-13 07:02:03 -0500

grzebyk gravatar image

How to configure Eclipse Luna to work with ROS and OpenCV?

I followed the ROS IDE instrucitions and I have succesfully set up an eclipse project. On the OpenCV website in step 8 they tell to click on Settings in C/C++ Build tab. Unfortunately in my ROS project I don't have such an option. The picture shows the properties window of my project.Properties window of my ROS project

If I create a new project in Eclipse the C/C++ Build tab is where it should be.

How can I add OpenCV headers and libraries to my ROS project?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-03-13 07:11:55 -0500

gvdhoorn gravatar image

updated 2015-03-13 07:45:30 -0500

Shouldn't the OpenCV include paths (because the libraries are not used in Eclipse) be added to your Eclipse project automatically if you have your package dependencies setup correctly (ie: you state your OpenCV dependency in your pkg manifest)?


Edit: I should've said: "you state your OpenCV dependency in your pkg manifest CMakeLists.txt".

The Eclipse project file generator only works with the information in the CMakeLists.txt, so you need to add it there.

edit flag offensive delete link more

Comments

I have such declaration in my package.xml file: <build_depend>opencv2</build_depend> <run_depend>opencv2</run_depend> but #include <cv.h> produces an unresolved inclusion

grzebyk gravatar image grzebyk  ( 2015-03-13 07:37:34 -0500 )edit

It works. Thank you! I followed this tutorial and adapted it to ROS.

grzebyk gravatar image grzebyk  ( 2015-03-13 08:05:18 -0500 )edit

The 'official' ROS docs are at vision_opencv. But they seem similar enough to what you did.

gvdhoorn gravatar image gvdhoorn  ( 2015-03-13 08:27:38 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-03-13 07:02:03 -0500

Seen: 823 times

Last updated: Mar 13 '15