CmvrControlStation/docs/task-flow/example.server-export.json

1503 lines
65 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.

{
"executionPolicy": {
"automaticRetry": false,
"onError": "stop",
"order": "sequential",
"stopBehavior": "stop_scheduling_and_cancel_active_unary",
"waitStartsAfter": "operation_success"
},
"format": "cmvr.task-flow",
"groups": [
{
"id": "33a7f0ba-6beb-4774-b5b1-5b764c593680",
"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
},
"id": "4747c001-5cef-45cd-8daf-53b6db95936f",
"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
},
"id": "b76301ec-520a-4a90-b007-0840b70d9048",
"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
},
"id": "458cf1e9-baed-4478-94ce-b4b83ac82a89",
"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
},
"id": "a325f7d2-c4a9-475c-b945-f39b342a5511",
"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
},
"id": "c4574cc6-a6d1-4a05-9ee7-04db58335ab7",
"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
},
"id": "104bfb8b-3695-4dab-a5f2-2215bf8b5282",
"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
},
"id": "47afc797-7041-4f9a-bdec-7ae55acee32d",
"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
},
"id": "38e5c86d-83c7-4fb9-a52a-1a38cf4c882f",
"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
},
"id": "daa58640-a575-4b03-b5a8-0e5f76e40655",
"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
},
"id": "5660f447-fe18-4b7b-b4bf-cbfabcececfb",
"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
},
"id": "845cfd68-62a2-4c7b-86d2-0d253b72da40",
"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
},
"id": "c2c56eef-b25b-40fb-a958-46f255be6de9",
"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
},
"id": "75ebd6dd-d989-4d0e-bab8-1d55d399679f",
"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
},
"id": "dda5a413-72e4-477e-96f3-2179a17ce66d",
"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
},
"id": "080a79c5-dc13-4a1d-904e-5f2d3080666d",
"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
},
"id": "0205b7bc-11a3-4006-916f-bda7dfec1718",
"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
}
},
"id": "7f276588-ea95-4e6d-967f-912970e231eb",
"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": {
}
},
"id": "da815ca3-3ce5-46a5-b613-ac5abfaf907f",
"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": {
}
},
"id": "4799da27-00d2-4729-8dce-3f6f00aa7f71",
"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
},
"id": "1703bebf-9d76-4525-b03c-0c8e8e9f2a30",
"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
},
"id": "ee11a5a1-5d59-48d0-a330-a98357e502a5",
"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
},
"id": "34b6f6dc-26ce-4b27-9e00-63d149a9f285",
"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
},
"id": "d0ecce99-1167-45f6-8b27-0da01d078031",
"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
},
"id": "e22f3a67-c16a-4ae4-93f9-65c0374e92f5",
"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
},
"id": "e3a6a416-b5cb-43a9-bc01-6a5d2547b375",
"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
},
"id": "c4cbcbe6-d12e-46af-93f4-0661d5f1481f",
"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
},
"id": "ad3a8a64-5bf5-42a4-b24f-c78bf492fc4e",
"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
},
"id": "8893e630-90f8-4069-9919-71187a65a921",
"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
},
"id": "337ef37c-b0d0-43c4-a921-91cd16f73f33",
"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
},
"id": "e942b241-0a66-4029-b915-2f61f966af0b",
"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": {
}
},
"id": "66236fa9-6b08-46d5-bc90-ed007ff5ebd5",
"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": {
}
},
"id": "ae7eff1f-e82d-4b84-9d36-621b609e37b2",
"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
},
"id": "6543cb6c-21b7-47fc-bb9e-b1913f4a7016",
"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
},
"id": "9690be1b-9c83-4a6a-ba31-de6d4fd60884",
"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
},
"id": "0ec28a2c-b6f7-4ad8-96e1-f119134ca62b",
"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
},
"id": "4e2d35d1-0ae4-4589-b499-8f8a1335b441",
"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": {
}
},
"id": "79d905bb-8ac4-44f2-b251-9fff59eba2ac",
"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": {
}
},
"id": "78af5597-f9fd-46ce-85f0-9985592f02ce",
"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"
}
]
}
]
}