Go to the documentation of this file. 1 #ifndef TEST_HELPER_HPP
2 #define TEST_HELPER_HPP
16 const std::string& name_prefix,
17 std::array<int, N>& tick_counters)
19 for(
size_t i = 0; i < tick_counters.size(); i++)
21 tick_counters[i] =
false;
23 snprintf(str,
sizeof str,
"%s%c", name_prefix.c_str(),
char(
'A' + i));
24 int* counter_ptr = &(tick_counters[i]);
29 #endif // TEST_HELPER_HPP
BT::NodeStatus TestTick(int *tick_counter)
void RegisterTestTick(BT::BehaviorTreeFactory &factory, const std::string &name_prefix, std::array< int, N > &tick_counters)
constexpr auto bind(Callback &&callback, BoundArgs &&... args)
Binds the operator() of the callback with pre-defined/remapped values.
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
void registerSimpleAction(const std::string &ID, const SimpleActionNode::TickFunctor &tick_functor, PortsList ports={})
registerSimpleAction help you register nodes of type SimpleActionNode.