Skip to content

Commit

Permalink
fix(traffic_light_estimator): modify build error
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota committed Jun 28, 2022
1 parent 57c2e8b commit 575225a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions perception/traffic_light_estimator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ rclcpp_components_register_node(traffic_light_estimator
EXECUTABLE traffic_light_estimator_node
)

# workaround to allow deprecated header to build on both galactic and rolling
if(${tf2_geometry_msgs_VERSION} VERSION_LESS 0.18.0)
target_compile_definitions(traffic_light_estimator_node PUBLIC
USE_TF2_GEOMETRY_MSGS_DEPRECATED_HEADER
)
endif()

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
Expand Down

0 comments on commit 575225a

Please sign in to comment.