-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllms.txt
More file actions
43 lines (37 loc) · 3.56 KB
/
Copy pathllms.txt
File metadata and controls
43 lines (37 loc) · 3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Omni-Morph Robot: Distributed AI Transformation Platform
Omni-Morph is an open-source framework for building modular transformer robots powered by Generative AI. It uses a tri-core distributed architecture (ESP32-S3, ESP32, Python) to achieve autonomous, self-healing, agentic behavior.
## Core Architecture
- **Cognitive Layer (Brain)**: Python/FastAPI backend. Integrates Gemini 1.5 Pro and Ollama (Llama 3). Handles vision, memory, and high-level reasoning.
- **Communication Layer (Gateway)**: ESP32 handling Wi-Fi/4G connectivity, I2S audio synthesis, and OLED feedback.
- **Physical Layer (Actuation)**: ESP32 controlling 18+ servos via PCA9685, DC motors via L298N, and IMU-based stabilization.
- **Vision Layer (Perception)**: ESP32-CAM providing MJPEG streams and visual odometry.
## Key Capabilities
- **Bimodal Transformation**: Humanoid (Walking/Interaction) <-> 4WD Rover Car <-> Crawler Mode.
- **S-Curve Motion**: Smooth, organic servo transitions.
- **Self-Healing Autonomy**: Anti-freeze watchdogs, network healer, and self-healing I2C clock-pull recovery loops.
- **Swarm Sync**: Real-time knowledge sharing via ESP-NOW and WebSocket broadcast.
- **Hierarchical Parent-Child RAG**: Persistent vector store (ChromaDB) with granular child-parent indexing.
- **Custom Cross-Encoder Reranking**: Term-frequency semantic filters for high-precision context retrieval.
- **Real-Time Decoupling**: Safety-critical physical loops are decoupled from high-level cognitive web-scraping and reasoning.
- **FreeRTOS Balance Task**: Runs MPU6050 feedback filters at 100Hz on Core 1 of the motion controller, preventing humanoid falls during joint shifts.
- **Non-Blocking Serial Accumulation**: Character-by-character buffer accumulation eliminates loop jitter and serial timeout hangs.
- **Immediate Safety Bypass**: Immediate interception of critical commands (`CMD:STOP`, `CMD:EMERGENCY_STOP`, `CMD:FALL_RECOVERY`) bypassing command queues.
## High-Impact Use Cases
1. **Search & Rescue (SAR)**: Transit in high-speed 4WD Car mode, then transform to humanoid or crawler mode to navigate rubble and squeeze through tight corridors.
2. **Autonomous Surveillance & Home Patrol**: Low-noise patrolling, bipedal transformation for eye-level human interaction, and proactive alerts.
3. **Environmental Science & Waste Classification**: Navigates terrain, captures camera frames, identifies objects using visual LLMs, and flags or collects waste.
4. **Curiosity-Driven Exploration**: Independent roaming using the Autonomous Mission Orchestrator FSM, academic paper analysis (arXiv), and discovery sharing.
5. **Collaborative Swarm Logistics**: Distributed mapping and collision-free object transport using ESP-NOW and swarm WebSockets.
## Technical Details
- **Stack**: C++ (PlatformIO Core), Python (FastAPI, asyncio), OpenCV, MediaPipe, ChromaDB, sentence-transformers, pdfplumber.
- **Protocols**: WebSockets (low-latency `/ws/swarm_knowledge`), ESP-NOW, UART, HTTP, ArduinoOTA.
- **Safety**: 360-degree safety bubble, IMU fall-protection, active motor over-current stall protection (>3.0A auto-stop), and watchdog failsafes.
## Documentation Reference
- [Project Summary](docs/COMPLETE_PROJECT_SUMMARY.md)
- [Wiring Guide](docs/WIRING_GUIDE.md)
- [Build Instructions](docs/Omni-Morph_BUILD_INSTRUCTIONS.md)
- [Technical Documentation](docs/Omni-Morph_TECHNICAL_DOCUMENTATION.md)
- [AI Logic](docs/ai_super_brain.md)
- [V2.5 Advanced Brain & OTA Upgrades](docs/advanced_features_v2.md)
- [Jetson Nano Upgrade Blueprint](docs/JETSON_NANO_UPGRADE_BLUEPRINT.md)
- [Jetson Nano Codebase Impact](docs/JETSON_NANO_CODEBASE_IMPACT.md)