Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved simple planner into own sub-directory #363

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tesseract_motion_planners/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ tesseract_variables()

add_subdirectory(core)

# Simple
option(TESSERACT_BUILD_SIMPLE "Build the simple planner" ON)
if(TESSERACT_BUILD_SIMPLE)
message("Building Simple Planner")
add_subdirectory(simple)
endif()

# OMPL
option(TESSERACT_BUILD_OMPL "Build the OMPL planner" ON)
if(TESSERACT_BUILD_OMPL)
Expand Down
28 changes: 2 additions & 26 deletions tesseract_motion_planners/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ find_package(tesseract_environment REQUIRED)
find_package(tesseract_command_language REQUIRED)

# Create interface for core
add_library(${PROJECT_NAME}_core src/core/planner.cpp src/core/utils.cpp src/core/interpolation.cpp)
add_library(${PROJECT_NAME}_core src/planner.cpp src/utils.cpp src/interpolation.cpp)
target_link_libraries(
${PROJECT_NAME}_core
PUBLIC tesseract::tesseract_environment
Expand All @@ -24,32 +24,8 @@ target_code_coverage(
target_include_directories(${PROJECT_NAME}_core PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include>")

# Simple Planner
add_library(
${PROJECT_NAME}_simple
src/simple/simple_motion_planner.cpp
src/simple/profile/simple_planner_lvs_plan_profile.cpp
src/simple/profile/simple_planner_lvs_no_ik_plan_profile.cpp
src/simple/profile/simple_planner_fixed_size_assign_plan_profile.cpp
src/simple/profile/simple_planner_fixed_size_plan_profile.cpp)
target_link_libraries(${PROJECT_NAME}_simple PUBLIC ${PROJECT_NAME}_core Boost::boost)
target_compile_options(${PROJECT_NAME}_simple PRIVATE ${TESSERACT_COMPILE_OPTIONS_PRIVATE})
target_compile_options(${PROJECT_NAME}_simple PUBLIC ${TESSERACT_COMPILE_OPTIONS_PUBLIC})
target_compile_definitions(${PROJECT_NAME}_simple PUBLIC ${TESSERACT_COMPILE_DEFINITIONS})
target_clang_tidy(${PROJECT_NAME}_simple ENABLE ${TESSERACT_ENABLE_CLANG_TIDY})
target_cxx_version(${PROJECT_NAME}_simple PUBLIC VERSION ${TESSERACT_CXX_VERSION})
target_code_coverage(
${PROJECT_NAME}_simple
PRIVATE
ALL
EXCLUDE ${COVERAGE_EXCLUDE}
ENABLE ${TESSERACT_ENABLE_CODE_COVERAGE})
target_include_directories(${PROJECT_NAME}_simple PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include>")
add_dependencies(${PROJECT_NAME}_simple ${PROJECT_NAME}_core)

# Mark cpp header files for installation
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install targets
install_targets(TARGETS ${PROJECT_NAME}_core ${PROJECT_NAME}_simple)
install_targets(TARGETS ${PROJECT_NAME}_core)
31 changes: 31 additions & 0 deletions tesseract_motion_planners/simple/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
find_package(tesseract_environment REQUIRED)
find_package(tesseract_command_language REQUIRED)

add_library(
${PROJECT_NAME}_simple
src/simple_motion_planner.cpp
src/profile/simple_planner_lvs_plan_profile.cpp
src/profile/simple_planner_lvs_no_ik_plan_profile.cpp
src/profile/simple_planner_fixed_size_assign_plan_profile.cpp
src/profile/simple_planner_fixed_size_plan_profile.cpp)
target_link_libraries(${PROJECT_NAME}_simple PUBLIC ${PROJECT_NAME}_core Boost::boost)
target_compile_options(${PROJECT_NAME}_simple PRIVATE ${TESSERACT_COMPILE_OPTIONS_PRIVATE})
target_compile_options(${PROJECT_NAME}_simple PUBLIC ${TESSERACT_COMPILE_OPTIONS_PUBLIC})
target_compile_definitions(${PROJECT_NAME}_simple PUBLIC ${TESSERACT_COMPILE_DEFINITIONS})
target_clang_tidy(${PROJECT_NAME}_simple ENABLE ${TESSERACT_ENABLE_CLANG_TIDY})
target_cxx_version(${PROJECT_NAME}_simple PUBLIC VERSION ${TESSERACT_CXX_VERSION})
target_code_coverage(
${PROJECT_NAME}_simple
PRIVATE
ALL
EXCLUDE ${COVERAGE_EXCLUDE}
ENABLE ${TESSERACT_ENABLE_CODE_COVERAGE})
target_include_directories(${PROJECT_NAME}_simple PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include>")
add_dependencies(${PROJECT_NAME}_simple ${PROJECT_NAME}_core)

# Mark cpp header files for installation
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install targets
install_targets(TARGETS ${PROJECT_NAME}_simple)
Loading