File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ endif()
3030## Build ##
3131###########
3232
33+ if (${cv_bridge_VERSION} VERSION_LESS "3.3.0" )
34+ add_compile_definitions (CV_BRIDGE_USES_OLD_HEADERS)
35+ endif ()
36+
3337## Specify additional locations of header files
3438include_directories (include
3539 ${Boost_INCLUDE_DIRS}
Original file line number Diff line number Diff line change 22#define WEB_VIDEO_SERVER_H_
33
44#include < rclcpp/rclcpp.hpp>
5+
6+ #ifdef CV_BRIDGE_USES_OLD_HEADERS
57#include < cv_bridge/cv_bridge.h>
8+ #else
9+ #include < cv_bridge/cv_bridge.hpp>
10+ #endif
11+
612#include < vector>
713#include " web_video_server/image_streamer.h"
814#include " async_web_server_cpp/http_server.hpp"
Original file line number Diff line number Diff line change 11#include " web_video_server/image_streamer.h"
2+
3+ #ifdef CV_BRIDGE_USES_OLD_HEADERS
24#include < cv_bridge/cv_bridge.h>
5+ #else
6+ #include < cv_bridge/cv_bridge.hpp>
7+ #endif
8+
39#include < iostream>
410
511namespace web_video_server
You can’t perform that action at this time.
0 commit comments