Files
Warehouse-Digital-Twin-and-…/docs/INSTALLATION.md
T

77 lines
1.8 KiB
Markdown

# Installation and Setup Guide
## 1. Prerequisites
- **Operating System**: Ubuntu Linux 22.04 LTS or 24.04 LTS (Tested on Ubuntu 24.04.3 LTS).
- **Python**: Version 3.10, 3.11, or 3.12 (Host has Python 3.12.3).
- **GPU** (For 3D visualization only): NVIDIA RTX GPU with modern driver (Tested on NVIDIA RTX 5090 with driver 580.178.04).
- **Disk Space**: At least 500 MB free for simulation, virtual environment, and initial outputs. (Host currently has ~8.9 GB free on `/dev/nvme0n1p4`).
- **NVIDIA Isaac Sim**: **NOT required**. The simulation engine is completely standalone.
---
## 2. Setting Up the Virtual Environment
From the project root:
```bash
cd /home/dmhai/warehouse-digital-twin
# Create virtual environment if not already present
python3 -m venv .venv
# Activate virtual environment
source .venv/bin/activate
# Upgrade pip and install package in editable mode
pip install --upgrade pip
pip install -e .
```
---
## 3. Verifying the Setup
Run the automated environment check script:
```bash
./scripts/check_environment.sh
```
Or invoke the Python CLI directly:
```bash
warehouse-twin validate-env
warehouse-twin validate-config
```
---
## 4. Running the Automated Tests
Execute the unit test suite:
```bash
./scripts/run_tests.sh
```
Or using pytest with options:
```bash
pytest tests/ -v
```
---
## 5. Storage Relocation (For Disk-Constrained Systems)
If your system drive `/` is low on disk space (e.g., < 2 GB), configure environment variables in `.env` or in your shell to redirect generated logs and simulation results to an external or secondary drive:
```bash
export WAREHOUSE_TWIN_SECONDARY_DRIVE="/media/external/warehouse_data"
```
When set, the simulation will automatically place logs and output results under:
- `$WAREHOUSE_TWIN_SECONDARY_DRIVE/logs/`
- `$WAREHOUSE_TWIN_SECONDARY_DRIVE/results/`