From 6dec7125e9ac482ee42d0868ddca8815be54e785 Mon Sep 17 00:00:00 2001 From: yvan Date: Mon, 30 Jun 2025 19:03:53 +0800 Subject: [PATCH] ChargerTask --- src/core/script/RCSScript.ts | 5 +++-- src/types/RCS.d.ts | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/core/script/RCSScript.ts b/src/core/script/RCSScript.ts index 51dd497..63f8f2e 100644 --- a/src/core/script/RCSScript.ts +++ b/src/core/script/RCSScript.ts @@ -85,13 +85,14 @@ export default class RCSScript implements RCS { }) } - agvToCharger(agvId: string, chargerId: string, option?: any): Promise> { + agvToCharger(agvId: string, targetWayPointId: string, targetDirection: LLCDirection, option?: any): Promise> { return Request.request.post('/api/workbench/RcsController@agvToCharger', { projectUUID: worldModel.state.project_uuid, catalogCode: worldModel.state.catalogCode, envId: 1, agvId: agvId, - chargerId, + targetWayPointId, + targetDirection, option }) } diff --git a/src/types/RCS.d.ts b/src/types/RCS.d.ts index 8330d59..b0e1e43 100644 --- a/src/types/RCS.d.ts +++ b/src/types/RCS.d.ts @@ -53,10 +53,11 @@ declare interface RCS { /** * 机器人充电 * @param agvId 机器人ID - * @param chargerId 充电桩ID + * @param targetWayPointId 充电路标ID + * @param targetDirection 充电时车的方向 * @param option 其他选项 */ - agvToCharger(agvId: string, chargerId: string, option: AgvOptions = {}): Promise> + agvToCharger(agvId: string, targetWayPointId: string, targetDirection: LLCDirection, option: AgvOptions = {}): Promise> /** * 等待机器人任务完成