Public Attributes | List of all members
BT::TestNodeConfig Struct Reference

#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...
 

Detailed Description

Definition at line 23 of file test_node.h.

Member Data Documentation

◆ async_delay

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.

◆ complete_func

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.

◆ failure_script

std::string BT::TestNodeConfig::failure_script

script to execute when complete_func() returns FAILURE

Definition at line 32 of file test_node.h.

◆ post_script

std::string BT::TestNodeConfig::post_script

script to execute when actions is completed

Definition at line 35 of file test_node.h.

◆ return_status

NodeStatus BT::TestNodeConfig::return_status = NodeStatus::SUCCESS

status to return when the action is completed.

Definition at line 26 of file test_node.h.

◆ success_script

std::string BT::TestNodeConfig::success_script

script to execute when complete_func() returns SUCCESS

Definition at line 29 of file test_node.h.


The documentation for this struct was generated from the following file:


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:18