Go to the documentation of this file.
22 printf(
"Going to: %f %f %f\n", goal.
x, goal.
y, goal.
z);
54 <root BTCPP_format="4">
56 <MoveTo goal="-1;3;0.5" />
73 parent_node.getInput(
"goal", goal);
75 bool res = move_to.
go(goal);
84 PortsList ports = { BT::InputPort<Point3D>(
"goal") };
std::string_view StringView
Abstract base class for Behavior Tree Nodes.
NodeStatus tickWhileRunning(std::chrono::milliseconds sleep_time=std::chrono::milliseconds(10))
std::unordered_map< std::string, PortInfo > PortsList
Point3D convertFromString(StringView key)
Tree createTreeFromText(const std::string &text, Blackboard::Ptr blackboard=Blackboard::create())
createTreeFromText will parse the XML directly from string. The XML needs to contain either a single ...
std::vector< StringView > splitString(const StringView &strToSplit, char delimeter)
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
double convertFromString< double >(StringView str)
static const char * xml_text
void registerSimpleAction(const std::string &ID, const SimpleActionNode::TickFunctor &tick_functor, PortsList ports={})
registerSimpleAction help you register nodes of type SimpleActionNode.