How yeopbuddy/smart-factory-agv works
This repository implements a Jetson AGV controller and a separate PySide2 operator dashboard. The principal workflow is camera-driven autonomous steering and color-target detection on the AGV, with Firebase sensor reads and Firestore logging, while MQTT carries telemetry to the dashboard and commands back to the AGV. The dashboard also retrieves logs for GPT analysis and chart generation. Several links are documented by the README; excerpts confirm the sampled calls, but do not expose all controller startup and model details.
Main entry points: agv_dashboard.py Dashboard UI · agv_controller.py Sensor Collection
Components 16
AGV Runtime
- Camera Input
agv_controller.py - Autonomous Steering
agv_controller.py - Color Detection
agv_controller.py - Manual Controls
agv_controller.py - Sensor Collection
agv_controller.py - MQTT Controller
agv_controller.py
Cloud Services
- Firebase RTDB
- Firestore Logs
- MQTT Broker
Operator Dashboard
- Dashboard UI
agv_dashboard.py - MQTT Messaging
agv_dashboard.py - Log Retrieval
agv_dashboard.py
Analysis
- GPT Analysis
agv_dashboard.py - Chart Generation
agv_dashboard.py
Other components
- Operator
- OpenAI API
Connections 23
- Camera Input → Autonomous Steering: supplies frames
README.md - Camera Input → Color Detection: supplies frames
README.md - Autonomous Steering → Manual Controls: updates controls
agv_controller.py - Manual Controls → Operator: accepts input
README.md - Operator → Dashboard UI: uses
README.md - Dashboard UI → MQTT Messaging: issues commands
agv_dashboard.py - MQTT Messaging → MQTT Broker: publishes commands
agv_dashboard.py - MQTT Broker → MQTT Controller: dispatches commands
README.md - MQTT Controller → Manual Controls: controls robot
agv_controller.py - Sensor Collection → Firebase RTDB: fetches readings
agv_controller.py - Sensor Collection → Firestore Logs: writes logs
agv_controller.py - Sensor Collection → MQTT Broker: publishes telemetry
README.md - MQTT Broker → MQTT Messaging: delivers telemetry
agv_dashboard.py - MQTT Messaging → Dashboard UI: updates display
agv_dashboard.py - Dashboard UI → Log Retrieval: requests logs
README.md - Log Retrieval → Firestore Logs: queries logs
agv_dashboard.py - Dashboard UI → GPT Analysis: submits prompt
README.md - GPT Analysis → OpenAI API: requests analysis
agv_dashboard.py - Dashboard UI → Chart Generation: requests visualization
agv_dashboard.py - Chart Generation → OpenAI API: requests chart code
agv_dashboard.py - Chart Generation → Dashboard UI: shows chart
agv_dashboard.py - Log Retrieval → GPT Analysis: provides log data
agv_dashboard.py - Log Retrieval → Chart Generation: provides log data
agv_dashboard.py