attach_gym takes any
env with reset, step and close, and Direct Control gives the LLM one move tool, checking every call before
it plays. Direct Control needs a short contract that says what the env’s action means. The
gym guide walks through it with a plain Gymnasium env.
Motivation
A robot-use agent is a model that acts in the physical world through a robot: it reads camera frames and joint state, and answers with motor commands. Measuring and improving one needs the same thing every agent needs: a controlled world it can act in, reset, and be graded in. For robots, that world is a simulator. A simulator speaks its own language: a gym-stylereset / step loop, batched tensors, a fixed control
rate. A language model speaks another: tool calls, text and images. rua is the layer between them, built on
HUD’s environment and rollout engine. It serves the robot as tools, checks every move
before it plays, and records the run.
rua
rua is a Python package with four parts:
- Sim (
rua.sim) serves a simulator as a HUD environment.attach_gymserves any gym-style env;RobotBridgeis the base class for a custom one. The sim runs in its own process, and the HUD environment drives it through aRobotEndpoint. - Direct control (
rua.direct) serves the robot as one MCPmovetool, so an LLM can drive the simulator with timed keyframes.create_direct_agentbuilds an agent for it. - Code control (
rua.code) serves it to an LLM that writes Python cells in a kernel, with the same checked moves.create_code_agentbuilds an agent for it. - Telemetry (
rua.telemetry) records each run onto its HUD trace: numeric state, every request, and per-camera H.264 video.
Robot,
Agent, run), re-exported from the top-level rua package.
Reading the docs
- Quickstart - install rua, serve a tiny simulator with direct control, and move it with a scripted agent.
- Concepts - the pieces of a robot rollout and how they talk to each other.
- Guides - one page per workflow: serving a gym env, writing a bridge, direct and code control, recording traces, and the eval interface.
- Reference - every public class, function and wire format, as the code defines it today.
- FAQ - install questions and known rough edges.
rua is at version
0.2.5 and in alpha. These pages describe what the code does today; where behavior is
surprising or incomplete, the page says so.