OpenCV in ROS Indigo library errors: ‘cvWarpAffine’ was not declared in this scope

asked 2016-04-12 01:07:36 -0600

Hi,

Trying to compile ROS Indigo code with OpenCV libraries I got the following error:

/home/andrestoga/map_merging/src/map_merging/src/manipulatemap.cpp: In function ‘void mapmerge::rotate_map(mapmerge::grid_map&, const mapmerge::grid_map&, int, unsigned char, float&, float&)’:
/home/andrestoga/map_merging/src/map_merging/src/manipulatemap.cpp:216:28: error: ‘cvWarpAffine’ was not declared in this scope
         cvScalarAll(filler));
                            ^
/home/andrestoga/map_merging/src/map_merging/src/manipulatemap.cpp: In function ‘void mapmerge::raw_transform_map(mapmerge::grid_map&, const mapmerge::grid_map&, float, float, float, unsigned char)’:
/home/andrestoga/map_merging/src/map_merging/src/manipulatemap.cpp:264:28: error: ‘cvWarpAffine’ was not declared in this scope
         cvScalarAll(filler));
                            ^
make[2]: *** [map_merging/CMakeFiles/mapmerge.dir/src/manipulatemap.cpp.o] Error 1
make[1]: *** [map_merging/CMakeFiles/mapmerge.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

Seems like it is not finding the function "cvWarpAffine’" in opencv2/imgproc/imgproc.hpp. I tried to compile the same code but only using OpenCV and it works.

Best,

edit retag flag offensive close merge delete