关节契约扩为槽位制:以 LinuxCNC 联合号标识关节,轴字母降为槽位属性, 重复轴(bridge-mill 的两个 Y)、并联杆长(hexapod/pentapod)和被动槽位 (max5 第 6 关节)都能表达。v1 规则保持不变并合成 jointOrder,已保存 GLB 与既有测试不受影响。 13 个结构 GLB 由 scripts/generate_physical_case_glbs.mjs 统一重建, 可动关节均为按槽位命名的 Group 并写 userData.linuxcncJoint,共 71 个 关节,槽位数与运行目录的 joint_count 逐条一致。 新增 machine-visual-bindings.json 与纯函数模块,以 machine id 为键: 坐标字母不能作键,因为三个案例共用 XYZAB、三个共用 XYZABC。主界面切换 案例时自动装载对应模型,失败时保留内置模型并显式提示。 消除前端五关节截断:visual 适配器的 joints 改为数组并新增 jointsAuthoritative;allHomed 按 joint_count 判断;面板按 worker 断言的 machine id 查找机型。 管理器解锁:坐标与案例下拉以"存在完整视觉绑定"为启用条件,13 案例全部 可选;machine-urdf.ts 新增 generic-wasm/1 profile,AC/BC 严格校验路径 不变;新增 machine-kinematics-specs.json 保存逐关节限位,INI 未声明的 限位保持 null 而不编造。 修复三个真实缺陷:构建漏发 woodpecker/gmoccapy/qtdragon 配置目录( DEFECT-02 根因);案例切换沿用"装载需要已上电"的门控,导致关机状态下 第二次切换被静默拒绝;重复轴机型上 React 列表键冲突。 验收:13 案例逐个切换装载成功、槽位键与绑定定义逐一一致、浏览器错误 0; typecheck 与生产构建通过;视觉绑定、GLB 命名、关节契约、投影、store、 双画布、运动学规格漂移、11 案例 Worker 闭环、管理器浏览器回归全部通过。 证据在 coverage/glb-machine-manager/physical-drive/。 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
490 lines
9.1 KiB
JSON
490 lines
9.1 KiB
JSON
{
|
|
"schema": "linuxcnc.machine-kinematics-specs/1",
|
|
"description": "Per-case joint slots and limits, derived from the LinuxCNC INIs. limits[j] = [min,max] for joint index j; null means the source config declares none.",
|
|
"cases": [
|
|
{
|
|
"machineId": "xyzab-tdr",
|
|
"coordinates": "XYZAB",
|
|
"entrypoint": "linuxcnc/configs/sim/axis/vismach/5axis/table-dual-rotary/xyzab-tdr.ini",
|
|
"kinematics": "xyzab-tdr",
|
|
"jointCount": 5,
|
|
"jointOrder": [
|
|
"X",
|
|
"Y",
|
|
"Z",
|
|
"A",
|
|
"B"
|
|
],
|
|
"limitsByJoint": [
|
|
[
|
|
-200.0,
|
|
200.0
|
|
],
|
|
[
|
|
-200.0,
|
|
200.0
|
|
],
|
|
[
|
|
-300.0,
|
|
300.0
|
|
],
|
|
[
|
|
-3600.0,
|
|
3600.0
|
|
],
|
|
[
|
|
-180.0,
|
|
180.0
|
|
]
|
|
],
|
|
"declaredKinematicsJointCount": 5,
|
|
"extraJointCount": 0,
|
|
"parameters": {
|
|
"x_rot_point": 0,
|
|
"y_rot_point": 0,
|
|
"z_rot_point": 0,
|
|
"x_offset": -20,
|
|
"z_offset": -10,
|
|
"tool_offset": 0
|
|
},
|
|
"limitsSource": "linuxcnc-ini"
|
|
},
|
|
{
|
|
"machineId": "bridge-mill-5axiskins",
|
|
"coordinates": "XYZBCWY",
|
|
"entrypoint": "linuxcnc/configs/sim/axis/vismach/5axis/bridgemill/5axis.ini",
|
|
"kinematics": "5axiskins",
|
|
"jointCount": 7,
|
|
"jointOrder": [
|
|
"X",
|
|
"Y",
|
|
"Z",
|
|
"B",
|
|
"C",
|
|
"W",
|
|
"Y#2"
|
|
],
|
|
"limitsByJoint": [
|
|
[
|
|
-500.0,
|
|
500.0
|
|
],
|
|
[
|
|
-500.0,
|
|
500.0
|
|
],
|
|
[
|
|
-500.0,
|
|
100.0
|
|
],
|
|
[
|
|
-120.0,
|
|
120.0
|
|
],
|
|
[
|
|
-36000.0,
|
|
36000.0
|
|
],
|
|
[
|
|
-100.0,
|
|
500.0
|
|
],
|
|
[
|
|
-500.0,
|
|
500.0
|
|
]
|
|
],
|
|
"declaredKinematicsJointCount": 7,
|
|
"extraJointCount": 0,
|
|
"parameters": {
|
|
"pivot_length": 100
|
|
},
|
|
"limitsSource": "linuxcnc-ini"
|
|
},
|
|
{
|
|
"machineId": "max5-maxkins",
|
|
"coordinates": "XYZBC",
|
|
"entrypoint": "linuxcnc/configs/sim/axis/vismach/5axis/max5/max5kins.ini",
|
|
"kinematics": "maxkins",
|
|
"jointCount": 6,
|
|
"jointOrder": [
|
|
"X",
|
|
"Y",
|
|
"Z",
|
|
"B",
|
|
"C",
|
|
"J5"
|
|
],
|
|
"limitsByJoint": [
|
|
[
|
|
-100.0,
|
|
200.0
|
|
],
|
|
[
|
|
-60.0,
|
|
60.0
|
|
],
|
|
[
|
|
-149.0,
|
|
1.0
|
|
],
|
|
[
|
|
-10.0,
|
|
10.0
|
|
],
|
|
[
|
|
-90.0,
|
|
90.0
|
|
],
|
|
[
|
|
-3600.0,
|
|
3600.0
|
|
]
|
|
],
|
|
"declaredKinematicsJointCount": 5,
|
|
"extraJointCount": 1,
|
|
"parameters": {
|
|
"pivot_length": 0
|
|
},
|
|
"limitsSource": "linuxcnc-ini"
|
|
},
|
|
{
|
|
"machineId": "hexapod-genhexkins",
|
|
"coordinates": "XYZABC",
|
|
"entrypoint": "linuxcnc/configs/sim/axis/vismach/hexapod-sim/hexapod.ini",
|
|
"kinematics": "genhexkins",
|
|
"jointCount": 6,
|
|
"jointOrder": [
|
|
"J0",
|
|
"J1",
|
|
"J2",
|
|
"J3",
|
|
"J4",
|
|
"J5"
|
|
],
|
|
"limitsByJoint": [
|
|
[
|
|
-1000.0,
|
|
1000.0
|
|
],
|
|
[
|
|
-1000.0,
|
|
1000.0
|
|
],
|
|
[
|
|
-1000.0,
|
|
1000.0
|
|
],
|
|
[
|
|
-1000.0,
|
|
1000.0
|
|
],
|
|
[
|
|
-1000.0,
|
|
1000.0
|
|
],
|
|
[
|
|
-1000.0,
|
|
1000.0
|
|
]
|
|
],
|
|
"declaredKinematicsJointCount": 6,
|
|
"extraJointCount": 0,
|
|
"parameters": {},
|
|
"limitsSource": "linuxcnc-ini"
|
|
},
|
|
{
|
|
"machineId": "pentapod-pentakins",
|
|
"coordinates": "XYZAB",
|
|
"entrypoint": "linuxcnc/configs/sim/axis/pentapod/pentapod.ini",
|
|
"kinematics": "pentakins",
|
|
"jointCount": 5,
|
|
"jointOrder": [
|
|
"J0",
|
|
"J1",
|
|
"J2",
|
|
"J3",
|
|
"J4"
|
|
],
|
|
"limitsByJoint": [
|
|
[
|
|
400.0,
|
|
1500.0
|
|
],
|
|
[
|
|
400.0,
|
|
1500.0
|
|
],
|
|
[
|
|
400.0,
|
|
1500.0
|
|
],
|
|
[
|
|
400.0,
|
|
1500.0
|
|
],
|
|
[
|
|
400.0,
|
|
1500.0
|
|
]
|
|
],
|
|
"declaredKinematicsJointCount": 5,
|
|
"extraJointCount": 0,
|
|
"parameters": {},
|
|
"limitsSource": "linuxcnc-ini"
|
|
},
|
|
{
|
|
"machineId": "puma-pumakins",
|
|
"coordinates": "XYZABC",
|
|
"entrypoint": "linuxcnc/configs/sim/axis/vismach/puma/puma.ini",
|
|
"kinematics": "pumakins",
|
|
"jointCount": 6,
|
|
"jointOrder": [
|
|
"J0",
|
|
"J1",
|
|
"J2",
|
|
"J3",
|
|
"J4",
|
|
"J5"
|
|
],
|
|
"limitsByJoint": [
|
|
[
|
|
-170.0,
|
|
170.0
|
|
],
|
|
[
|
|
-85.0,
|
|
50.0
|
|
],
|
|
[
|
|
-70.0,
|
|
75.0
|
|
],
|
|
[
|
|
-250.0,
|
|
250.0
|
|
],
|
|
[
|
|
-120.0,
|
|
120.0
|
|
],
|
|
null
|
|
],
|
|
"declaredKinematicsJointCount": 6,
|
|
"extraJointCount": 0,
|
|
"parameters": {
|
|
"puma_a2": 400,
|
|
"puma_a3": 50,
|
|
"puma_d3": 100,
|
|
"puma_d4": 400,
|
|
"puma_d6": 95
|
|
},
|
|
"limitsSource": "linuxcnc-ini (missing: J5)"
|
|
},
|
|
{
|
|
"machineId": "puma-genserkins",
|
|
"coordinates": "XYZABC",
|
|
"entrypoint": "linuxcnc/configs/sim/axis/vismach/puma/puma560.ini",
|
|
"kinematics": "genserkins",
|
|
"jointCount": 6,
|
|
"jointOrder": [
|
|
"J0",
|
|
"J1",
|
|
"J2",
|
|
"J3",
|
|
"J4",
|
|
"J5"
|
|
],
|
|
"limitsByJoint": [
|
|
[
|
|
-180.0,
|
|
180.0
|
|
],
|
|
[
|
|
-360.0,
|
|
360.0
|
|
],
|
|
[
|
|
-215.0,
|
|
35.0
|
|
],
|
|
[
|
|
-360.0,
|
|
360.0
|
|
],
|
|
[
|
|
-360.0,
|
|
360.0
|
|
],
|
|
[
|
|
-360.0,
|
|
360.0
|
|
]
|
|
],
|
|
"declaredKinematicsJointCount": 6,
|
|
"extraJointCount": 0,
|
|
"parameters": {
|
|
"dh_joint_count": 6,
|
|
"dh_a": [
|
|
0,
|
|
17,
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"dh_alpha": [
|
|
0,
|
|
1.570796326,
|
|
0,
|
|
1.570796326,
|
|
-1.570796326,
|
|
1.570796326
|
|
],
|
|
"dh_d": [
|
|
26.45,
|
|
-5.5,
|
|
0,
|
|
17.05,
|
|
0,
|
|
2.2
|
|
]
|
|
},
|
|
"limitsSource": "linuxcnc-ini"
|
|
},
|
|
{
|
|
"machineId": "trivkins-xyzab",
|
|
"coordinates": "XYZAB",
|
|
"entrypoint": "linuxcnc/configs/sim/woodpecker/woodpecker_xyzab.ini",
|
|
"kinematics": "trivkins",
|
|
"jointCount": 5,
|
|
"jointOrder": [
|
|
"X",
|
|
"Y",
|
|
"Z",
|
|
"A",
|
|
"B"
|
|
],
|
|
"limitsByJoint": [
|
|
[
|
|
-0.001,
|
|
520.0
|
|
],
|
|
[
|
|
-0.001,
|
|
630.0
|
|
],
|
|
[
|
|
-115.0,
|
|
10.0
|
|
],
|
|
null,
|
|
null
|
|
],
|
|
"declaredKinematicsJointCount": 5,
|
|
"extraJointCount": 0,
|
|
"parameters": {},
|
|
"limitsSource": "linuxcnc-ini (missing: A,B)"
|
|
},
|
|
{
|
|
"machineId": "trivkins-xyzcw",
|
|
"coordinates": "XYZCW",
|
|
"entrypoint": "linuxcnc/configs/sim/gmoccapy/gmoccapy_XYZCW.ini",
|
|
"kinematics": "trivkins",
|
|
"jointCount": 5,
|
|
"jointOrder": [
|
|
"X",
|
|
"Y",
|
|
"Z",
|
|
"C",
|
|
"W"
|
|
],
|
|
"limitsByJoint": [
|
|
[
|
|
-0.0,
|
|
600.0
|
|
],
|
|
[
|
|
-0.0,
|
|
400.0
|
|
],
|
|
[
|
|
-400.0,
|
|
4.0
|
|
],
|
|
null,
|
|
[
|
|
-2.0,
|
|
4.0
|
|
]
|
|
],
|
|
"declaredKinematicsJointCount": 5,
|
|
"extraJointCount": 0,
|
|
"parameters": {},
|
|
"limitsSource": "linuxcnc-ini (missing: C)"
|
|
},
|
|
{
|
|
"machineId": "trivkins-xyzya",
|
|
"coordinates": "XYZYA",
|
|
"entrypoint": "linuxcnc/configs/sim/woodpecker/woodpecker_xyzya.ini",
|
|
"kinematics": "trivkins",
|
|
"jointCount": 5,
|
|
"jointOrder": [
|
|
"X",
|
|
"Y",
|
|
"Z",
|
|
"Y#2",
|
|
"A"
|
|
],
|
|
"limitsByJoint": [
|
|
[
|
|
-0.001,
|
|
520.0
|
|
],
|
|
[
|
|
-0.001,
|
|
630.0
|
|
],
|
|
[
|
|
-115.0,
|
|
10.0
|
|
],
|
|
[
|
|
-0.001,
|
|
630.0
|
|
],
|
|
null
|
|
],
|
|
"declaredKinematicsJointCount": 5,
|
|
"extraJointCount": 0,
|
|
"parameters": {},
|
|
"limitsSource": "linuxcnc-ini (missing: A)"
|
|
},
|
|
{
|
|
"machineId": "scorbot-kins",
|
|
"coordinates": "XYZAB",
|
|
"entrypoint": "linuxcnc/configs/sim/axis/vismach/scorbot/scorbot.ini",
|
|
"kinematics": "scorbot-kins",
|
|
"jointCount": 5,
|
|
"jointOrder": [
|
|
"J0",
|
|
"J1",
|
|
"J2",
|
|
"J3",
|
|
"J4"
|
|
],
|
|
"limitsByJoint": [
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null
|
|
],
|
|
"declaredKinematicsJointCount": 5,
|
|
"extraJointCount": 0,
|
|
"parameters": {},
|
|
"limitsSource": "linuxcnc-ini (missing: J0,J1,J2,J3,J4)"
|
|
}
|
|
]
|
|
}
|