36 BT::Duration deadline_ms = std::chrono::milliseconds(100));
49 virtual void halt()
override;
60 return success_count_;
65 return failure_count_;
SyncActionTest(const std::string &name)
virtual void halt() override final
You don't need to override this.
The AsyncActionNode uses a different thread, where the action will be executed.
void setExpectedResult(NodeStatus res)
The SyncActionNode is an ActionNode that explicitly prevents the status RUNNING and doesn't require a...
const std::string & name() const
Name of the instance, not the type.
std::atomic< int > tick_count_
BT::NodeStatus tick() override
Method to be implemented by the user.
NodeStatus expected_result_
std::atomic< NodeStatus > expected_result_
std::chrono::high_resolution_clock::duration Duration
virtual ~AsyncActionTest() override