From 0c6b01bbfe75dbe9460a4bb61468e85d36df1947 Mon Sep 17 00:00:00 2001 From: Bill Finger Date: Mon, 9 Dec 2024 18:25:32 +0300 Subject: [PATCH] feat: improve behavior tree executor and dependency management - **CMakeLists.txt**: - Commented out the unused `rbs_env_manager_starter` library. - **Behavior Trees**: - Added new `grasp_object.xml` behavior tree for grasping operations. - Modified `test_tree.xml` to update `robot_name` in the `WorkspaceMovement` subtree. - **Source Code Updates**: - Removed `EnvManager.cpp`, deprecating its functionality. - Formatting `GetWorkspace.cpp` - Formatting `MoveGripper.cpp` - Formatting `MoveToJointStates.cpp` - Formatting `PoseEstimation.cpp` and `TreeRunner.cpp` - **Assembly Config Service**: - Added broadcasting for grasp pose transformations in `assembly_config_service.py`. These updates enhance modularity, maintainability, and the overall functionality of the behavior tree executor. --- rbs_bt_executor/CMakeLists.txt | 4 +- rbs_bt_executor/bt_trees/grasp_object.xml | 36 ++++++++++++ rbs_bt_executor/bt_trees/test_tree.xml | 2 +- rbs_bt_executor/src/EnvManager.cpp | 43 --------------- rbs_bt_executor/src/GetWorkspace.cpp | 55 +++++++++---------- rbs_bt_executor/src/MoveGripper.cpp | 30 +++++----- rbs_bt_executor/src/MoveToJointStates.cpp | 7 +-- rbs_bt_executor/src/MoveToPose.cpp | 7 +-- rbs_bt_executor/src/PoseEstimation.cpp | 5 +- rbs_bt_executor/src/TreeRunner.cpp | 2 +- .../scripts/assembly_config_service.py | 17 ++++++ 11 files changed, 110 insertions(+), 98 deletions(-) create mode 100644 rbs_bt_executor/bt_trees/grasp_object.xml delete mode 100644 rbs_bt_executor/src/EnvManager.cpp diff --git a/rbs_bt_executor/CMakeLists.txt b/rbs_bt_executor/CMakeLists.txt index b1efb12..78910e9 100644 --- a/rbs_bt_executor/CMakeLists.txt +++ b/rbs_bt_executor/CMakeLists.txt @@ -80,8 +80,8 @@ list(APPEND plugin_libs rbs_skill_move_joint_state) add_library(rbs_object_detection SHARED src/ObjectDetection.cpp) list(APPEND plugin_libs rbs_object_detection) -add_library(rbs_env_manager_starter SHARED src/EnvManager.cpp) -list(APPEND plugin_libs rbs_env_manager_starter) +# add_library(rbs_env_manager_starter SHARED src/EnvManager.cpp) +# list(APPEND plugin_libs rbs_env_manager_starter) add_library(rbs_skill_move_topose_array_bt_action_client SHARED src/MoveToPoseArray.cpp) list(APPEND plugin_libs rbs_skill_move_topose_array_bt_action_client) diff --git a/rbs_bt_executor/bt_trees/grasp_object.xml b/rbs_bt_executor/bt_trees/grasp_object.xml new file mode 100644 index 0000000..3a64022 --- /dev/null +++ b/rbs_bt_executor/bt_trees/grasp_object.xml @@ -0,0 +1,36 @@ + + + + + +