GithubHelp home page GithubHelp logo

Comments (6)

linhaiwei123 avatar linhaiwei123 commented on August 13, 2024

i found the bug here. in limiter we should return the b3.RUNNING instead of b3.SUCCESS or b3.FAILURE
cause the b3.SUCCESS or b3.FAILURE would exit the running state and reset the time in open when we tick again

from behavior3js.

linhaiwei123 avatar linhaiwei123 commented on August 13, 2024

yep i found that return b3.RUNNING in limiter still not work well. the only way to fix it is to check whether the key i is set or not. and set it in the first time we enter the open callback

from behavior3js.

danielepolencic avatar danielepolencic commented on August 13, 2024

@linhaiwei123 would you be able to submit a PR with the failing test or a simple way to reproduce the bug?

from behavior3js.

wqhk avatar wqhk commented on August 13, 2024

open: function(tick) {
tick.blackboard.set('i', 0, tick.tree.id, this.id);
},
The Decorator of Limiter will reset "i" to zero when child status == b3.SUCCESS || status == b3.FAILURE。 +1 ,reset 0, +1 ,reset 0……

from behavior3js.

danielepolencic avatar danielepolencic commented on August 13, 2024

@wqhk would you be able to submit a PR with a failing test?

from behavior3js.

wqhk avatar wqhk commented on August 13, 2024

@danielepolencic I submit a PR. Learn BT this week, maybe misunderstand the usage of Limiter =。=

from behavior3js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.