80 lines
2.3 KiB
CMake
80 lines
2.3 KiB
CMake
cmake_minimum_required(VERSION VERSION 3.5.1)
|
|
project(btree_robot)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
add_compile_options(-Wall -Wextra -Wpedantic)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
set(THIS_PACKAGE_INCLUDE_DEPENDS
|
|
ament_cmake
|
|
rclcpp
|
|
rclcpp_action
|
|
tf2_geometry_msgs
|
|
# tf2_ros
|
|
moveit_core
|
|
# rviz_visual_tools
|
|
# moveit_visual_tools
|
|
moveit_ros_planning_interface
|
|
# interactive_markers
|
|
tf2_geometry_msgs
|
|
moveit_ros_planning
|
|
# pluginlib
|
|
# Eigen3
|
|
# Boost
|
|
# control_msgs
|
|
# moveit_servo
|
|
)
|
|
|
|
#find_package(Eigen3 REQUIRED)
|
|
#find_package(Boost REQUIRED system filesystem date_time thread)
|
|
find_package(ament_cmake REQUIRED)
|
|
#find_package(control_msgs REQUIRED)
|
|
find_package(moveit_core REQUIRED)
|
|
find_package(moveit_ros_planning REQUIRED)
|
|
find_package(moveit_ros_planning_interface REQUIRED)
|
|
#find_package(moveit_ros_perception REQUIRED)
|
|
#find_package(moveit_servo REQUIRED)
|
|
#find_package(interactive_markers REQUIRED)
|
|
#find_package(rviz_visual_tools REQUIRED)
|
|
#find_package(moveit_visual_tools REQUIRED)
|
|
#find_package(geometric_shapes REQUIRED)
|
|
#find_package(pcl_ros REQUIRED)
|
|
#find_package(pcl_conversions REQUIRED)
|
|
#find_package(rosbag REQUIRED)
|
|
find_package(rclcpp REQUIRED)
|
|
#find_package(rclcpp_action REQUIRED)
|
|
#find_package(pluginlib REQUIRED)
|
|
#find_package(tf2_ros REQUIRED)
|
|
#find_package(tf2_eigen REQUIRED)
|
|
find_package(tf2_geometry_msgs REQUIRED)
|
|
|
|
# find dependencies
|
|
|
|
find_package(std_msgs REQUIRED)
|
|
find_package(behaviortree_cpp_v3 REQUIRED)
|
|
|
|
# uncomment the following section in order to fill in
|
|
# further dependencies manually.
|
|
# find_package(<dependency> REQUIRED)
|
|
|
|
add_executable(tree src/robot_test.cpp)
|
|
ament_target_dependencies(tree ${THIS_PACKAGE_INCLUDE_DEPENDS} std_msgs behaviortree_cpp_v3)
|
|
|
|
install(TARGETS
|
|
tree
|
|
DESTINATION lib/${PROJECT_NAME})
|
|
|
|
if(BUILD_TESTING)
|
|
find_package(ament_lint_auto REQUIRED)
|
|
# the following line skips the linter which checks for copyrights
|
|
# uncomment the line when a copyright and license is not present in all source files
|
|
#set(ament_cmake_copyright_FOUND TRUE)
|
|
# the following line skips cpplint (only works in a git repo)
|
|
# uncomment the line when this package is not in a git repo
|
|
#set(ament_cmake_cpplint_FOUND TRUE)
|
|
ament_lint_auto_find_test_dependencies()
|
|
endif()
|
|
|
|
ament_package()
|