Upgrade plansys2_bt_example to Behaviortree.CPP v4#43
Merged
fmrico merged 1 commit intoPlanSys2:rollingfrom Feb 25, 2024
Merged
Upgrade plansys2_bt_example to Behaviortree.CPP v4#43fmrico merged 1 commit intoPlanSys2:rollingfrom
plansys2_bt_example to Behaviortree.CPP v4#43fmrico merged 1 commit intoPlanSys2:rollingfrom
Conversation
Contributor
Author
|
I think this PR is failing because the test workflow doesn't include |
Contributor
|
Thanks @robodrome Merging!! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update Summary for
plansys2_bt_exampleOverview
Here are the details of the updates applied to the
plansys2_bt_examplepackage, part of the ROS 2 Planning System examples. The primary focus of these updates is to ensure compatibility with the latest version of BehaviorTree.CPP (v4), including syntax adjustments in behavior tree XML files and updates in include paths frombehaviortree_cpp_v3tobehaviortree_cpp(v4).Changes
Behavior Trees XML Configuration
Root Element Update: The root element in behavior tree XML files (
move.xml,recharge.xml,transport.xml) now includes theBTCPP_format="4"attribute, indicating the use of BehaviorTree.CPP version 4.Argument Syntax Update: In
move.xmlandtransport.xml, the syntax for accessing arguments has been updated from${argX}to{argX}, aligning with the updated parsing requirements of BehaviorTree.CPP.Include Paths and API Usage
.hppand.cppfiles have been updated frombehaviortree_cpp_v3/*tobehaviortree_cpp/*, reflecting the transition to the newer version of the library. This change affects the following nodes:ApproachObjectCloseGripperMoveOpenGripperRechargeCode Adjustments in Node Implementations
Move.cpp, error handling has been added when retrieving thenodefrom the blackboard, enhancing the robustness of the implementation.Documentation and Setup Instructions
ros-humble-turtlebot3*packages.Test
The instructions in
plansys2_bt_examplework without errors.Conclusion
The
plansys2_bt_examplepackage has been updated to leverage the latest features and improvements of BehaviorTree.CPP version 4. These updates not only ensure compatibility with the latest behavior tree standards but also improve the documentation and setup instructions for users.