-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate from deprecated BehaviorTree.CPP APIs #1686
Comments
@facontidavide any thoughts on how to remove these |
First: your decorator does NOT need to set the status of the children. Just remove Second: Use instead: Third: ...and this is apparent in the new tutorials.
You can (should) also remove the line Finally:
|
I do not believe you will notice any difference in the control flow. If you do, please let me know. |
Awesome. Its become clear to me that someone really needs to take a really long, deep look at our use of BT.CPP, this isn't the first time our implementation is abusing things or making things redundant. I'm dissatisfied to say that I don't know this section of the code particularly well. A refactor / redesign may be in order to clean house of these problems and try to simplify. |
I am working on this behavior tree task. |
@deepanshubansal01 I had to do this to unblock CI, apologies |
@SteveMacenski No problem |
Looks like navigation2 is using a few deprecated APIs from BehaviorTree.CPP. Looks like there where some important changes from v3.3.0. The latest release as of writing is v3.4.0.
Need to update https://github.com/ros-planning/navigation2/blob/master/tools/ros2_dependencies.repos#L5 to the new version.
Building b2c1661 agents https://github.com/BehaviorTree/BehaviorTree.CPP/releases/tag/3.4.0
Related: BehaviorTree/BehaviorTree.CPP#106
The text was updated successfully, but these errors were encountered: