|
| 1 | +## Project Overview |
| 2 | +LLM interaction for crane simulation,three major capabilities : |
| 3 | +(1) Control crane motion with natural language via LLM |
| 4 | +(2) Generate crane configurations from natural language descriptions |
| 5 | +(3) Run an interactive server for real-time command processing with live visualization |
| 6 | + |
| 7 | +## Features & Where to Find Them |
| 8 | +* **Natural-language motion control**: Parse LLM commands and execute crane physics in real-time with matplotlib visualization |
| 9 | + Files: `llm_parser.py`, `physics_executor.py`, `demo_llm_control.py`, `llm_command.py` |
| 10 | + |
| 11 | +* **LLM-based crane configuration**: Build crane geometry from text specifications and display animation |
| 12 | + File: `crane_configuration.py` |
| 13 | + |
| 14 | +* **Interactive server**: Send commands to running server; real-time matplotlib animation displays motion; `/debug` endpoint provides execution status |
| 15 | + Server: `crane_server.py` |
| 16 | + Test script: `interactive_test.py` |
| 17 | + |
| 18 | +## Real-time Visualization |
| 19 | +All flows use matplotlib with FuncAnimation to display crane motion in real-time. Watch the animated matplotlib window as commands execute. |
| 20 | + |
| 21 | +## Configuration |
| 22 | +Set environment variables for LLM backend: |
| 23 | +- **Azure**: `AZURE_KEY`, `AZURE_ENDPOINT` |
| 24 | +- **Qwen**: `QWEN_API_URL`, `QWEN_API_KEY` |
| 25 | + |
| 26 | +## Quick Commands |
| 27 | +* **Offline demo**: `python llm_interaction/demo_llm_control.py` |
| 28 | +* **Build crane from description**: `python llm_interaction/crane_configuration.py` |
| 29 | +* **Start server**: `python llm_interaction/crane_server.py` |
| 30 | +* **Test server**: `python llm_interaction/interactive_test.py` |
0 commit comments