Send a Navigation Target
Send road-network coordinates to a specified robot as a navigation target.
Endpoint Information
Section titled “Endpoint Information”- Name: Send a navigation target
- Description: Directs a robot to the specified coordinates.
- Method:
POST - Path:
remoteApi/setPosToDog - Login required: No
- Permission required: Yes
Note: The robot must be in remote-control mode. Select a point on the road network whenever possible. See List nodes for the available road-network nodes.
Request Parameters
Section titled “Request Parameters”| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| dogCode | String | Yes | 001 | Robot code |
| edgeCode | String | Yes | Edge code | |
| x | String | Yes | x-coordinate | |
| y | String | Yes | y-coordinate | |
| z | String | No | z-coordinate |
Example:
{ "dogCode": "001", "edgeCode": "a001_3", "x": -501.5144372913229, "y": 1165.4871181800718, "z": 0}Response
Section titled “Response”| Field | Type | Example | Description |
|---|---|---|---|
| code | Integer | 200 | Status code |
| success | Boolean | true | Whether the request succeeded |
| msg | String | success | Response message |
Example:
{ "success": true, "code": 200, "msg": "Operation succeeded", "data": null}Error Codes
Section titled “Error Codes”| Code | Description |
|---|---|
| 400 | Invalid parameters |
| 401 | Unauthorized |
| 403 | Access denied |
| 404 | Resource not found |
| 500 | Internal server error |