Use the same check in a planning agent
Once the operator commits a selection, save the assessment ID with the plan. Revalidate it just before issuing the motion command.
# The host supplies the sensor clock ID and the current time on that clock.
plan = runtime.assess_spatial_requirements(
task_mode="selected_point", expected_cursor=selection_cursor,
reference_clock_id=clock_id, reference_ns=now_in_sensor_clock(),
)
target_m = None
if "assessment_id" in plan:
try:
check = runtime.revalidate_spatial_requirements(
plan["assessment_id"], reference_clock_id=clock_id,
reference_ns=now_in_sensor_clock(),
)
if check["decision"] == "target_available":
target_m = check["scene_point_m"]
finally:
runtime.release_assessment(plan["assessment_id"])
If the selection cursor is already stale, handle RevisionConflict by refreshing the view. If the selection changes after assessment, discard the cached target and assess the current selection again. To try arbitrary vertices locally, install v3.2.0rc3 and run evidencescene scene-handoff --interactive on the SDK’s synthetic tabletop.