RoboSkillHub
Catalog / Skills
skill

checking-pick-by-scene-diff

Checks whether a pick (or a place, a push, any intended change) happened by showing a VLM one panel - the camera frame from before the step, the frame now, and a hot pixel-difference heatmap side by side - and asking whether anything changed and whether the expected change happened; when the graph knows where the object was (or should go), the pixels there must agree (changed, and emptied for a pick or filled for a place), else the verdict is uncertain. Routes changed_as_expected, changed_otherwise, unchanged, uncertain or no_verdict. Use when a pick (or place) has just run and the gripper width alone cannot tell held from empty (thin or small parts), so a source-side check is wanted, with a robot.get_observation captured before the step; camera-only, no motion.

Kind
Skill · verify: checks that a step did what it should
Robots
any robot
Tasks
pick-place sorting jigsaw lego domino
Takes
before Observation, expected_change string
Gives
changed bool, matches_expectation bool, reason string, changed_fraction float, source_changed_fraction float, source_contrast_ratio float
Calls
vlm
Robot tools
robot.get_observation
License
Apache-2.0
Source
source on GitHub · SKILL.md · upstream code · v0.1.0

Exits

What the skill reports when it ends; a policy branches on these.

changed_as_expected The VLM answered CHANGED yes and MATCH yes, and (when a source region is given) at least 15 % of its pixels changed and it emptied (vacated, contrast ratio <= 0.85) or filled (filled, ratio >= 1.5) as region_expect asks.
changed_otherwise The VLM saw a change (CHANGED yes) but not the expected one (MATCH no) - e.g. the hand moved over the object, or another object moved.
unchanged The VLM saw no change (CHANGED no, MATCH no) and the source region, if given, did not change either.
uncertain The VLM and the pixels disagree - MATCH yes but the region did not change, did not empty or did not fill as expected, MATCH yes with CHANGED no, or CHANGED no while the region changed; re-observe (move the hand clear) before trusting either.
no_verdict Nothing was judged - no camera has RGB in both observations, the frames differ in size, vlm.query raised, or the reply lacked a CHANGED or MATCH line.

Scripts

check_scene_diff

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 "checks whether a pick (or a place, a push, any intended…" --why
uv run --no-sync roboskillhub view --bundles checking-pick-by-scene-diff --out my_registry

See Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.