Hierarchical STAG: One Factor Graph From Fleet to Wheels
A warehouse robot answers three questions at once. Which job do I take? Which path through the aisles? What do I send to the wheels right now? Most stacks give each question its own module. H-STAG puts them in one hierarchy of factor graphs in GTSAM. Each level sends a sub-goal down and a summary of what it saw back up.
My latest piece is the control architecture at the bottom of that stack. It has three layers. A decision layer picks a path of grid cells that satisfies a task, such as “visit X1, then X2”. A motion layer turns those cells into a smooth plan every 0.5 s. A feedback layer tracks that plan on a unicycle robot every 0.05 s. The decision layer works on a discrete space. The other two work on continuous states and share one GTSAM graph, solved with Levenberg–Marquardt.
The layers are simple on their own. The hard part is passing information between them. A plan adapter turns cells into motion objectives. Decode turns the motion plan into a reference for the feedback layer. Encode sends the measured position back up. The inspector shows which factor pulls on which variable at each of those hand-offs.
To test all of this I also built the warehouse in NVIDIA Isaac Sim. Pallet trucks and counterbalance AMRs drive through palletizing, staging, drop, marshalling, and outbound dock zones. The scene gives ground truth to check the estimates against.



