BLOG
Taking Physical RSI to Real Robots: The Sim-to-Real Gap and How We Cross It
TL;DR
- In simulation, RSI cut the cycle time of a dual-arm pick-and-place task with a peg-insertion step from 22.2 s to 15.1 s.
- On real hardware, the resulting program runs into the sim-to-real gap, and most of that gap comes from the robot itself. Domain randomization builds robustness in simulation; accumulated assets and skills close the gap on the hardware side.
- On the first real robot, runs that placed every part went from 1 of 21 to 18 of 21, and the task carried over to a second robot of a completely different design.

1. In simulation, RSI reaches high performance
The results in our previous post all came from simulation. This post takes the same loop onto real robots. The task is a common one on production lines: two arms doing fast pick-and-place together, with a peg-insertion step in the middle that requires millimeter-level precision. We optimize cycle time, the time from one placed part to the next, provided no part is left behind.
The method is the same as before. Coding agents with frozen weights improve the control program; we collect no demonstrations and train no model. Several dozen subagents work in parallel, each proposing a single change. Every candidate is compared with the baseline in paired runs on the same randomized scenes, and any that leaves a part behind is rejected, however fast. After 1,770 simulated runs, the cycle time had fallen from 22.2 s to 15.1 s. Unprompted, the agents added 6D pose estimation, post-grasp re-calibration and non-blocking dual-arm scheduling along the way.
2. On real hardware, the sim-to-real gap
In its first 21 runs on the real robot, this program placed every part only once.
The search optimizes against the simulator's score, so the program has never had to deal with anything the simulator leaves out. The gap has two sources, and they are not equal. On the environment side, part layout, table height and lighting differ every time, but all of that can be randomized in simulation. Most of what remains is in the robot itself: latency, joint zero positions, camera timing and positioning accuracy differ from machine to machine, and they are in neither the simulator nor the documentation.
Section 3 covers the randomization in simulation, and Section 4 the hardware side.
3. Domain randomization: building robustness in simulation
For the environment, the tool is domain randomization. We vary layout, table height, lighting and part spacing at random in the simulator, along with signal delays and dropped frames, so that the search produces a program that holds up across all of them. The range of randomization is widened in four levels: when the current best program stops improving at one level, the search moves to the next.

Each time the range widened, the search pulled the results back up. In simulation, on real layouts never used in development, the share of runs that placed every part rose from 50% to 92%. Real-robot runs pointed the same way: after a round of search conducted entirely in simulation, the program went straight to harder layouts, and its first two runs there both placed every part.
4. Accumulated assets and skills: closing the gap that comes from the robot
Domain randomization covers only the variation we already know about. Most of our time on real hardware went into understanding the robot itself: how the SDK really works, how the motors and cameras behave, and how large the assembled system's errors are. The task sequence, once settled in simulation, was left essentially untouched on the real robot.
The first 21 runs are a case in point. The planner left 8 mm of clearance between a finger and the neighboring part, and the arm's positioning error used up almost all of it.
Rather than have people tune such things one at a time, we had the agents measure them on the real robot and keep the results in two forms. Assets are facts about the machine: a digital twin aligned with the real robot, measured hardware parameters (latency, joint zero positions, camera timing), and every real-robot failure turned into a test case. Skills are procedures that can be run again: how to calibrate the cameras and joint zero positions together, how to measure delays from motion, how to replay a real run in the twin and compare, and how to hold pose on a fault. The agents did the same in the previous post when they wrote what they had learned into skills.

5. Results
On the first robot (Robot A), once the assets had been corrected to match the hardware, runs that placed every part went from 1 of 21 to 18 of 21. The best single run reached a cycle time of 15.1 s, matching simulation. Most runs are still slower, and the difference is mainly in the insertion.
We then moved the task to a second robot (Robot B), a single 6-axis arm of a completely different design. The task side was straightforward: before the hardware arrived, the agents had already solved it in a simulation of the new robot, using the assets and skills accumulated on the first. On arrival, the hardware-specific part of the assets had to be redone, along with the code that depends on it.
Insertion shows most clearly where the gap lies. Whether it succeeds depends almost entirely on how far the peg is from the hole when the arm stops: with an offset under 2 mm, 44 of 45 insertions seated; at 3.5 mm or more, 1 of 21 did. That offset comes from joint error and has nothing to do with the task logic. Once it had been measured and compensated for, 16 of 17 runs in the final batch placed every part.

6. What the two robots showed
A task policy can be developed to high performance in simulation, and when the robot changed, it did not have to be rebuilt on the hardware. On real hardware, the time goes into understanding the robot. That work belongs to the hardware, whatever the task, so it is done once and kept as assets and skills. Once the hardware is understood, each new task should be mainly a policy problem: it can be moved into simulation, where RSI is strongest, and paid for with compute.
Several things are still open. Insertion is not yet reliable on harder layouts, where 24 of 50 runs placed every part. People still clamp and start the robot during hardware measurements. And so far we have verified one task on two robots; the next step is a second and a third task on the same hardware.