1 #ifndef DECORATOR_SUBTREE_NODE_H 2 #define DECORATOR_SUBTREE_NODE_H 27 return { InputPort<bool>(
"__shared_blackboard",
false,
28 "If false (default) the subtree has its own blackboard and you" 29 "need to do port remapping to connect it to the parent") };
92 return { InputPort<bool>(
"__autoremap",
false,
93 "If true, all the ports with the same name will be remapped") };
106 #endif // DECORATOR_SUBTREE_NODE_H const std::string & name() const
Name of the instance, not the type.
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
static PortsList providedPorts()
static PortsList providedPorts()
virtual NodeType type() const overridefinal
The SubtreeNode is a way to wrap an entire Subtree, creating a separated BlackBoard. If you want to have data flow through ports, you need to explicitly remap the ports.
SubtreeNode(const std::string &name)
std::unordered_map< std::string, PortInfo > PortsList
virtual NodeType type() const overridefinal
NodeType
Enumerates the possible types of nodes.
The SubtreePlus is a new kind of subtree that gives you much more control over remapping: ...
virtual ~SubtreeNode() override=default