verifying-build-against-model
Compares a brick build with its target model up to the current step - LTRON's assembly matching (the best assignment of observed to target bricks by shape, colour and pose within a tolerance, F1 score and edit distance) - and reports the bricks that are missing, extra, misplaced (same brick elsewhere), the wrong colour, unseated (top a stud height high, 1.7 mm LEGO / 4.5 mm DUPLO, or at one end) or ahead of the instructions, with an ordered repair list. The observed bricks come either as stud-grid cells from upstream perception, or from a depth frame and the plate pose - every pixel's ray is cast against the target's expected height map and the measured height compared per stud cell; colours by tools/colour when the frame has RGB. Use after each placement or at the end of a build, to decide whether to go on, re-press, remove, move or place a brick.
target stringscore float, edit_distance int, n_target int, n_matched int, n_missing int, n_extra int, n_misplaced int, n_wrong_colour int, n_unseated int, n_unverified int, report_json stringrobot.get_observationExits
What the skill reports when it ends; a policy branches on these.
matches Every target brick up to the step is matched (seated where its seating could be measured), nothing extra; bricks of later steps already in place are listed in `ahead`, bricks whose seating is within the depth noise in `seat_unresolved` (a note, unless require_seating).misplaced A target brick is missing and a brick of the same shape and colour that matches no target brick is elsewhere (shifted, turned or a layer off); `misplaced` pairs them with the shift.wrong_colour A brick of the right shape sits at a target brick's place but its colour is another; `wrong_colour` lists expected and seen.extra_bricks A brick (or depth blob) matches no target brick of this or a later step and pairs with no missing brick; `extra` lists it.unseated A matched brick's top reads more than half a stud over its seated height (`how` raised), or its highest stud cell does (`how` one end - seated at one end, on the studs at the other), significant at 3 (brick) / 4 (cell) standard errors of the depth noise; `unseated` lists the heights.missing_bricks Some target bricks up to the step are not there, and nothing above explains them; `missing` lists them.unverifiable No camera frame / depth, no depth point on the plate, or target bricks seen too little to judge (`unverified`); with require_seating, also a seating within the noise.Scripts
Use it
Take this bundle (and the tools it calls) into a registry for your task, then point your policy generator at it:
git clone https://github.com/runtime-si/RoboSkillHub
cd RoboSkillHub && uv sync
uv run --no-sync roboskillhub search "compares a brick build with its target model up to the…" --why
uv run --no-sync roboskillhub view --bundles verifying-build-against-model --out my_registrySee Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.