crossdoor_nodes.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 class CrossDoor
6 {
7 public:
9 
10  void reset();
11 
12  // SUCCESS if _door_open == true
14 
15  // SUCCESS if _door_open == true
17 
18  // After 3 attempts, will open a locked door
20 
21  // FAILURE if door locked
23 
24  // WILL always open a door
26 
27 private:
28  bool _door_open = false;
29  bool _door_locked = true;
30  int _pick_attempts = 0;
31 };
CrossDoor::smashDoor
BT::NodeStatus smashDoor()
Definition: crossdoor_nodes.cpp:48
bt_factory.h
CrossDoor::_pick_attempts
int _pick_attempts
Definition: crossdoor_nodes.h:30
CrossDoor::reset
void reset()
Definition: crossdoor_nodes.cpp:71
CrossDoor::registerNodes
void registerNodes(BT::BehaviorTreeFactory &factory)
Definition: crossdoor_nodes.cpp:56
CrossDoor::openDoor
BT::NodeStatus openDoor()
Definition: crossdoor_nodes.cpp:22
CrossDoor::passThroughDoor
BT::NodeStatus passThroughDoor()
Definition: crossdoor_nodes.cpp:16
BT::BehaviorTreeFactory
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
Definition: bt_factory.h:209
CrossDoor::pickLock
BT::NodeStatus pickLock()
Definition: crossdoor_nodes.cpp:36
CrossDoor
Definition: crossdoor_nodes.h:5
CrossDoor::isDoorClosed
BT::NodeStatus isDoorClosed()
Definition: crossdoor_nodes.cpp:10
CrossDoor::_door_locked
bool _door_locked
Definition: crossdoor_nodes.h:29
BT::NodeStatus
NodeStatus
Definition: basic_types.h:33
CrossDoor::_door_open
bool _door_open
Definition: crossdoor_nodes.h:28


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