#include <action_test_node.h>
Public Member Functions | |
AsyncActionTest (const std::string &name, BT::Duration deadline_ms) | |
virtual void | halt () override |
void | resetTicks () |
void | setBoolean (bool boolean_value) |
void | setTime (BT::Duration time) |
BT::NodeStatus | tick () override |
Method to be implemented by the user. | |
int | tickCount () const |
~AsyncActionTest () | |
Private Attributes | |
std::atomic_bool | boolean_value_ |
std::atomic_bool | stop_loop_ |
std::atomic< int > | tick_count_ |
BT::Duration | time_ |
Definition at line 32 of file action_test_node.h.
BT::AsyncActionTest::AsyncActionTest | ( | const std::string & | name, |
BT::Duration | deadline_ms | ||
) |
Definition at line 17 of file action_test_node.cpp.
virtual void BT::AsyncActionTest::halt | ( | ) | [override, virtual] |
The method used to interrupt the execution of a RUNNING node. Only Async nodes that may return RUNNING should implement it.
Implements BT::TreeNode.
void BT::AsyncActionTest::resetTicks | ( | ) | [inline] |
Definition at line 54 of file action_test_node.h.
void BT::AsyncActionTest::setBoolean | ( | bool | boolean_value | ) |
void BT::AsyncActionTest::setTime | ( | BT::Duration | time | ) |
BT::NodeStatus BT::AsyncActionTest::tick | ( | ) | [override, virtual] |
Method to be implemented by the user.
Implements BT::TreeNode.
int BT::AsyncActionTest::tickCount | ( | ) | const [inline] |
Definition at line 49 of file action_test_node.h.
std::atomic_bool BT::AsyncActionTest::boolean_value_ [private] |
Definition at line 62 of file action_test_node.h.
std::atomic_bool BT::AsyncActionTest::stop_loop_ [private] |
Definition at line 64 of file action_test_node.h.
std::atomic<int> BT::AsyncActionTest::tick_count_ [private] |
Definition at line 63 of file action_test_node.h.
BT::Duration BT::AsyncActionTest::time_ [private] |
Definition at line 61 of file action_test_node.h.