fix(扫描): 更新车架夹具默认方案并归档大车架路径调整

将CHEJIA车架夹具默认扫描方案关联到四站逐层工具Z90度Y退50低位版,保留其他夹具和已冻结任务。
归档已发布的大车架304/308站点调整及长边X余量50毫米维护入口和核对说明。
JDK17编译及6项默认映射检查通过,维护脚本语法和差异检查通过;不包含手持功能运行代码。
This commit is contained in:
Codex 2026-11-28 16:16:11 +08:00
parent 706599f5e2
commit 3b6e44ee1b
6 changed files with 130 additions and 1 deletions

View File

@ -8,7 +8,7 @@ public final class FixtureScanDefaults {
"REAL-SCAN-20261028-001-MIDDLE", "c090028d47474d03b7cc2f8d77740abf",
"REAL-SCAN-20261028-001-LARGE", "426a054b4e444826a8a6f6052c61f519",
"REAL-SCAN-20261028-001-SMALL", "88913757c6564826aa5d05946ccb702e",
"CHEJIA", "edd56edb527541a88596689a5bfd4789"
"CHEJIA", "37402d4843664b82b17dc9501eb77cea"
);
private FixtureScanDefaults() {}

View File

@ -0,0 +1,11 @@
# 大车架扫描路径V3:304/308两站X余量50mm
仅修改“大车架扫描路径”方法 `50a0c6a9aca0422a9ca7cfae6aa1acdf`、流程 `4eb5c84ed0728e1e330c93aca25c1067`。基于V2 `2c8b55ec4fbe10dff0db85c4ff4b4128`,草稿修订4,291节点。经用户当次“发布”确认,已正常发布V3,版本ID `7986803bad7bd54dad4c987a01e3e95a`。
实际站点顺序仍为LM402→LM304→LM406→LM308。仅LM304、LM308对应的两组长边将首层正端X改为A/2+50mm、负端X改为−A/2−50mm,两个RX区域和后续蛇形层共同使用该范围。LM402、LM406仍为±(A/2+100mm)。例如两长边A=1850mm时,正负端点为±975mm。
保留内部LM404/LM408输入键以兼容任务参数复制,显示说明为LM304/LM308并同步50mm公式。仅在大车架冻结图的长度生成CODE中按内部站点选择X余量,原共享生成器、旧站点映射维护入口、其他车架/夹具方案不改。衔接、入场、扫描和退让节点继续使用同一批生成点;Y/Z、RX/工具Z姿态逻辑、层数、速度、加速度、超时、停稳、资源及所有边不变。
维护入口 `scripts/frame_scan/build_large_frame_long_x50.mjs` 锁定大车架V2源,通过恢复唯一CODE变更、对应几何说明和两项输入说明后与原完整图深比较。192组有效几何参数对照检查通过:LM402/406完整输出不变;两长边仅X及端点X元数据缩进50mm,其他输出逐项一致。真实工具Z规划器的两站×两RX共4组检查通过,首层衔接与入场X=975mm、全部扫描点位于±975mm内。此为几何及引用检查,不代表控制器全路径可达和避碰验收。
通过正常保存草稿接口保存后逐字回读一致;发布前重新生成预期图与修订4逐字一致,通过正常发布接口发布V3后核对完整图、输入配置、当前发布指针及方法绑定一致。原大车架V2冻结图和配置保持;原Y退50车架方案草稿、配置、修订及发布指针均保持。未重启或下发设备动作。专用验证源码、快照、结果及临时目录已按项目约定清理。本次仅发布本流程,无需安装手持扫描代码或重启平台;新建/复制任务默认最新版,已开始任务继续使用原冻结版本。

View File

@ -0,0 +1,19 @@
# 大车架扫描路径V2:LM304/LM308站点调整
根据用户最后要求,仅将“大车架扫描路径”中LM404、LM408导航目标分别改为LM304、LM308,顺序为LM402→LM304→LM406→LM308。方法 `50a0c6a9aca0422a9ca7cfae6aa1acdf`,流程 `4eb5c84ed0728e1e330c93aca25c1067`,草稿修订2,291节点。经用户当次“发布”确认,已正常发布V2,版本ID `2c8b55ec4fbe10dff0db85c4ff4b4128`。
正常只读listStations接口已核实四个目标ID存在。修改导航节点的目标和选项、对应节点及输入说明中的显示站名;为保证任务复制后参数仍能对上,保留 `LM404_length_mm` / `LM404_param2_mm` 与 `LM408_length_mm` / `LM408_param2_mm` 的内部输入键,界面说明分别标示LM304、LM308。所有输入键、类型、默认值、参数引用、CODE源码、XYZ范围、RX与工具Z逻辑、速度、停稳检查、资源和边均不变。
维护入口 `scripts/frame_scan/build_large_frame_mixed_stations.mjs` 从大车架V1 `263269a4367e55308a8549ff9ebeb6af` 离线生成本次调整图,并通过恢复允许变更字段后与原图完整深比较,防止夹带路径和参数变更。发布前回读修订2与重新生成图逐字相同;正常发布后再次核对V2完整图、输入配置、方法绑定和当前发布指针一致,原V1图及配置保持,失败任务冻结版本和日志保持。未执行设备指令,未重启平台;专用验证脚本、快照和日志已清理。
## 本次规划失败的已知证据
T-20261127-0014 / EX-20261127-0014,CMVR实例 `a83b01b845508ec899659765f705ca72`,节点日志29425:LM404 RX=-2首层退让衔接在约81ms内返回SDK `moveL failed: sdk ret=14`。LM402两组扫描、LM404初始退让、RX切换和连续停稳均已成功;失败时尚未沿Y进入首点、未开始本组采集或工具Z旋转。
当次输入长边A=1850mm,距离2=1060mm,参考最低Z=-220mm,高度700mm,7层;规划目标为[1.025,0.778,-0.020,-2,0.1128010803,-0.0079509081](m/rad),衔接速度0.15m/s、加速0.08m/s²。起点实际XYZ约[0.446222,0.424171,0.380435]m,直线长约787.7mm。单位、引用、本站姿态来源及RPC传值核对一致,没有发现mm/m、deg/rad或站点引用串用。
专用只读接口确认型号aubo_i10H、实际TCP偏移为零、旋转约定RzRyRx。SDK提交直接失败,不属于旧的完成回执等待问题;厂家定义14为AUBO_ALGORITHM_PLAN_FAILED,见[官方错误码](https://docs.aubo-robotics.cn/arcs_api/zh/type__def_8h_source.html)。
使用[厂家i10H名义URDF](https://github.com/AuboRobot/aubo_description/blob/main/urdf/aubo_i10H.urdf)仅做离线诊断,与14帧实测关节/TCP对照位置差约0.34至1.12mm,姿态差约0.0013至0.0024rad。目标存在其他关节分支的数值逆解;从实际起点分支沿原直线近邻逆解时,在接近终点处J3趋于0并失去连续解;简单先X/Z后Y、先Z后X/Y也未消除此问题。该结果支持“当前关节分支的连续MoveL规划失败”,不能据名义模型宣称已完成控制器校准、碰撞或真机全路径验证。
按用户“其他不变”的最新范围,本次不切换MoveJ、不自动重发、不拆轴、不改机械臂初始关节或覆盖范围。更换AGV站点本身不会改变BASE下的机械臂目标,不能宣称SDK规划失败已解决。此次流程发布无需安装手持扫描代码,也不需要重启平台。新建/复制任务默认选择最新版,已开始任务继续使用冻结版本。

View File

@ -0,0 +1,11 @@
# 车架夹具默认扫描方案更新
按用户指定,将编号CHEJIA“车架夹具”的默认扫描方案由 `edd56edb527541a88596689a5bfd4789` 改为 `37402d4843664b82b17dc9501eb77cea`,名称“车架扫描方案-四站逐层工具Z90°-Y退50低位版”。正式数据只读核对:目标方法可用,流程 `dc99345185f6d515afff8bd805c763c7` 已发布V1 `a02ccea8e279e8c9caf0acb6d6cb1dc9`。
唯一运行代码修改为FixtureScanDefaults中CHEJIA的默认方法号。夹具管理摘要和新任务选择夹具均使用同一映射;小型、中型、大型夹具默认方法保持,已有任务的人工选择、参数、冻结版本和执行历史保持。无需数据库迁移、新配置、依赖或权限。
JDK17真实编译后核对四种夹具及null/未知编号共6项检查通过;两个大车架维护入口语法及差异检查通过。发布前只读空闲检查通过,未登记或释放人工资源占用。
用户本次已明确要求“换完以后发布”及检查修改上传Git。通过正式platform.ps1 Update入口部署本次关联修改,核对deployment.json、安装程序及启动文件指纹、前端和API健康,并回读CHEJIA默认方法号/名称/发布状态。此关联代码更新不发布手持扫描草稿;手持功能的独立待发代码另行提交入库。
本批同时归档已正常发布的大车架V2站点调整和V3长边X余量50mm的维护脚本与说明;它们只离线生成流程,不调用设备。验证包含源冻结图深比较、192组几何对照和4组工具Z规划器检查,原共享规划文件及其他方案保持。未将名义模型检查作为真机可达/碰撞验收。

View File

@ -0,0 +1,39 @@
import fs from 'node:fs'
import assert from 'node:assert/strict'
// Derive only the large-frame draft. Shared planners and other methods stay unchanged.
const [sourcePath, outputPath] = process.argv.slice(2)
if (!sourcePath || !outputPath) throw new Error('Usage: node build_large_frame_long_x50.mjs <large-frame-V2-snapshot.json> <flow.json>')
const source = JSON.parse(fs.readFileSync(sourcePath, 'utf8').replace(/^\uFEFF/, ''))
assert.equal(source.published.id, '2c8b55ec4fbe10dff0db85c4ff4b4128')
const original = JSON.parse(source.published.flowData), graph = structuredClone(original)
const geometryId = 'b5e44f7d775941b3b9e8b993b97eb319'
const codeOf = g => g.nodes.find(n => n.id === geometryId)?.properties.nodeParams.find(p => p.name === 'code')
const code = codeOf(graph)
assert(code && typeof code.input === 'string')
const before = " var firstX = computed(length / 2 + 100, station + '正端X');\n var lastX = computed(-length / 2 - 100, station + '负端X');"
const after = " var xMarginMm = station === 'LM404' || station === 'LM408' ? 50 : 100;\n var firstX = computed(length / 2 + xMarginMm, station + '正端X');\n var lastX = computed(-length / 2 - xMarginMm, station + '负端X');"
assert.equal(code.input.split(before).length, 2, 'Review changed geometry source')
code.input = code.input.replace(before, after)
const geometry = g => g.nodes.find(n => n.id === geometryId).properties
assert(geometry(graph).desc.startsWith('各站X边界±(A/2+100mm),'))
geometry(graph).desc = geometry(graph).desc.replace('各站X边界±(A/2+100mm),', 'LM304/308的X边界±(A/2+50mm),LM402/406仍为±(A/2+100mm),')
const inputs = g => g.nodes.find(n => n.type === 'start').properties.inputParams
for (const key of ['LM404_length_mm', 'LM408_length_mm']) {
const input = inputs(graph).find(p => p.name === key)
assert(input?.desc.includes('正端X=A/2+100,负端X=-A/2-100'))
input.desc = input.desc.replace('正端X=A/2+100,负端X=-A/2-100', '正端X=A/2+50,负端X=-A/2-50')
}
const stations = graph.nodes.filter(n => n.properties?.action === 'AGV_MOVE_TO_STATION')
.map(n => n.properties.nodeParams.find(p => p.name === 'stationId').input)
assert.deepEqual(stations, ['LM402', 'LM304', 'LM406', 'LM308'])
const restored = structuredClone(graph)
codeOf(restored).input = codeOf(original).input
geometry(restored).desc = geometry(original).desc
for (const key of ['LM404_length_mm', 'LM408_length_mm'])
inputs(restored).find(p => p.name === key).desc = inputs(original).find(p => p.name === key).desc
assert.deepEqual(restored, original, 'Unexpected change outside long-side X margin and descriptions')
fs.writeFileSync(outputPath, JSON.stringify(graph, null, 2))
console.log(JSON.stringify({ name: '大车架扫描路径', nodes: graph.nodes.length, stations,
xMarginMm: { LM402: 100, LM304: 50, LM406: 100, LM308: 50 },
inputKeysAndValuesUnchanged: true, published: false, deviceCommandsSent: 0 }))

View File

@ -0,0 +1,49 @@
import fs from 'node:fs'
import assert from 'node:assert/strict'
// Change navigation destinations and their captions only. Retain input keys so
// copied task parameters continue to match; never publish or operate equipment.
const [sourcePath, outputPath] = process.argv.slice(2)
if (!sourcePath || !outputPath) throw new Error('Usage: node build_large_frame_mixed_stations.mjs <large-frame-V1-snapshot.json> <flow.json>')
const source = JSON.parse(fs.readFileSync(sourcePath, 'utf8').replace(/^\uFEFF/, ''))
assert.equal(source.published.id, '263269a4367e55308a8549ff9ebeb6af')
const original = JSON.parse(source.published.flowData), graph = structuredClone(original)
const mapping = { LM404: 'LM304', LM408: 'LM308' }
const caption = value => typeof value === 'string' ? value.replace(/LM40[48]/g, station => mapping[station]) : value
const navigation = graph.nodes.filter(n => n.properties?.action === 'AGV_MOVE_TO_STATION')
const station = n => n.properties.nodeParams.find(p => p.name === 'stationId')
assert.deepEqual(navigation.map(n => station(n).input), ['LM402', 'LM404', 'LM406', 'LM408'])
for (const node of graph.nodes) {
const p = node.properties
if (!p) continue
p.name = caption(p.name)
if (node.type === 'start') for (const input of p.inputParams || []) {
if (typeof input.desc === 'string') input.desc = caption(input.desc)
if (typeof input.label === 'string') input.label = caption(input.label)
}
if (p.action !== 'AGV_MOVE_TO_STATION') continue
const parameter = station(node)
parameter.input = mapping[parameter.input] || parameter.input
for (const option of parameter.selectOptions || []) {
option.value = caption(option.value)
option.label = caption(option.label)
}
}
assert.deepEqual(navigation.map(n => station(n).input), ['LM402', 'LM304', 'LM406', 'LM308'])
// Prove the allowlist: restore only navigation/captions, then compare the whole graph.
const restored = structuredClone(graph)
for (let index = 0; index < original.nodes.length; index++) {
const before = original.nodes[index], after = restored.nodes[index]
after.properties.name = before.properties.name
if (before.type === 'start') after.properties.inputParams = structuredClone(before.properties.inputParams)
if (before.properties.action === 'AGV_MOVE_TO_STATION') {
after.properties.nodeParams = structuredClone(before.properties.nodeParams)
}
}
assert.deepEqual(restored, original, 'Unexpected geometry, SDK, resource or parameter change')
const start = g => g.nodes.find(n => n.type === 'start')
assert.deepEqual(start(graph).properties.inputParams.map(({ desc, label, ...input }) => input),
start(original).properties.inputParams.map(({ desc, label, ...input }) => input))
fs.writeFileSync(outputPath, JSON.stringify(graph, null, 2))
console.log(JSON.stringify({ nodes: graph.nodes.length, stations: navigation.map(n => station(n).input),
inputKeysAndValuesUnchanged: true, geometryAndDeviceParametersUnchanged: true, published: false, deviceCommandsSent: 0 }))