detecting-subtask-success
Checks whether a subtask is done from the latest frame of every camera at one moment - sends them to a VLM with the Gemini Robotics SDK's four guided questions (object states, relations, required end state, differences) and reads its "FINAL ANSWER yes / no", once or polling fresh frames until yes or a timeout. Use when a graph needs a yes/no "is <subtask> done now?" gate after a step or while a policy runs, with only cameras and no frame from before the step; use judging-step-with-before-now-vlm instead when the decision needs a BEFORE frame or a recovery choice.
subtask stringsuccess bool, answer string, checks int, follow_ups int, errors int, elapsed_s float, reason string, raw stringrobot.get_observationExits
What the skill reports when it ends; a policy branches on these.
succeeded The VLM's reply ended in FINAL ANSWER yes for the latest frames (on the first check, or on any check before timeout_s).not_yet Asked once (timeout_s 0) and the reply was FINAL ANSWER no, or had no FINAL ANSWER even after the follow-up (read as no, as upstream did).timed_out timeout_s > 0 passed without a yes; `checks` replies were all no or unparsed.no_view Nothing was judged - no camera had RGB in any observation, or every vlm.query call raised; `reason` says which.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 "checks whether a subtask is done from the latest frame of…" --why
uv run --no-sync roboskillhub view --bundles detecting-subtask-success --out my_registrySee Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.