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

Revision history [back]

Whenever you want to use code from packages other than the one you are developing in, you need to add dependency on that package to your manifest.xml (see manifest documentation for full description). And to answer your question adding <depend package="opencv2"/> to the manifest should solve the problem.

Whenever you want to use code from packages other than the one you are developing in, you need to add dependency on that package to your manifest.xml (see manifest documentation for full description). And to answer your question adding <depend package="opencv2"/> to the manifest should solve the problem.problem. Also your slashes are wrong, change all \ to /:


#include "opencv2/opencv.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"

Whenever you want to use code from packages other than the one you are developing in, you need to add dependency on that package to your manifest.xml (see manifest documentation for full description). And to answer your question adding <depend package="opencv2"/> to the manifest should solve the problem. Also your slashes are wrong, change all \ to /:

 #include "opencv2/opencv.hpp"
<opencv2/opencv.hpp>
#include "opencv2/highgui/highgui.hpp"
<opencv2/highgui/highgui.hpp>
#include "opencv2/imgproc/imgproc.hpp"
<opencv2/imgproc/imgproc.hpp>