31 throw std::runtime_error(
"Missing parameter [msec] in TimeoutNode");
42 throw std::runtime_error(
"Missing parameter [msec] in TimeoutNode");
BT::optional< T > getParam(const std::string &key) const
TimeoutNode(const std::string &name, unsigned milliseconds)
static TimerQueue & timer()
const TreeNode * child() const
const std::string & name() const
virtual void halt()=0
The method used to interrupt the execution of a RUNNING node.
void setRegistrationName(const std::string ®istration_name)
registrationName() is set by the BehaviorTreeFactory
uint64_t add(std::chrono::milliseconds milliseconds, std::function< void(bool)> handler)
Adds a new timer.
std::unordered_map< std::string, std::string > NodeParameters
std::atomic< bool > child_halted_
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();.
bool read_parameter_from_blackboard_
void setStatus(NodeStatus new_status)
size_t cancel(uint64_t id)
Cancels the specified timer.