Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Blackboard with the creating of a tree#849

Unanswered
lyd00116 asked this question inQ&A
Discussion options

  1. Hi, I'm using the beaviortree_cpp_v3. I am puzzled with the mechanism of creating the tree

Tree createTreeFromFile(const std::string& file_path, Blackboard::Ptr blackboard = Blackboard::create());
The second parameterBlackboard::Ptr blackboard = Blackboard::create()) is always accomplished with the tree.
However, this blackboard can only by modified and the value can only be get outside the inner action. I don't know why the creation of a tree must be with this blackboard, although the second parmaeter is always implictly ignored.
Now I have a question. What contents are the blackboard recorded? I don't understand the value of the blackboard with the tree.
I want to record if the action has been executed in global. Next time run in this action, it shouldn't run multiple times if this action is recorded. I wonder if I can use the blackboard with the tree? However, I find the action constructor is separated with the tree, which means the single action cannot get the blackboard that accompanies the tree. The action does not have link with the whole tree.
class Test_Action_1 : public BT::SyncActionNode { public: Test_Action_1(const std::string& name, const BT::NodeConfiguration& config) : BT::SyncActionNode(name, config) {}

  1. Or is there other methods to record the action execution situation. More importantly, the recorded situation shouble be shared by all the actions. Thank you.
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@lyd00116

[8]ページ先頭

©2009-2025 Movatter.jp