reading-domino-pips-and-orientation
Reads each domino's two pip values, which end is which, its long axis and whether it lies flat, stands or has fallen, from above. Per tile mask (sam3.segment_text, or upstream masks) it finds the centre divider (an elongated dark MSER region, as Domino-Arm did), scores the pips, splits them into the halves and decodes each against the seven double-six layouts, and lifts the tile with the depth (geometry.mask_to_world_points) to its world centre, ends, long axis and resting state (flat / upright / fallen, from its height over the table). Returns (a, b) with a at end a, end and half-centre pixels and world points, pip scores and layout margins. Pips are ~2 px from the station's overhead camera, so a tile under 30 px wide routes needs_closeup with its world centre - read it from a wrist D405 close-up (refining-target-from-wrist-closeup / framing-a-target-by-mask-edge-steering first). Use when a domino task needs a tile's value, ends, pose or whether it still stands (game play, sorting, a toppled chain).
state str, center_world Vec3, axis_world Vec3, camera_name strrobot.get_observationExits
What the skill reports when it ends; a policy branches on these.
read Every judged tile (the one nearest target_point if given, else all) lies flat face up, its mask is one 2:1 tile, its divider was found and both halves decoded with a layout margin of at least 0.3 (glare-covered positions left out) and no strong pip left unexplained; value / value_ab / ends carry the (first) tile.ambiguous Tiles were segmented but at least one judged tile was not read, its status says why - `not_flat` (standing or fallen; state, axis and ends are still given), `face_down` (no divider and no pips), or `ambiguous` (a small layout margin, glare over a deciding position, an unexplained pip, no divider, or a mask that is not one tile).needs_closeup A judged flat tile is narrower than min_tile_width_px (30 px) in this frame and none failed otherwise; `closeup_targets` lists their world centres for refining-target-from-wrist-closeup, then run this skill again on the wrist frame.not_seen No camera frame, the segmenter failed or returned no mask scoring min_score and 40 px.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 "reads each domino's two pip values, which end is which…" --why
uv run --no-sync roboskillhub view --bundles reading-domino-pips-and-orientation --out my_registrySee Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.