Replies: 1 comment 6 replies
-
This also relates slightly to #46, as we could indeed introduce flags on the One advantage of the |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a bit confused about the star variants for composites (both Selector and Sequence). My understanding is that the only difference between the normal version and the star version is that the star will continue execution with the currently RUNNING child on successive ticks, while the normal version will re-evaluate them in order and might select a previous child, even if there was already a RUNNING one. If I am not missing anything here I think this design has a few defects:
Proposal:
Unify normal and star versions into a single BeehaveNode, and have a flag to select re-entry into the running state. You could call it is_resumable (enabled by default, true: SelectorStar, false: Selector), or is_interruptable (disabled by default)
Not sure how this interacts with the recently added interruptions functionality as I haven't tried that out yet or fully understand how it works, but maybe there is some overlap?
At one point I though it could be an idea to have the flag set globally on a BeehaveRoot so that the execution resumes directly into the previously running node, but having the flexibility to set different values on each composite is definitely better.
Beta Was this translation helpful? Give feedback.
All reactions