Open Gaboose opened 9 years ago
Did you mean "more than once" or "more than zero?" Normally, if one is asked to do something until one suceeds, and one gets it on the very first try, you get a gold star, and don't have to do it again.
If precision is a requirement, then the semantics are usually "at least once, and at most once". For example: an automated banking machine: "(repeat-until-success: call bank; decrement account balance $50); then dispense cash-money $50" -- You don't want to decrement $50 twice: you want to keep trying till you contact the bank, but once you succeeed, you are done.
I get that. But here, following your example, the success-check "try call bank" gets executed only once even though the network is down (the test is rigged so the repeatUntilSucceed
never succeeds) and I stepped through the tree 100 times.
Yes, there's something wrong with parallel
. Good find! I'm looking into it.
Any reason this pull request cannot be merged?
Since Gaboose and I plan to use behvaior trees more and more, would it be possible to be listed as a project participant/maintainer for this project?
@eykd I took the liberty of fixing these myself 5d73706e1ead700a4e7d52345ebc355613a339a6 . All tests succeed.
Hey guys, sorry for the radio silence. I took a couple weeks off around Christmas and the New Year, and now I'm catching up on everything. In investigating this issue I discovered #3 which is potentially a serious issue as well. I was working on a fix before the break. I'll try to have that packaged up this week, potentially incorporating your changes @Gaboose once I've reviewed them. Thanks.
Thanks for looking into this. I myself can't tell whether visit's leaky values are an issue or not.
I'm kind of new to behavior trees so it'd be nice if someone confirmed whether these failures are real / tests are correct. Though I'm fairly certain repeatUntilSucceed and repeatUntilFail should execute its child more than once to operate correctly.
Here's how the tests fail: