39 throw std::runtime_error(
"Missing parameter [num_attempts] in RetryNode");
56 throw std::runtime_error(
"Missing parameter [num_attempts] in RetryNode");
BT::optional< T > getParam(const std::string &key) const
const std::string & name() const
void setRegistrationName(const std::string ®istration_name)
registrationName() is set by the BehaviorTreeFactory
virtual void halt() override
The method used to interrupt the execution of a RUNNING node.
RetryNode(const std::string &name, unsigned int NTries)
bool read_parameter_from_blackboard_
std::unordered_map< std::string, std::string > NodeParameters
static constexpr const char * NUM_ATTEMPTS
unsigned int max_attempts_
virtual void halt() override
The method used to interrupt the execution of a RUNNING node.
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
NodeStatus status() const
static bool isBlackboardPattern(StringView str)
virtual BT::NodeStatus executeTick()
The method that will be executed to invoke tick(); and setStatus();.
std::basic_string< CharT, Traits > to_string(basic_string_view< CharT, Traits > v)
void setStatus(NodeStatus new_status)