Ground a request in supported robot skills
Validate a structured intent and ask for clarification when the target is ambiguous.
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.
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.
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.
Before you move on
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
All lessons in this topic
- 1. Run a VLM on a live camera
- 2. Understand vision-language-action models
- 3. Inspect a VLA action chunk
- 4. Ground a request in supported robot skills
- 5. Connect perception to action without blocking control
- 6. Record the evidence around a failed action
- 7. Compare a learned approach with a scripted baseline