Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More advanced blackboard #14

Open
arvidsson opened this issue Dec 1, 2017 · 5 comments
Open

More advanced blackboard #14

arvidsson opened this issue Dec 1, 2017 · 5 comments

Comments

@arvidsson
Copy link
Owner

Make blackboard use a Type class that encapsulates whatever we need and which can also be extended by anyone.

@ptiza-v-nebe
Copy link

ptiza-v-nebe commented Oct 20, 2019

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?

@arvidsson
Copy link
Owner Author

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.

@ptiza-v-nebe
Copy link

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?

@arvidsson
Copy link
Owner Author

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.

@wataniguchi
Copy link
Contributor

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

BrainTree.h.diff.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants