56 if (status != prev_status)
185 throw std::logic_error(
"SyncActionNode MUSt never return RUNNING");
const std::string & name() const
virtual NodeStatus executeTick() overridefinal
The method that will be executed to invoke tick(); and setStatus();.
void setStatusRunningAndYield()
routine_t create(std::function< void()> f)
void destroy(routine_t id)
virtual NodeStatus tick() override
Method to be implemented by the user.
CoroActionNode(const std::string &name, const NodeParameters ¶meters=NodeParameters())
std::unordered_map< std::string, std::string > NodeParameters
std::unique_ptr< Pimpl > _p
ActionNodeBase(const std::string &name, const NodeParameters ¶meters=NodeParameters())
coroutine::routine_t coro
virtual NodeStatus executeTick() overridefinal
The method that will be executed to invoke tick(); and setStatus();.
virtual NodeStatus executeTick() override
The method that will be executed to invoke tick(); and setStatus();.
std::function< NodeStatus(TreeNode &)> TickFunctor
AsyncActionNode(const std::string &name, const NodeParameters ¶meters=NodeParameters())
virtual NodeStatus executeTick() override
The method that will be executed to invoke tick(); and setStatus();.
SyncActionNode(const std::string &name, const NodeParameters ¶meters=NodeParameters())
NodeStatus status() const
SimpleActionNode(const std::string &name, TickFunctor tick_functor, const NodeParameters ¶ms=NodeParameters())
virtual ~CoroActionNode() override
ResumeResult resume(routine_t id)
TickFunctor tick_functor_
BT::NodeStatus waitValidStatus()
std::atomic< bool > loop_
virtual BT::NodeStatus tick()=0
Method to be implemented by the user.
void setStatus(NodeStatus new_status)
virtual ~AsyncActionNode() override