splintered-reality / py_trees

Python implementation of behaviour trees.
Other
433 stars 143 forks source link

[composites] Reduce circulation when the parallel node policy is SuccessOnOne #440

Closed starrye closed 1 month ago

starrye commented 6 months ago

motivation: reduce circulation when the parallel node policy is SuccessOnOne

Update: Iterate in reverse order, updating new_status and self.current_child when the first child whose status iscommon.Status.SUCCESS is found, then terminating the loop

starrye commented 6 months ago

@stonier please review