Browse Source

ChargerTask

master
修宁 6 months ago
parent
commit
6dec7125e9
  1. 5
      src/core/script/RCSScript.ts
  2. 5
      src/types/RCS.d.ts

5
src/core/script/RCSScript.ts

@ -85,13 +85,14 @@ export default class RCSScript implements RCS {
})
}
agvToCharger(agvId: string, chargerId: string, option?: any): Promise<ServerResponse<boolean>> {
agvToCharger(agvId: string, targetWayPointId: string, targetDirection: LLCDirection, option?: any): Promise<ServerResponse<boolean>> {
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
})
}

5
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<ServerResponse<boolean>>
agvToCharger(agvId: string, targetWayPointId: string, targetDirection: LLCDirection, option: AgvOptions = {}): Promise<ServerResponse<boolean>>
/**
*

Loading…
Cancel
Save