Donald8585/warehouse-robot-navigation
0
๐ค Warehouse Robot Navigation | DQN + HER + Curriculum Learning
Interactive demo comparing BFS pathfinding vs. Deep Reinforcement Learning for warehouse robot navigation
๐ฏ Project Overview
This demo showcases a Deep Q-Network (DQN) agent with Hindsight Experience Replay (HER) trained using curriculum learning to navigate a 20ร20 grid warehouse environment with obstacles.
Key Features
- 30 comparison videos (6 difficulty levels ร 5 runs each)
- Side-by-side visualization: BFS optimal pathfinding (blue) vs. RL agent (green)
- Curriculum learning: Progressive difficulty (Easy โ Medium โ Hard)
- Sparse reward challenge: Agent learns to reach goals with only terminal rewards
๐ Results Summary
๐ง Technical Details
Environment
- State Space: Agent position (x, y) + Goal position (x, y) [4D continuous]
- Action Space: Up, Right, Down, Left [4 discrete actions]
- Reward: Sparse (+0 at goal, -1 per step)
- Episode Limit: 200 steps
- Grid Size: 20ร20
Training
- Algorithm: DQN with Hindsight Experience Replay (HER)
- Curriculum: 3 stages @ 100k steps each (300k total)
- Stage 1: Easy (10% density, distance 5-8)
- Stage 2: Medium (25% density, distance 8-12)
- Stage 3: Hard (40% density, distance 12-16)
- Hyperparameters:
- Learning rate: 1e-3
- Batch size: 256
- Replay buffer: 100k transitions
- HER strategy: Future (4 sampled goals per transition)
Results Analysis
- โ Curriculum learning effective: 100% success on tutorial, 80% on easy
- ๐ Generalization gap: Performance degrades on harder difficulties
- โ ๏ธ Sparse reward challenge: Agent struggles with long-horizon credit assignment
- ๐ก Future work: Reward shaping, prioritized replay, or hierarchical RL
๐ How to Use
- Select difficulty level: Tutorial โ Nightmare (increasing obstacle density)
- Choose run number: 1-5 (different random maps per level)
- Click "Load Video": Watch BFS (left/blue) vs RL (right/green)
- Compare performance: Success rates and step counts displayed
๐ง Tech Stack
- Gymnasium: Custom environment framework
- Stable-Baselines3: DQN + HER implementation
- NumPy: State/reward processing
- imageio: Video generation
- Streamlit: Interactive web interface
๐ Links
- Portfolio: alfredso.com/portfolio
- GitHub: github.com/Donald8585/warehouse-rl-robot
- LinkedIn: linkedin.com/in/alfred-so
- Kaggle: kaggle.com/sword4949
๐ License
MIT License - Free to use for learning and portfolio projects
Built with โค๏ธ by Alfred So | MSc Data Science & AI (HSUHK) | Aspiring ML Engineer
