Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ToyotaResearchInstitute/task_behavior_engine
/ functions
Functions
268 in github.com/ToyotaResearchInstitute/task_behavior_engine
⨍
Functions
268
◇
Types & classes
47
↓ 232 callers
Method
get_node_status
Gets the status of a specific node. @param scope [uuid] The id of the node to get. @returns [NodeStatus] The status of the no
src/task_behavior_engine/tree.py:252
↓ 206 callers
Method
add_child
Add a node to the end behavior tree. @param node [Node] The node to add. @throws RuntimeError if the node name is not unique to this b
src/task_behavior_engine/tree.py:538
↓ 147 callers
Method
tick
Runs the node
src/task_behavior_engine/tree.py:453
↓ 68 callers
Method
get_result
Return the result of this behavior. @returns [NodeStatus] The current result status.
src/task_behavior_engine/tree.py:407
↓ 36 callers
Method
get_memory
Gets current nodedata with any remappings. @param scope [uuid] The id of the scope/node.
src/task_behavior_engine/tree.py:241
↓ 35 callers
Method
force
Forces an execution state. @param status [int] forced outcome state (must be NodeStatus enum).
src/task_behavior_engine/tree.py:382
↓ 29 callers
Method
_cancel
Forces the current state to CANCEL and calls the cancel callback, if it exists.
src/task_behavior_engine/tree.py:362
↓ 21 callers
Method
tick_child
Run a child node @param child [Node] The child to run
src/task_behavior_engine/tree.py:569
↓ 20 callers
Method
_configure
Configuration performed once before run(). This is usually used to set up internal variables.
src/task_behavior_engine/tree.py:312
↓ 12 callers
Method
get
Gets a (key, value) pair from tree_scope/node_scope. @param key [string] The key to retrieve. @param scope [uuid] (optional)
src/task_behavior_engine/tree.py:219
↓ 12 callers
Method
get_data
Gets data from key. If key does not exist, returns default value. @param key [string] The data key @param default (None) The
src/task_behavior_engine/tree.py:76
↓ 11 callers
Method
save
Saves a (key, value) pair onto tree_scope/node_scope. @param key [string] the key of the item. @param value [*] The value of
src/task_behavior_engine/tree.py:210
↓ 11 callers
Method
set_blackboard
Set the blackboard for this node. @param blackboard [Blackboard] The blackboard to assign to this node.
src/task_behavior_engine/tree.py:447
↓ 10 callers
Method
_cleanup
Cleanup performed once after run() returns a termination value. This is usually used to reset internal variables.
src/task_behavior_engine/tree.py:326
↓ 9 callers
Method
keys
Gets all of the keys @returns List A list of all of the keys
src/task_behavior_engine/tree.py:70
↓ 9 callers
Method
register_run_cb
Register the run_cb. This will get called when ticked. @param cb [function] The function to call on run.
src/task_behavior_engine/tree.py:419
↓ 8 callers
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/branch.py:110
↓ 8 callers
Method
_run
Evaluates the current node. @returns [NodeStatus] Outcome status.
src/task_behavior_engine/tree.py:342
↓ 8 callers
Method
register_cleanup_cb
Register the cleanup callback. This will get called on cleanup. @param cb [function] The function to call on cleanup.
src/task_behavior_engine/tree.py:433
↓ 8 callers
Method
register_configure_cb
Register the configure_cb. This will get called on configure. @param cb [function] The function to call on configure.
src/task_behavior_engine/tree.py:426
↓ 6 callers
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/decorator.py:138
↓ 5 callers
Method
_get_node_memory
Gets node memory If memory doesn't exist it will be assigned a default value. @param scope [uuid] The id of the node.
src/task_behavior_engine/tree.py:159
↓ 4 callers
Method
_get_memory
Gets memory. If scope is none, it returns global memory else it returns node memory. @param scope [uuid] The uuid
src/task_behavior_engine/tree.py:193
↓ 4 callers
Method
clear_node_status
Clears the node_status currently saved. This is mostly used for display purposes.
src/task_behavior_engine/tree.py:268
↓ 4 callers
Method
register_cancel_cb
Register the cancel callback. This will get called if task is canceled. @param cb [function] The function to call on cancel.
src/task_behavior_engine/tree.py:440
↓ 4 callers
Method
reset_children_status
Reset the current node status for all children
src/task_behavior_engine/tree.py:617
↓ 3 callers
Method
set_node_status
Sets the status of a specific node @param scope [uuid] The id of the node to set @param status [NodeStatus] The status to set
src/task_behavior_engine/tree.py:261
↓ 2 callers
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/node.py:35
↓ 2 callers
Method
__init__
Node constructor. @param name [string] The name of this node. @param blackboard [Blackboard] The common nodedata container.
src/task_behavior_engine/tree.py:291
↓ 2 callers
Method
_get_node_data
Gets node data with any remappings. If node data doesn't exist it will create an empty NodeData object. @param node_memory [d
src/task_behavior_engine/tree.py:170
↓ 2 callers
Method
_get_status_str
Gets the string of the current status enum
src/task_behavior_engine/tree.py:115
↓ 2 callers
Method
cancel_children
Cancel all children currently running
src/task_behavior_engine/tree.py:586
↓ 2 callers
Method
get_status
Gets all of the node status.
src/task_behavior_engine/tree.py:247
↓ 2 callers
Method
set_data
Sets data. @param key [string] The data key @param value [*] The data value
src/task_behavior_engine/tree.py:86
↓ 1 callers
Method
__getattr__
Override getattr to be thread safe.
src/task_behavior_engine/tree.py:37
↓ 1 callers
Method
_cancel
Cancel the child node if this node is canceled.
src/task_behavior_engine/tree.py:498
↓ 1 callers
Method
_cancel
If a behavior is canceled, cancel all running children.
src/task_behavior_engine/tree.py:592
↓ 1 callers
Method
_cleanup
Cleanup the child node if this node is cleaned up.
src/task_behavior_engine/tree.py:488
↓ 1 callers
Method
_cleanup
If a behavior finishes, cancel all running children.
src/task_behavior_engine/tree.py:610
↓ 1 callers
Method
_configure
Configure the child node if this node is configured.
src/task_behavior_engine/tree.py:477
↓ 1 callers
Method
add_remapping
Add a remapping from one node->key to another node->key. @param from_scope [uuid] The id of the source node. @param from_key
src/task_behavior_engine/tree.py:228
↓ 1 callers
Method
cancel
By default a behavior should just call its internal cancel when requested.
src/task_behavior_engine/tree.py:376
↓ 1 callers
Method
cancel_child
Cancel a particular child. @param child [Node] The child to cancel
src/task_behavior_engine/tree.py:623
↓ 1 callers
Method
check_unique_child
(self, name)
src/task_behavior_engine/tree.py:535
↓ 1 callers
Method
cleanup_children
Cleanup all active children
src/task_behavior_engine/tree.py:598
↓ 1 callers
Method
insert_child
Insert node into position i of the behavior tree. @param node [Node] The node to add. @param i [int] The position of insertion.
src/task_behavior_engine/tree.py:562
↓ 1 callers
Method
prepend_child
Add a node to the beginning of the behavior tree. @param node [Node] The node to prepend.
src/task_behavior_engine/tree.py:556
↓ 1 callers
Method
remove_child
Remove a node from the behavior tree. @param node [Node] The node to remove. @throws ValueError if node not child of behavior.
src/task_behavior_engine/tree.py:549
Method
__contains__
(self, key)
src/task_behavior_engine/tree.py:34
Method
__eq__
(self, other)
src/task_behavior_engine/tree.py:131
Method
__getitem__
(self, key)
src/task_behavior_engine/tree.py:61
Method
__init__
User-facing initialization @param name [str] The human-readable name to aid in debugging
example/example.py:35
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/node.py:24
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/node.py:46
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/decorator.py:31
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/decorator.py:53
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/decorator.py:72
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/decorator.py:91
Method
__init__
(self, name, max_count, *args, **kwargs)
src/task_behavior_engine/decorator.py:109
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/decorator.py:158
Method
__init__
(self)
src/task_behavior_engine/tree.py:30
Method
__init__
(self, status=PENDING, text="")
src/task_behavior_engine/tree.py:111
Method
__init__
(self)
src/task_behavior_engine/tree.py:154
Method
__init__
(self, name, child=None, *args, **kwargs)
src/task_behavior_engine/tree.py:473
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/tree.py:529
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/branch.py:34
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/branch.py:61
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/branch.py:87
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/branch.py:147
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/branch.py:182
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/branch.py:218
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/branch.py:254
Method
__init__
(self, name, *args, **kwargs)
src/task_behavior_engine/branch.py:302
Method
__setattr__
Override setattr to be thread safe.
src/task_behavior_engine/tree.py:49
Method
__setitem__
(self, key, item)
src/task_behavior_engine/tree.py:64
Method
__str__
(self)
src/task_behavior_engine/tree.py:67
Method
__str__
(self)
src/task_behavior_engine/tree.py:128
Method
cancel_callback
(nd)
test/test_tree.py:315
Method
cancel_cb
(nd)
test/test_tree.py:596
Method
cleanup
Reset the count to start @param nodedata [NodeData] NodeData: index [int] The current index of the count
example/example.py:70
Method
cleanup_callback
(nd)
test/test_tree.py:253
Method
cleanup_cb
(nd)
test/test_tree.py:451
Method
cleanup_cb
(nd)
test/test_tree.py:567
Method
config
(self, nodedata)
src/task_behavior_engine/decorator.py:115
Method
config_callback
(nd)
test/test_tree.py:380
Method
config_cb
(nd)
test/test_tree.py:447
Method
config_cb
(nd)
test/test_tree.py:563
Method
configure
Initialize the start and limit values @param nodedata [NodeData] The shareable data associated with this node NodeData:
example/example.py:46
Method
configure
(self, nodedata)
src/task_behavior_engine/branch.py:116
Method
configure
(self, nodedata)
src/task_behavior_engine/branch.py:153
Method
configure
(self, nodedata)
src/task_behavior_engine/branch.py:189
Method
configure
(self, nodedata)
src/task_behavior_engine/branch.py:224
Method
configure
(self, nodedata)
src/task_behavior_engine/branch.py:260
Method
configure_callback
(nd)
test/test_tree.py:227
Method
continue_cb
(nd)
test/test_tree.py:585
Method
get_nodedata
Return the NodeData of this behavior @returns [NodeData] The current NodeData
src/task_behavior_engine/tree.py:394
Method
get_status
Get the status of this node. @returns [NodeStatus] The last completion status of the node.
src/task_behavior_engine/tree.py:413
Method
merge
Merges a NodeStatus together. If the merged status has a greater value than the current status, the merged status is used.
src/task_behavior_engine/tree.py:134
Method
run
Update the count and return current status. @param nodedata [NodeData] The shareable data associated with this node NodeData
example/example.py:58
Method
run
(self, nodedata)
src/task_behavior_engine/node.py:27
next →
1–100 of 268, ranked by callers