following-a-visual-plan
A trajectory model's plan is good in the image and poor in 3D. On real YAM station frames RoboBrain 2.5's traces ended on the right target 12/12 times (cube into the box), but their heights were a generic lift-and-arc ending 14-28 cm over the target, and the model's own depth read 25-45 % short (tools/robobrain, Measured). MolmoMotion forecasts only motion already under way: from a still frame it returned none. So this skill keeps only the image part of a plan and lets measured geometry do the rest.
Two scripts with a clean hand-off:
propose_target_from_plan(stage propose):planorinstruction(+observation) ->proposal,target_point,goal_pose,hover_pose,waypoints,approach_direction,target_obb. Routesproposed/plan_rejected/no_plan. Moves nothing.follow_proposal(stage execute):proposal-> routesarrived/unreachable.
textpropose_target_from_plan proposed -> [previewing-target-overlay: goal_pose + intent] -> follow_proposal plan_rejected -> re-perceive / another planner / ask a human no_plan -> start the motion another way (a policy, executing-keypoint-motion) follow_proposal arrived -> placing-with-contact-descent (place_position = target_point) / open / insert unreachable -> recover
target_obb (a column from the table to the measured top at the target) is
in approaching-above-a-target's input shape, so a graph that wants that
skill's hover (rise in place, keep the rotation, 12 cm over the top) can use
it in place of follow_proposal.
The plan
The visual-plan schema (tools/molmo-motion/SKILL.md): found, tracks[i]
with query_pixel (the start) and pixels ([F][u, v], the keypoints after
it, in order), plus 3D fields this skill ignores. Pass a plan computed
elsewhere as plan, or let the skill ask planner (default
robobrain.trace; molmo-motion.forecast or any tool returning the schema)
with the camera's RGB, depth, intrinsics and pose, the instruction, and
start_pixel as start_point (query_points for a *.forecast tool, which
requires it). planner_args adds or overrides arguments (mode="object").
Proposing
- Endpoint: the track's last pixel. Within
MIN_PLAN_PX(12 px) of the start isno_plan; outside the image isplan_rejected. - Target: the endpoint lifted with the median measured depth of a 7 x 7 window and the camera's intrinsics and camera-to-world pose (the surface the plan points at: a box's floor, the board under a ring).
- On the table: the table plane is
table_z, elserobot.describe_workspace'ssurface_z, else the depth image's fullest 4 mm height bin. A target more thanon_table_tolerance(2 cm) under it (the floor past the table's edge) ormax_target_height(0.30 m) over it, or outsideworkspace_bounds({"x": [lo, hi], "y": [lo, hi]}), is rejected. - Object top: the 5th-highest measured point within
top_radius(6 cm) of the target, the hand itself excluded (a box's rim, not its floor). - Goal height:
goal_height(world z of the tool centre) when given, else the top +goal_clearance(3 cm); never under 15 mm over the table. - Approach direction: the plan's last segment in the image, carried to
the target's height: the side the plan comes from (
approach_direction, a horizontal unit vector). Withapproach_offset> 0 the route passes that far back along it before the hover. - Travel height: at least
travel_height(12 cm) over the table andtravel_clearance(8 cm) over the object's top, then raised until it clears bytravel_clearanceeverything the depth image shows in a 4 cm corridor under every travel leg (hand -> waypoints -> target), the hand excluded. Overmax_travel_height(0.35 m) is rejected. - Waypoints (
follow_path, default off): every path pixel but the last, carried along its camera ray to the travel height (where a point at that height would be seen at that pixel), closer than 3 cm to the previous or to the target dropped, unreachable ones (IK preview) dropped. - Reach:
robot.solve_ikpreviews the hover and the goal with the hand's current rotation, thenrobot.grasp_frame's top-down rotation and its flip (allow_top_down); the first that reaches both is used. None isplan_rejected. A connector without IK preview skips this. - Cross-check (
target_phrase):cross_check_tool(gemini-er.point;locate-anything.point,robobrain.pointtake the same call) points at the phrase on the same frame; its nearest point, lifted the same way, must be withincross_check_tolerance(5 cm) of the target. No point isplan_rejected; a tool that raised is noted indetailand does not block. - Replan (
replan, default off; needsinstruction): when the first plan routesno_planorplan_rejected, take a freshrobot.get_observationand ask the planner once more;detaillists both. RoboBrain decodes greedily, so the same frame gives the same plan: a replan helps after the scene or the hand moved, or when the first plan was computed earlier and passed in.
Following
Rise in place to the travel height (robot.go_to_pose, as
approaching-above-a-target does), then straight-line legs
(robot.go_to_pose_cartesian) through the waypoints to the hover above the
target and straight down to the goal, all with the chosen rotation. Every
refused move (raised, or reached: false / an outcome other than
reached) routes unreachable with its leg, except a servo timeout that
left the hand within reach_tolerance of the leg's end (read back), which
continues and is named in detail (the YAM twin's servo timed out 4-5 mm
over the goal on 7 of 13 descents); arrival is judged from a fresh
robot.get_ee_pose against reach_tolerance (15 mm, no tighter than a real
station's 12 mm per move). tolerance / max_steps go to the free move only
when set; arm_id only when nonzero.
The constants, and why
MIN_PLAN_PX = 12: MolmoMotion moved a still cube or cable tip 0-3.5 mm (~0-2 px at 0.9 m); RoboBrain's plans moved 50-150 px.ON_TABLE_TOLERANCE = 0.02,MAX_TARGET_HEIGHT = 0.30m: a few times the calibrated camera's 5.4 mm RMS; anything higher is an arm or a held object, not a place.TOP_RADIUS = 0.06m: reaches a 100 mm box's walls from its centre.TOP_RANK = 5: a 2.3 mm rim is a few per cent of that disc, so a percentile misses it; the 5th-highest of every 2nd pixel ignores single noisy edge pixels.GOAL_CLEARANCE = 0.03m: a 30 mm part under the hand clears the rim.TRAVEL_HEIGHT = 0.12m: approaching-above-a-target's and executing-keypoint-motion's hover clearance.TRAVEL_CLEARANCE = 0.08m: placing-with-contact-descent's approach height.MAX_TRAVEL_HEIGHT = 0.35m: RoboBrain's own arcs rose to 0.22-0.33 m.CORRIDOR_RADIUS = 0.04m: half an open linear_4310's 94 mm span.HAND_RADIUS = 0.08m (from 6 cm under the tool centre up): the hand and fingers in the depth image.CROSS_CHECK_TOLERANCE = 0.05m: half the box; RoboBrain's cable endpoints missed a ring by 20-35 px (~4-7 cm at 0.9 m), which this rejects.MIN_TOOL_HEIGHT = 0.015m: a real YAM station refuses a tool centre under 14 mm over its table.REACH_TOLERANCE = 0.015m: placing-with-contact-descent's.
Measured
Simulation (2026-11-07, YAM station twin on a shared Brev L40S, left arm,
rendered top-camera RGB-D at the calibrated pose). The twin's camera puts
the box floor 2 px and the cube 0.4 px from where the fit to the real frame
saw them. Each of RoboBrain's 12 saved cube-to-box plans on the real frame
(tests/bundles/data/robobrain_traces_station.json, both modes, with and
without a start and depth anchor) went through both scripts with the default
arguments, plus one run of the plan through the graph's own nodes (13 runs):
| result | |
|---|---|
| proposed | 13/13; measured top 42.0-42.1 mm over the table (the box is 40 mm), travel 122 mm |
| arrived | 13/13; 7 of them after a descent timeout 4.1-4.9 mm short, which the read-back accepts |
| position error (skill's reading) | 1.7-4.9 mm, median 4.1 mm |
| target from the box's centre | 8.4-48.9 mm, median 20.7 mm (the inner half-width is 47.7 mm) |
| hand inside the walls (simulator truth) | 12/13: cube0/end_effector/start ended 0.9 mm past the inner wall, over the far wall, where its endpoint pixel is (3.7 px inside the box's far edge) |
| hand over the rim | 31.3-34.5 mm over the true rim (42 mm: a 40 mm box on the 2 mm cloth; goal: measured top + 30 mm) |
| rejections | an endpoint on the floor past the table's edge (616 mm under the table plane) and one off the image: plan_rejected, hand moved 0.0 mm |
Before the timeout read-back was added, the same run routed 3 of its first 5
descents unreachable with the hand 3.8-4.9 mm over the goal. The no-depth
rejection was not exercised (the render had no invalid depth); it and the
pointing cross-check are covered by the unit tests only. No planner model was
called during the simulation: the plans are robobrain.trace's real answers on
the real frame, replayed. Each run took ~4 min of wall time on a GPU shared
with other simulators at 100 % utilization.
Unit tests (40, FakeContext) put every saved trace through a ray-cast depth image of the same scene built from the station's calibration (camera pose and intrinsics, table at -21 mm, box and cube where the twin's fit put them): 12/12 over the box, 11/12 inside its walls (the same far-wall endpoint). On the cable frame, the depth-anchored "insert the free end of the white cable into the left black ring" trace ends within 5 cm of a point on that ring (proposed) and "move ... through the black ring" ends 40 px off it (rejected by the cross-check).
The approach direction. The plan's last segment, carried to the
target's height, points mostly toward the camera (-y in the station frame)
on these traces: on the tilted overhead camera the descent at the end of
RoboBrain's arc projects as motion down the image. approach_from: whole_path (start to end) gives the lateral direction instead (+x, cube to
box, 12/12 in the unit tests). Neither is a 3D approach axis.
Not run: a live planner call from the skill, the cross-check against a live
pointing model, replan, follow_path waypoints and an obstacle-raised
travel height in the twin (unit tests only), and anything on a real YAM.
Provenance
Written for the hub (no upstream code). The design follows the live checks of
the hub's robobrain and molmo-motion tools on real YAM station frames
(2026-11-07): RoboBrain 2.5 (BAAI, arXiv:2601.14352, Apache-2.0 weights)
places the endpoint right in the image but not in depth or height;
MolmoMotion continues motion and does not invent it.


