CmvrControlStation/resources/task_adapters.json

653 lines
19 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.

{
"client.arm.move_j": {
"rpc": {
"service": "cmvr.api.ArmService",
"method": "moveJ"
},
"parametersSchema": {
"type": "object",
"properties": {
"positions": {
"type": "array",
"items": {
"type": "number"
},
"description": "关节角数组 rad,长度为设备DOF"
},
"velocity": {
"type": "number",
"exclusiveMinimum": 0,
"description": "rad/s"
},
"acceleration": {
"type": "number",
"exclusiveMinimum": 0,
"description": "rad/s²"
}
},
"required": [
"positions",
"velocity",
"acceleration"
],
"additionalProperties": false
},
"successMeaning": "driver_motion_result",
"implementation": "positions -> target.position;速度/加速度 -> options;当前遨博等待运动完成,其他驱动以其返回语义为准。"
},
"client.arm.enable": {
"rpc": {
"service": "cmvr.api.ArmService",
"method": "torqueOn"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "选中deviceId写入通用请求头,不传运动目标。"
},
"client.arm.disable": {
"rpc": {
"service": "cmvr.api.ArmService",
"method": "torqueOff"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "选中deviceId写入通用请求头,不传运动目标。"
},
"client.arm.stop": {
"rpc": {
"service": "cmvr.api.ArmService",
"method": "stopMotion"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "选中deviceId写入通用请求头,不传运动目标。"
},
"client.arm.clear_fault": {
"rpc": {
"service": "cmvr.api.ArmService",
"method": "clearFault"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "选中deviceId写入通用请求头,不传运动目标。"
},
"client.camera.snapshot_rgb": {
"rpc": {
"service": "cmvr.api.CameraService",
"method": "GetRGBImage"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "image_callback",
"implementation": "获取图像并在客户端解码、展示;深度抓图需先查询设备能力,不支持时失败。"
},
"client.camera.snapshot_depth": {
"rpc": {
"service": "cmvr.api.CameraService",
"method": "GetDepthImage"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "image_callback",
"implementation": "获取图像并在客户端解码、展示;深度抓图需先查询设备能力,不支持时失败。"
},
"client.camera.preview_start": {
"rpc": {
"service": "cmvr.api.CameraService",
"method": "GetRGBImageStream"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "stream_started",
"implementation": "先GetStatus获取设备编码器,建立RGB视频流并展示结果;确认流已启动后本节点完成,流继续存在。"
},
"client.camera.preview_stop": {
"rpc": {
"service": "cmvr.api.CameraService",
"method": "GetRGBImageStream"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "stream_stopped",
"implementation": "取消/关闭该设备预览会话,确认流停止;不是重复提交Unary RPC。"
},
"client.camera.record_start": {
"rpc": {
"service": "cmvr.api.CameraService",
"method": "StartRecording"
},
"parametersSchema": {
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"description": "服务端录像路径"
}
},
"required": [
"path"
],
"additionalProperties": false
},
"successMeaning": "recording_started",
"implementation": "path由客户端映射到录制请求,记录状态确认启动后完成,不等待整段录像结束。"
},
"client.camera.record_stop": {
"rpc": {
"service": "cmvr.api.CameraService",
"method": "StopRecording"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "recording_stopped",
"implementation": "确认录制结束后继续。"
},
"client.agv.navigate_station": {
"rpc": {
"service": "cmvr.api.AgvService",
"method": "navigateToStation"
},
"parametersSchema": {
"type": "object",
"properties": {
"stationId": {
"type": "string",
"minLength": 1
},
"maxSpeed": {
"type": "number",
"exclusiveMinimum": 0,
"description": "m/s"
}
},
"required": [
"stationId",
"maxSpeed"
],
"additionalProperties": false
},
"successMeaning": "driver_navigation_result",
"implementation": "stationId -> station_id,maxSpeed -> options.max_speed;是否已到站以驱动同步/异步语义为准。"
},
"client.agv.stop": {
"rpc": {
"service": "cmvr.api.AgvService",
"method": "cancelNavigation"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用对应底盘操作。"
},
"client.agv.pause": {
"rpc": {
"service": "cmvr.api.AgvService",
"method": "pauseNavigation"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用对应底盘操作。"
},
"client.agv.resume": {
"rpc": {
"service": "cmvr.api.AgvService",
"method": "resumeNavigation"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用对应底盘操作。"
},
"client.dexhand.angle": {
"rpc": {
"service": "cmvr.api.DexHandService",
"method": "SetDexHandAngle"
},
"parametersSchema": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "number"
},
"description": "数值/数量由型号和对应Proto字段决定,不能假定是SI单位"
}
},
"required": [
"values"
],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "values通过已有DexHand客户端映射到对应请求;接口确认不等同于手指已到位。"
},
"client.dexhand.position": {
"rpc": {
"service": "cmvr.api.DexHandService",
"method": "SetDexHandPos"
},
"parametersSchema": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "number"
},
"description": "数值/数量由型号和对应Proto字段决定,不能假定是SI单位"
}
},
"required": [
"values"
],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "values通过已有DexHand客户端映射到对应请求;接口确认不等同于手指已到位。"
},
"client.dexhand.speed": {
"rpc": {
"service": "cmvr.api.DexHandService",
"method": "SetDexHandSpeed"
},
"parametersSchema": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "number"
},
"description": "数值/数量由型号和对应Proto字段决定,不能假定是SI单位"
}
},
"required": [
"values"
],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "values通过已有DexHand客户端映射到对应请求;接口确认不等同于手指已到位。"
},
"client.dexhand.force": {
"rpc": {
"service": "cmvr.api.DexHandService",
"method": "SetDexHandForce"
},
"parametersSchema": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "number"
},
"description": "数值/数量由型号和对应Proto字段决定,不能假定是SI单位"
}
},
"required": [
"values"
],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "values通过已有DexHand客户端映射到对应请求;接口确认不等同于手指已到位。"
},
"client.microphone.record_start": {
"rpc": {
"service": "cmvr.api.MicPhoneService",
"method": "StartRecord"
},
"parametersSchema": {
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"description": "服务端录音路径"
}
},
"required": [
"path"
],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "开始录音时 path -> file_path;停止节点结束录音。"
},
"client.microphone.record_stop": {
"rpc": {
"service": "cmvr.api.MicPhoneService",
"method": "StopRecord"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "开始录音时 path -> file_path;停止节点结束录音。"
},
"client.microphone.stream_start": {
"rpc": {
"service": "cmvr.api.MicPhoneService",
"method": "StreamAudio"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "stream_started",
"implementation": "维护服务端麦克风音频接收会话并在客户端播放;启动/停止状态确认后继续流程。"
},
"client.microphone.stream_stop": {
"rpc": {
"service": "cmvr.api.MicPhoneService",
"method": "StreamAudio"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "stream_stopped",
"implementation": "维护服务端麦克风音频接收会话并在客户端播放;启动/停止状态确认后继续流程。"
},
"client.speaker.file_play": {
"rpc": {
"service": "cmvr.api.SpeakerService",
"method": "PlayAudio"
},
"parametersSchema": {
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"description": "服务端音频文件路径"
}
},
"required": [
"path"
],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "path -> audio_path;不是上传本机文件。"
},
"client.speaker.file_stop": {
"rpc": {
"service": "cmvr.api.SpeakerService",
"method": "StopPlayback"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "停止服务端文件播放。"
},
"client.speaker.capture_stream_start": {
"rpc": {
"service": "cmvr.api.SpeakerService",
"method": "StreamAudio"
},
"parametersSchema": {
"type": "object",
"properties": {
"inputDevice": {
"type": "string",
"minLength": 1
},
"sampleRate": {
"type": "integer",
"minimum": 8000,
"maximum": 192000
},
"channels": {
"type": "integer",
"minimum": 1,
"maximum": 8
}
},
"required": [
"inputDevice",
"sampleRate",
"channels"
],
"additionalProperties": false
},
"successMeaning": "stream_started",
"implementation": "先建立扬声器发送流,再打开当前客户端本机麦克风采集PCM并编码为Proto音频帧传输;设备名属于当前客户端,网页端需由用户授权浏览器麦克风并提供对应适配,不能直接使用Qt音频设备名。"
},
"client.speaker.stream_start": {
"rpc": {
"service": "cmvr.api.SpeakerService",
"method": "StreamAudio"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "stream_started",
"implementation": "开始仅建立发送会话,不自动产生音频;停止会停止本地音源并结束发送会话。"
},
"client.speaker.stream_stop": {
"rpc": {
"service": "cmvr.api.SpeakerService",
"method": "StreamAudio"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "stream_stopped",
"implementation": "开始仅建立发送会话,不自动产生音频;停止会停止本地音源并结束发送会话。"
},
"client.biohead.happy": {
"rpc": {
"service": "cmvr.api.BioHeadService",
"method": "Happy"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用服务端预设操作;说话动作不等于音频播放,状态查询不保证包含真实舵机状态,成功不保证物理动作已到位。"
},
"client.biohead.surprise": {
"rpc": {
"service": "cmvr.api.BioHeadService",
"method": "Surprise"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用服务端预设操作;说话动作不等于音频播放,状态查询不保证包含真实舵机状态,成功不保证物理动作已到位。"
},
"client.biohead.tired": {
"rpc": {
"service": "cmvr.api.BioHeadService",
"method": "ExpressionTired"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用服务端预设操作;说话动作不等于音频播放,状态查询不保证包含真实舵机状态,成功不保证物理动作已到位。"
},
"client.biohead.angry": {
"rpc": {
"service": "cmvr.api.BioHeadService",
"method": "ExpressionAngry"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用服务端预设操作;说话动作不等于音频播放,状态查询不保证包含真实舵机状态,成功不保证物理动作已到位。"
},
"client.biohead.sad": {
"rpc": {
"service": "cmvr.api.BioHeadService",
"method": "ExpressionSadness"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用服务端预设操作;说话动作不等于音频播放,状态查询不保证包含真实舵机状态,成功不保证物理动作已到位。"
},
"client.biohead.yawn": {
"rpc": {
"service": "cmvr.api.BioHeadService",
"method": "ExpressionYawn"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用服务端预设操作;说话动作不等于音频播放,状态查询不保证包含真实舵机状态,成功不保证物理动作已到位。"
},
"client.biohead.speak_start": {
"rpc": {
"service": "cmvr.api.BioHeadService",
"method": "SpeakStart"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用服务端预设操作;说话动作不等于音频播放,状态查询不保证包含真实舵机状态,成功不保证物理动作已到位。"
},
"client.biohead.speak_stop": {
"rpc": {
"service": "cmvr.api.BioHeadService",
"method": "SpeakStop"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用服务端预设操作;说话动作不等于音频播放,状态查询不保证包含真实舵机状态,成功不保证物理动作已到位。"
},
"client.biohead.emergency_stop": {
"rpc": {
"service": "cmvr.api.BioHeadService",
"method": "EmergencyStop"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用服务端预设操作;说话动作不等于音频播放,状态查询不保证包含真实舵机状态,成功不保证物理动作已到位。"
},
"client.biohead.check": {
"rpc": {
"service": "cmvr.api.BioHeadService",
"method": "GetSystemStatus"
},
"parametersSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"successMeaning": "rpc_response",
"implementation": "调用服务端预设操作;说话动作不等于音频播放,状态查询不保证包含真实舵机状态,成功不保证物理动作已到位。"
}
}