Fleet integrations

Integration kit

A reference adapter and simulator to start from.

Markdown

The external-fleet-kit is an open-source fleet adapter that implements this whole contract: it reports state, takes commands, confirms them in current_command and reports arrivals. It ships with simulated robots, so you can watch a delivery run end to end before writing any code.

Run it

You need the .env Robot.com sends you at onboarding.

Shell
git clone https://github.com/gokiwibot/external-fleet-kit && cd external-fleet-kit
pnpm install
cp /path/to/the/.env/you/received .env
pnpm efk check
pnpm efk start
CommandDoes
efk checkChecks your key, fleet, bots, sandbox and broker. Read-only.
efk startConnects your bots and shows a dashboard.
efk order createCreates a test delivery in your sandbox, to watch one of your bots take it.

The sandbox

Your sandbox is a location of your own, with test points and your bots already placed in it. Orders you create there go to your own bots, through the same dispatch as production. Nothing real is delivered.

From the simulator to your robots

Your robots plug in through one interface, RobotDriver: where the robot is, its battery and door, and how it navigates, cancels and opens. Implement it against your own robot API and run efk check again. Everything between REMI and the driver stays the kit's. The kit's README walks through each method.

When a bot gets no work

GET /fleet/bots shows each bot as REMI sees it. blocked_by names the reason, like disconnected or no_location.