Skip to content

Commit a0c6a75

Browse files
author
davide
committed
refactoring
1 parent 11f871c commit a0c6a75

20 files changed

+163
-165
lines changed

CMakeLists.txt

Lines changed: 0 additions & 97 deletions
This file was deleted.

behaviortree_ros2/CMakeLists.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
cmake_minimum_required(VERSION 3.16)
2+
project(behaviortree_ros2)
3+
4+
set(CMAKE_CXX_STANDARD 17)
5+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
7+
8+
set(THIS_PACKAGE_DEPS
9+
rclcpp
10+
rclcpp_action
11+
ament_index_cpp
12+
behaviortree_cpp)
13+
14+
find_package(ament_cmake REQUIRED)
15+
find_package(rclcpp REQUIRED )
16+
find_package(rclcpp_action REQUIRED )
17+
find_package(behaviortree_cpp REQUIRED )
18+
find_package(ament_index_cpp REQUIRED)
19+
20+
# This is compiled only to check if there are errors in the header file
21+
# library will not be exported
22+
include_directories(include)
23+
add_library(${PROJECT_NAME} src/bt_ros2.cpp)
24+
ament_target_dependencies(${PROJECT_NAME} ${THIS_PACKAGE_DEPS})
25+
26+
######################################################
27+
# INSTALL
28+
29+
install(DIRECTORY include/ DESTINATION include/)
30+
31+
ament_export_include_directories(include)
32+
ament_export_dependencies(${THIS_PACKAGE_DEPS})
33+
34+
ament_package()

package.xml renamed to behaviortree_ros2/package.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
<depend>rclcpp_action</depend>
1616
<depend>behaviortree_cpp</depend>
1717

18-
<buildtool_depend>rosidl_default_generators</buildtool_depend>
19-
<depend>action_msgs</depend>
20-
<member_of_group>rosidl_interface_packages</member_of_group>
21-
2218
<export>
2319
<build_type>ament_cmake</build_type>
2420
</export>
File renamed without changes.

0 commit comments

Comments
 (0)