From 9e90b68bf19393e361db273cf929d03b59a5ed9e Mon Sep 17 00:00:00 2001
From: ywb <347742090@qq.com>
Date: Tue, 26 May 2026 14:26:43 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9D=90=E6=A0=87=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
agv_app/setting.html | 352 +++++++++++++++++++++++++++++----
agv_app/start_all.sh | 1 +
agv_app/static/js/setting.js | 17 +-
agv_app/stop_all.sh | 4 +-
agv_app/style.css | 194 +++++++++++++++++-
agv_app/templates/index.html | 6 +-
agv_app/templates/setting.html | 6 +-
7 files changed, 535 insertions(+), 45 deletions(-)
mode change 100644 => 100755 agv_app/stop_all.sh
diff --git a/agv_app/setting.html b/agv_app/setting.html
index c500d00..41db5f6 100644
--- a/agv_app/setting.html
+++ b/agv_app/setting.html
@@ -4,7 +4,7 @@
设置 - AGV 拍摄系统
-
+
@@ -12,7 +12,7 @@
⚙️ 系统设置
@@ -21,6 +21,8 @@
+
+
@@ -56,26 +58,197 @@
-
-
![点击地图导航到该位置]()
-
-
-
-
-
-
+
+
+
+
![点击地图导航到该位置]()
+
+
+
+
+
+
+ 📦 机型配置
+
+
+
+
+
+
+
+
+
+
+
+
+ | ID |
+ 机型名称 |
+ 描述 |
+ 备注 |
+ 操作 |
+
+
+
+
+ | {% raw %}{{ m.id }}{% endraw %} |
+ {% raw %}{{ m.name }}{% endraw %} |
+ {% raw %}{{ m.description || '—' }}{% endraw %} |
+ {% raw %}{{ m.notes || '—' }}{% endraw %} |
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
🟢 正面姿态
+
+
+ {% raw %}{{ pose.name || '正面姿态' }}{% endraw %}
+
+
+
+
+ J{% raw %}{{ j }}{% endraw %}
+
+
+
+ °
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 当前机械臂角度:
+
+ J{% raw %}{{ currentAngles[0] ? currentAngles[0].toFixed(1) : '—' }}{% endraw %}°
+ J{% raw %}{{ currentAngles[1] ? currentAngles[1].toFixed(1) : '—' }}{% endraw %}°
+ J{% raw %}{{ currentAngles[2] ? currentAngles[2].toFixed(1) : '—' }}{% endraw %}°
+ J{% raw %}{{ currentAngles[3] ? currentAngles[3].toFixed(1) : '—' }}{% endraw %}°
+ J{% raw %}{{ currentAngles[4] ? currentAngles[4].toFixed(1) : '—' }}{% endraw %}°
+ J{% raw %}{{ currentAngles[5] ? currentAngles[5].toFixed(1) : '—' }}{% endraw %}°
+
+ (未连接机械臂)
+
+
+
+
+
+
+
🔴 背面姿态
+
+
+ {% raw %}{{ pose.name || '背面姿态' }}{% endraw %}
+
+
+
+
+ J{% raw %}{{ j }}{% endraw %}
+
+
+
+ °
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
📦 添加新机型
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -91,9 +264,10 @@
-
@@ -123,12 +297,16 @@
-
- ✅
-
-
⬜
+
@@ -145,12 +323,16 @@
-
- ✅
-
-
⬜
+
@@ -240,6 +422,39 @@
+
+
+
@@ -290,19 +505,78 @@
当前: ({% raw %}{{ pointEditor.x.toFixed(2) }}{% endraw %}, {% raw %}{{ pointEditor.y.toFixed(2) }}{% endraw %}, {% raw %}{{ pointEditor.yaw.toFixed(2) }}{% endraw %})
-
+
💡 此点位服务于: {% raw %}{{ getPointOwnerLabel(editingPoint.pointRow, editingPoint.col).split('·')[1] || '无' }}{% endraw %}
+
+
+
+
+
+ 📷 二维码配置
+ 配置机械臂姿态(6个关节角度),通过机械臂摄像头识别二维码并匹配机型。
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
-
![]()
+
关节角度控制
@@ -325,7 +599,6 @@
-
@@ -349,8 +622,19 @@
🔋 电压: {% raw %}{{ agvBattery !== null ? agvBattery + 'V' : '—' }}{% endraw %}
- 📍 位置: X={% raw %}{{ agvPosition[0] ? agvPosition[0].toFixed(2) : '?' }}{% endraw %} Y={% raw %}{{ agvPosition[1] ? agvPosition[1].toFixed(2) : '?' }}{% endraw %}
+ 📍 位置: X={% raw %}{{ agvPosition[0] !== undefined ? agvPosition[0].toFixed(2) : '?' }}{% endraw %} Y={% raw %}{{ agvPosition[1] !== undefined ? agvPosition[1].toFixed(2) : '?' }}{% endraw %} yaw={% raw %}{{ agvPosition[2] !== undefined ? (agvPosition[2] * 180 / Math.PI).toFixed(1) : '?' }}{% endraw }}°
+
+ {% raw %}{{ initPoseMsg }}{% endraw %}
+
+
+
+ 🧭 Nav2: {% raw %}{{ navStatus }}{% endraw %}
+ 📍 当前位置: X={% raw %}{{ navCurrentPos[0] !== undefined ? navCurrentPos[0].toFixed(2) : '?' }}{% endraw %} Y={% raw %}{{ navCurrentPos[1] !== undefined ? navCurrentPos[1].toFixed(2) : '?' }}{% endraw %}
+
+
@@ -392,7 +676,7 @@
-
-
+
+