Go to the documentation of this file.
5 std::this_thread::sleep_for(std::chrono::milliseconds(ms));
13 return !
_door_open ? NodeStatus::SUCCESS : NodeStatus::FAILURE;
19 return _door_open ? NodeStatus::SUCCESS : NodeStatus::FAILURE;
27 return NodeStatus::FAILURE;
32 return NodeStatus::SUCCESS;
45 return _door_open ? NodeStatus::SUCCESS : NodeStatus::FAILURE;
53 return NodeStatus::SUCCESS;
BT::NodeStatus smashDoor()
constexpr auto bind(Callback &&callback, BoundArgs &&... args)
Binds the operator() of the callback with pre-defined/remapped values.
void registerNodes(BT::BehaviorTreeFactory &factory)
BT::NodeStatus openDoor()
BT::NodeStatus passThroughDoor()
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
BT::NodeStatus pickLock()
BT::NodeStatus isDoorClosed()
BT_REGISTER_NODES(factory)
void registerSimpleCondition(const std::string &ID, const SimpleConditionNode::TickFunctor &tick_functor, PortsList ports={})
registerSimpleCondition help you register nodes of type SimpleConditionNode.
void registerSimpleAction(const std::string &ID, const SimpleActionNode::TickFunctor &tick_functor, PortsList ports={})
registerSimpleAction help you register nodes of type SimpleActionNode.