Add Python TrainSim with loop track map and physics.
FastAPI server, replaceable JSON config, tests, Dockerfile. Pairs with ATO via spec/interface.md contract. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
45c95836ef
commit
9c5ef3a5cd
18 changed files with 414 additions and 18 deletions
21
README.md
21
README.md
|
|
@ -1,3 +1,22 @@
|
|||
# trainsim
|
||||
|
||||
Python train simulation for ATO integration
|
||||
Python train **simulation** for ATO integration tests. Circle track, simple physics, map UI.
|
||||
|
||||
## Layout
|
||||
|
||||
| Path | Role |
|
||||
|------|------|
|
||||
| `trainsim/` | API + physics |
|
||||
| `config/` | Replaceable sim + track JSON |
|
||||
| `spec/` | Interface contract (shared with `ato`) |
|
||||
| `static/map.html` | Route map (nodes, edges, train dot) |
|
||||
|
||||
## Run locally
|
||||
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
pytest -q
|
||||
uvicorn trainsim.app:create_app --factory --host 0.0.0.0 --port 8080
|
||||
```
|
||||
|
||||
Detailed simulation notes — *TODO*.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue