Skip to main content
Open In Colab A scan of a robot cell is only useful in simulation if it sits where the robot thinks it is. Gaussian Splatting turns photos into a renderable scene, and COLMAP supplies the camera poses it starts from. Both live in the frame that structure from motion happened to pick. Its origin, orientation and scale are arbitrary, and its vertical axis has nothing to do with gravity. The robot, its controller and the simulator all work in a metric frame with zz pointing up, attached to the robot’s base. A digital twin needs the scan in that robot frame. Only then does a grasp pose computed in the simulator mean the same pose on the real arm, and only then does a label such as “the cup on the left shelf” carry a position the robot can reach. This section shows how published real-to-sim-to-real systems make that connection, then walks through the method used for the AR4 arm, and finally tests it on a synthetic scene where the right answer is known.

Seven numbers between the scan and the robot

The map from scan coordinates p\mathbf{p} to robot coordinates q\mathbf{q} is a similarity transform, q=sRp+t,\mathbf{q} = s R \mathbf{p} + \mathbf{t}, with a scale ss, a rotation RR and a translation t\mathbf{t}: seven unknowns in total. Different kinds of outside information pin down different subsets of them. A known gravity direction fixes two of the three rotation angles and leaves the rotation about the vertical axis free. A single known distance fixes the scale. Three or more known points that do not lie on a line fix all seven, and the least-squares solution for known point pairs has a closed form, the Umeyama method (Umeyama1991-uf). In a robot cell you rarely have known point pairs. You have two point clouds of the same object, one from the scan and one from a model, and you do not know which point in one matches which point in the other. Iterative closest point (ICP) handles that by alternating two steps: pair every scan point with its nearest model point, then solve for the transform that best maps the pairs (Besl & McKay, 1992). ICP only finds the nearest local optimum of its cost, so the start and the number of free unknowns decide whether it finds the right answer.

How published systems register the scan

Recent real-to-sim-to-real systems that build their scenes with Gaussian splatting solve this step in quite different ways. The table condenses what their papers state. Five families stand out. The most common treats the robot itself as the calibration object and runs a rigid ICP between the robot’s model and its reconstruction (RoboSimGS, SplatSim, Zhang et al.). A rigid fit solves only six unknowns, so the scale must already be right, and none of these three papers says how it was obtained. A second family avoids the problem with metric depth cameras that are calibrated to the arm (PEGS). A third takes the scale from measured dimensions and places the scene by hand (RoboGSim, Robo-GS, RialTo). A fourth relies on phones with lidar or AR tracking for metric scale, a step the papers do not discuss. A fifth refines the camera pose afterwards by matching rendered and real images through the differentiable renderer (RoboSimGS, RoboGSim). None of these systems uses fiducial markers, or COLMAP’s own alignment to known camera positions.

The robot as the anchor

The method used for the AR4 arm follows RoboSimGS in using the robot as the reference (Zhao et al., 2025). The arm is bolted to the table and its geometry is known exactly from its URDF, while the objects around it move between captures. Before the capture, the arm is driven to a known joint configuration and held there. Forward kinematics of the URDF at that configuration gives a point cloud of the arm in the robot frame. The arm’s Gaussians are cut out of the splat, and the two clouds are registered. A free seven-unknown ICP between the two clouds fails on this problem, in the ways the synthetic test below reproduces. The method that works removes the unknowns that can be measured directly, and searches only over the rest.
  1. Level the scene. Both frames share one observable direction. The URDF has zz up by construction, and the scan contains a large, densely reconstructed table. Fit a plane to the table with a reweighted SVD, rotate its normal onto +z+z, and shift the plane to z=0z = 0. The measured tilt of the AR4 scan was 2.88 degrees.
  2. Register with only the remaining freedom. After leveling, only the rotation about zz (yaw), the horizontal translation, a small vertical correction and the scale are unknown. A version of the Umeyama solution restricted to rotations about zz solves this exactly at every ICP iteration.
  3. Seed the yaw exhaustively. With a single rotation angle left, twelve starting yaws spaced 30 degrees apart cover every possibility, so no random restarts are needed.
The scale is held fixed during the search and refined afterwards, for a reason the failure modes below explain.

A similarity transform about a vertical axis

Take matched pairs (pi,qi)(\mathbf{p}_i, \mathbf{q}_i), i=1,…,Ni = 1, \dots, N, and minimize E(s,θ,t)=∑i=1N∥qi−sRz(θ) pi−t∥2,E(s, \theta, \mathbf{t}) = \sum_{i=1}^{N} \left\lVert \mathbf{q}_i - s R_z(\theta)\, \mathbf{p}_i - \mathbf{t} \right\rVert^2 , where Rz(θ)R_z(\theta) rotates by θ\theta about the zz axis. Setting the derivative with respect to t\mathbf{t} to zero gives t=qˉ−sRz(θ)pˉ\mathbf{t} = \bar{\mathbf{q}} - s R_z(\theta)\bar{\mathbf{p}}, so you can work with the centered points pi′=pi−pˉ\mathbf{p}'_i = \mathbf{p}_i - \bar{\mathbf{p}} and qi′=qi−qˉ\mathbf{q}'_i = \mathbf{q}_i - \bar{\mathbf{q}}. For a fixed scale, minimizing EE means maximizing ∑iqi′⊤Rz(θ) pi′\sum_i \mathbf{q}'^{\top}_i R_z(\theta)\, \mathbf{p}'_i. The zz components do not depend on θ\theta, and the horizontal part expands into ∑iqi′⊤Rz(θ) pi′=cos⁡θ (H11+H22)+sin⁡θ (H21−H12)+const,H=∑iqi,xy′ pi,xy′⊤,\begin{aligned} \sum_i \mathbf{q}'^{\top}_i R_z(\theta)\, \mathbf{p}'_i &= \cos\theta \,(H_{11} + H_{22}) + \sin\theta \,(H_{21} - H_{12}) + \text{const}, \\ H &= \sum_i \mathbf{q}'_{i,xy}\, \mathbf{p}'^{\top}_{i,xy} , \end{aligned} with HH the 2×22 \times 2 cross-covariance of the horizontal coordinates. A function acos⁡θ+bsin⁡θa\cos\theta + b\sin\theta peaks at θ=atan2⁡(b,a)\theta = \operatorname{atan2}(b, a), so θ⋆=atan2⁡ ⁣(H21−H12,  H11+H22).\theta^\star = \operatorname{atan2}\!\left(H_{21} - H_{12},\; H_{11} + H_{22}\right). With the rotation known, EE is quadratic in ss, and its minimum is s⋆=∑iqi′⊤Rz(θ⋆) pi′∑i∥pi′∥2.s^\star = \frac{\sum_i \mathbf{q}'^{\top}_i R_z(\theta^\star)\, \mathbf{p}'_i}{\sum_i \lVert \mathbf{p}'_i \rVert^2}. When the scale is frozen, you skip this last step and use the fixed value in t\mathbf{t}. The full Umeyama solution replaces the angle formula with an SVD of the 3×33 \times 3 cross-covariance, which is the extra freedom that lets a free fit tilt the scene.

A synthetic test

The test scene is a stand-in for the AR4 cell: a table plane and a bent arm made of a cylindrical base and four box-shaped links, in a frame measured in meters with zz up. The model cloud plays the role of the URDF forward kinematics. The scan samples the same geometry again with different points and adds noise, and it is expressed in an arbitrary frame: rotated by 115 degrees about the vertical, tilted by 14 degrees, scaled by 2.6 and shifted. Because the true transform is known, every result can be checked.

A free fit with seven unknowns

The first attempt is the obvious one. Start each run with the centroids matched, the scale set from the spread of the two clouds and a random rotation, then let ICP solve all seven unknowns. Each run keeps the closest 80% of the pairs at every iteration. The table never enters the fit, so it serves as a check: after a correct alignment it lies flat at z=0z = 0. The scale is reported as a ratio to the true scale, where 1 is correct.
Most starts end in a wrong answer, and the RMSE does not make them stand out. Several runs shrink the scan to under a third of its true size and tilt the table by 40 degrees or more, yet their RMSE is within a few millimeters of the correct run. A shrunken cloud fits inside the model easily: every point is near some model point, and the trimming discards the points that disagree. This test happens to give the correct run the lowest RMSE, but nothing guarantees that. On the AR4 scan, a free fit converged at 5.8 mm RMSE while tilted by 28 degrees.

Level first, then search over yaw

The gravity-constrained version fits the table plane with a reweighted SVD, rotates its normal onto +z+z and moves it to z=0z = 0. The scale is then frozen at the ratio of the arm’s heights above the table, which the leveled frame makes measurable. ICP runs from twelve evenly spaced yaws with the restricted solver, and the scale is refined at the end by a golden-section search over a bracket from 0.8 to 1.25 times the frozen value.
Leveling recovers the 14-degree tilt from the table alone. Of the twelve yaw seeds, the ones that start within about 90 degrees of the truth converge to the same answer and the rest stop at a clearly worse RMSE, so taking the best seed is safe. The final transform matches the true one to a small fraction of a degree in rotation and to within a centimeter in position, and the held-out table lies flat at z=0z = 0.

Free scale with trimming collapses

Freezing the scale during the search matters even when the rotation is restricted. The next run uses the same leveled scan and the same twelve yaw seeds, but lets the restricted solver estimate the scale at every iteration.
Some seeds drive the scale down to a small fraction of its true value. With 90% of the pairs kept, the run with the lowest RMSE of all is a collapsed one, so choosing by RMSE picks the wrong answer. Shrinking the scan shrinks every nearest-neighbor distance, and trimming throws away the pairs that object. The AR4 registration showed the same failure: the scale went from 1.16 to 0.224 while the RMSE improved to 3.73 mm. Freezing the scale during the search and refining it afterwards inside a bounded bracket removes the collapse. Output from cell 7 Side view of the robot frame. Left: the free seven-unknown fit with the lowest RMSE among the wrong answers. The scan arm is shrunk to fit inside the model and the held-out table is tilted. Right: the leveled fit with the yaw search. The scan arm lies on the model and the table lies flat on z=0z = 0, the dashed line.

What went wrong on the real arm

Each failure below produced numbers that looked plausible when the AR4 scan was registered. They are worth checking for in any registration of this kind. After these fixes, the rotation, the scale and the xx translation validate cleanly. A 47 mm offset along yy remains. The likely cause is the gap between the commanded joint angles, which generated the model cloud, and the angles the real arm reached, which differ by its joint calibration offsets. A small error at the shoulder or elbow moves the base along the direction the arm bends. The fix is to regenerate the model cloud at the calibrated joint angles and register again.

From the twin back to the robot

Once the scan is in the robot frame, the published systems use the twin in three ways. RoboSimGS and SplatSim (Qureshi2024-np) generate demonstrations in simulation, render them through the splat, and deploy the trained policies on the real robot without real training data; SplatSim reports 86.25% success, against 97.5% for policies trained on real demonstrations. RoboGSim and Zhang et al. use the twin to evaluate policies before running them on hardware, and Zhang et al. report correlations of 0.90 to 0.94 between simulated and real success rates. RialTo (Torne2024-rz) carries real demonstrations into simulation, fine-tunes the policy there with reinforcement learning, and distills it back, improving on plain imitation learning by 57% on average. All three uses depend on the alignment step: a twin that is off by a few centimeters trains a policy to reach for objects where they are not. The Sim-to-Real Transfer section covers the remaining gaps between the twin and the real cell.

References

  • Abou-Chakra, J., Rana, K., Dayoub, F., Suenderhauf, N. (2024). Physically Embodied Gaussian Splatting: A Visually Learnt and Physically Grounded 3D Representation for Robotics. 8th Annual Conference on Robot Learning. Link
  • Besl, P., McKay, N. (1992). A method for registration of 3-D shapes. IEEE Trans. Pattern Anal. Mach. Intell. DOI
  • Li, X., Li, J., Zhang, Z., Zhang, R., Jia, F., et al. (2024). RoboGSim: A Real2Sim2Real robotic Gaussian Splatting simulator. arXiv [cs.RO]. DOI
  • Zhang, K., Sha, S., Jiang, H., Loper, M., Song, H., et al. (2025). Real-to-Sim robot policy evaluation with Gaussian Splatting simulation of soft-body interactions. arXiv [cs.RO]. DOI
  • Zhao, H., Zeng, C., Zhuang, L., Zhao, Y., Xue, S., et al. (2025). High-fidelity simulated data generation for real-world zero-shot robotic manipulation learning with Gaussian Splatting. arXiv [cs.RO]. DOI

Found an error on this page? Report an issue.