19 printf(
"Going to: %f %f %f\n", goal.
x, goal.
y, goal.
z);
32 if (parts.size() != 3)
53 <MoveTo goal="-1;3;0.5" /> 71 parent_node.getInput(
"goal", goal);
73 bool res = move_to.
go( goal );
75 return res ? NodeStatus::SUCCESS : NodeStatus::FAILURE;
82 PortsList ports = { BT::InputPort<Point3D>(
"goal") };
static const char * xml_text
std::vector< StringView > splitString(const StringView &strToSplit, char delimeter)
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
nonstd::string_view StringView
Tree createTreeFromText(const std::string &text, Blackboard::Ptr blackboard=Blackboard::create())
void registerSimpleAction(const std::string &ID, const SimpleActionNode::TickFunctor &tick_functor, PortsList ports={})
registerSimpleAction help you register nodes of type SimpleActionNode.
Abstract base class for Behavior Tree Nodes.
std::unordered_map< std::string, PortInfo > PortsList
virtual BT::NodeStatus executeTick()
The method that should be used to invoke tick() and setStatus();.
double convertFromString< double >(StringView str)
Point3D convertFromString(StringView key)