Get Robot Mode Info
The GET_ROBOT_MODE_INFO command allows the fleet manager to check the current status of robot mode in the lobby. This command returns information about whether robot mode is active, which lift is reserved (if any), and timing information.
WebSocket API
Command
- Command:
GET_ROBOT_MODE_INFO
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
command | String | Yes | GET_ROBOT_MODE_INFO |
requestId | String | Yes | Unique identifier for the request |
Response
| Field | Type | Description |
|---|---|---|
requestId | String | Unique identifier for the request |
status | String | Status of the request (success or error) |
code | String | Response code (e.g., GET_ROBOT_MODE_INFO_OK) |
message | String | Descriptive message about the response |
info.status | String | Robot mode status: DISABLED, ACTIVATING, ENABLED, or DEACTIVATING |
info.reservedLiftId | String | null | ID of the lift reserved for robot mode, or null if no lift is reserved |
info.activeSince | Number | null | Timestamp (ms) when robot mode was activated, or null if not active |
info.lastActive | Number | null | Timestamp (ms) when robot mode was last deactivated, or null if never used |
Example Request
{
"requestId": "a1b2c3f5",
"command": "GET_ROBOT_MODE_INFO"
}
Expected Response
- When Robot Mode is Disabled:
{
"requestId": "a1b2c3f5",
"status": "success",
"code": "GET_ROBOT_MODE_INFO_OK",
"message": "Robot mode info",
"info": {
"status": "DISABLED",
"reservedLiftId": null,
"activeSince": null,
"lastActive": 1699459200000
}
}
- When Robot Mode is Enabled:
{
"requestId": "a1b2c3f5",
"status": "success",
"code": "GET_ROBOT_MODE_INFO_OK",
"message": "Robot mode info",
"info": {
"status": "ENABLED",
"reservedLiftId": "lift1",
"activeSince": 1699459800000,
"lastActive": null
}
}