fix(扫描): 将四站长度路径两端X余量调整为100毫米

起点X改为A/2+100,负端X改为-A/2-100,并同步参数说明。
仅发布独立逐层工具Z方案V2,保留V1历史。
核对1776个点的非X字段及完整图差异,Z、层数、姿态、速度和安全动作不变。
This commit is contained in:
Codex 2026-11-27 20:31:20 +08:00
parent 549f0d499a
commit 6072308599
3 changed files with 10 additions and 6 deletions

View File

@ -4,11 +4,13 @@
新方法ID为`2c9de95b98b6451583a4366817a75ed5`,流程ID为`363d9d50f6a851bb914ffb71348c6748`。2026-11-27获用户明确指示后已正式发布V1,版本ID为`3ac33bfebd528312bb43a773d4c07449`,对应草稿修订1。旧方法`a3d44bacd1be4a9b97a6315bcca86f50`和冻结V3 `89e71764f2ec94c5c212fd00cce15947`在发布后逐项核对保持原图及配置。
当前最新为V2,版本ID `a8d35fd445f5369261b8a842bd5e9fee`,对应草稿修订2。按用户“其他先不变,改完以后就发布”的明确指示,仅将X两端余量从200mm改为100mm;V1冻结历史保留,其他输入、Z的200mm调整、姿态、安全动作及拓扑保持。
## 输入及扫描顺序
AGV沿用原LM302→LM304→LM306→LM308四站导航。机械臂Base X=0须现场对准各站被测区域中心,未新增自动寻中心或额外导航动作。
四站分别输入长度A和距离2,长度不预填虚构数值。每站正端X=A/2+200mm,负端X=-A/2-200mm。距离2沿用Y=距离2-232mm、距离2≥688mm的既有定义。长边/顶面默认80、短边默认100mm/s,正数可输入;扫描加速度默认80mm/s²。扫描仪原默认亮度17、点间距0.5保持。
四站分别输入长度A和距离2,长度不预填虚构数值。每站正端X=A/2+100mm,负端X=-A/2-100mm。距离2沿用Y=距离2-232mm、距离2≥688mm的既有定义。长边/顶面默认80、短边默认100mm/s,正数可输入;扫描加速度默认80mm/s²。扫描仪原默认亮度17、点间距0.5保持。
共享整体最低Z(默认-222mm)、高度H和实际横扫层数N。整体最高Z=整体最低Z+H。每站先RX=-2,再RX=-1.1,两组分别完整扫N层,N包含最低和最高横扫层。
@ -35,3 +37,5 @@ N为2至100整数;H>200mm,实际相邻层距(H-200)/(N-1)至少2mm;整体
离线几何、姿态和真实图解析检查不能替代真机全路径逆解、奇异点、碰撞、线缆及采集质量验证。验证不自动执行现场机械臂、AGV或扫描仪动作。
已完成验证:生成器204项边界检查、5376点;生成器与规划器联合1920组姿态组合及14项拒绝检查,独立旋转矩阵最大误差约9.24e-16;安装版FlowModelBuilder接受291节点及15项输入。临时测试材料验证后按项目要求清理。
V2追加精确差异检查:完整图仅两处X常数及五处对应说明改变,1776个点的非X字段全部与V1一致;28份工具Z规划源码及全部动作参数未变。发布后核对V2图和配置、V1及原V3冻结历史通过,无需重启平台,未执行设备动作。

View File

@ -31,7 +31,7 @@ startFields.get('scan_start_z_mm').desc = '整体最低Z(mm,默认-222,不
const orderedFields = ['long_scan_speed', 'short_scan_speed', 'fixtureFrameworkUrls', 'scan_start_z_mm', 'scan_height_mm', 'scan_layers'].map(name => startFields.get(name))
for (const station of ['LM302', 'LM304', 'LM306', 'LM308']) {
const name = station + '_length_mm'
orderedFields.push({ name, type: 'number', children: [], required: true, desc: station + ' 长度A(mm,正数);以机械臂Base X=0为中心,正端X=A/2+200,负端X=-A/2-200。首层从正端开始,后续蛇形。' })
orderedFields.push({ name, type: 'number', children: [], required: true, desc: station + ' 长度A(mm,正数);以机械臂Base X=0为中心,正端X=A/2+100,负端X=-A/2-100。首层从正端开始,后续蛇形。' })
orderedFields.push(startFields.get(station + '_param2_mm'))
set(generator, name, { name, type: 'quote', input: '', quote: [start.id, 'input', name], quoteType: 'input', required: true, disabled: true })
}
@ -41,7 +41,7 @@ start.properties.inputParams = orderedFields
start.properties.name = '四站独立长度、距离2与实际层数'
set(generator, 'code', input('code', generatorCode))
generator.properties.name = '四站中心对称X与两组RX高度范围(每组实际N层)'
generator.properties.desc = '各站X边界±(A/2+200mm),Base X=0须现场对准样品中心。Y=距离2-232mm;RX=-2先扫,RX=-1.1再扫;N是横扫层数,保留最低和最高层。'
generator.properties.desc = '各站X边界±(A/2+100mm),Base X=0须现场对准样品中心。Y=距离2-232mm;RX=-2先扫,RX=-1.1再扫;N是横扫层数,保留最低和最高层。'
for (const station of generator.properties.outputParams.find(p => p.name === 'result').children) {
for (const name of ['lengthMm', 'xFirstMm', 'xLastMm', 'yMm', 'layerCount', 'layerStepMm', 'rx2StepMm', 'rx11StepMm', 'overallMinZMm', 'overallMaxZMm', 'scanHeightMm']) {
assert(!station.children.some(p => p.name === name))
@ -66,6 +66,6 @@ for (let i = 0; i < graph.nodes.length; i++) {
if (n.properties.action !== 'CODE' && n.type !== 'start') assert.deepEqual(n.properties.nodeParams, before.properties.nodeParams)
}
fs.writeFileSync(outputPath, JSON.stringify(graph, null, 2))
const summary = { nodes: graph.nodes.length, sourceVersion: 3, captures: 8, stations: ['LM302','LM304','LM306','LM308'], rxOrder: [-2,-1.1], lengthInputs: 4, actualRowCountInput: 'scan_layers', xBoundaries: ['A/2+200','-A/2-200'], rowToolAnglesDeg: [[0,90],[90,0]], toolAxis: 'local Z', requiresNewMethodIdentity: true, published: false, deviceCommandsSent: 0 }
const summary = { nodes: graph.nodes.length, sourceVersion: 3, captures: 8, stations: ['LM302','LM304','LM306','LM308'], rxOrder: [-2,-1.1], lengthInputs: 4, actualRowCountInput: 'scan_layers', xBoundaries: ['A/2+100','-A/2-100'], rowToolAnglesDeg: [[0,90],[90,0]], toolAxis: 'local Z', requiresNewMethodIdentity: true, published: false, deviceCommandsSent: 0 }
if (summaryPath) fs.writeFileSync(summaryPath, JSON.stringify(summary, null, 2))
console.log(JSON.stringify(summary))

View File

@ -60,8 +60,8 @@ function handler(params) {
var station = stations[index], length = number(station + '_length_mm'), parameter2 = number(station + '_param2_mm');
if (!(length > 0)) fail(station + '长度必须为正数');
if (parameter2 < 688) fail(station + '距离2不能低于688mm');
var firstX = computed(length / 2 + 200, station + '正端X');
var lastX = computed(-length / 2 - 200, station + '负端X');
var firstX = computed(length / 2 + 100, station + '正端X');
var lastX = computed(-length / 2 - 100, station + '负端X');
var width = computed(firstX - lastX, station + '横扫长度'), y = computed(parameter2 - 232, station + '目标Y');
if (!(width >= 2)) fail(station + '横扫长度必须至少2mm');
if (y < 456) fail(station + '目标Y不能低于456mm');