From 43807ef44cd60842244a556ade6096ad4a1d7172 Mon Sep 17 00:00:00 2001 From: wep21 Date: Fri, 8 Nov 2024 17:32:31 +0900 Subject: [PATCH] workaround to include conversions.h Signed-off-by: wep21 --- grid_map_demos/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/grid_map_demos/CMakeLists.txt b/grid_map_demos/CMakeLists.txt index e64cf57e..1ca4547c 100644 --- a/grid_map_demos/CMakeLists.txt +++ b/grid_map_demos/CMakeLists.txt @@ -138,6 +138,16 @@ ament_target_dependencies( octomap_msgs ) +foreach(dir IN LISTS octomap_msgs_INCLUDE_DIRS) + if(dir MATCHES ".*octomap_msgs.*") + get_filename_component(PARENT "${dir}" DIRECTORY) + target_include_directories(octomap_to_gridmap_demo + PRIVATE + ${PARENT} + ) + endif() +endforeach() + ament_target_dependencies( move_demo SYSTEM ${dependencies}