-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from naturerobots/40-port-dijkstra_mesh_planne…
…r-pkg-to-ros2 40 port dijkstra mesh planner pkg to ros2
- Loading branch information
Showing
15 changed files
with
188 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,36 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
cmake_minimum_required(VERSION 3.8) | ||
project(dijkstra_mesh_planner) | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
find_package(ament_cmake_ros REQUIRED) | ||
find_package(mbf_mesh_core REQUIRED) | ||
find_package(mbf_msgs REQUIRED) | ||
find_package(mbf_utility REQUIRED) | ||
find_package(mesh_map REQUIRED) | ||
find_package(rclcpp REQUIRED) | ||
|
||
find_package(catkin REQUIRED COMPONENTS | ||
roscpp | ||
mbf_mesh_core | ||
mbf_utility | ||
mbf_msgs | ||
mesh_map | ||
dynamic_reconfigure | ||
) | ||
|
||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(JSONCPP jsoncpp) | ||
|
||
generate_dynamic_reconfigure_options( | ||
cfg/DijkstraMeshPlanner.cfg | ||
) | ||
|
||
catkin_package( | ||
LIBRARIES dijkstra_mesh_planner | ||
CATKIN_DEPENDS roscpp mbf_mesh_core mbf_msgs mesh_map dynamic_reconfigure | ||
) | ||
|
||
include_directories( | ||
include | ||
${catkin_INCLUDE_DIRS} | ||
) | ||
pluginlib_export_plugin_description_file(mbf_mesh_core dijkstra_mesh_planner.xml) | ||
|
||
add_library(${PROJECT_NAME} | ||
src/dijkstra_mesh_planner.cpp | ||
) | ||
target_include_directories(${PROJECT_NAME} PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:include>) | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE "DIJKSTRA_MESH_PLANNER_BUILDING_LIBRARY") | ||
ament_target_dependencies(${PROJECT_NAME} mbf_mesh_core mbf_msgs mbf_utility mesh_map rclcpp) | ||
|
||
add_dependencies(${PROJECT_NAME} | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
${PROJECT_NAME}_gencfg | ||
) | ||
|
||
target_link_libraries(${PROJECT_NAME} | ||
${catkin_LIBRARIES} | ||
${JSONCPP_LIBRARIES} | ||
install(DIRECTORY include/ | ||
DESTINATION include | ||
) | ||
|
||
install(TARGETS ${PROJECT_NAME} | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
) | ||
|
||
install(FILES dijkstra_mesh_planner.xml | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} | ||
EXPORT export_${PROJECT_NAME} | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
RUNTIME DESTINATION bin | ||
) | ||
|
||
ament_export_include_directories(include) | ||
ament_export_libraries(${PROJECT_NAME}) | ||
ament_export_targets(export_${PROJECT_NAME}) | ||
ament_export_dependencies(mbf_mesh_core mbf_msgs mbf_utility mesh_map rclcpp) | ||
ament_package() |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<package format="3"> | ||
<name>dijkstra_mesh_planner</name> | ||
<version>1.0.1</version> | ||
<description>The dijkstra_mesh_planner package</description> | ||
<maintainer email="[email protected]">Sebastian Pütz</maintainer> | ||
<license>BSD-3</license> | ||
<author email="[email protected]">Sebastian Pütz</author> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
<depend>roscpp</depend> | ||
<depend>rclcpp</depend> | ||
<depend>mbf_mesh_core</depend> | ||
<depend>mbf_utility</depend> | ||
<depend>mbf_msgs</depend> | ||
<depend>mesh_map</depend> | ||
<depend>dynamic_reconfigure</depend> | ||
|
||
<export> | ||
<mbf_mesh_core plugin="${prefix}/dijkstra_mesh_planner.xml"/> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
Oops, something went wrong.