#include <test_node.h>
Public Attributes | |
std::chrono::milliseconds | async_delay = std::chrono::milliseconds(0) |
if async_delay > 0, this action become asynchronous and wait this amount of time More... | |
std::function< NodeStatus(void)> | complete_func = [this]() { return return_status; } |
std::string | failure_script |
script to execute when complete_func() returns FAILURE More... | |
std::string | post_script |
script to execute when actions is completed More... | |
NodeStatus | return_status = NodeStatus::SUCCESS |
status to return when the action is completed. More... | |
std::string | success_script |
script to execute when complete_func() returns SUCCESS More... | |
Definition at line 23 of file test_node.h.
std::chrono::milliseconds BT::TestNodeConfig::async_delay = std::chrono::milliseconds(0) |
if async_delay > 0, this action become asynchronous and wait this amount of time
Definition at line 38 of file test_node.h.
std::function<NodeStatus(void)> BT::TestNodeConfig::complete_func = [this]() { return return_status; } |
Function invoked when the action is completed. By default just return [return_status] Override it to intorduce more comple cases
Definition at line 42 of file test_node.h.
std::string BT::TestNodeConfig::failure_script |
script to execute when complete_func() returns FAILURE
Definition at line 32 of file test_node.h.
std::string BT::TestNodeConfig::post_script |
script to execute when actions is completed
Definition at line 35 of file test_node.h.
NodeStatus BT::TestNodeConfig::return_status = NodeStatus::SUCCESS |
status to return when the action is completed.
Definition at line 26 of file test_node.h.
std::string BT::TestNodeConfig::success_script |
script to execute when complete_func() returns SUCCESS
Definition at line 29 of file test_node.h.