am-freescan/docs/arm-teaching-integration-20261029.json
lixiaolong 64db825a9f feat: 完善设备工作流集成、组合执行与主题适配
集成旋转底座、机械臂示教与坐标系,完善扫描参数、电量和框架点复用。增加组合执行、步骤进度与日志,优化首屏和流程画布性能,修复表头主题适配,并保留验证脚本和回归测试。
2026-11-02 17:38:34 +08:00

315 lines
12 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"date": "2026-10-29",
"feature": "机械臂示教与轨迹协议接入、中文组件及QUIC开启",
"result": "后端、工作流和界面已实现并部署;实机运动未自动执行,设备端SDK当前未就绪",
"source": {
"directory": "D:\\system\\document\\xwechat_files\\wxid_ib6teuhhu0mv22_12f1\\msg\\file\\2026-10\\AIMA_示教轨迹Proto说明_20261029",
"supplierCommit": "3b14ca97",
"read": [
"阅读说明.txt",
"机械臂示教与轨迹Proto接口说明.txt",
"protos/cmvr/api/arm_service.proto",
"protos/cmvr/api/arm_command.proto",
"protos/cmvr/api/common.proto",
"examples/device.json",
"examples/start_recording.json",
"examples/list.json",
"examples/move_to_start.json",
"examples/replay.json"
],
"protocols": {
"arm_service.proto": {
"sha256": "658350c6c635fa7402277feefdd46870b58f43b0ec1913f345f4153f50564bfb",
"matchesSupplier": true
},
"arm_command.proto": {
"sha256": "b55e2b86ff5dd400a51933cb0a4f37f973cf901017ba25e92652fa83a302e72d",
"matchesSupplier": true
}
},
"commonSemanticsUnchanged": true
},
"comparison": {
"originalArmRpcs": 17,
"updatedArmRpcs": 27,
"newTeachingRpcs": 8,
"newReadOnlyRpcs": [
"GetArmInfo",
"getRobotState"
],
"stopMotionReused": true,
"jointStateNewField": "current = 6,保留原有字段编号",
"additionalTypes": [
"ArmRobotMode",
"ArmSafetyMode",
"ArmControlMode",
"CartesianWrench",
"RobotState",
"GetArmInfo",
"GetRobotState",
"StartTrajectoryRecording",
"RecordedTrajectory",
"ListRecordedTrajectories",
"ReplayRecordedTrajectory"
],
"existingArmAndOtherDevicesPreserved": true
},
"components": [
{
"key": "ENTER_TEACHING_MODE",
"rpc": "EnterTeachingMode",
"name": "进入拖动示教"
},
{
"key": "START_TRAJECTORY_RECORDING",
"rpc": "StartTrajectoryRecording",
"name": "开始录制轨迹"
},
{
"key": "STOP_TRAJECTORY_RECORDING",
"rpc": "StopTrajectoryRecording",
"name": "停止并保存记录"
},
{
"key": "EXIT_TEACHING_MODE",
"rpc": "ExitTeachingMode",
"name": "退出拖动示教"
},
{
"key": "COMPLETE_TEACHING",
"rpc": "CompleteTeaching",
"name": "完成示教"
},
{
"key": "LIST_RECORDED_TRAJECTORIES",
"rpc": "ListRecordedTrajectories",
"name": "查询轨迹及录制状态"
},
{
"key": "MOVE_TO_TRAJECTORY_START",
"rpc": "MoveToTrajectoryStart",
"name": "低速运动到起点"
},
{
"key": "REPLAY_RECORDED_TRAJECTORY",
"rpc": "ReplayRecordedTrajectory",
"name": "平滑回放所选轨迹"
},
{
"key": "GET_ARM_INFO",
"rpc": "GetArmInfo",
"name": "查询机械臂信息"
},
{
"key": "GET_ROBOT_STATE",
"rpc": "getRobotState",
"name": "读取完整机械臂状态"
},
{
"key": "STOP_MOTION",
"rpc": "stopMotion",
"name": "停止机械臂运动"
}
],
"interface": {
"base": "/admin-api/cmvr/api/arm/teaching",
"GET": [
"getArmInfo",
"getRobotState",
"listRecordedTrajectories"
],
"POST": [
"enterTeachingMode",
"startTrajectoryRecording",
"stopTrajectoryRecording",
"exitTeachingMode",
"completeTeaching",
"moveToTrajectoryStart",
"replayRecordedTrajectory",
"stopMotion",
"validate"
],
"identity": "HTTP请求统一使用robotId与deviceId;内部按Proto将通用请求放在根节点、专用请求放在header,不能混用。",
"json": "字段使用lowerCamelCase,uint64转为字符串,时间戳按标准格式输出,保留默认false与0。",
"businessSuccess": "先检查gRPC状态,再检查success或header.success;缺失响应头或success=false均失败。运动不自动重发。",
"syncMotion": "到起点与回放均等待同步RPC完成后才完成节点,不将发送成功当作运动完成。"
},
"parameters": {
"fileName": "服务端文件名,不是本地路径,不超过120个UTF-8字节,拒绝目录分隔符、..、点开头与保留字符,不覆盖同名文件",
"samplingFrequencyHz": "0/省略使用100;支持1至100 Hz",
"speedRatio": "0/省略使用1;支持0.1至1,为时间倍率",
"limits": {
"maxVelocity": "rad/s,0使用0.3",
"maxAcceleration": "rad/s²,0使用0.5",
"maxJerk": "rad/s³,0使用2"
},
"moveToStart": "固定0.1 rad/s、0.1 rad/s²,不使用回放限值改变该起点运动",
"timeoutMs": {
"default": 10000,
"moveToStart": 150000,
"replay": 300000,
"range": "100至21600000整数毫秒,适配最长30分钟轨迹降速回放"
},
"references": "开始录制轨迹节点输出fileName,可直接引用给到起点、回放节点;无需下载再上传。"
},
"operatorGuide": {
"entry": "资源中心 → 设备 → 机械臂 → 示教,默认页为“示教与轨迹”",
"record": [
"现场确认目标设备和安全范围",
"必要时显式开启机械臂使能",
"进入拖动示教",
"填写新文件名与采样频率,开始录制轨迹",
"现场手动拖动",
"完成示教",
"确认文件出现在已保存轨迹列表且无recordingError"
],
"replay": [
"停止录制、退出示教、确保机械臂就绪",
"选择列表中的已有轨迹",
"低速运动到起点",
"确认起点后平滑回放,等待同步结果",
"需要中止时使用停止运动"
],
"release": "人工操作结束交给任务执行前,可确认停止整个机器人全部设备后使用“停止并释放工位”;关闭页面不会停止录制/运动。该功能复用已有权限和停止确认机制。",
"workflowRecord": "开始节点配置机械臂角色及类型2设备用途 → 进入拖动示教 → 开始录制轨迹 → 按业务需要等待采集 → 完成示教 → 查询轨迹及录制状态 → 结束",
"workflowReplay": "开始节点配置机械臂角色与设备用途 → 原有使能节点 → 低速运动到起点 → 平滑回放所选轨迹 → 结束;两个轨迹节点使用同一文件名或上游引用。"
},
"safetyAndLifecycle": [
"参数和设备归属在人工占用前校验,非法输入不会占住设备",
"人工操作沿用既有资源占用,读查询与停止通道保持可用",
"试运行/任务终止会停止运动、停止正在录制并退出拖动示教",
"停止后复查机械臂与录制状态;运行模式未知、缺少有效采样时间、仍在运动/录制/示教或通信不确定时保留占用",
"旧服务返回UNIMPLEMENTED时保留原SystemService停止路径;混合设备机器人继续执行完整停止路径",
"使能/去使能原接口补充业务反馈检查及10秒RPC超时,避免false反馈被当成功",
"回放前检查上电、制动、安全模式、已退出示教、未录制并确认起点;回放中禁止重复操作,停止按钮可用",
"状态读取不重叠,离开页面停止轮询;失败退避并在页面显示,不持续弹窗",
"原示例模型放在单独模型预览页,默认页使用真实状态;三维模型懒加载,离开时取消动画并释放渲染资源"
],
"quic": {
"enabled": true,
"port": 4433,
"protocol": "UDP",
"report": "docs/quic-enabled-20261029.json",
"sourceConfigurationAndTlsCopiedByExplicitUserRequest": true,
"realDiscoveredRobot": "AIMA-20261026-003",
"realDiscoveredDevices": [
"aubo_arm",
"src1100"
],
"effectiveGrpcEndpoint": "192.168.0.205:50052",
"permanentIdentityAndOriginalQuicDiscoveryPreserved": true
},
"tests": {
"backendLatestReports": {
"reportCount": 196,
"tests": 1294,
"failures": 0,
"errors": 0,
"skipped": 18,
"passed": 1276,
"scope": "完整回归后,对最终修改的机械臂相关套件再次执行;此处汇总本轮最新报告,不表示所有用例只执行一轮。"
},
"newArmTests": 16,
"frontendLogic": {
"passed": 163,
"failed": 0,
"finalChangedHelperRechecked": true
},
"typecheck": true,
"productionBuild": true,
"httpValidation": {
"passed": true,
"count": 46,
"scope": "HTTP validation and authorization; live device readiness is reported separately",
"report": ".local/arm-teaching-http.json"
},
"ui": [
"中文录制/回放组件保存",
"通过实际选择器引用上游fileName,保存quoteType=output",
"内存模拟进入示教、开始录制、完成并保存",
"同名轨迹前端拒绝覆盖",
"大于2^53样本数字符串显示无精度损失",
"到起点后允许回放",
"回放等待期间禁止重复点击,停止仍可用",
"模拟正常完成及回放中停止后的错误展示、界面恢复",
"真实页面默认示教页并显示2个文件",
"模型预览标识明确,返回真实页canvas数量从1恢复0,无示例坐标混入"
],
"logs": [
".local/logs/arm-teaching-full-regression.log",
".local/logs/arm-teaching-final-package.log",
".local/logs/arm-teaching-front-tests.log"
]
},
"realDevice": {
"initialReadOnly": {
"getArmInfoPassed": true,
"model": "aubo_i10H",
"dof": 6,
"getRobotStatePassed": true,
"listRecordedTrajectoriesPassed": true,
"trajectoryCount": 2
},
"latest": [
{
"operation": "getArmInfo",
"robotId": "AIMA-20261026-003",
"deviceId": "aubo_arm",
"passed": false,
"message": "查询机械臂信息失败:gRPC INTERNAL,RPC client has not connected"
},
{
"operation": "getRobotState",
"robotId": "AIMA-20261026-003",
"deviceId": "aubo_arm",
"passed": true,
"connected": true,
"moving": false,
"controlMode": "ARM_CONTROL_MODE_POSITION"
},
{
"operation": "listRecordedTrajectories",
"robotId": "AIMA-20261026-003",
"deviceId": "aubo_arm",
"passed": true,
"trajectoryCount": 2,
"recording": false,
"recordedSamplesType": "str"
}
],
"latestAllReadOnlyPassed": false,
"readinessLimit": "后续设备端GetArmInfo返回gRPC INTERNAL: RPC client has not connected;状态同时出现timestamp=0、运行/安全模式未知、未使能。系统显示状态待确认并禁止回放,不把这些默认值当作停止确认。需要现场恢复设备端SDK连接后再进行实机录制/回放。",
"actualMotionOrRecordingExecuted": false,
"hardwareControlRequestsFromVerification": 0
},
"deployment": {
"frontend": "http://192.168.0.222:5180",
"backendPort": 48090,
"quicUdpPort": 4433,
"backendPid": 63696,
"frontendPid": 116568,
"assetPrefix": "cold-1793256841200",
"realArmPage": "http://192.168.0.222:5180/device/mechanical_arm/cc35eee9e61243f088ef44b62c3938e8?robotId=AIMA-20261026-003&deviceId=aubo_arm"
},
"cleanup": {
"businessTestDataCreated": false,
"originalStopPendingOccupationsPreserved": true,
"realRobotAndDevicesPreserved": true,
"realTrajectoryFilesChanged": false,
"regressionCodeRetained": true,
"temporaryUiServiceAndBuildToRemove": false,
"temporaryUiServiceAndBuildRemoved": true,
"temporaryUiTabsClosed": 2,
"oldRuntimeBackupRemoved": true,
"productionPortsKept": {
"httpFrontend": 5180,
"httpBackend": 48090,
"quicUdp": 4433
}
},
"limits": [
"真实录制、使能及运动未自动执行;这些链路通过本机模拟gRPC和实际前端交互验证。",
"设备端SDK当前未就绪属于实机验证限制,未将只读查询部分成功描述为机械臂可以运动。",
"未提供真实机械臂URDF,原示例模型仅供预览,不伪装成当前机械臂模型。"
]
}