Skip to content

Palletizing ​

SUMMARY

Stack and palletize boxes, validated first in Isaac Sim

Tutorial ​

All example code and USD assets for this demo live in the isaacsim-examples repository.

  1. Start Isaac Sim.
  2. Load the environment — open isaacsim-examples/assets/environments/palletizing/palletizing_rough_scene.usd
  3. Run the code — isaacsim-examples/examples/palletizing.py

Plan the Placement Pattern ​

A pallet recipe specifies the positions and orientations within a layer, the sequence of layers, and the order of placement. TF Pattern Layouts represents those decisions as slots relative to the pallet frame. These recipes are building blocks for an application; they are separate from the simulation demo above.

Choose the Arrangement ​

A pallet pattern trades off three things: stability (whether layers are tied together so the load does not shift), compression strength (whether carton corners and walls sit directly on those below), and footprint use (how much of the pallet the cartons cover). The common arrangements below make different trade-offs. TF has no dedicated pallet-pattern functions; each arrangement is composed from the pattern Skills.

ArrangementWhat it looks likeWhy choose itCompose it with TF
Column / blockEvery layer is identical, so each carton sits directly on the one below.Highest compression strength, because walls and corners line up. Layers are not tied together, so the load usually needs stretch wrap or slip sheets to stay stable.Generate Grid, then repeat the same layout with Stack Slots.
BrickRows are offset, like brickwork, so cartons bridge the seams of the cartons beside or below them.Ties cartons together for a steadier load, at some cost in compression strength.Generate Staggered Grid offsets rows within one layer. Define separate A/B layouts if successive layers must also differ.
InterlockedEach layer is turned relative to the one below, usually by 90° or 180°.The most stable common pattern, because every layer crosses the seams beneath it. Requires a layout that still fits the pallet once turned.Define two layouts that fit the pallet and stack them in an ABAB sequence. Rotate Slots can make a rotated variant when its footprint still fits.
Partially interlockedInterlocked layers are mixed with repeated ones, for example two identical layers, then two turned layers.A middle ground between column strength and interlocked stability.Supply the required layer variants and choose an explicit sequence, such as AABB; the sequence alone does not guarantee interlocking.
PinwheelCartons are grouped in four blocks around the centre, each block turned 90° from the next, often leaving a small gap in the middle.Fills a pallet well when the carton size does not divide evenly into the pallet's length and width, and the turned blocks lock each other in place.Position groups around a centre, rotate each group as needed, and join them with Combine Slots. Check the central gap and all carton footprints.
Split block / mixed sectionsThe pallet is divided into sections, each with its own carton orientation or product.Gets the best coverage from awkward carton sizes, or builds mixed-product pallets.Generate each section separately, translate it into place, and combine the groups. Tag Slots can identify the product assigned to each group.

Offsets between rows and offsets between layers are different choices. Likewise, changing a slot's yaw turns the carton at that position; rotating a layout turns both its positions and yaw. Neither operation automatically repacks the cartons to fit the pallet.

Example: Repeated and Alternating Layers ​

This geometry example uses a 1.2 m by 1.2 m square pallet and 0.3 m by 0.2 m cartons, with a layer height of 0.2 m. The pallet frame's origin is the lower-left corner of its top surface; X and Y follow its edges and Z points upward. Slots mark carton footprint centres at the supporting surface of each layer.

python
from telekinesis.tf import tfpattern

layer_a = tfpattern.generate_grid(
    columns=4,
    rows=6,
    pitch=(0.3, 0.2),
    origin=(0.15, 0.1),
)

# A column stack repeats the same 24 positions on every layer.
column_stack = tfpattern.stack_slots(
    [layer_a], layers=4, layer_heights=0.2,
)

# The square pallet also accommodates the whole layer rotated by 90 degrees.
layer_b = tfpattern.rotate_slots(layer_a, angle_deg=90.0, about=(0.6, 0.6))
alternating_stack = tfpattern.stack_slots(
    [layer_a, layer_b], layers=4, layer_heights=0.2, sequence="ABAB",
)

print(len(column_stack), len(alternating_stack))  # 96 placements each

The dimensions tile the square exactly to make the geometry easy to inspect. A production recipe needs clearance and dimensional tolerances; adjust the pitch, counts, and margins accordingly. A rotated layer that fits this square may overhang a rectangular pallet. The example generates placements, not a packing optimizer or a stability assessment.

From Slots to Robot Targets ​

  1. Register the pallet frame in the TransformTree.
  2. Choose a placement order with Order Slots.
  3. Convert each slot with Convert Slot To Transformation Matrix, then compose the carton and tool offsets for the chosen grasp. A supporting-surface slot is not yet a tool-centre-point pose.
  4. Transform the target into the robot base frame and add approach, placement, release, and retreat motions in the application.
  5. Check carton footprints, layer support, reach, and collisions, then validate the sequence in simulation before testing it on hardware.

TF supplies the layout geometry and coordinate transforms. Gripper choice, load capacity, packaging strength, and motion planning belong to the application.