26 <root main_tree_to_execute = "MainTree" > 27 <BehaviorTree ID="MainTree"> 28 <SequenceStar name="root"> 30 <MoveBase goal="${GoalPose}" /> 31 <SetBlackboard key="OtherGoal" value="-1;3;0.5" /> 32 <MoveBase goal="${OtherGoal}" /> 44 const Pose2D mygoal = {1.1, 2.3, 1.54};
47 if (
self.blackboard())
50 self.blackboard()->set(
"GoalPose", mygoal);
68 auto blackboard = Blackboard::create<BlackboardLocal>();
76 status = tree.root_node->executeTick();
void registerNodeType(const std::string &ID)
void registerSimpleAction(const std::string &ID, const SimpleActionNode::TickFunctor &tick_functor)
Register a SimpleActionNode.
NodeStatus CalculateGoalPose(TreeNode &self)
const std::string xml_text
Tree buildTreeFromText(const BehaviorTreeFactory &factory, const std::string &text, const Blackboard::Ptr &blackboard=Blackboard::Ptr())