Go to the documentation of this file.
43 return { InputPort<bool>(
"then_skip",
true,
44 "If true, skip after the first execution, "
45 "otherwise return the same NodeStatus returned once bu the "
61 if(
auto const res = getInput<bool>(
"then_skip"))
NodeStatus returned_status_
const NodeConfig & config() const
virtual BT::NodeStatus executeTick()
The method that should be used to invoke tick() and setStatus();.
static PortsList providedPorts()
std::unordered_map< std::string, PortInfo > PortsList
NodeStatus status() const
void setStatus(NodeStatus new_status)
setStatus changes the status of the node. it will throw if you try to change the status to IDLE,...
void setRegistrationID(StringView ID)
const std::string & name() const
Name of the instance, not the type.
bool isStatusCompleted(const NodeStatus &status)
RunOnceNode(const std::string &name, const NodeConfig &config)
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
The RunOnceNode is used when you want to execute the child only once. If the child is asynchronous,...