Giter Club home page Giter Club logo

Comments (5)

ptiza-v-nebe avatar ptiza-v-nebe commented on May 27, 2024

It will maybe cool to implement similiar solutions for BlackBoard from BehaviorTree.CPP as they are already more advanced in this question.

From their wiki: A Blackboard is a key/value storage shared by all the Nodes of a Tree.

It will be nice to share the blackboard on every node in the tree. Maybe simple pointer to the tree on every node is enough?

from braintree.

arvidsson avatar arvidsson commented on May 27, 2024

There is already a shared blackboard for each behaviour tree, which can be passed to every leaf.

But yes, I was thinking of something similar for the blackboard when it comes to being able to store any value and not only predefined ones.

from braintree.

ptiza-v-nebe avatar ptiza-v-nebe commented on May 27, 2024

How the blackboard is actually passed to every leaf? I see the pointer to blackboard on the Leaf Class but how would you normally do it? Is the tree somehow traversed and automatically passes some global blackboard? Or should I just pass on every leaf some instance of blackboard? How this passing does then work with the tree builders?

from braintree.

arvidsson avatar arvidsson commented on May 27, 2024

When you create the leaf you pass the blackboard which exists within the behaviour tree. But you are correct that the current implementation of the tree builder does not support this in an easy way which should be improved.

from braintree.

wataniguchi avatar wataniguchi commented on May 27, 2024

How about the code below?
I have also corrected the behavior of stateful composites.

BrainTree.h.diff.txt

from braintree.

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.