Create Robot Task
You can use this method to send a robot task to a robot. The robot adapter calls the physical robot’s corresponding interface to execute the robot task.
Normally, the robot adapter calls the physical robot’s interface only once for a specific robot task. If the warehouse robot controller calls this API method more than once, this method can handle duplicate calls.
Request
URI: /robots/{robotId}/robotTasks/{robotTaskId}
HTTP Method: POST
Request Parameters
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| robotId | Yes | String | Robot ID |
| robotTaskId | Yes | String | Robot task |
| robotTaskType | Yes | String (maximum 20 characters) | Robot task type
Possible values:
|
| parameters | No | Array | Structure of objects |
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| bin | Yes | String | Storage bin in SAP EWM |
| hu | Yes | String | Handling unit (HU) in SAP EWM |
| chargingPoint | Yes | String | Charging point |
| targetBatteryPercentage | Yes | Integer | When the robot's battery level reaches this threshold, the robot stops charging. Value range: 0~100 |
| thresholdBatteryPercentage | Yes | Integer | When the robot's battery level is below this threshold, the robot starts charging. Value range: 0~100. |
| position | Yes | String | The name of the target position. |
Response
| Code | Description |
|---|---|
| 201 | The request is processed successfully. |
| 400 | The server can't process the request. |
| 404 | Robot ID doesn't exist. |