Skip to content

Commit

Permalink
Resolving build errors for OpenCV.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Fankhauser committed Apr 18, 2016
1 parent 1ce710f commit 16ecee6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions grid_map_cv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@ install(
## Testing ##
#############

if(CATKIN_ENABLE_TESTING)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
## Add gtest based cpp test target and link libraries
catkin_add_gtest(${PROJECT_NAME}-test test/test_grid_map_cv.cpp test/GridMapCvTest.cpp)
endif()

if(TARGET ${PROJECT_NAME}-test)
target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
endif()

5 changes: 4 additions & 1 deletion grid_map_cv/include/grid_map_cv/GridMapCvConverter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
#include <grid_map_core/grid_map_core.hpp>

// OpenCV
#include <opencv/cv.h>
#include <opencv2/opencv.hpp>

// STD
#include <iostream>

namespace grid_map {

Expand Down
2 changes: 1 addition & 1 deletion grid_map_cv/include/grid_map_cv/GridMapCvProcessing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <grid_map_core/grid_map_core.hpp>

// OpenCV
#include <opencv/cv.h>
#include <opencv2/opencv.hpp>

namespace grid_map {

Expand Down
2 changes: 1 addition & 1 deletion grid_map_cv/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<author email="[email protected]">Péter Fankhauser</author>
<buildtool_depend>catkin</buildtool_depend>
<depend>grid_map_core</depend>
<depend>opencv3</depend>
<depend>opencv2</depend>
</package>
4 changes: 1 addition & 3 deletions grid_map_demos/src/opencv_demo_node.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#include <ros/ros.h>
#include <grid_map_ros/grid_map_ros.hpp>
#include <grid_map_cv/grid_map_cv.hpp>
#include <opencv/cv.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv/highgui.h>
#include <opencv2/opencv.hpp>

using namespace grid_map;
using namespace ros;
Expand Down

0 comments on commit 16ecee6

Please sign in to comment.