Skip to content

Commit be7d892

Browse files
committed
finishing merge
1 parent 2018ca3 commit be7d892

10 files changed

Lines changed: 0 additions & 518 deletions

File tree

.gitignore

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1 @@
1-
<<<<<<< HEAD
21
.deps/*
3-
=======
4-
# Prerequisites
5-
*.d
6-
7-
# Compiled Object files
8-
*.slo
9-
*.lo
10-
*.o
11-
*.obj
12-
13-
# Precompiled Headers
14-
*.gch
15-
*.pch
16-
17-
# Compiled Dynamic libraries
18-
*.so
19-
*.dylib
20-
*.dll
21-
22-
# Fortran module files
23-
*.mod
24-
*.smod
25-
26-
# Compiled Static libraries
27-
*.lai
28-
*.la
29-
*.a
30-
*.lib
31-
32-
# Executables
33-
*.exe
34-
*.out
35-
*.app
36-
>>>>>>> btros2-fork/humble

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ Our main goals are:
6060
- to minimize the amount of boilerplate.
6161
- to make asynchronous Actions non-blocking.
6262

63-
<<<<<<< HEAD
6463
It uses [behaviortree_eut_plugins](https://ice.eurecat.org/gitlab/robotics-automation/behavior_tree_eut_plugins) for augmenting its original [public version](https://github.com/BehaviorTree/BehaviorTree.ROS2.git) with custom serialization and deserialization policies, providing out of the box json one, essentially adding the following plugins templates to be used with a one-liner:
6564

6665
Plugin Template | Deserialization Policy | Serialization Policy | Extra Pre/Post processing
@@ -149,9 +148,6 @@ Note that you can specialize some functions for specific MessageType `T` in the
149148
# Examples
150149

151150
# Further Documentation
152-
=======
153-
# Documentation
154-
>>>>>>> btros2-fork/humble
155151

156152
- [ROS Behavior Wrappers](behaviortree_ros2/ros_behavior_wrappers.md)
157153
- [TreeExecutionServer](behaviortree_ros2/tree_execution_server.md)
@@ -160,15 +156,9 @@ Note that you can specialize some functions for specific MessageType `T` in the
160156
Note that this library is compatible **only** with:
161157

162158
- **BT.CPP** 4.6 or newer.
163-
<<<<<<< HEAD
164159
- **ROS2** Humble or Jazzy.
165160

166161
Additionally, check **plugins.hpp** and **plugins.cpp** to see how to learn how to
167-
=======
168-
- **ROS2** Humble or newer.
169-
170-
Additionally, check **plugins.hpp** to see how to learn how to
171-
>>>>>>> btros2-fork/humble
172162
wrap your Nodes into plugins that can be loaded at run-time.
173163

174164

behaviortree_ros2/CMakeLists.txt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@ project(behaviortree_ros2)
44
set(CMAKE_CXX_STANDARD 17)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
66

7-
<<<<<<< HEAD
87
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
98
add_compile_options(-fPIC)
109

11-
=======
12-
>>>>>>> btros2-fork/humble
1310
set(THIS_PACKAGE_DEPS
1411
rclcpp
1512
rclcpp_action
1613
ament_index_cpp
1714
behaviortree_cpp
18-
<<<<<<< HEAD
1915
behaviortree_eut_plugins
2016
btcpp_ros2_interfaces
2117
generate_parameter_library
@@ -27,10 +23,6 @@ set(THIS_PACKAGE_DEPS
2723
tf2
2824
tf2_geometry_msgs
2925
tf2_ros
30-
=======
31-
btcpp_ros2_interfaces
32-
generate_parameter_library
33-
>>>>>>> btros2-fork/humble
3426
)
3527

3628
find_package(ament_cmake REQUIRED)
@@ -39,10 +31,6 @@ foreach(PACKAGE ${THIS_PACKAGE_DEPS})
3931
find_package(${PACKAGE} REQUIRED )
4032
endforeach()
4133

42-
<<<<<<< HEAD
43-
=======
44-
45-
>>>>>>> btros2-fork/humble
4634
generate_parameter_library(
4735
bt_executor_parameters
4836
src/bt_executor_parameters.yaml)
@@ -60,7 +48,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC
6048

6149
target_link_libraries(${PROJECT_NAME} bt_executor_parameters)
6250

63-
<<<<<<< HEAD
6451
# Executable to generate xml from .so plugin for "simple" and ros2 based bt plugins .so
6552
add_executable(bt_ros_plugins_to_xml src/tools/bt_ros_plugins_to_xml.cpp )
6653
include_directories(${behaviortree_cpp_INCLUDE_DIRS} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
@@ -74,18 +61,13 @@ target_include_directories(${PROJECT_NAME}_nodemodels PRIVATE
7461
target_compile_definitions(${PROJECT_NAME}_nodemodels PRIVATE BT_PLUGIN_EXPORT )
7562
ament_target_dependencies(${PROJECT_NAME}_nodemodels ${THIS_PACKAGE_DEPS})
7663

77-
=======
78-
>>>>>>> btros2-fork/humble
7964

8065
######################################################
8166
# INSTALL
8267

83-
<<<<<<< HEAD
8468
install(TARGETS bt_ros_plugins_to_xml
8569
DESTINATION lib/${PROJECT_NAME} )
8670

87-
=======
88-
>>>>>>> btros2-fork/humble
8971
install(DIRECTORY include/ DESTINATION include/)
9072

9173
ament_export_targets(${PROJECT_NAME}Targets HAS_LIBRARY_TARGET)
@@ -98,7 +80,6 @@ install(
9880
LIBRARY DESTINATION lib
9981
RUNTIME DESTINATION lib/${PROJECT_NAME})
10082

101-
<<<<<<< HEAD
10283
# Recover subfolder path for plugins
10384
execute_process(
10485
COMMAND bash -c "xmllint --xpath 'string(//description/plugins/@folder_path)' plugins_description.xml | awk '{print \$1\}'"
@@ -148,8 +129,6 @@ ament_index_register_resource(
148129
CONTENT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/palettes_description.xml"
149130
)
150131

151-
=======
152-
>>>>>>> btros2-fork/humble
153132
ament_export_include_directories(include)
154133
ament_export_libraries(${PROJECT_NAME})
155134

behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ inline void RosActionNode<T>::cancelGoal()
546546

547547
auto& action_client = client_instance_->action_client;
548548

549-
<<<<<<< HEAD
550549
try
551550
{
552551
auto future_result = action_client->async_get_result(goal_handle_);
@@ -572,23 +571,6 @@ inline void RosActionNode<T>::cancelGoal()
572571
}
573572
catch(const std::exception& ex) {
574573
RCLCPP_ERROR(logger(), "Exception while canceling goal: %s", ex.what());
575-
=======
576-
auto future_result = action_client->async_get_result(goal_handle_);
577-
auto future_cancel = action_client->async_cancel_goal(goal_handle_);
578-
579-
constexpr auto SUCCESS = rclcpp::FutureReturnCode::SUCCESS;
580-
581-
if(executor.spin_until_future_complete(future_cancel, server_timeout_) != SUCCESS)
582-
{
583-
RCLCPP_ERROR(logger(), "Failed to cancel action server for [%s]",
584-
action_name_.c_str());
585-
}
586-
587-
if(executor.spin_until_future_complete(future_result, server_timeout_) != SUCCESS)
588-
{
589-
RCLCPP_ERROR(logger(), "Failed to get result call failed :( for [%s]",
590-
action_name_.c_str());
591-
>>>>>>> btros2-fork/humble
592574
}
593575
}
594576

0 commit comments

Comments
 (0)