Open songyuc opened 12 months ago
I think the Client
API is useful when passing a specific namespace
to be a client of. Then you only need to pass the relative blackboard key name. This way you can organize the blackboard better with some behaviours only referencing some specific namespaces of the blackboard.
However, I would also very much appreciate more best practices for blackboard usage, and py_trees
in general.
Hello guys,
I am currently working with
py_trees
and I'm seeking some clarification on best practices for using the blackboard feature. I have previously used a basic approach for blackboard usage, which involves directly setting and getting values on the blackboard. Here's a brief example of what I've done:While this method works for basic scenarios, I am aware that
py_trees
also offers more sophisticated mechanisms like using thepy_trees.blackboard.Client
class for managing blackboard access. I would like to know if the approach I am using is in line with the recommended practices, or if it's more advisable to use theClient
class for blackboard interactions, especially in more complex behavior trees.Any guidance or clarification you can provide on this matter would be greatly appreciated. I am especially interested in understanding the best practices for blackboard usage in
py_trees
to ensure efficient and effective implementation in my projects.Thank you for your time and assistance.
Best regards, Yucheng Song