Reinforcement Learning

Run a policy on the real robot, intervene when needed, and review the saved rollout with synchronized cameras, URDF, and critic values.

RL Workspace: policy rollout, HIL intervention, and live value-curve visualization.

Overview

RL is one of the console's seven tabs (DEBUG · MANUAL · COLLECT · REPLAY · RL · EVAL · RESULT). It combines policy rollout and data collection: the policy controls the robot by default, a human can take over selected segments, and the complete episode is saved for training and review.

Critic is optional. Task and policy are enough to set up and run. Selecting a critic after setup adds a live value curve and critic evaluation during replay.

Prerequisites

Configure and launch

Start from the template for your robot. The policy entry is required; critics may be empty. Rollouts are currently written in LeRobot format.

configs/04_rl/r1lite_rl.local.py
_base_ = ['r1lite_rl.py']

rl_cfg = dict(
    tasks=['assemble the phone'],
    policies=[dict(
        name='r1lite_policy',
        config='../01_deploy/r1lite/openpi_qpos.local.py',
        host='127.0.0.1',
        port=9000,
    )],
    critics=[dict(
        name='r1lite_critic',
        type='websocket',
        host='127.0.0.1',
        port=9100,
        backend_options={},
    )],
    data=dict(storage=dict(
        log_dir='work_dirs/rl/r1lite',
    )),
)
bash
eva --config configs/04_rl/r1lite_rl.local.py

Workflow

#ControlWhat happens
1TASKSelect the rollout instruction.
2POLICYSelecting a policy after the task starts automatic robot and policy setup. The setup panel shows each preparation stage.
3CRITICAfter setup, optionally connect a critic. Policy-only rollout remains fully available.
4RUNStart or continue the rollout. The SOURCE badge shows whether control currently comes from POLICY or INTERVENTION.
5SAVE ROLLOUTQueue the completed take for background saving, then automatically prepare a fresh live session.
6REPLAY / QCSelect a saved episode, replay it, and record PASS/FAIL plus an optional note.
RESET remains available during rollout. It is disabled during active human intervention; ACCEPT or ABANDON the intervention first.

Human-in-the-loop intervention

Turn on HIL before the rollout. While the policy is running, press INTERVENE to hand control to the operator. The source indicator changes immediately and the saved episode marks the intervention interval separately from policy-controlled frames.

Critic value

With a critic connected, the CRITIC VALUE panel updates during live rollout and replay. Time in seconds is shown on the horizontal axis. The line reports the critic output, while the chart background distinguishes policy-controlled and intervention-controlled regions.

Starting another episode replay clears the previous value series before the new curve is drawn. Without a critic, the panel stays hidden and the live camera layout uses the full workspace.

Saved data, replay, and QC

The SAVED DATA panel shows save-queue state, progress, ETA, and one tile per episode. Select any completed tile to load it immediately. Replay keeps all camera streams and the URDF on the same timeline; action/state charts appear in replay, while critic values are recomputed when a critic is selected.

Use PASS, FAIL, and the note field for quality control. The selected episode reflects the persisted verdict. Press RETURN TO LIVE to leave review mode and recover the live robot view.

Common states and faults

StateMeaning / action
SELECT TASK + POLICYChoose both required inputs; setup starts automatically after the selections are confirmed.
AUTO · PREPARING ROBOT…Setup is in progress. Follow the stage text and the EVA process log.
POLICY OFFLINECheck the configured host/port and policy-server observation schema.
CRITIC OPTIONAL · ERRORThe critic failed, but policy-only rollout is still available. Check the critic server before selecting it again.
Save blockedResolve the current intervention with ACCEPT or ABANDON.