2

I've just started using Webots and I want to include OpenCV for a project. I read that in order to do this, I should modify the makefile of my controller. So, I made a simple controller in which the robot goes forward and it is just fine. I opened then the makefile and I added the first two lines:1

I have installed OpenCV 3.2 on my system and I confirm it with:2

Building my controller I see the following: 3

I also tried the

#include "opencv2/highgui.hpp"

but it said

fatal error: opencv2/highgui.hpp: No such file or directory

Do you have any ideas? Thank you in advance.

Yunus Temurlenk
  • 4,085
  • 4
  • 18
  • 39
loukasp96
  • 33
  • 4

1 Answers1

2

You can find here an example of Webots controller using OpenCV: https://github.com/cyberbotics/webots/tree/master/projects/samples/howto/controllers/vision

David Mansolino
  • 1,713
  • 7
  • 13