Refactor infrastructure scripts and add mock hardware support
Changes: - Refactor project scripts for better dev/prod workflow separation - Add mock_hardware.py for local development without real hardware - Add Makefile for common commands - Add .env.example for environment variable reference - Split scripts into dev-backend.sh, dev-frontend.sh, prod-backend.sh - Add stop.sh for clean shutdown Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -10,6 +10,11 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
AGV_HOST = "192.168.60.80"
|
||||
ARM_HOST = "192.168.60.120"
|
||||
|
||||
# ========== 开发模式 ==========
|
||||
# 设置为 True 时使用 Mock 硬件实现(无需真实硬件)
|
||||
# 通过环境变量 MOCK_HARDWARE=1 启用
|
||||
MOCK_HARDWARE = os.getenv("MOCK_HARDWARE", "0") == "1"
|
||||
|
||||
# ========== AGV 参数 ==========
|
||||
AGV_CONFIG = {
|
||||
"device": "/dev/agvpro_controller",
|
||||
|
||||
Reference in New Issue
Block a user