Skip to content

Commit d6f9098

Browse files
authored
Merge pull request #15 from AlicaQiao/llm_interaction
Add a new branch for LLM interaction
2 parents b7800cd + de695a9 commit d6f9098

13 files changed

Lines changed: 2525 additions & 820 deletions

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
C:\Users\HONQIA\Documents\python_workspace\AI_devs\py-crane\llm_interaction\secret_keys.txt
2+
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
35
*.py[cod]
@@ -158,3 +160,7 @@ examples/**/*.nc
158160

159161
# Cmake generated files
160162
CMakeUserPresets.json
163+
164+
llm_interaction/llm_keys.txt
165+
166+
results/*

llm_interaction/ReadMe.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

Comments
 (0)