Virtual Training for a Real Application: Accurate Object-Robot Relative Localization without Calibration

Vianney Loing, Renaud Marlet, Mathieu Aubry · DOI

Abstract

Localizing an object accurately with respect to a robot is a key step for autonomous robotic manipulation. In this work, we propose to tackle this task knowing only 3D models of the robot and object in the particular case where the scene is viewed from uncalibrated cameras—a situation typical in uncontrolled environments like construction sites. We demonstrate that this localization can be performed very accurately, with millimetric errors, without using a single real image for training, a strong advantage since acquiring representative training data is a long and expensive process. Our approach relies on a classification Convolutional Neural Network (CNN) trained using hundreds of thousands of synthetically rendered scenes with randomized parameters. To evaluate our approach quantitatively and make it comparable to alternative approaches, we build a new rich dataset of real robot images with accurately localized blocks.

Introduction

In controlled industrial settings, robot vision typically relies on fixed, meticulously calibrated cameras. However, in "wild" environments such as construction sites, cameras may be mounted on mobile platforms, drones, or handheld devices. Traditional vision methods require precise knowledge of camera extrinsics (position/orientation) and intrinsics (lens properties). If a camera is displaced, the system requires time-consuming recalibration. This research addresses the challenge of relative localization: determining an object's precise pose relative to the robot's base and end-effector using raw images from uncalibrated, "off-the-shelf" cameras.

Methodology

Three-Step Pipeline

The proposed system utilizes a hierarchical pipeline powered by Convolutional Neural Networks (CNNs):

  1. Coarse Relative Localization: A wide-angle view provides an initial estimate of the object's $(x, y)$ position and orientation $(\theta)$ relative to the robot base.
  2. Tool Localization: The robot moves its end-effector (clamp) toward the target. A second CNN identifies the clamp's 2D position in the image.
  3. Fine Relative Localization: The image is cropped around the clamp, and a third CNN refines the object's pose relative to the tool.

Domain Randomization and Sim-to-Real

A core contribution is the use of Domain Randomization to bridge the sim-to-real gap. Instead of costly real-world data collection, the networks are trained entirely on synthetic data generated in Unreal Engine 4. By randomizing lighting, camera parameters, and textures (using 69 distinct patterns), the CNN learns to focus on geometric relationships rather than environmental "noise" like floor color or lighting conditions.

Comparison between a synthetically rendered scene with randomized textures (left) and a real-world "field" environment (right).

Classification-Based Localization

Rather than standard regression, the authors frame localization as a classification problem. The workspace is discretized into small "bins" (e.g., 2mm to 5mm squares). This allows the network to represent uncertainty and handle multi-modal distributions, which is particularly useful when the robot arm partially occludes the target.

Workspace discretization for relative localization of an object (x, y, theta) relative to the robot base.

Experimental Evaluation

Datasets

The models were trained on over 1 million synthetic images. For evaluation, the authors introduced the UnLoc (Uncalibrated Relative Localization) Dataset, containing 1,300 real-world poses across three settings:

  • 'lab': A clean, controlled environment on a flat table.
  • 'field': A messy environment with dirt, sand, and gravel.
  • 'adv' (Adverse): Includes distractor objects mimicking the target's shape to test robustness.

Results

The system achieves millimetric precision without real-world training:

  • Accuracy: In the 'lab' setting, average errors were 2.6 mm in position and 0.7° in orientation.
  • Success Rate: Using three uncalibrated cameras, the three-step pipeline achieved a 79% success rate for grasping (defined as <5mm error), significantly outperforming single-step coarse localization (2.8%).
  • Robustness: In the 'field' setting, the success rate remained high at 70.2%, demonstrating effective generalization from synthetic training to complex real-world textures.

Conclusion

This work demonstrates that high-precision robotic manipulation can be achieved in uncalibrated environments using models trained exclusively on synthetic data. While current limitations include the assumption of a planar workspace and specificity to cuboid geometries, the results prove that domain randomization is a powerful tool for real-world robotic applications. Future work will explore non-horizontal surfaces and a broader variety of object models.

Summary updated

BibTeX
@article{loing2018virtual,
  author = {Vianney Loing and Renaud Marlet and Mathieu Aubry},
  title = {{Virtual Training for a Real Application: Accurate Object-Robot Relative Localization without Calibration}},
  journal = {Int. J. Comput. Vis.},
  year = {2018},
  doi = {10.1007/s11263-018-1102-6},
}
Figure