2026-11-18 09:22:04 +08:00
|
|
|
|
{
|
|
|
|
|
|
"executionPolicy": {
|
|
|
|
|
|
"automaticRetry": false,
|
|
|
|
|
|
"onError": "stop",
|
|
|
|
|
|
"order": "sequential",
|
|
|
|
|
|
"stopBehavior": "stop_scheduling_and_cancel_active_unary",
|
|
|
|
|
|
"waitStartsAfter": "operation_success"
|
|
|
|
|
|
},
|
|
|
|
|
|
"format": "cmvr.task-flow",
|
|
|
|
|
|
"groups": [
|
|
|
|
|
|
{
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "462644ae-a674-40c6-8837-8a94cfdb4caa",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"name": "offline example",
|
|
|
|
|
|
"nodes": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · navigateToStation",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "AGV",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "navigateToStation",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"options": {
|
|
|
|
|
|
"max_speed": 0.5
|
|
|
|
|
|
},
|
|
|
|
|
|
"station_id": "example"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.AgvService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "2572e392-ee21-4c06-bb68-0f59a3d9d2f5",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "导航站点",
|
|
|
|
|
|
"operationId": "cmvr.api.AgvService.navigateToStation",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "navigateToStation",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"options": {
|
|
|
|
|
|
"max_speed": 0.5
|
|
|
|
|
|
},
|
|
|
|
|
|
"station_id": "example"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.AgvService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · cancelNavigation",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "AGV",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "cancelNavigation",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.AgvService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "1c46a051-f643-4d78-98cc-427325e505b3",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "停止",
|
|
|
|
|
|
"operationId": "cmvr.api.AgvService.cancelNavigation",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "cancelNavigation",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.AgvService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · pauseNavigation",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "AGV",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "pauseNavigation",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.AgvService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "a9d3408f-1666-4ec9-aba6-bcf505e8d747",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "暂停",
|
|
|
|
|
|
"operationId": "cmvr.api.AgvService.pauseNavigation",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "pauseNavigation",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.AgvService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · resumeNavigation",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "AGV",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "resumeNavigation",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.AgvService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "08a22229-37ae-4f31-ae1f-64617dca7a95",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "继续",
|
|
|
|
|
|
"operationId": "cmvr.api.AgvService.resumeNavigation",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "resumeNavigation",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.AgvService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · Happy",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "仿生头",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "Happy",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "a71cef34-837d-4bef-9549-2d499d96c94d",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "高兴",
|
|
|
|
|
|
"operationId": "cmvr.api.BioHeadService.Happy",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "Happy",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · Surprise",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "仿生头",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "Surprise",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "e0816c07-4081-4d4c-8ac2-8225aff9dee3",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "惊讶",
|
|
|
|
|
|
"operationId": "cmvr.api.BioHeadService.Surprise",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "Surprise",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · ExpressionTired",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "仿生头",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "ExpressionTired",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "d76f12e0-fd8f-4ed9-8385-bad677882a4b",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "疲惫",
|
|
|
|
|
|
"operationId": "cmvr.api.BioHeadService.ExpressionTired",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "ExpressionTired",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · ExpressionAngry",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "仿生头",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "ExpressionAngry",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "05c928d9-0e19-4091-987c-4dce2de6e0fa",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "愤怒",
|
|
|
|
|
|
"operationId": "cmvr.api.BioHeadService.ExpressionAngry",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "ExpressionAngry",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · ExpressionSadness",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "仿生头",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "ExpressionSadness",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "99dea67b-e32d-4f47-9d7d-ce6a3144ecdb",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "悲伤",
|
|
|
|
|
|
"operationId": "cmvr.api.BioHeadService.ExpressionSadness",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "ExpressionSadness",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · ExpressionYawn",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "仿生头",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "ExpressionYawn",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "9284aba0-8a5c-40a1-b3e0-ea7e660f2e7f",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "打哈欠",
|
|
|
|
|
|
"operationId": "cmvr.api.BioHeadService.ExpressionYawn",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "ExpressionYawn",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · SpeakStart",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "仿生头",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "SpeakStart",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "b66b0572-e79d-4e87-a00d-404ee03d74d8",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "开始说话",
|
|
|
|
|
|
"operationId": "cmvr.api.BioHeadService.SpeakStart",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "SpeakStart",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · SpeakStop",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "仿生头",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "SpeakStop",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "7e93ae71-93ec-4cfe-af20-0ceccc9519a8",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "停止说话",
|
|
|
|
|
|
"operationId": "cmvr.api.BioHeadService.SpeakStop",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "SpeakStop",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · EmergencyStop",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "仿生头",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "EmergencyStop",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "18cf31ec-efac-4bab-afe7-65a7a04850f9",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "紧急停止",
|
|
|
|
|
|
"operationId": "cmvr.api.BioHeadService.EmergencyStop",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "EmergencyStop",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · GetSystemStatus",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "仿生头",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "GetSystemStatus",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "32764624-8279-4c18-aefb-b80800a4dca9",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "检查设备",
|
|
|
|
|
|
"operationId": "cmvr.api.BioHeadService.GetSystemStatus",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "GetSystemStatus",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.BioHeadService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · PlayAudio",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "扬声器",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "PlayAudio",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"audio_path": "example",
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.SpeakerService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "300fd86d-1b21-4f92-b8a1-60772a89b5fb",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "播放服务端文件",
|
|
|
|
|
|
"operationId": "cmvr.api.SpeakerService.PlayAudio",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "PlayAudio",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"audio_path": "example",
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.SpeakerService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · StopPlayback",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "扬声器",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "StopPlayback",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.SpeakerService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "24426aec-c0e2-446e-8829-f6d4c64c4abf",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "停止文件播放",
|
|
|
|
|
|
"operationId": "cmvr.api.SpeakerService.StopPlayback",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "StopPlayback",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.SpeakerService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "本机麦克风流播放",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "扬声器",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"adapter": "client.speaker.capture_stream_start",
|
|
|
|
|
|
"completion": "adapter_callback",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"kind": "client_adapter",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"channels": 1,
|
|
|
|
|
|
"inputDevice": "example",
|
|
|
|
|
|
"sampleRate": 48000
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "ca5c6e79-b3dd-431c-8f63-a111abc1089a",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "本机麦克风流播放",
|
|
|
|
|
|
"operationId": "client.speaker.capture_stream_start",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"channels": 1,
|
|
|
|
|
|
"inputDevice": "example",
|
|
|
|
|
|
"sampleRate": 48000
|
|
|
|
|
|
},
|
|
|
|
|
|
"serverCalls": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"clientStreaming": true,
|
|
|
|
|
|
"completion": "stream_started",
|
|
|
|
|
|
"defaultTimeoutMs": 180000,
|
|
|
|
|
|
"method": "StreamAudio",
|
|
|
|
|
|
"mode": "open_stream",
|
|
|
|
|
|
"notes": "先建立扬声器发送流,再打开当前客户端本机麦克风采集PCM并编码为Proto音频帧传输;设备名属于当前客户端,网页端需由用户授权浏览器麦克风并提供对应适配,不能直接使用Qt音频设备名。",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"requestType": "cmvr.api.StreamSpeakerAudioCommand.Request",
|
|
|
|
|
|
"responseType": "cmvr.api.StreamSpeakerAudioCommand.Feedback",
|
|
|
|
|
|
"rpcPath": "/cmvr.api.SpeakerService/StreamAudio",
|
|
|
|
|
|
"runtimeHeaderFields": [
|
|
|
|
|
|
"command_id",
|
|
|
|
|
|
"timestamp"
|
|
|
|
|
|
],
|
|
|
|
|
|
"runtimeRequestFields": [
|
|
|
|
|
|
"audio"
|
|
|
|
|
|
],
|
|
|
|
|
|
"serverStreaming": false,
|
|
|
|
|
|
"service": "cmvr.api.SpeakerService",
|
|
|
|
|
|
"sessionKey": "cmvr.api.SpeakerService.StreamAudio:offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "停止音频流",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "扬声器",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"adapter": "client.speaker.stream_stop",
|
|
|
|
|
|
"completion": "adapter_callback",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"kind": "client_adapter",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "5c8a0947-20ac-4f80-b5da-e3375dd52d3e",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "停止音频流",
|
|
|
|
|
|
"operationId": "client.speaker.stream_stop",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
},
|
|
|
|
|
|
"serverCalls": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"clientStreaming": true,
|
|
|
|
|
|
"completion": "stream_stopped",
|
|
|
|
|
|
"defaultTimeoutMs": 180000,
|
|
|
|
|
|
"method": "StreamAudio",
|
|
|
|
|
|
"mode": "close_stream",
|
|
|
|
|
|
"notes": "开始仅建立发送会话,不自动产生音频;停止会停止本地音源并结束发送会话。",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"requestType": "cmvr.api.StreamSpeakerAudioCommand.Request",
|
|
|
|
|
|
"responseType": "cmvr.api.StreamSpeakerAudioCommand.Feedback",
|
|
|
|
|
|
"rpcPath": "/cmvr.api.SpeakerService/StreamAudio",
|
|
|
|
|
|
"runtimeHeaderFields": [
|
|
|
|
|
|
"command_id",
|
|
|
|
|
|
"timestamp"
|
|
|
|
|
|
],
|
|
|
|
|
|
"serverStreaming": false,
|
|
|
|
|
|
"service": "cmvr.api.SpeakerService",
|
|
|
|
|
|
"sessionKey": "cmvr.api.SpeakerService.StreamAudio:offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "开始音频流",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "扬声器",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"adapter": "client.speaker.stream_start",
|
|
|
|
|
|
"completion": "adapter_callback",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"kind": "client_adapter",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "08a2ee16-1b63-4c28-9445-9bea74a35149",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "开始音频流",
|
|
|
|
|
|
"operationId": "client.speaker.stream_start",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
},
|
|
|
|
|
|
"serverCalls": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"clientStreaming": true,
|
|
|
|
|
|
"completion": "stream_started",
|
|
|
|
|
|
"defaultTimeoutMs": 180000,
|
|
|
|
|
|
"method": "StreamAudio",
|
|
|
|
|
|
"mode": "open_stream",
|
|
|
|
|
|
"notes": "开始仅建立发送会话,不自动产生音频;停止会停止本地音源并结束发送会话。",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"requestType": "cmvr.api.StreamSpeakerAudioCommand.Request",
|
|
|
|
|
|
"responseType": "cmvr.api.StreamSpeakerAudioCommand.Feedback",
|
|
|
|
|
|
"rpcPath": "/cmvr.api.SpeakerService/StreamAudio",
|
|
|
|
|
|
"runtimeHeaderFields": [
|
|
|
|
|
|
"command_id",
|
|
|
|
|
|
"timestamp"
|
|
|
|
|
|
],
|
|
|
|
|
|
"runtimeRequestFields": [
|
|
|
|
|
|
"audio"
|
|
|
|
|
|
],
|
|
|
|
|
|
"serverStreaming": false,
|
|
|
|
|
|
"service": "cmvr.api.SpeakerService",
|
|
|
|
|
|
"sessionKey": "cmvr.api.SpeakerService.StreamAudio:offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · moveJ",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "机械臂",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "moveJ",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"options": {
|
|
|
|
|
|
"acceleration": 0.5,
|
|
|
|
|
|
"jerk": 0,
|
|
|
|
|
|
"velocity": 0.5
|
|
|
|
|
|
},
|
|
|
|
|
|
"target": {
|
|
|
|
|
|
"position": [
|
|
|
|
|
|
0.1,
|
|
|
|
|
|
0.2
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.ArmService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "7a653b1b-e0f9-4256-af05-5b7c091acf8a",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "MoveJ",
|
|
|
|
|
|
"operationId": "cmvr.api.ArmService.moveJ",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "moveJ",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"options": {
|
|
|
|
|
|
"acceleration": 0.5,
|
|
|
|
|
|
"jerk": 0,
|
|
|
|
|
|
"velocity": 0.5
|
|
|
|
|
|
},
|
|
|
|
|
|
"target": {
|
|
|
|
|
|
"position": [
|
|
|
|
|
|
0.1,
|
|
|
|
|
|
0.2
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.ArmService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · torqueOn",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "机械臂",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "torqueOn",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.ArmService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "f4be6958-0216-43ce-9126-6a19957d2efd",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "使能",
|
|
|
|
|
|
"operationId": "cmvr.api.ArmService.torqueOn",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "torqueOn",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.ArmService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · torqueOff",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "机械臂",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "torqueOff",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.ArmService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "6591d283-a3e2-4b84-8b57-f2431b715ee0",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "去使能",
|
|
|
|
|
|
"operationId": "cmvr.api.ArmService.torqueOff",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "torqueOff",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.ArmService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · stopMotion",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "机械臂",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "stopMotion",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.ArmService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "58e93ec7-5081-4168-beaf-1d3a3998a1ed",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "停止",
|
|
|
|
|
|
"operationId": "cmvr.api.ArmService.stopMotion",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "stopMotion",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.ArmService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · clearFault",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "机械臂",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "clearFault",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.ArmService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "428ae96e-6942-4164-b95a-9c3074091f3f",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "清除故障",
|
|
|
|
|
|
"operationId": "cmvr.api.ArmService.clearFault",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "clearFault",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.ArmService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · SetDexHandAngle",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "灵巧手",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "SetDexHandAngle",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"values": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 0,
|
|
|
|
|
|
"value": 0.10000000149011612
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 1,
|
|
|
|
|
|
"value": 0.20000000298023224
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.DexHandService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "46d59eaf-af47-4da5-81a4-505323227139",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "设置角度",
|
|
|
|
|
|
"operationId": "cmvr.api.DexHandService.SetDexHandAngle",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "SetDexHandAngle",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"values": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 0,
|
|
|
|
|
|
"value": 0.10000000149011612
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 1,
|
|
|
|
|
|
"value": 0.20000000298023224
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.DexHandService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · SetDexHandPos",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "灵巧手",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "SetDexHandPos",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"values": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 0,
|
|
|
|
|
|
"value": 0.10000000149011612
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 1,
|
|
|
|
|
|
"value": 0.20000000298023224
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.DexHandService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "a2a1c709-e3af-4ec4-8082-caabfb86cc9e",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "设置位置",
|
|
|
|
|
|
"operationId": "cmvr.api.DexHandService.SetDexHandPos",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "SetDexHandPos",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"values": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 0,
|
|
|
|
|
|
"value": 0.10000000149011612
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 1,
|
|
|
|
|
|
"value": 0.20000000298023224
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.DexHandService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · SetDexHandSpeed",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "灵巧手",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "SetDexHandSpeed",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"values": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 0,
|
|
|
|
|
|
"value": 0.10000000149011612
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 1,
|
|
|
|
|
|
"value": 0.20000000298023224
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.DexHandService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "b4088c48-1ed6-4830-bbdb-f658e2d11048",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "设置速度",
|
|
|
|
|
|
"operationId": "cmvr.api.DexHandService.SetDexHandSpeed",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "SetDexHandSpeed",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"values": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 0,
|
|
|
|
|
|
"value": 0.10000000149011612
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 1,
|
|
|
|
|
|
"value": 0.20000000298023224
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.DexHandService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · SetDexHandForce",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "灵巧手",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "SetDexHandForce",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"values": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 0,
|
|
|
|
|
|
"value": 0.10000000149011612
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 1,
|
|
|
|
|
|
"value": 0.20000000298023224
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.DexHandService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "e2800d45-c6ba-42f6-b8e0-c5c9fb6df976",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "设置力",
|
|
|
|
|
|
"operationId": "cmvr.api.DexHandService.SetDexHandForce",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "SetDexHandForce",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"values": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 0,
|
|
|
|
|
|
"value": 0.10000000149011612
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"id": 1,
|
|
|
|
|
|
"value": 0.20000000298023224
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.DexHandService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · GetRGBImage",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "相机",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "GetRGBImage",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.CameraService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "84601aaa-b84f-43dd-9f1e-442c47dd7a3d",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "RGB抓图",
|
|
|
|
|
|
"operationId": "cmvr.api.CameraService.GetRGBImage",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "GetRGBImage",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.CameraService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · GetDepthImage",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "相机",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "GetDepthImage",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.CameraService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "8ae46e9c-8ee4-4550-9f22-41290a4ec971",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "深度抓图",
|
|
|
|
|
|
"operationId": "cmvr.api.CameraService.GetDepthImage",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "GetDepthImage",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.CameraService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "开始预览",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "相机",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"adapter": "client.camera.preview_start",
|
|
|
|
|
|
"completion": "adapter_callback",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"kind": "client_adapter",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "a6582031-bb3b-45f8-adf3-48273a3874b2",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "开始预览",
|
|
|
|
|
|
"operationId": "client.camera.preview_start",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
},
|
|
|
|
|
|
"serverCalls": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"clientStreaming": false,
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"defaultTimeoutMs": 180000,
|
|
|
|
|
|
"id": "cmvr.api.CameraService.GetStatus",
|
|
|
|
|
|
"method": "GetStatus",
|
|
|
|
|
|
"mode": "unary",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"requestType": "cmvr.api.GetCameraStateCommand.Request",
|
|
|
|
|
|
"responseType": "cmvr.api.GetCameraStateCommand.Feedback",
|
|
|
|
|
|
"rpcPath": "/cmvr.api.CameraService/GetStatus",
|
|
|
|
|
|
"serverStreaming": false,
|
|
|
|
|
|
"service": "cmvr.api.CameraService"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"clientStreaming": false,
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"defaultTimeoutMs": 180000,
|
|
|
|
|
|
"id": "cmvr.api.CameraService.StartCamera",
|
|
|
|
|
|
"method": "StartCamera",
|
|
|
|
|
|
"mode": "unary",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"requestType": "cmvr.api.StartCameraCommand.Request",
|
|
|
|
|
|
"responseType": "cmvr.api.StartCameraCommand.Feedback",
|
|
|
|
|
|
"rpcPath": "/cmvr.api.CameraService/StartCamera",
|
|
|
|
|
|
"serverStreaming": false,
|
|
|
|
|
|
"service": "cmvr.api.CameraService"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"clientStreaming": true,
|
|
|
|
|
|
"completion": "stream_started",
|
|
|
|
|
|
"defaultTimeoutMs": 180000,
|
|
|
|
|
|
"method": "GetRGBImageStream",
|
|
|
|
|
|
"mode": "open_stream",
|
|
|
|
|
|
"notes": "先GetStatus获取设备编码器,建立RGB视频流并展示结果;确认流已启动后本节点完成,流继续存在。",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"requestType": "cmvr.api.GetRGBImageStreamCommand.Request",
|
|
|
|
|
|
"responseType": "cmvr.api.GetRGBImageStreamCommand.Feedback",
|
|
|
|
|
|
"rpcPath": "/cmvr.api.CameraService/GetRGBImageStream",
|
|
|
|
|
|
"runtimeHeaderFields": [
|
|
|
|
|
|
"command_id",
|
|
|
|
|
|
"timestamp"
|
|
|
|
|
|
],
|
|
|
|
|
|
"runtimeRequestFields": [
|
|
|
|
|
|
"audio"
|
|
|
|
|
|
],
|
|
|
|
|
|
"serverStreaming": true,
|
|
|
|
|
|
"service": "cmvr.api.CameraService",
|
|
|
|
|
|
"sessionKey": "cmvr.api.CameraService.GetRGBImageStream:offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "停止预览",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "相机",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"adapter": "client.camera.preview_stop",
|
|
|
|
|
|
"completion": "adapter_callback",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"kind": "client_adapter",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "820ff21b-4a0d-4e97-a3ee-96c8d8b7d8d1",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "停止预览",
|
|
|
|
|
|
"operationId": "client.camera.preview_stop",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
},
|
|
|
|
|
|
"serverCalls": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"clientStreaming": true,
|
|
|
|
|
|
"completion": "stream_stopped",
|
|
|
|
|
|
"defaultTimeoutMs": 180000,
|
|
|
|
|
|
"method": "GetRGBImageStream",
|
|
|
|
|
|
"mode": "close_stream",
|
|
|
|
|
|
"notes": "取消/关闭该设备预览会话,确认流停止;不是重复提交Unary RPC。",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"requestType": "cmvr.api.GetRGBImageStreamCommand.Request",
|
|
|
|
|
|
"responseType": "cmvr.api.GetRGBImageStreamCommand.Feedback",
|
|
|
|
|
|
"rpcPath": "/cmvr.api.CameraService/GetRGBImageStream",
|
|
|
|
|
|
"runtimeHeaderFields": [
|
|
|
|
|
|
"command_id",
|
|
|
|
|
|
"timestamp"
|
|
|
|
|
|
],
|
|
|
|
|
|
"serverStreaming": true,
|
|
|
|
|
|
"service": "cmvr.api.CameraService",
|
|
|
|
|
|
"sessionKey": "cmvr.api.CameraService.GetRGBImageStream:offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · StartRecording",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "相机",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "StartRecording",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"video_path": "example"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.CameraService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "b8fe3f1c-5bbe-43f4-97e8-13f8aa6913ab",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "开始录像",
|
|
|
|
|
|
"operationId": "cmvr.api.CameraService.StartRecording",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "StartRecording",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
},
|
|
|
|
|
|
"video_path": "example"
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.CameraService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · StopRecording",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "相机",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "StopRecording",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.CameraService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "7f1cdf4f-8aca-4aa5-adaa-dd58acefd18e",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "停止录像",
|
|
|
|
|
|
"operationId": "cmvr.api.CameraService.StopRecording",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "StopRecording",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.CameraService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · StartRecord",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "麦克风",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "StartRecord",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"file_path": "example",
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.MicPhoneService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "7fc6ff56-01dd-422b-b90c-39e733cb554e",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "开始录音",
|
|
|
|
|
|
"operationId": "cmvr.api.MicPhoneService.StartRecord",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "StartRecord",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"file_path": "example",
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.MicPhoneService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "接口 · StopRecord",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "麦克风",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"completion": "rpc_response",
|
|
|
|
|
|
"kind": "grpc_unary",
|
|
|
|
|
|
"method": "StopRecord",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.MicPhoneService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "f08159ae-d66a-4b0a-876d-e473577ac456",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "停止录音",
|
|
|
|
|
|
"operationId": "cmvr.api.MicPhoneService.StopRecord",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
"method": "StopRecord",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"service": "cmvr.api.MicPhoneService",
|
|
|
|
|
|
"timeoutMs": 180000
|
|
|
|
|
|
},
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "开始音频流",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "麦克风",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"adapter": "client.microphone.stream_start",
|
|
|
|
|
|
"completion": "adapter_callback",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"kind": "client_adapter",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "f66802c4-d72a-4abc-ab5f-c720966c687f",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "开始音频流",
|
|
|
|
|
|
"operationId": "client.microphone.stream_start",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
},
|
|
|
|
|
|
"serverCalls": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"clientStreaming": false,
|
|
|
|
|
|
"completion": "stream_started",
|
|
|
|
|
|
"defaultTimeoutMs": 180000,
|
|
|
|
|
|
"method": "StreamAudio",
|
|
|
|
|
|
"mode": "open_stream",
|
|
|
|
|
|
"notes": "维护服务端麦克风音频接收会话并在客户端播放;启动/停止状态确认后继续流程。",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"requestType": "cmvr.api.StreamMicAudioCommand.Request",
|
|
|
|
|
|
"responseType": "cmvr.api.StreamMicAudioCommand.Feedback",
|
|
|
|
|
|
"rpcPath": "/cmvr.api.MicPhoneService/StreamAudio",
|
|
|
|
|
|
"runtimeHeaderFields": [
|
|
|
|
|
|
"command_id",
|
|
|
|
|
|
"timestamp"
|
|
|
|
|
|
],
|
|
|
|
|
|
"serverStreaming": true,
|
|
|
|
|
|
"service": "cmvr.api.MicPhoneService",
|
|
|
|
|
|
"sessionKey": "cmvr.api.MicPhoneService.StreamAudio:offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"action": "停止音频流",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"deviceType": "麦克风",
|
|
|
|
|
|
"execution": {
|
|
|
|
|
|
"adapter": "client.microphone.stream_stop",
|
|
|
|
|
|
"completion": "adapter_callback",
|
|
|
|
|
|
"deviceId": "offline-device",
|
|
|
|
|
|
"kind": "client_adapter",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2026-11-25 17:25:39 +08:00
|
|
|
|
"id": "44149516-efd0-4f36-ba83-b704c8652fc3",
|
2026-11-18 09:22:04 +08:00
|
|
|
|
"kind": "task",
|
|
|
|
|
|
"name": "停止音频流",
|
|
|
|
|
|
"operationId": "client.microphone.stream_stop",
|
|
|
|
|
|
"parameters": {
|
|
|
|
|
|
},
|
|
|
|
|
|
"serverCalls": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"clientStreaming": false,
|
|
|
|
|
|
"completion": "stream_stopped",
|
|
|
|
|
|
"defaultTimeoutMs": 180000,
|
|
|
|
|
|
"method": "StreamAudio",
|
|
|
|
|
|
"mode": "close_stream",
|
|
|
|
|
|
"notes": "维护服务端麦克风音频接收会话并在客户端播放;启动/停止状态确认后继续流程。",
|
|
|
|
|
|
"request": {
|
|
|
|
|
|
"header": {
|
|
|
|
|
|
"device_id": "offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"requestType": "cmvr.api.StreamMicAudioCommand.Request",
|
|
|
|
|
|
"responseType": "cmvr.api.StreamMicAudioCommand.Feedback",
|
|
|
|
|
|
"rpcPath": "/cmvr.api.MicPhoneService/StreamAudio",
|
|
|
|
|
|
"runtimeHeaderFields": [
|
|
|
|
|
|
"command_id",
|
|
|
|
|
|
"timestamp"
|
|
|
|
|
|
],
|
|
|
|
|
|
"serverStreaming": true,
|
|
|
|
|
|
"service": "cmvr.api.MicPhoneService",
|
|
|
|
|
|
"sessionKey": "cmvr.api.MicPhoneService.StreamAudio:offline-device"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"waitMs": 0,
|
|
|
|
|
|
"waitUnit": "ms"
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|