Fleet integrations
Handle commands
Receive navigation and door commands and confirm them.
REMI sends one command to one bot at a time. You accept it at once, and report its progress in the bot's state.
| Command | Does | Required |
|---|---|---|
navigate_to | Drive to lat, lng. | Yes |
cancel_navigation | Stop the current navigation. | Yes |
set_door | Open or close the cargo door. | No |
All fields: BotCommand.
Accept, then report
- REMI calls
POST /bots/{bot_id}/commands(or publishes it over MQTT). - Answer
202with a CommandStatus in stateaccepted, as soon as it is queued. Do not wait for the bot. - Report its progress in
current_commandof the bot's state:executing, thensucceededorfailed.
- 01
acceptedQueued - 02
executingIn progress - 03
succeededDone
Rules
- Idempotent on
(bot_id, id). An unconfirmed command is sent again with the sameidevery 10 seconds, 3 times in total. Answer a repeat exactly as the first one. - Only
202with a valid body counts. Any other2xx, or a bad body, is treated as not received. - Reject with a reason. Answer
404 BOT_NOT_FOUND,409 BOT_BUSY,409 COMMAND_EXPIRED,422 UNSUPPORTED_COMMANDor422 DESTINATION_UNREACHABLE, or reportstate: rejected. A rejection is final. - A failed navigation is retried. After
failed, REMI sendsnavigate_toagain under a new id (<id>~1,<id>~2), up to 5 times. - Interrupting. If you declared
supports_command_interrupt: true, a newnavigate_toreplaces the current one. Otherwise REMI sendscancel_navigationfirst and waits. - Doors.
set_doornever goes to a bot withhas_door: false, andclosednever to one withmanual_close_door: true.
Moved destinations
If a destination is off your network, you may move it: report corrected_position and correction_distance_m while the command runs. REMI expects the bot to stop there. If you cannot reach it at all, reject with DESTINATION_UNREACHABLE.