ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
It seems to me that you don't link to OpenCV. Do this by adding the following line to your CMakeLists.txt
find_package(OpenCV REQUIRED)
And you might also need to link your executable/library to it
target_link_libraries(your_target ${OpenCV_LIBS})
2 | No.2 Revision |
It seems to me that you don't link to OpenCV. Do this by adding the following line to your CMakeLists.txt
find_package(OpenCV REQUIRED)
And you might also need to link your executable/library to it
target_link_libraries(your_target ${OpenCV_LIBS})
In your case change
target_link_libraries(color_to_gray_node ${catkin_LIBRARIES})
for
target_link_libraries(color_to_gray_node ${catkin_LIBRARIES} ${OpenCV_LIBS} )