Replies: 1 comment 1 reply
-
The blackboard is in fact a map of std::any and can contain any type. The blackboard should be used for dataflow between nodes, not to share data from the "backend". Also, if ALL your nodes need to access the same objects, you may want to consider this https://www.behaviortree.dev/docs/tutorial-basics/tutorial_08_additional_args |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am new to BTCPP, so sorry if the question has already been discussed.
I would like to integrate BTCPP in the Flecs ECS https://www.flecs.dev/flecs/#/. In order to achieve this, I need to populate the tree blackboard with Flecs components in order to forward the Flecs context to BTCPP. On the flecs side, I have type ids (mostly full qualified class names) and access to (untyped) pointer to data. If necessary I probably can convert the components to std::any.
What is missing (from what I have seen) in the picture is a generic set method on the blackboard. Or is there a way to obtain a writable reference through getAny ?
Thanks for your help.
Bruno
Beta Was this translation helpful? Give feedback.
All reactions