Files

67 lines
2.2 KiB
Markdown

# User Guide: Warehouse Robot Fleet Digital Twin
## 1. Quick Start
Activate the project virtual environment before running commands:
```bash
cd /home/dmhai/warehouse-digital-twin
source .venv/bin/activate
```
---
## 2. Command-Line Reference
The main executable CLI is `warehouse-twin` (also accessible via `python -m warehouse_twin.main`).
### 2.1 Validate Environment
Checks Python version, disk capacity, installed simulation libraries, log directory writability, and Omniverse Kit paths:
```bash
warehouse-twin validate-env
```
### 2.2 Validate Configuration Files
Validates all 5 configuration files (`warehouse.json`, `robots.json`, `inventory.json`, `simulation.json`, `dispatch_policies.json`) against schema constraints:
```bash
warehouse-twin validate-config
```
Specify a custom configuration directory:
```bash
warehouse-twin validate-config --config-dir /path/to/custom/config
```
### 2.3 Check Version
Display installed package version:
```bash
warehouse-twin --version
```
---
## 3. Configuring the Simulation
All simulation behaviors are externalized in JSON configuration files located under `config/`:
| File | Purpose |
| :--- | :--- |
| `config/warehouse.json` | Warehouse dimensions, zones (Zone A, B, C), stations, docks, and charging bays. |
| `config/robots.json` | Robot definitions (Light AMR, Heavy AMR), battery capacities, power consumption rates, initial fleet positions. |
| `config/inventory.json` | Catalog of items across Fast-moving, Slow-moving, and Production-supply zones, initial stock, and replenishment parameters. |
| `config/simulation.json` | Simulation duration, time resolution, random seed, and zone arrival rates. |
| `config/dispatch_policies.json` | Pluggable dispatch algorithms, reservation rules, and charging trigger thresholds. |
---
## 4. Operational Logs
Logs are automatically rotated and organized into three streams under `logs/`:
- `logs/application.log`: Application lifecycle, component configuration, and operational diagnostics.
- `logs/simulation.log`: High-resolution simulation events (order arrival, dispatch, pick, transit, delivery).
- `logs/errors.log`: Filtered log containing only ERROR and CRITICAL exceptions.