Resuming tree execution #798
Unanswered
Alexferlisi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i am using behaviorTree.CPP library for my project ( versione 3.8) and in particular i am focusing on recovery strategy when the execution fails.
So far, i have a sequence of actions to execute (ex. action2 -> action3 -> action2 -> action3) with different parameters, if the state of the scene is always as "expected" the sequence of action can be executed easily.
now, let's suppose i changed the scene state such that action3 can not be executed because its preconditions are not satisfied, i have implemented a recovery strategy (with a Backup Tree) to bring me back to the "expected" state of the scene (and it works!) such that action3 can now be executed.
So, after that, i would like to resume the MainTree execution from the point where it fails (action3) because i don't want to restart the tree from the beginning, repeating action2 which has been already successful, is it possible to do that?
I hope i was clear explaining my problem. Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions