1 #ifndef DECORATOR_SUBTREE_NODE_H 2 #define DECORATOR_SUBTREE_NODE_H 26 return {InputPort<bool>(
"__shared_blackboard",
false,
27 "If false (default) the subtree has its own blackboard and " 29 "need to do port remapping to connect it to the parent")};
90 return {InputPort<bool>(
"__autoremap",
false,
91 "If true, all the ports with the same name will be " 103 #endif // DECORATOR_SUBTREE_NODE_H virtual BT::NodeStatus tick() override
Method to be implemented by the user.
static PortsList providedPorts()
static PortsList providedPorts()
virtual NodeType type() const override final
const std::string & name() const
Name of the instance, not the type.
virtual NodeType type() const override final
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
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