mirror of
https://github.com/m1ngsama/robot_arm.git
synced 2026-03-25 19:53:49 +00:00
Create config.py with env-var-overridable hardware constants: - SERIAL_PORT / SERIAL_BAUD - LLM_MODEL_PATH / YOLO_MODEL_PATH - Z_HOVER / Z_GRAB / Z_AFTER_PICK (Z_TABLE eliminated — same as Z_GRAB) - REST_X / REST_Y / REST_Z (replaces three copies of [120,0,60]) - WS_X / WS_Y / WS_Z (workspace clipping bounds) - DAMPING_BUFFER_SIZE / DAMPING_MAX_SPEED / DAMPING_FACTOR - OFFSET_Y / OFFSET_Z arm_main.py: port/baud/damping defaults now read from config. voice_main.py: all magic constants replaced; remaining Chinese non-i18n strings translated to English. .gitignore: whitelist config.py.
51 lines
No EOL
618 B
Text
51 lines
No EOL
618 B
Text
# Python internals
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
*.log
|
|
|
|
# Virtual environments
|
|
venv/
|
|
.venv/
|
|
env/
|
|
|
|
# IDE settings
|
|
.vscode/
|
|
.idea/
|
|
|
|
# Models & Weights (Excluded)
|
|
*.pt
|
|
*.pth
|
|
*.bin
|
|
*.onnx
|
|
*.safetensors
|
|
*.engine
|
|
best.pt
|
|
yolov8s-world.pt
|
|
|
|
# Large Data & Outputs (Excluded)
|
|
runs/
|
|
saves/
|
|
data/
|
|
images/
|
|
CLIP-main/
|
|
LLaMA-Factory/
|
|
model/
|
|
test_code/
|
|
__pycache__/
|
|
|
|
# Temporary Files
|
|
temp_voice.wav
|
|
|
|
# Unused Python Files (Exclude everything by default, then allow specific ones)
|
|
*.py
|
|
*.json
|
|
|
|
# Allow only necessary files (Whitelist)
|
|
!voice_main.py
|
|
!arm_main.py
|
|
!whisper_main.py
|
|
!config.py
|
|
!项目介绍文档.md
|
|
!ck.md
|
|
!lora.md |