fzi-forschungszentrum-informatik / ros2_ros_bt_py

This is a Behavior Tree library meant to be an alternative to SMACH, FlexBE and the like. It includes a ReactJS-based web GUI and all the building blocks you need to build moderately advanced mission control Behavior Trees without writing a single line of code!
BSD 3-Clause "New" or "Revised" License
24 stars 6 forks source link

💡 [REQUEST] - IterateListUntilSuccess node #70

Open Oberacda opened 5 months ago

Oberacda commented 5 months ago

Implementation PR

No response

Reference Issues

No response

Summary

A node similar to the ListIterator that stops after the first element return Success. This is useful for searching in a list for the first matching element.

Basic Example

When having a list of possible targets with types and you want to find the first element matching a specific type, at the moment, you would need to build a tree that failed on match and invert the status above the iterate. It would be easier if you could just have an iterator that stops on the first success.

Drawbacks

None

Unresolved questions

No response