Found incorrect behavior (I think). Wrote some tests.#2
Conversation
|
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 |
|
Yes, there's something wrong with |
|
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? |
|
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: