Skip to content

Commit

Permalink
fix(lidar_centerpoint): add target compile definition for geometry2
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <[email protected]>
  • Loading branch information
wep21 authored and wep21 committed Apr 21, 2022
1 parent 42ad0ef commit 4132e97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions perception/lidar_centerpoint/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ if(TRT_AVAIL AND CUDA_AVAIL AND CUDNN_AVAIL)
centerpoint
)

# 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(lidar_centerpoint_component PUBLIC
USE_TF2_GEOMETRY_MSGS_DEPRECATED_HEADER
)
endif()

rclcpp_components_register_node(lidar_centerpoint_component
PLUGIN "centerpoint::LidarCenterPointNode"
EXECUTABLE lidar_centerpoint_node
Expand Down

0 comments on commit 4132e97

Please sign in to comment.