Skip to content
radevgitPublic

About

Warehouse AMR/AGV fleet simulator: dispatching, traffic control and charging, with VDA 5050 LIF layouts.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

91 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

botsim

Warehouse fleet simulator for mobile robots (AMR, AGV, forklifts). Test your fleet logic before you connect real robots.

  • Dispatching, traffic control and charging
  • VDA 5050 LIF layouts
  • Runs headless, 12 hours of warehouse work in minutes
  • Measured on throughput, waiting, deadlocks and collisions
  • Replay in a viewer or export as video

Robots in a simulated warehouse

Video: a run on a more complex warehouse, 6:40

12 h run, 90 robots, mixed fleet
jobs offered   10,836  (about 900 per hour, 3x what the fleet can carry)
jobs done       3,130
collisions          0
deadlocks           3  (25 to 60 s each, all resolved)

VDA 5050

  • Layouts: LIF files
  • Messages: standard VDA 5050 3.0.1, no custom fields, checked against the official schemas
  • Library only, no MQTT (details)

Quick start

# run a scenario, print a JSON summary
cargo run --release -p botsim -- scenarios/ring_jobs.toml

# check a layout without simulating
cargo run --release -p botsim-check -- scenarios/warehouse4.toml

# record a run and watch it
cargo run --release -p botsim -- --record run.jsonl scenarios/warehouse.toml
cargo run --release -p botsim-viewer -- run.jsonl

How a run works

flowchart LR
    scenario["Scenario file<br/>layout, robots, jobs"] --> run

    subgraph run["botsim"]
        sim["Simulator<br/>robots, doors, lifts"] -->|states| controller["Fleet controller<br/>jobs, routes, traffic"]
        controller -->|orders| sim
    end

    run --> summary["Summary (JSON)"]
    run --> recording["Recording"]
    recording --> viewer["Replay viewer"]
Loading

Workspace

botsim/
├── crates/
│   ├── model/         layout graph, robot types, path and safety geometry
│   ├── link/          compact messages: fleet server, robots, doors, lifts
│   ├── vda/           translation between link and VDA 5050 messages
│   ├── sim/           simulator: world, robots, orders, collisions, jobs
│   ├── scenario/      scenario file (TOML): loading, building the world
│   ├── router/        route search on the layout graph
│   ├── dispatcher/    jobs to robots, charging and parking trips
│   ├── server/        fleet server: control loop, slot for the traffic rules,
│   │                  traffic adapter
│   ├── baseline/      first come, first served traffic rules, kept as reference
│   ├── traffic/       passing order at shared spots (policy = "traffic")
│   ├── space/         swept robot outlines and the conflict map
│   ├── runner/        command line, JSON summary; connects the server and the
│   │                  simulator (package botsim)
│   ├── check/         static layout checker (checks: see its README)
│   ├── record/        recording of a run (JSON Lines)
│   ├── replay/        recording of the fleet server's inputs, and replay
│   ├── export/        PNG frames for videos, layout generators
│   └── viewer/        replay window, check overlay, usage heat map
└── scenarios/         example scenarios and layouts

Each crate's package is botsim-<folder>, except the runner, which is botsim.

Details: run, check, conflict map, viewer, video.

Licence

MIT

About

Warehouse AMR/AGV fleet simulator: dispatching, traffic control and charging, with VDA 5050 LIF layouts.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages