Initial commit: Autonomous Mobile Robot (AMR) warehouse fleet simulator & OpenUSD digital twin
This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
# Autonomous Mobile Robot (AMR) Warehouse Fleet Simulator & Digital Twin
|
||||
|
||||
[](https://www.python.org/)
|
||||
[](https://openusd.org/)
|
||||
[](https://www.blender.org/)
|
||||
[](LICENSE)
|
||||
|
||||
A discrete-event multi-robot warehouse fleet simulation and 3D digital twin built with **Python**, **Pixar OpenUSD**, and **Blender**. Solves dynamic pallet transport scheduling across 2 to 10 Autonomous Mobile Robots (AMRs), addressing congestion deadlocks at charging docks and narrow aisle livelocks through admission control and priority yielding.
|
||||
|
||||
---
|
||||
|
||||
## 🏭 Overview & Engineering Problem
|
||||
|
||||
In automated distribution centers, scaling multi-robot AMR fleets introduces exponential congestion:
|
||||
* **The Dock Bottleneck**: Multiple AMRs arriving simultaneously at drop-off bays cause deadlocks.
|
||||
* **Aisle Livelocks**: Head-on robot contention in two-way storage aisles causes infinite waiting cycles.
|
||||
* **Battery Depletion**: Unmanaged charging schedules lead to stranded robots blocking critical transit arteries.
|
||||
|
||||
This repository implements a benchmark discrete-event simulation comparing **Baseline**, **Congestion-Aware**, and **Optimized Admission Control** routing strategies, combined with an OpenUSD time-sampled trajectory export (`warehouse.usda`) for 3D physics and animation visualization in Blender.
|
||||
|
||||
---
|
||||
|
||||
## 📊 Performance Benchmarks & Throughput Scaling
|
||||
|
||||
Simulations run over 75 benchmark trials (3 strategies × 5 fleet sizes × 5 random seeds, 3,600 operational seconds each):
|
||||
|
||||
| Strategy | 2 Robots | 4 Robots | 6 Robots | 8 Robots | 10 Robots (Peak) | Congestion Behavior |
|
||||
| :--- | :---: | :---: | :---: | :---: | :---: | :--- |
|
||||
| **Baseline** | 148.8 t/h | 197.6 t/h | 125.8 t/h | 93.4 t/h | **78.6 t/h** | Collapses due to dock deadlocks & head-on aisle conflicts. |
|
||||
| **Congestion-Aware** | 190.2 t/h | 321.6 t/h | 261.0 t/h | 116.0 t/h | **84.0 t/h** | Reroutes around traffic, but bottlenecks at shared unloading zone. |
|
||||
| **Optimized (Admission Ctrl)** | **192.2 t/h** | **323.6 t/h** | **392.8 t/h** | **412.8 t/h** | **410.6 t/h** | **Scales cleanly (>5.2x baseline at 10 AMRs) with <39s wait/task.** |
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## 🏗️ System Architecture
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
subgraph S1["1. Discrete-Event Fleet Simulator (fleet_sim.py)"]
|
||||
A["Warehouse Grid (20x12)"] --> B["A* Pathfinding & Yield Rules"]
|
||||
C["Battery & Charging Management"] --> B
|
||||
D["Dock Admission Control"] --> B
|
||||
end
|
||||
|
||||
subgraph S2["2. Benchmarking & Analysis (experiments.py)"]
|
||||
B --> E["results/experiments.csv"]
|
||||
B --> F["results/throughput.png"]
|
||||
B --> G["results/demo.gif (Heatmap & Trajectories)"]
|
||||
end
|
||||
|
||||
subgraph S3["3. 3D Digital Twin Export (export_usd.py)"]
|
||||
B --> H["Pixar OpenUSD Stage (warehouse.usda)"]
|
||||
H --> I["Blender 5.2 Pick-and-Drop Automation"]
|
||||
end
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📁 Repository Structure
|
||||
|
||||
```
|
||||
├── experiments.py # Multi-seed throughput benchmark suite across 2-10 robots
|
||||
├── export_usd.py # Bakes 1200-frame time-sampled trajectory cache to warehouse.usda
|
||||
├── fleet_sim.py # Core discrete-event AMR simulation engine and A* routing
|
||||
├── visualize.py # Matplotlib animated live simulation & congestion heatmap
|
||||
├── results/
|
||||
│ ├── experiments.csv # Raw trial metrics (throughput, wait time, yields, replans)
|
||||
│ ├── throughput.png # Comparative scaling curves (tasks/hr vs fleet size)
|
||||
│ └── demo.gif # Animated multi-robot transit and heatmap
|
||||
├── scenes/
|
||||
│ └── warehouse.usda # Pixar OpenUSD digital twin stage
|
||||
├── .gitignore
|
||||
├── requirements.txt
|
||||
└── README.md
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🚀 Quickstart & Reproduction Guide
|
||||
|
||||
### 1. Environment Setup
|
||||
```bash
|
||||
# Clone the repository
|
||||
git clone https://github.com/omkarande14/warehouse-amr-simulation.git
|
||||
cd warehouse-amr-simulation
|
||||
|
||||
# Install dependencies
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
### 2. Run Fleet Simulation & Visualizer
|
||||
```bash
|
||||
# Run animated live fleet visualization (6 robots, heatmap)
|
||||
python visualize.py
|
||||
```
|
||||
|
||||
### 3. Run Benchmark Scaling Experiments
|
||||
```bash
|
||||
# Run 75-trial benchmark suite and generate scaling curves
|
||||
python experiments.py
|
||||
```
|
||||
|
||||
### 4. Export to Pixar OpenUSD for Blender
|
||||
```bash
|
||||
# Export time-sampled 3D warehouse scene to scenes/warehouse.usda
|
||||
python export_usd.py
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📜 License
|
||||
Distributed under the MIT License. See `LICENSE` for details.
|
||||
Reference in New Issue
Block a user