Skip to main content
The Reactor gateway connects X-WAM’s upstream evaluation client to the hosted policy. RoboTwin owns physics, episode termination, and task scoring. The gateway translates observations into video tracks and model commands, then returns actions to the evaluation client.

Prepare RoboTwin

Use the upstream evaluation environment at the revision below. Install the simulator and its assets following the evaluation setup and RoboTwin installation guide. The simulator requires a CUDA-capable Linux environment. Model weights and the upstream policy server are unnecessary when using Reactor.
Use separate Python environments: The selected demo_randomized task configuration uses aloha-agilex, a head camera and two wrist cameras. The upstream checkout pins RoboTwin to c3ddfa8b97d5519efa828b075999bd0006778e5e.

Start the gateway

In a separate terminal, start at the root of the reactor-cookbook checkout from the quickstart:
The wiring check runs offline. Wait for tracks published and the gateway’s listening message before starting the simulator. Keep the gateway port on a trusted local network: this example uses the upstream client’s pickle-based protocol.

Run an episode

In a second terminal, activate the simulator environment and run this from the X-WAM repository root. The client resolves third_party/RoboTwin relative to the working directory.
The client executes up to 32 actions before requesting another chunk. It saves results and rollout videos under the output directory. Check the task success result separately from successful API responses: an episode can finish without solving the task. Stop the gateway with Ctrl-C when done to close its Reactor session.