Skip to content

Retry until success sequence of subtree #170

@capox95

Description

@capox95

Hi, I am working on the following Behavior Tree:
question_git

BIN_LOCALIZATION and all the others children are SubTrees.

I want to achieve the following behavior:
the SubTree composed by INSERTION_CLOTH, INSERTION_CHECK and RECOVERY_GRASP should loop if RECOVERY_GRASP returns with status of success. Instead, if INSERTION_CHECK returns with success, the execution should restart from the beginning of the behavior tree (this works!).

I'am able to achieve this result when I work on that subtree alone since I can control the condition of ticking from the main file (where the nodes are registered).

What is the best way to achieve this behavior with the tools available in this library?
I am tinking of a sequence node with a condition of "retry until success". I have read that there exist decorators like this but they can only have a single child.

question_git2

I hope the problem is clear,
Alessio

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions