Skip to content

Robot

Generated from strands_robots.core.contracts.RobotLike at build.

One robot, sim or real, behind one surface. app.Robot is the implementation.

Shape: structural Protocol (runtime checkable): implement the members, import nothing.

Members

signature contract
name -> str property
mode -> str property
action_frame -> UnitFrame property
observe() -> Observation Read one observation.
act(action: Action) -> Receipt Validate, clamp and command one action; the chokepoint.
preflight(policy: Policy) -> None Refuse a policy whose frame or DOF this robot cannot consume.
is_connected() -> bool
close() -> None

Where it is used

Contracts return typed values and raise strands_robots.core.errors; the agent envelope is built in tools/. The types they exchange are in strands_robots.core.types; the frame they agree on is UnitFrame. Why the shapes are what they are: VISION.md.