bnspopi/openenv-scaler
0
Openenv Scaler
Smart Grid Navigation Reinforcement Learning (RL) Environment built using FastAPI. This project simulates an agent navigating a grid with rewards and goals.
๐ Features
- Custom RL environment
- Grid-based navigation
- Reward system
- API endpoints for interaction
- Docker-based deployment
- Live testing via Swagger UI
๐ง How It Works
- Agent starts at position
[0, 0] - Goal is at
[4, 4] - Each step gives reward
-1 - Reaching goal gives reward
+100 - Environment resets after completion
๐ก API Endpoints
/resetโ Reset environment/stepโ Take action/stateโ Get current state/healthโ Check API status
Direction Mapping
0 = UP1 = DOWN2 = LEFT3 = RIGHT
๐งช Usage
Open Swagger UI at: /docs
Then:
- Call
/reset - Use
/stepwith:
{
"direction": 1
}