-
Notifications
You must be signed in to change notification settings - Fork 39
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
Comments
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? |
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. |
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? |
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. |
How about the code below? |
Make blackboard use a Type class that encapsulates whatever we need and which can also be extended by anyone.
The text was updated successfully, but these errors were encountered: