splintered-reality / py_trees

Python implementation of behaviour trees.
Other
415 stars 139 forks source link

Nested Sequences and Selectors #404

Closed devvramesh closed 1 year ago

devvramesh commented 1 year ago

Hello. I am a graduate student at Brown University working with a research group, and we would potentially like to utilize and credit your implementation of behavior trees with our work. I'm attempting to build a behavior tree with a Sequence having a Selector as a child, and I am getting the following error:

RuntimeError: behaviour 'Selector' already has parent 'Sequence'

Is it possible to achieve this functionality in some way? Or, more specifically, how would I nest Selectors and Sequences within each other? Thank you!

Edit: Solved