Load Map in Roobt
POST/maps/load/:mapId
The Load Map in Robot request allows authenticated users to load a map into an ANSCER ROBOT. This request can only be accessed by users with the appropriate permissions, such as an administrator or developer.
To use this request, you need to provide the map's ID in the request URL.
Once ANSCER ANYA receives the request, it will verify that the specified map exist in the system and are compatible to load. If everything checks out, desired map will be loaded in the robot, which will then begin using it for navigation and other tasks.
It's important to note that loading a map into a robot may take some time, depending on the size of the map and the speed of the robot's network connection.
This request is useful for loading maps into ANSCER ROBOTS, such as when a robot needs to navigate a new facility or warehouse. It's important to ensure that the map being loaded is related to that particular environment
Request
Path Parameters
The ID of the map to load.
Responses
- 200
- 401
- 403
- 404
- 500
Map loaded
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 3 characters and <= 50 characters
properties object
origin object
position objectrequired
orientation objectrequired
createdBy object
The user who created this map
updatedBy object
The user who last updated this map
The date and time this user was created
The date and time this user was last updated
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"isActive": true,
"properties": {
"origin": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"orientation": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
}
},
"width": 0,
"height": 0,
"resolution": 0,
"previewUrl": "string"
},
"createdBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"updatedBy": {
"_id": "string",
"name": "string",
"email": "user@example.com"
},
"createdAt": "2024-12-03T13:26:27.450Z",
"updatedAt": "2024-12-03T13:26:27.450Z"
}
Unauthorized.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Authentication token not provided."
}
{
"message": "Authentication token not provided."
}
Forbidden.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Access to this resource is forbidden."
}
{
"message": "Access to this resource is forbidden."
}
Resource not found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Resource not found."
}
{
"message": "Resource not found."
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Internal Server Error. Please try again later."
}
{
"message": "Internal Server Error. Please try again later."
}