foodforthought-cli 0.2.4__py3-none-any.whl → 0.2.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ate/__init__.py +1 -1
- ate/behaviors/__init__.py +88 -0
- ate/behaviors/common.py +686 -0
- ate/behaviors/tree.py +454 -0
- ate/cli.py +610 -54
- ate/drivers/__init__.py +27 -0
- ate/drivers/mechdog.py +606 -0
- ate/interfaces/__init__.py +171 -0
- ate/interfaces/base.py +271 -0
- ate/interfaces/body.py +267 -0
- ate/interfaces/detection.py +282 -0
- ate/interfaces/locomotion.py +422 -0
- ate/interfaces/manipulation.py +408 -0
- ate/interfaces/navigation.py +389 -0
- ate/interfaces/perception.py +362 -0
- ate/interfaces/types.py +371 -0
- ate/mcp_server.py +387 -0
- ate/recording/__init__.py +44 -0
- ate/recording/demonstration.py +378 -0
- ate/recording/session.py +405 -0
- ate/recording/upload.py +304 -0
- ate/recording/wrapper.py +95 -0
- ate/robot/__init__.py +79 -0
- ate/robot/calibration.py +583 -0
- ate/robot/commands.py +3603 -0
- ate/robot/discovery.py +339 -0
- ate/robot/introspection.py +330 -0
- ate/robot/manager.py +270 -0
- ate/robot/profiles.py +275 -0
- ate/robot/registry.py +319 -0
- ate/robot/skill_upload.py +393 -0
- ate/robot/visual_labeler.py +1039 -0
- {foodforthought_cli-0.2.4.dist-info → foodforthought_cli-0.2.8.dist-info}/METADATA +9 -1
- {foodforthought_cli-0.2.4.dist-info → foodforthought_cli-0.2.8.dist-info}/RECORD +37 -8
- {foodforthought_cli-0.2.4.dist-info → foodforthought_cli-0.2.8.dist-info}/WHEEL +0 -0
- {foodforthought_cli-0.2.4.dist-info → foodforthought_cli-0.2.8.dist-info}/entry_points.txt +0 -0
- {foodforthought_cli-0.2.4.dist-info → foodforthought_cli-0.2.8.dist-info}/top_level.txt +0 -0
ate/__init__.py
CHANGED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Behavior Tree framework for composing robot skills.
|
|
3
|
+
|
|
4
|
+
Behavior trees allow complex behaviors to be built from simple skills
|
|
5
|
+
using a tree structure of:
|
|
6
|
+
- Sequences (do A, then B, then C)
|
|
7
|
+
- Selectors (try A, if fails try B)
|
|
8
|
+
- Conditions (if X is true...)
|
|
9
|
+
- Actions (do X)
|
|
10
|
+
|
|
11
|
+
This is how we turn small demos into valuable composite behaviors.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from .tree import (
|
|
15
|
+
BehaviorNode,
|
|
16
|
+
BehaviorStatus,
|
|
17
|
+
Sequence,
|
|
18
|
+
Selector,
|
|
19
|
+
Parallel,
|
|
20
|
+
Action,
|
|
21
|
+
Condition,
|
|
22
|
+
Inverter,
|
|
23
|
+
Succeeder,
|
|
24
|
+
Repeater,
|
|
25
|
+
RepeatUntilFail,
|
|
26
|
+
BehaviorTree,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
from .common import (
|
|
30
|
+
# Navigation
|
|
31
|
+
NavigateToPoint,
|
|
32
|
+
NavigateToPose,
|
|
33
|
+
Patrol,
|
|
34
|
+
ReturnHome,
|
|
35
|
+
# Detection
|
|
36
|
+
DetectObject,
|
|
37
|
+
IsObjectVisible,
|
|
38
|
+
FindNearest,
|
|
39
|
+
ApproachObject,
|
|
40
|
+
# Manipulation
|
|
41
|
+
PickUp,
|
|
42
|
+
PlaceAt,
|
|
43
|
+
DropInBin,
|
|
44
|
+
# Conditions
|
|
45
|
+
IsBatteryLow,
|
|
46
|
+
IsPathClear,
|
|
47
|
+
HasObject,
|
|
48
|
+
# Composite behaviors
|
|
49
|
+
PatrolAndCleanup,
|
|
50
|
+
SearchAndRetrieve,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
__all__ = [
|
|
54
|
+
# Core tree nodes
|
|
55
|
+
"BehaviorNode",
|
|
56
|
+
"BehaviorStatus",
|
|
57
|
+
"Sequence",
|
|
58
|
+
"Selector",
|
|
59
|
+
"Parallel",
|
|
60
|
+
"Action",
|
|
61
|
+
"Condition",
|
|
62
|
+
"Inverter",
|
|
63
|
+
"Succeeder",
|
|
64
|
+
"Repeater",
|
|
65
|
+
"RepeatUntilFail",
|
|
66
|
+
"BehaviorTree",
|
|
67
|
+
# Navigation actions
|
|
68
|
+
"NavigateToPoint",
|
|
69
|
+
"NavigateToPose",
|
|
70
|
+
"Patrol",
|
|
71
|
+
"ReturnHome",
|
|
72
|
+
# Detection actions
|
|
73
|
+
"DetectObject",
|
|
74
|
+
"IsObjectVisible",
|
|
75
|
+
"FindNearest",
|
|
76
|
+
"ApproachObject",
|
|
77
|
+
# Manipulation actions
|
|
78
|
+
"PickUp",
|
|
79
|
+
"PlaceAt",
|
|
80
|
+
"DropInBin",
|
|
81
|
+
# Conditions
|
|
82
|
+
"IsBatteryLow",
|
|
83
|
+
"IsPathClear",
|
|
84
|
+
"HasObject",
|
|
85
|
+
# Composite behaviors
|
|
86
|
+
"PatrolAndCleanup",
|
|
87
|
+
"SearchAndRetrieve",
|
|
88
|
+
]
|