Skip to main content
A policy-defined skill has no code. It’s a folder with a metadata.json and a model or recording, created for you by the apps. Replay skills also record head movement, so the robot looks where you looked.

How a learned skill runs

  1. The arm moves to the start pose saved at training time.
  2. Every 40 ms (25 Hz), the policy reads both cameras and the joint positions.
  3. It outputs 6 arm joint commands and 2 base velocity commands.
  4. It stops when it predicts the task is done, or when the time limit runs out.
On the robot the model runs as an optimized TensorRT engine, built automatically when the model downloads.

Call it from code

Import a policy like any skill class. The robot generates the class from the skill’s folder:
Inside another skill, declare it and call it with a timeout: pick: PickSocks, then self.pick(timeout=60). See Call other skills. If the policy is still training and not on this robot yet, there is no class to import. Declare it by name instead: pick = PhysicalSkill("pick_socks").

Metadata file

You never write this by hand. Training and recording create it.
Edit guidelines to change when the agent uses the skill.