Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BehaviorTree/BehaviorTree.CPP
/ openDoor
Method
openDoor
sample_nodes/crossdoor_nodes.cpp:27–39 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
25
}
26
27
NodeStatus CrossDoor::openDoor()
28
{
29
SleepMS(500);
30
if(_door_locked)
31
{
32
return NodeStatus::FAILURE;
33
}
34
else
35
{
36
_door_open = true;
37
return NodeStatus::SUCCESS;
38
}
39
}
40
41
NodeStatus CrossDoor::pickLock()
42
{
Callers
nothing calls this directly
Calls
1
SleepMS
Function · 0.85
Tested by
no test coverage detected