Skip to content

Commit

Permalink
build under rolling
Browse files Browse the repository at this point in the history
  • Loading branch information
berndpfrommer committed Apr 13, 2024
1 parent afb0b3a commit fc370c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/ROS2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ foreach(pkg ${ROS2_DEPENDENCIES})
find_package(${pkg} REQUIRED)
endforeach()

if(${cv_bridge_VERSION} GREATER "3.3.0")
add_definitions(-DUSE_CV_BRIDGE_HPP)
endif()

ament_auto_find_build_dependencies(REQUIRED ${ROS2_DEPENDENCIES})

#
Expand Down
4 changes: 4 additions & 0 deletions src/frequency_cam_ros2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@

#include "frequency_cam/frequency_cam_ros2.h"

#ifdef USE_CV_BRIDGE_HPP
#include <cv_bridge/cv_bridge.hpp>
#else
#include <cv_bridge/cv_bridge.h>
#endif
#include <event_camera_codecs/decoder.h>
#include <math.h>

Expand Down

0 comments on commit fc370c8

Please sign in to comment.