Skip to content

Commit

Permalink
Link nav2_costmap_2d the old way
Browse files Browse the repository at this point in the history
* Upstream nav2 didn't backport it yet

Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Mar 11, 2024
1 parent e3fad51 commit 19f89ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grid_map_costmap_2d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ find_package(grid_map_cmake_helpers REQUIRED)
find_package(grid_map_core REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(nav2_costmap_2d REQUIRED)
find_package(rclcpp REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)

Expand Down Expand Up @@ -34,9 +35,9 @@ target_link_libraries(${PROJECT_NAME}
grid_map_core::grid_map_core
${geometry_msgs_TARGETS}
${tf2_geometry_msgs_TARGETS}
nav2_costmap_2d::nav2_costmap_2d_core
tf2_ros::tf2_ros
)
ament_target_dependencies(${PROJECT_NAME} INTERFACE nav2_costmap_2d)

target_include_directories(${PROJECT_NAME}
INTERFACE
Expand Down
2 changes: 2 additions & 0 deletions grid_map_costmap_2d/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ ament_add_gtest(${PROJECT_NAME}-test

target_link_libraries(${PROJECT_NAME}-test
${PROJECT_NAME}::${PROJECT_NAME}
tf2_ros::tf2_ros
rclcpp::rclcpp
)

ament_add_gtest(costmap-2d-ros-test
Expand Down

0 comments on commit 19f89ba

Please sign in to comment.