How ajsike2310/project-ikru-the-intelligent-kinematic-robot- works
IKRU turns spoken or typed natural-language input into conversational responses and robot actions, with optional camera context, synthesized speech, and expressive face rendering. The main workflow is coordinated by software/ikru/main.py; the dashboard provides a separate HTTP interface for robot, vision, and audio features. Firmware excerpts cover the face engine, while the README documents WebSocket motor control and offline LLM/vision capabilities. Some subsystem wiring is documented but its implementation was not sampled, so those links are omitted or marked unverified.
Main entry points: main.py Application Orchestrator · Face.cpp Face Coordinator · engine.py Chat Engine · server.py Dashboard API
Components 24
User Interaction
- Application Orchestrator
software/ikru/main.py - Speech Input
software/ikru/mic/controller.py
Conversation and Vision
- Chat Engine
software/ikru/chat/engine.py - Response Parser
software/ikru/chat/parser.py - System Prompts
software/ikru/chat/prompts.py - Camera Receiver
software/ikru/vision/receiver.py - Latest Frame Buffer
software/ikru/vision/frame_buffer.py - Vision Model
software/ikru/vision/vlm.py
Robot I/O and Audio
- Robot Controller
software/ikru/robot/controller.py - Robot Protocol
software/ikru/robot/protocol.py - Speech Audio Service
software/ikru/audio/service.py
Dashboard
- Dashboard API
dump/ui/server.py - Dashboard UI
dump/ui/static/app.js
Firmware Face
- Face Coordinator
firmware/controller/Face.cpp - Eye Engine
firmware/controller/Eye.cpp - Eye Drawing
firmware/controller/EyeDrawer.h - Face Behavior
firmware/controller/FaceBehavior.cpp - Face Expressions
firmware/controller/FaceExpression.cpp - Look Assistant
firmware/controller/LookAssistant.cpp - Animation Primitives
firmware/controller/Animations.h
Other components
- User
- Ollama LLM
- ESP32-CAM
- ESP32 Robot
Connections 24
- User → Application Orchestrator: provides input
README.md - Application Orchestrator → Speech Input: captures speech
software/ikru/main.py - Application Orchestrator → Chat Engine: sends prompt
software/ikru/main.py - Chat Engine → Ollama LLM: queries model
software/ikru/chat/engine.py - Chat Engine → Response Parser: parses response
software/ikru/chat/engine.py - Chat Engine → System Prompts: uses prompt
software/ikru/chat/engine.py - Application Orchestrator → Camera Receiver: starts receiver
software/ikru/main.py - Camera Receiver → Latest Frame Buffer: stores frames
software/ikru/vision/receiver.py - Application Orchestrator → Vision Model: requests visual reasoning
software/ikru/main.py - ESP32-CAM → Camera Receiver: streams frames
README.md - Application Orchestrator → Robot Controller: dispatches actions
software/ikru/main.py - Robot Controller → Robot Protocol: uses protocol helpers
software/ikru/robot/controller.py - Robot Controller → ESP32 Robot: sends WebSocket commands
software/ikru/robot/controller.py - Application Orchestrator → Speech Audio Service: coordinates speech
- Dashboard UI → Dashboard API: uses dashboard API
- Dashboard API → Robot Controller: dispatches robot actions
dump/ui/server.py - Dashboard API → Speech Audio Service: requests synthesis
dump/ui/server.py - Dashboard API → Camera Receiver: reads camera status
dump/ui/server.py - Face Coordinator → Eye Engine: coordinates eyes
- Eye Engine → Eye Drawing: draws geometry
- Face Coordinator → Face Behavior: coordinates behavior
- Face Coordinator → Face Expressions: coordinates expressions
- Face Coordinator → Look Assistant: coordinates gaze
- Face Coordinator → Animation Primitives: uses animations