Get Robot Position
Get the current map and real-time coordinates of a specified robot.
Endpoint Information
Section titled “Endpoint Information”- Name: Get robot position
- Description: Returns the most recently reported position of a robot.
- Method:
POST - Path:
remoteApi/dogPos - Login required: No
- Permission required: Yes
Note: Authentication is required, and remote publishing must be enabled. In System Management > Parameter
Settings, set http_three_part_remote_upload to true.
Request Parameters
Section titled “Request Parameters”| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| dogCode | String | Yes | 001 | Robot code |
Example:
{ "dogCode": "001"}Response
Section titled “Response”| Parameter | Type | Example | Description |
|---|---|---|---|
| dogCode | String | 001 | Robot code |
| dogName | String | X30-1 | Robot name |
| x | String | -502.11 | x-coordinate, in cm |
| y | String | 1172.49 | y-coordinate, in cm |
| z | String | -67.65 | z-coordinate, in cm |
| yaw | String | 0.07 | Yaw angle, in rad |
| time | String | 2026-02-26 20:24:32.932 | Time at which the position was reported |
Example:
{ "success": true, "code": 200, "msg": "Operation succeeded", "data": "{\"dogCode\":\"001\",\"dogName\":\"X30-1\",\"x\":\"-643.23\",\"y\":\"1329.13\",\"yaw\":\"1.53\",\"z\":\"0.00\",\"time\":\"2026-02-26 20:24:32.932\"}"}