Skip to content
PalletLab

Box 0 of 0

Robots that think in boxes.

Learn robotics with C++ by building the brain of a palletizing robot: where every carton goes, why it stays up, and how a warehouse decides what ships next.

0%filled

Every carton is a decision.

A robot cell gets mixed cartons on a conveyor and has seconds to choose a spot for each. A good spot packs tightly. A safe spot keeps the stack standing through wrapping and a truck ride.

Supported from below

At least 75% of a carton's base must rest on something, and its center of mass must sit inside the support polygon.

Heavy never on light

A carton may not crush a lighter one under it. The stack gets heavier towards the deck, so the center of mass stays low.

Reachable from above

A suction gripper comes straight down. A spot under an overhang may be free, but the robot can't get there.

What a palletizing cell really does.

Placing cartons is only one part. A real cell has to see them, grip them, stack them in patterns that survive the truck, and take pallets apart again on the other end.

Two ways to think.

Greedy fills rows and never looks back. Extreme points searches every corner the stack creates and scores them. Same 40 cartons, very different pallets.

From one pallet to a whole shift.

Orders for three stores arrive all day. Pack them one by one and pallets ship half empty. Wait for a full wave and they ship full, a little later. That trade-off is the job of a warehouse execution system.

One by one

15

pallets

19%

average fill

0:17:17

shift length

Waves

7

pallets

42%

average fill

0:25:11

shift length

Then the real world shows up.

Cameras misjudge a corner by a few millimetres. Cartons arrive dented. A safety fence opens. Real planners are built for all of it, and the docs walk through how.

Orange industrial robot arms on a production line
01Perception noise
A tall stack of cartons in a warehouse
02Cycle time
An orange robotic hand reaching forward
03Safety

Built the way industry builds.

C++20 with CMake, vcpkg and GoogleTest. Eigen for poses. A real ROS 2 package. The same engine compiled to WebAssembly runs in this page.

C++20CMakeROS 2WebAssemblyDockerGitHub Actionsthree.jsTypeScriptNext.jsVercelLinuxvcpkgGoogleTestEigenfmtnlohmann/jsonPlaywrightMoveIt

Learn it in order.

Twenty-three short chapters, each with a live 3D model next to the text.

Made in the spirit of Japanese robotics.

This project takes its inspiration from industry leaders in Japanese warehouse robotics, whose intelligent palletizing and picking systems run real factories. Everything here is an independent learning project.

Start with one box.

No account needed. Read, play with the simulator, and ask the assistant anything along the way.