aether-robotics 3.0.0__tar.gz
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.
- aether_robotics-3.0.0/LICENSE +21 -0
- aether_robotics-3.0.0/PKG-INFO +269 -0
- aether_robotics-3.0.0/README.md +228 -0
- aether_robotics-3.0.0/aether/__init__.py +2 -0
- aether_robotics-3.0.0/aether/__main__.py +10 -0
- aether_robotics-3.0.0/aether/actions/__init__.py +0 -0
- aether_robotics-3.0.0/aether/actions/abstract_actions.py +136 -0
- aether_robotics-3.0.0/aether/adapters/__init__.py +0 -0
- aether_robotics-3.0.0/aether/adapters/base_adapter.py +32 -0
- aether_robotics-3.0.0/aether/adapters/drone_adapter.py +67 -0
- aether_robotics-3.0.0/aether/adapters/rover_adapter.py +87 -0
- aether_robotics-3.0.0/aether/adapters/universal_adapter.py +594 -0
- aether_robotics-3.0.0/aether/agents/__init__.py +0 -0
- aether_robotics-3.0.0/aether/agents/adaptation_agent.py +234 -0
- aether_robotics-3.0.0/aether/agents/camera_agent.py +114 -0
- aether_robotics-3.0.0/aether/agents/correction_agent.py +387 -0
- aether_robotics-3.0.0/aether/agents/execution_agent.py +89 -0
- aether_robotics-3.0.0/aether/agents/fault_agent.py +508 -0
- aether_robotics-3.0.0/aether/agents/memory_agent.py +200 -0
- aether_robotics-3.0.0/aether/agents/movement_agent.py +147 -0
- aether_robotics-3.0.0/aether/agents/navigation_agent.py +163 -0
- aether_robotics-3.0.0/aether/agents/perception_agent.py +112 -0
- aether_robotics-3.0.0/aether/agents/planner_agent.py +40 -0
- aether_robotics-3.0.0/aether/agents/power_agent.py +103 -0
- aether_robotics-3.0.0/aether/agents/task_manager.py +246 -0
- aether_robotics-3.0.0/aether/agents/thermal_agent.py +120 -0
- aether_robotics-3.0.0/aether/capabilities/__init__.py +0 -0
- aether_robotics-3.0.0/aether/capabilities/capability_loader.py +116 -0
- aether_robotics-3.0.0/aether/core/__init__.py +0 -0
- aether_robotics-3.0.0/aether/core/auto_installer.py +164 -0
- aether_robotics-3.0.0/aether/core/auto_updater.py +173 -0
- aether_robotics-3.0.0/aether/core/banner.py +50 -0
- aether_robotics-3.0.0/aether/core/calibration.py +1006 -0
- aether_robotics-3.0.0/aether/core/executor.py +71 -0
- aether_robotics-3.0.0/aether/core/feedback.py +97 -0
- aether_robotics-3.0.0/aether/core/goal_parser.py +110 -0
- aether_robotics-3.0.0/aether/core/llm_planner.py +219 -0
- aether_robotics-3.0.0/aether/core/memory.py +123 -0
- aether_robotics-3.0.0/aether/core/message_bus.py +107 -0
- aether_robotics-3.0.0/aether/core/metrics.py +184 -0
- aether_robotics-3.0.0/aether/core/navigation_engine.py +1741 -0
- aether_robotics-3.0.0/aether/core/planner.py +386 -0
- aether_robotics-3.0.0/aether/core/tool_builder.py +1158 -0
- aether_robotics-3.0.0/aether/core/tool_discovery.py +1215 -0
- aether_robotics-3.0.0/aether/core/tool_registry.py +957 -0
- aether_robotics-3.0.0/aether/core/visualizer.py +194 -0
- aether_robotics-3.0.0/aether/faults/__init__.py +0 -0
- aether_robotics-3.0.0/aether/faults/fault_detector.py +309 -0
- aether_robotics-3.0.0/aether/faults/fault_injector.py +317 -0
- aether_robotics-3.0.0/aether/simulation/__init__.py +0 -0
- aether_robotics-3.0.0/aether/simulation/environment.py +385 -0
- aether_robotics-3.0.0/aether/simulation/real_perception.py +276 -0
- aether_robotics-3.0.0/aether/simulation/scenarios.py +169 -0
- aether_robotics-3.0.0/aether_robotics.egg-info/PKG-INFO +269 -0
- aether_robotics-3.0.0/aether_robotics.egg-info/SOURCES.txt +62 -0
- aether_robotics-3.0.0/aether_robotics.egg-info/dependency_links.txt +1 -0
- aether_robotics-3.0.0/aether_robotics.egg-info/entry_points.txt +2 -0
- aether_robotics-3.0.0/aether_robotics.egg-info/requires.txt +23 -0
- aether_robotics-3.0.0/aether_robotics.egg-info/top_level.txt +1 -0
- aether_robotics-3.0.0/pyproject.toml +46 -0
- aether_robotics-3.0.0/setup.cfg +4 -0
- aether_robotics-3.0.0/tests/test_auto_updater.py +230 -0
- aether_robotics-3.0.0/tests/test_calibration.py +340 -0
- aether_robotics-3.0.0/tests/test_yolo_integration.py +277 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Chahel Paatur
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aether-robotics
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: Autonomous multi-agent robotics system with DRL-First Hybrid FDIR
|
|
5
|
+
Author: Chahel Paatur
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/ChahelPaatur/AETHER
|
|
8
|
+
Project-URL: Repository, https://github.com/ChahelPaatur/AETHER
|
|
9
|
+
Project-URL: Issues, https://github.com/ChahelPaatur/AETHER/issues
|
|
10
|
+
Keywords: robotics,autonomous,FDIR,fault-detection,raspberry-pi,drone,AI
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
15
|
+
Classifier: Topic :: System :: Hardware
|
|
16
|
+
Classifier: Intended Audience :: Science/Research
|
|
17
|
+
Requires-Python: >=3.9
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: anthropic>=0.50.0
|
|
21
|
+
Requires-Dist: numpy>=1.26.0
|
|
22
|
+
Requires-Dist: psutil>=5.9.0
|
|
23
|
+
Requires-Dist: requests>=2.32.0
|
|
24
|
+
Requires-Dist: flask>=3.0.0
|
|
25
|
+
Requires-Dist: opencv-python-headless>=4.8.0
|
|
26
|
+
Provides-Extra: pi
|
|
27
|
+
Requires-Dist: picamera2; extra == "pi"
|
|
28
|
+
Requires-Dist: RPi.GPIO; extra == "pi"
|
|
29
|
+
Requires-Dist: gpiozero; extra == "pi"
|
|
30
|
+
Requires-Dist: smbus2; extra == "pi"
|
|
31
|
+
Provides-Extra: drone
|
|
32
|
+
Requires-Dist: dronekit; extra == "drone"
|
|
33
|
+
Requires-Dist: pymavlink; extra == "drone"
|
|
34
|
+
Requires-Dist: pyserial; extra == "drone"
|
|
35
|
+
Provides-Extra: ml
|
|
36
|
+
Requires-Dist: torch; extra == "ml"
|
|
37
|
+
Requires-Dist: ultralytics; extra == "ml"
|
|
38
|
+
Requires-Dist: scipy; extra == "ml"
|
|
39
|
+
Requires-Dist: scikit-learn; extra == "ml"
|
|
40
|
+
Dynamic: license-file
|
|
41
|
+
|
|
42
|
+
<p align="center">
|
|
43
|
+
<img src="https://img.shields.io/badge/python-3.8%2B-blue?style=flat-square&logo=python&logoColor=white" alt="Python 3.8+">
|
|
44
|
+
<img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="License: MIT">
|
|
45
|
+
<img src="https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Raspberry%20Pi%20%7C%20Jetson-lightgrey?style=flat-square" alt="Platforms">
|
|
46
|
+
<img src="https://img.shields.io/badge/version-3.0-red?style=flat-square" alt="v3.0">
|
|
47
|
+
</p>
|
|
48
|
+
|
|
49
|
+
<pre align="center">
|
|
50
|
+
████████████████████████████████
|
|
51
|
+
█<span style="color:red">██████████████████████████████</span>█
|
|
52
|
+
█<span style="color:red">████</span>╔═══════════════════╗<span style="color:red">████</span>█
|
|
53
|
+
█<span style="color:red">████</span>║ <b>▄████▄ ▄████▄</b> ║<span style="color:red">████</span>█
|
|
54
|
+
█<span style="color:red">████</span>║ <b>████████████████</b> ║<span style="color:red">████</span>█
|
|
55
|
+
█<span style="color:red">████</span>║ ██<span style="color:red">██████████</span>██ ║<span style="color:red">████</span>█
|
|
56
|
+
█<span style="color:red">████</span>║ █▀▀████████▀▀█ ║<span style="color:red">████</span>█
|
|
57
|
+
█<span style="color:red">████</span>║ <b>▀████▀ ▀████▀</b> ║<span style="color:red">████</span>█
|
|
58
|
+
█<span style="color:red">████</span>║▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄║<span style="color:red">████</span>█
|
|
59
|
+
█<span style="color:red">████</span>║ ━━━━━━━━━━━━━━━ ║<span style="color:red">████</span>█
|
|
60
|
+
█<span style="color:red">████</span>║ <b>▌ AETHER v3 ▐</b> ║<span style="color:red">████</span>█
|
|
61
|
+
█<span style="color:red">████</span>║ ━━━━━━━━━━━━━━━ ║<span style="color:red">████</span>█
|
|
62
|
+
█<span style="color:red">████</span>╚═══════════════════╝<span style="color:red">████</span>█
|
|
63
|
+
█<span style="color:red">██████████████████████████████</span>█
|
|
64
|
+
████████████████████████████████
|
|
65
|
+
</pre>
|
|
66
|
+
|
|
67
|
+
<h1 align="center">AETHER v3</h1>
|
|
68
|
+
<h3 align="center">Adaptive Embodied Task Hierarchy for Executable Robotics</h3>
|
|
69
|
+
<p align="center"><i>DRL-First Hybrid FDIR · Multi-Agent · Self-Correcting</i></p>
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
AETHER is a multi-agent robotics framework that detects, diagnoses, and recovers from hardware faults in real time using a Deep Reinforcement Learning-first approach. It auto-discovers whatever hardware is connected — webcam, GPIO motors, flight controller — builds a capability manifest, and constructs a complete autonomy stack from planning through execution. A PPO neural network serves as the primary fault detector, backed by rule-based safety checks and temporal validation, achieving perfect detection and recovery rates on real hardware across thousands of operational steps.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Quick Start
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# 1. Install dependencies (auto-detects your platform)
|
|
81
|
+
bash install.sh
|
|
82
|
+
|
|
83
|
+
# 2. Run the simulation with fault injection and performance plots
|
|
84
|
+
python main.py --mode sim --faults enabled --scenario compound --plots
|
|
85
|
+
|
|
86
|
+
# 3. Run on real hardware (webcam + system telemetry)
|
|
87
|
+
python main.py --mode realworld --continuous
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## What It Does
|
|
93
|
+
|
|
94
|
+
### DRL-First Hybrid FDIR
|
|
95
|
+
|
|
96
|
+
Traditional fault detection relies on hand-written threshold rules that break when conditions change. AETHER inverts this: a PPO neural network (15-dim observation → 64 → 64 → 8 fault classes) is the **primary** detector, with rule-based checks as a safety backup. The network self-bootstraps from scratch using the rule detector as a teacher, then surpasses it through online learning.
|
|
97
|
+
|
|
98
|
+
The detection pipeline runs every step:
|
|
99
|
+
|
|
100
|
+
1. **PPO Network** infers fault class probabilities from the 15-dimensional observation vector (battery, IMU, temperature, obstacle distances, mission progress)
|
|
101
|
+
2. **Temporal Validation** filters transient spikes to prevent false positives
|
|
102
|
+
3. **Confidence Arbitration** (threshold τ=0.12) decides whether to alert
|
|
103
|
+
4. **Critical Bypass** (σ≥0.80) escalates severe faults directly, skipping temporal filtering
|
|
104
|
+
|
|
105
|
+
Fault classes: `SENSOR_FAILURE`, `ACTUATOR_DEGRADATION`, `POWER_CRITICAL`, `THERMAL_ANOMALY`, `IMU_DRIFT`, `INTERMITTENT_FAULT`, `SAFE_MODE`
|
|
106
|
+
|
|
107
|
+
### Auto-Configuration
|
|
108
|
+
|
|
109
|
+
AETHER discovers its own hardware at startup — no config files required. `ToolDiscovery` probes for cameras (OpenCV, picamera2), GPIO pins (RPi.GPIO, gpiozero), flight controllers (MAVLink over serial/USB), I2C sensors, network interfaces, and AI models (YOLOv8, Claude API). The result is a capability manifest that drives everything downstream: `ToolBuilder` constructs only the tools that will work, `NavigationEngine` selects the correct autonomy level, and `LLMPlanner` avoids planning with unavailable hardware.
|
|
110
|
+
|
|
111
|
+
Three capability levels adapt automatically:
|
|
112
|
+
|
|
113
|
+
| Level | Hardware | Capabilities |
|
|
114
|
+
|-------|----------|-------------|
|
|
115
|
+
| **1** | Camera only | Visual scan, object detection, scene description |
|
|
116
|
+
| **2** | Camera + GPIO motors | Level 1 + navigation, obstacle avoidance, color tracking |
|
|
117
|
+
| **3** | Camera + MAVLink FC | Level 2 + takeoff, landing, waypoint navigation, RTL |
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Benchmark Results
|
|
122
|
+
|
|
123
|
+
| Metric | Simulation (5,000 runs) | Real Hardware (6,023 steps) |
|
|
124
|
+
|--------|------------------------:|---------------------------:|
|
|
125
|
+
| **SFRI** | 60.07 | **69.99** |
|
|
126
|
+
| Detection Rate | 85–95% | **100%** |
|
|
127
|
+
| Recovery Rate | 80–90% | **100%** |
|
|
128
|
+
| False Positive Rate | 2–5% | **0.0%** |
|
|
129
|
+
| MTTD (steps) | 3–8 | **< 2** |
|
|
130
|
+
| MTTR (steps) | 5–15 | **< 5** |
|
|
131
|
+
|
|
132
|
+
> **SFRI** (Stability Fault Recovery Index) = 35×DR + 25×(1 − MTTR/max_steps) + 10×RR − 30×FPR
|
|
133
|
+
> Range: 0–70. Higher is better.
|
|
134
|
+
|
|
135
|
+
Real hardware outperforms simulation because the physical system encounters genuine sensor noise that the PPO network learns to distinguish from actual faults, while simulation injects idealized fault signatures that can mislead the temporal validator.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Supported Hardware
|
|
140
|
+
|
|
141
|
+
| Platform | Camera | Motors | Flight Controller | Notes |
|
|
142
|
+
|----------|--------|--------|-------------------|-------|
|
|
143
|
+
| **Laptop + USB webcam** | OpenCV (cv2) | — | — | Level 1 autonomy, development & testing |
|
|
144
|
+
| **Raspberry Pi + Pi Camera** | picamera2 / cv2 | — | — | Level 1, headless visual perception |
|
|
145
|
+
| **Raspberry Pi + GPIO motors** | picamera2 / cv2 | RPi.GPIO / gpiozero | — | Level 2, ground vehicle navigation |
|
|
146
|
+
| **Raspberry Pi + SpeedyBee FC** | picamera2 / cv2 | — | MAVLink (pymavlink) | Level 3, autonomous drone flight |
|
|
147
|
+
|
|
148
|
+
Additional supported interfaces: I2C sensors (smbus2), serial UART, ultrasonic rangefinders, IMU, temperature probes, LiDAR, battery monitoring.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Architecture
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
┌──────────────────────────────────────────────────────────────────┐
|
|
156
|
+
│ AETHER v3 PIPELINE │
|
|
157
|
+
├──────────────────────────────────────────────────────────────────┤
|
|
158
|
+
│ │
|
|
159
|
+
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────┐ │
|
|
160
|
+
│ │ ToolDiscovery │───▶│ ToolBuilder │───▶│ ToolRegistry │ │
|
|
161
|
+
│ │ probe hw/sw │ │ build tools │ │ register all │ │
|
|
162
|
+
│ └──────────────┘ └──────────────┘ └────────┬─────────┘ │
|
|
163
|
+
│ │ │ │
|
|
164
|
+
│ ▼ ▼ │
|
|
165
|
+
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────┐ │
|
|
166
|
+
│ │ Calibration │ │ GoalParser │───▶│ LLMPlanner │ │
|
|
167
|
+
│ │ Wizard │ │ NL → struct │ │ Claude / kw │ │
|
|
168
|
+
│ └──────────────┘ └──────────────┘ └────────┬─────────┘ │
|
|
169
|
+
│ │ │
|
|
170
|
+
│ ▼ │
|
|
171
|
+
│ ┌───────────────────────────────────────────────────────────┐ │
|
|
172
|
+
│ │ EXECUTION LOOP │ │
|
|
173
|
+
│ │ ┌─────────────┐ ┌──────────────┐ ┌────────────────┐ │ │
|
|
174
|
+
│ │ │ Navigation │ │ Perception │ │ Correction │ │ │
|
|
175
|
+
│ │ │ Engine │ │ Agent │ │ Agent │ │ │
|
|
176
|
+
│ │ │ L1/L2/L3 │ │ 15-dim obs │ │ verify steps │ │ │
|
|
177
|
+
│ │ └──────┬──────┘ └──────┬───────┘ └────────────────┘ │ │
|
|
178
|
+
│ │ │ │ │ │
|
|
179
|
+
│ │ ▼ ▼ │ │
|
|
180
|
+
│ │ ┌─────────────────────────────────────────────────────┐ │ │
|
|
181
|
+
│ │ │ FAULT AGENT (DRL-First) │ │ │
|
|
182
|
+
│ │ │ PPO Network ──▶ Temporal Validation ──▶ Response │ │ │
|
|
183
|
+
│ │ │ (15→64→64→8) confidence filter adaptation │ │ │
|
|
184
|
+
│ │ │ ▲ ▲ │ │ │ │
|
|
185
|
+
│ │ │ │ │ ▼ │ │ │
|
|
186
|
+
│ │ │ Rule Backup Memory Agent Recovery │ │ │
|
|
187
|
+
│ │ │ (safety net) (experience) Action │ │ │
|
|
188
|
+
│ │ └─────────────────────────────────────────────────────┘ │ │
|
|
189
|
+
│ └───────────────────────────────────────────────────────────┘ │
|
|
190
|
+
│ │ │
|
|
191
|
+
│ ▼ │
|
|
192
|
+
│ ┌──────────────────────────────────────────────────────────┐ │
|
|
193
|
+
│ │ MetricsTracker ──▶ Visualizer ──▶ logs/plots/ │ │
|
|
194
|
+
│ │ SFRI · MTTD · MTTR · DR · RR · FPR · reward curves │ │
|
|
195
|
+
│ └──────────────────────────────────────────────────────────┘ │
|
|
196
|
+
└──────────────────────────────────────────────────────────────────┘
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## CLI Reference
|
|
202
|
+
|
|
203
|
+
| Flag | Default | Description |
|
|
204
|
+
|------|---------|-------------|
|
|
205
|
+
| `--mode {sim,agent,realworld,server}` | `sim` | Operating mode |
|
|
206
|
+
| `--task TEXT` | `"navigate to target"` | Natural language task objective |
|
|
207
|
+
| `--robot {rover_v1,drone_v1}` | `rover_v1` | Robot platform configuration |
|
|
208
|
+
| `--scenario {simple,obstacles,imu_fault,battery,compound,fault_heavy}` | `simple` | Simulation scenario |
|
|
209
|
+
| `--faults {disabled,enabled,heavy}` | `disabled` | Fault injection level |
|
|
210
|
+
| `--max-steps N` | `300` | Maximum steps per episode |
|
|
211
|
+
| `--seed N` | `42` | Random seed |
|
|
212
|
+
| `--port N` | `8080` | HTTP server port (server mode) |
|
|
213
|
+
| `--render` | off | ASCII render each simulation step |
|
|
214
|
+
| `--plots` | off | Generate matplotlib plots after run |
|
|
215
|
+
| `--verbose` | off | Debug logging |
|
|
216
|
+
| `--continuous` | off | Run indefinitely in realworld mode |
|
|
217
|
+
| `--no-learning` | off | Disable online PPO learning (fixed weights) |
|
|
218
|
+
| `--calibrate` | off | Run hardware calibration wizard |
|
|
219
|
+
| `--recalibrate` | off | Force re-calibration over existing profile |
|
|
220
|
+
| `--auto-calibrate` | off | Camera-only auto calibration (no prompts) |
|
|
221
|
+
| `--auto-install` | off | Install missing packages without asking |
|
|
222
|
+
| `--auto-update` | off | Update without asking |
|
|
223
|
+
| `--no-install` | off | Skip install prompts |
|
|
224
|
+
| `--no-update` | off | Skip update check |
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Project Structure
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
aether/
|
|
232
|
+
├── core/ # Discovery, planning, execution, metrics
|
|
233
|
+
│ ├── tool_discovery # Hardware/software capability probing
|
|
234
|
+
│ ├── tool_builder # Construct tools from manifest
|
|
235
|
+
│ ├── tool_registry # Register executable tools
|
|
236
|
+
│ ├── navigation_engine# 3-level hardware-agnostic navigation
|
|
237
|
+
│ ├── llm_planner # Claude-based task planning
|
|
238
|
+
│ ├── calibration # Interactive hardware calibration
|
|
239
|
+
│ ├── metrics # SFRI, MTTD, MTTR tracking
|
|
240
|
+
│ └── visualizer # Plot generation
|
|
241
|
+
├── agents/ # Domain-specific agents
|
|
242
|
+
│ ├── fault_agent # DRL-First Hybrid FDIR (PPO)
|
|
243
|
+
│ ├── perception_agent # 15-dim observation construction
|
|
244
|
+
│ ├── adaptation_agent # Fault recovery actions
|
|
245
|
+
│ ├── camera_agent # Visual processing
|
|
246
|
+
│ └── ... # power, thermal, navigation, memory
|
|
247
|
+
├── simulation/ # Physics environment, scenarios
|
|
248
|
+
├── faults/ # Fault injection & detection
|
|
249
|
+
├── adapters/ # Hardware abstraction (rover, drone)
|
|
250
|
+
configs/ # Robot profiles (rover_v1, drone_v1)
|
|
251
|
+
weights/ # Pre-trained PPO network weights
|
|
252
|
+
tests/ # Test suite
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## Citation
|
|
258
|
+
|
|
259
|
+
If you use AETHER in your research, please cite:
|
|
260
|
+
|
|
261
|
+
```bibtex
|
|
262
|
+
@software{aether2026,
|
|
263
|
+
title = {AETHER: Adaptive Embodied Task Hierarchy for Executable Robotics},
|
|
264
|
+
author = {Paatur, Chahel},
|
|
265
|
+
year = {2026},
|
|
266
|
+
version = {3.0},
|
|
267
|
+
note = {DRL-First Hybrid FDIR with multi-agent auto-configuration},
|
|
268
|
+
}
|
|
269
|
+
```
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://img.shields.io/badge/python-3.8%2B-blue?style=flat-square&logo=python&logoColor=white" alt="Python 3.8+">
|
|
3
|
+
<img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="License: MIT">
|
|
4
|
+
<img src="https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Raspberry%20Pi%20%7C%20Jetson-lightgrey?style=flat-square" alt="Platforms">
|
|
5
|
+
<img src="https://img.shields.io/badge/version-3.0-red?style=flat-square" alt="v3.0">
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<pre align="center">
|
|
9
|
+
████████████████████████████████
|
|
10
|
+
█<span style="color:red">██████████████████████████████</span>█
|
|
11
|
+
█<span style="color:red">████</span>╔═══════════════════╗<span style="color:red">████</span>█
|
|
12
|
+
█<span style="color:red">████</span>║ <b>▄████▄ ▄████▄</b> ║<span style="color:red">████</span>█
|
|
13
|
+
█<span style="color:red">████</span>║ <b>████████████████</b> ║<span style="color:red">████</span>█
|
|
14
|
+
█<span style="color:red">████</span>║ ██<span style="color:red">██████████</span>██ ║<span style="color:red">████</span>█
|
|
15
|
+
█<span style="color:red">████</span>║ █▀▀████████▀▀█ ║<span style="color:red">████</span>█
|
|
16
|
+
█<span style="color:red">████</span>║ <b>▀████▀ ▀████▀</b> ║<span style="color:red">████</span>█
|
|
17
|
+
█<span style="color:red">████</span>║▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄║<span style="color:red">████</span>█
|
|
18
|
+
█<span style="color:red">████</span>║ ━━━━━━━━━━━━━━━ ║<span style="color:red">████</span>█
|
|
19
|
+
█<span style="color:red">████</span>║ <b>▌ AETHER v3 ▐</b> ║<span style="color:red">████</span>█
|
|
20
|
+
█<span style="color:red">████</span>║ ━━━━━━━━━━━━━━━ ║<span style="color:red">████</span>█
|
|
21
|
+
█<span style="color:red">████</span>╚═══════════════════╝<span style="color:red">████</span>█
|
|
22
|
+
█<span style="color:red">██████████████████████████████</span>█
|
|
23
|
+
████████████████████████████████
|
|
24
|
+
</pre>
|
|
25
|
+
|
|
26
|
+
<h1 align="center">AETHER v3</h1>
|
|
27
|
+
<h3 align="center">Adaptive Embodied Task Hierarchy for Executable Robotics</h3>
|
|
28
|
+
<p align="center"><i>DRL-First Hybrid FDIR · Multi-Agent · Self-Correcting</i></p>
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
AETHER is a multi-agent robotics framework that detects, diagnoses, and recovers from hardware faults in real time using a Deep Reinforcement Learning-first approach. It auto-discovers whatever hardware is connected — webcam, GPIO motors, flight controller — builds a capability manifest, and constructs a complete autonomy stack from planning through execution. A PPO neural network serves as the primary fault detector, backed by rule-based safety checks and temporal validation, achieving perfect detection and recovery rates on real hardware across thousands of operational steps.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Quick Start
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# 1. Install dependencies (auto-detects your platform)
|
|
40
|
+
bash install.sh
|
|
41
|
+
|
|
42
|
+
# 2. Run the simulation with fault injection and performance plots
|
|
43
|
+
python main.py --mode sim --faults enabled --scenario compound --plots
|
|
44
|
+
|
|
45
|
+
# 3. Run on real hardware (webcam + system telemetry)
|
|
46
|
+
python main.py --mode realworld --continuous
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## What It Does
|
|
52
|
+
|
|
53
|
+
### DRL-First Hybrid FDIR
|
|
54
|
+
|
|
55
|
+
Traditional fault detection relies on hand-written threshold rules that break when conditions change. AETHER inverts this: a PPO neural network (15-dim observation → 64 → 64 → 8 fault classes) is the **primary** detector, with rule-based checks as a safety backup. The network self-bootstraps from scratch using the rule detector as a teacher, then surpasses it through online learning.
|
|
56
|
+
|
|
57
|
+
The detection pipeline runs every step:
|
|
58
|
+
|
|
59
|
+
1. **PPO Network** infers fault class probabilities from the 15-dimensional observation vector (battery, IMU, temperature, obstacle distances, mission progress)
|
|
60
|
+
2. **Temporal Validation** filters transient spikes to prevent false positives
|
|
61
|
+
3. **Confidence Arbitration** (threshold τ=0.12) decides whether to alert
|
|
62
|
+
4. **Critical Bypass** (σ≥0.80) escalates severe faults directly, skipping temporal filtering
|
|
63
|
+
|
|
64
|
+
Fault classes: `SENSOR_FAILURE`, `ACTUATOR_DEGRADATION`, `POWER_CRITICAL`, `THERMAL_ANOMALY`, `IMU_DRIFT`, `INTERMITTENT_FAULT`, `SAFE_MODE`
|
|
65
|
+
|
|
66
|
+
### Auto-Configuration
|
|
67
|
+
|
|
68
|
+
AETHER discovers its own hardware at startup — no config files required. `ToolDiscovery` probes for cameras (OpenCV, picamera2), GPIO pins (RPi.GPIO, gpiozero), flight controllers (MAVLink over serial/USB), I2C sensors, network interfaces, and AI models (YOLOv8, Claude API). The result is a capability manifest that drives everything downstream: `ToolBuilder` constructs only the tools that will work, `NavigationEngine` selects the correct autonomy level, and `LLMPlanner` avoids planning with unavailable hardware.
|
|
69
|
+
|
|
70
|
+
Three capability levels adapt automatically:
|
|
71
|
+
|
|
72
|
+
| Level | Hardware | Capabilities |
|
|
73
|
+
|-------|----------|-------------|
|
|
74
|
+
| **1** | Camera only | Visual scan, object detection, scene description |
|
|
75
|
+
| **2** | Camera + GPIO motors | Level 1 + navigation, obstacle avoidance, color tracking |
|
|
76
|
+
| **3** | Camera + MAVLink FC | Level 2 + takeoff, landing, waypoint navigation, RTL |
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Benchmark Results
|
|
81
|
+
|
|
82
|
+
| Metric | Simulation (5,000 runs) | Real Hardware (6,023 steps) |
|
|
83
|
+
|--------|------------------------:|---------------------------:|
|
|
84
|
+
| **SFRI** | 60.07 | **69.99** |
|
|
85
|
+
| Detection Rate | 85–95% | **100%** |
|
|
86
|
+
| Recovery Rate | 80–90% | **100%** |
|
|
87
|
+
| False Positive Rate | 2–5% | **0.0%** |
|
|
88
|
+
| MTTD (steps) | 3–8 | **< 2** |
|
|
89
|
+
| MTTR (steps) | 5–15 | **< 5** |
|
|
90
|
+
|
|
91
|
+
> **SFRI** (Stability Fault Recovery Index) = 35×DR + 25×(1 − MTTR/max_steps) + 10×RR − 30×FPR
|
|
92
|
+
> Range: 0–70. Higher is better.
|
|
93
|
+
|
|
94
|
+
Real hardware outperforms simulation because the physical system encounters genuine sensor noise that the PPO network learns to distinguish from actual faults, while simulation injects idealized fault signatures that can mislead the temporal validator.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Supported Hardware
|
|
99
|
+
|
|
100
|
+
| Platform | Camera | Motors | Flight Controller | Notes |
|
|
101
|
+
|----------|--------|--------|-------------------|-------|
|
|
102
|
+
| **Laptop + USB webcam** | OpenCV (cv2) | — | — | Level 1 autonomy, development & testing |
|
|
103
|
+
| **Raspberry Pi + Pi Camera** | picamera2 / cv2 | — | — | Level 1, headless visual perception |
|
|
104
|
+
| **Raspberry Pi + GPIO motors** | picamera2 / cv2 | RPi.GPIO / gpiozero | — | Level 2, ground vehicle navigation |
|
|
105
|
+
| **Raspberry Pi + SpeedyBee FC** | picamera2 / cv2 | — | MAVLink (pymavlink) | Level 3, autonomous drone flight |
|
|
106
|
+
|
|
107
|
+
Additional supported interfaces: I2C sensors (smbus2), serial UART, ultrasonic rangefinders, IMU, temperature probes, LiDAR, battery monitoring.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Architecture
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
┌──────────────────────────────────────────────────────────────────┐
|
|
115
|
+
│ AETHER v3 PIPELINE │
|
|
116
|
+
├──────────────────────────────────────────────────────────────────┤
|
|
117
|
+
│ │
|
|
118
|
+
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────┐ │
|
|
119
|
+
│ │ ToolDiscovery │───▶│ ToolBuilder │───▶│ ToolRegistry │ │
|
|
120
|
+
│ │ probe hw/sw │ │ build tools │ │ register all │ │
|
|
121
|
+
│ └──────────────┘ └──────────────┘ └────────┬─────────┘ │
|
|
122
|
+
│ │ │ │
|
|
123
|
+
│ ▼ ▼ │
|
|
124
|
+
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────┐ │
|
|
125
|
+
│ │ Calibration │ │ GoalParser │───▶│ LLMPlanner │ │
|
|
126
|
+
│ │ Wizard │ │ NL → struct │ │ Claude / kw │ │
|
|
127
|
+
│ └──────────────┘ └──────────────┘ └────────┬─────────┘ │
|
|
128
|
+
│ │ │
|
|
129
|
+
│ ▼ │
|
|
130
|
+
│ ┌───────────────────────────────────────────────────────────┐ │
|
|
131
|
+
│ │ EXECUTION LOOP │ │
|
|
132
|
+
│ │ ┌─────────────┐ ┌──────────────┐ ┌────────────────┐ │ │
|
|
133
|
+
│ │ │ Navigation │ │ Perception │ │ Correction │ │ │
|
|
134
|
+
│ │ │ Engine │ │ Agent │ │ Agent │ │ │
|
|
135
|
+
│ │ │ L1/L2/L3 │ │ 15-dim obs │ │ verify steps │ │ │
|
|
136
|
+
│ │ └──────┬──────┘ └──────┬───────┘ └────────────────┘ │ │
|
|
137
|
+
│ │ │ │ │ │
|
|
138
|
+
│ │ ▼ ▼ │ │
|
|
139
|
+
│ │ ┌─────────────────────────────────────────────────────┐ │ │
|
|
140
|
+
│ │ │ FAULT AGENT (DRL-First) │ │ │
|
|
141
|
+
│ │ │ PPO Network ──▶ Temporal Validation ──▶ Response │ │ │
|
|
142
|
+
│ │ │ (15→64→64→8) confidence filter adaptation │ │ │
|
|
143
|
+
│ │ │ ▲ ▲ │ │ │ │
|
|
144
|
+
│ │ │ │ │ ▼ │ │ │
|
|
145
|
+
│ │ │ Rule Backup Memory Agent Recovery │ │ │
|
|
146
|
+
│ │ │ (safety net) (experience) Action │ │ │
|
|
147
|
+
│ │ └─────────────────────────────────────────────────────┘ │ │
|
|
148
|
+
│ └───────────────────────────────────────────────────────────┘ │
|
|
149
|
+
│ │ │
|
|
150
|
+
│ ▼ │
|
|
151
|
+
│ ┌──────────────────────────────────────────────────────────┐ │
|
|
152
|
+
│ │ MetricsTracker ──▶ Visualizer ──▶ logs/plots/ │ │
|
|
153
|
+
│ │ SFRI · MTTD · MTTR · DR · RR · FPR · reward curves │ │
|
|
154
|
+
│ └──────────────────────────────────────────────────────────┘ │
|
|
155
|
+
└──────────────────────────────────────────────────────────────────┘
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## CLI Reference
|
|
161
|
+
|
|
162
|
+
| Flag | Default | Description |
|
|
163
|
+
|------|---------|-------------|
|
|
164
|
+
| `--mode {sim,agent,realworld,server}` | `sim` | Operating mode |
|
|
165
|
+
| `--task TEXT` | `"navigate to target"` | Natural language task objective |
|
|
166
|
+
| `--robot {rover_v1,drone_v1}` | `rover_v1` | Robot platform configuration |
|
|
167
|
+
| `--scenario {simple,obstacles,imu_fault,battery,compound,fault_heavy}` | `simple` | Simulation scenario |
|
|
168
|
+
| `--faults {disabled,enabled,heavy}` | `disabled` | Fault injection level |
|
|
169
|
+
| `--max-steps N` | `300` | Maximum steps per episode |
|
|
170
|
+
| `--seed N` | `42` | Random seed |
|
|
171
|
+
| `--port N` | `8080` | HTTP server port (server mode) |
|
|
172
|
+
| `--render` | off | ASCII render each simulation step |
|
|
173
|
+
| `--plots` | off | Generate matplotlib plots after run |
|
|
174
|
+
| `--verbose` | off | Debug logging |
|
|
175
|
+
| `--continuous` | off | Run indefinitely in realworld mode |
|
|
176
|
+
| `--no-learning` | off | Disable online PPO learning (fixed weights) |
|
|
177
|
+
| `--calibrate` | off | Run hardware calibration wizard |
|
|
178
|
+
| `--recalibrate` | off | Force re-calibration over existing profile |
|
|
179
|
+
| `--auto-calibrate` | off | Camera-only auto calibration (no prompts) |
|
|
180
|
+
| `--auto-install` | off | Install missing packages without asking |
|
|
181
|
+
| `--auto-update` | off | Update without asking |
|
|
182
|
+
| `--no-install` | off | Skip install prompts |
|
|
183
|
+
| `--no-update` | off | Skip update check |
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## Project Structure
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
aether/
|
|
191
|
+
├── core/ # Discovery, planning, execution, metrics
|
|
192
|
+
│ ├── tool_discovery # Hardware/software capability probing
|
|
193
|
+
│ ├── tool_builder # Construct tools from manifest
|
|
194
|
+
│ ├── tool_registry # Register executable tools
|
|
195
|
+
│ ├── navigation_engine# 3-level hardware-agnostic navigation
|
|
196
|
+
│ ├── llm_planner # Claude-based task planning
|
|
197
|
+
│ ├── calibration # Interactive hardware calibration
|
|
198
|
+
│ ├── metrics # SFRI, MTTD, MTTR tracking
|
|
199
|
+
│ └── visualizer # Plot generation
|
|
200
|
+
├── agents/ # Domain-specific agents
|
|
201
|
+
│ ├── fault_agent # DRL-First Hybrid FDIR (PPO)
|
|
202
|
+
│ ├── perception_agent # 15-dim observation construction
|
|
203
|
+
│ ├── adaptation_agent # Fault recovery actions
|
|
204
|
+
│ ├── camera_agent # Visual processing
|
|
205
|
+
│ └── ... # power, thermal, navigation, memory
|
|
206
|
+
├── simulation/ # Physics environment, scenarios
|
|
207
|
+
├── faults/ # Fault injection & detection
|
|
208
|
+
├── adapters/ # Hardware abstraction (rover, drone)
|
|
209
|
+
configs/ # Robot profiles (rover_v1, drone_v1)
|
|
210
|
+
weights/ # Pre-trained PPO network weights
|
|
211
|
+
tests/ # Test suite
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## Citation
|
|
217
|
+
|
|
218
|
+
If you use AETHER in your research, please cite:
|
|
219
|
+
|
|
220
|
+
```bibtex
|
|
221
|
+
@software{aether2026,
|
|
222
|
+
title = {AETHER: Adaptive Embodied Task Hierarchy for Executable Robotics},
|
|
223
|
+
author = {Paatur, Chahel},
|
|
224
|
+
year = {2026},
|
|
225
|
+
version = {3.0},
|
|
226
|
+
note = {DRL-First Hybrid FDIR with multi-agent auto-configuration},
|
|
227
|
+
}
|
|
228
|
+
```
|
|
File without changes
|