Ground a request in supported robot skills

Validate a structured intent and ask for clarification when the target is ambiguous.

Exercise brief·Intermediate·3 min read

Opening the Python editor…

Requirements and learning goals

Before you start

  • An observation-only model exercise
  • A list of supported robot skills

You will be able to

  • Define a small intent schema
  • Reject unsupported targets
  • Keep language away from motor commands

The browser exercise above works without extra setup. The project brief below assumes the listed prerequisites and gives you a task and checks to perform. Need a guided first project?

Grounding connects language such as "approach the bottle" to a supported robot skill and a specific observed object. It makes a conversational interface useful without assuming that every fluent request is executable. Here you will validate an intent and ask for clarification when more than one object matches.

Use the robot guide project as a reference for connecting named skills to observations while keeping unsupported requests explicit.

Limit the action vocabulary

Turn a request into an intent such as find, approach, or stop. Resolve its target against current observations. Do not let generated text become an arbitrary shell command, topic name, or actuator value.

The Go2 assistant demo explicitly rejects requests outside its detector vocabulary, including unsupported ownership and color qualifications. A generic cup detector cannot establish which cup belongs to someone.

Try a validator

This example validates a decoded intent before any robot adapter receives it:

skills = {"find", "approach", "stop"}
visible = {"cup": ["cup-17", "cup-23"], "bottle": ["bottle-8"]}
 
def resolve(intent):
    if intent.get("skill") not in skills:
        return "unsupported skill"
    if intent["skill"] == "stop":
        return {"skill": "stop"}
    matches = visible.get(intent.get("target"), [])
    if len(matches) != 1:
        return "clarify target"
    return {"skill": intent["skill"], "track_id": matches[0]}
 
assert resolve({"skill": "approach", "target": "cup"}) == "clarify target"

Add schema validation for unexpected fields and wrong types before this resolver. Bind the resolved track to a fresh observation rather than treating a track ID as permanent identity.

Checkpoint 1 of 2

Two cups are visible. What does resolve({"skill": "stop", "target": "cup"}) return?

Commit to an answer. Every choice explains itself.

Check and extend

Test a valid bottle request, an ambiguous cup request, an unsupported object, and stop. Expected behavior is a bounded intent or an explicit reason to refuse; no movement should occur in this exercise.

Checkpoint 2 of 2

A user says "approach my cup." Two cups are visible, and the detector has no notion of ownership. Which response fits this lesson?

Commit to an answer. Every choice explains itself.

Common snag: guessing a target to keep the demo flowing. Preserve uncertainty in the UI. Optional extension: define how cancellation and new requests affect an active skill, then test them with a simulated adapter.

Can you do each of these?

  • Define a small intent schema
  • Reject unsupported targets
  • Keep language away from motor commands

0 of 2 checkpoints solved. Try checkpoint 1

Previous: Inspect a VLA action chunk
All lessons in this topic
  1. 1. Run a VLM on a live camera
  2. 2. Understand vision-language-action models
  3. 3. Inspect a VLA action chunk
  4. 4. Ground a request in supported robot skills
  5. 5. Connect perception to action without blocking control
  6. 6. Record the evidence around a failed action
  7. 7. Compare a learned approach with a scripted baseline

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.