FlowControl: Optical Flow Based Visual Servoing

Max Argus, Lukás Hermann, Jon Long, Thomas Brox · DOI

Abstract

FlowControl is a practical framework for one-shot imitation learning that enables robots to perform complex manipulation tasks after observing a single video demonstration. By leveraging modern, pre-trained optical flow algorithms, the system establishes dense correspondences between the robot's live camera feed and the demonstration in real-time. This approach achieves millimeter-level precision without the need for task-specific training or 3D CAD models, offering a robust solution for flexible robotic automation.

Introduction

Programming robots for specific manipulation tasks is traditionally difficult, often requiring significant domain expertise or large-scale datasets. While imitation learning—where a robot learns by watching a human—is an attractive alternative, it typically faces hurdles related to data hunger and model dependency. FlowControl addresses the challenge of one-shot imitation by treating the task as a dense correspondence problem. This allows a robot to robustly replicate a task, such as inserting a block or a wheel, even when objects are in different starting positions or lighting conditions change.

Methodology

The FlowControl framework treats imitation as a continuous alignment process between the robot's current view and a demonstration trajectory.

Optical Flow and Foreground Masking

Instead of training a custom neural network for every task, FlowControl utilizes FlowNet2, a standard model pre-trained on synthetic data, to calculate "optical flow"—the per-pixel motion between the robot's live view and a frame from the demonstration video. To prevent background interference, a user provides a simple foreground mask for the object of interest in the demonstration.

Overview of the FlowControl servo loop, illustrating the alignment of live observations with demonstration frames over time.

3D Alignment and Sequence Tracking

By combining 2D optical flow with RGB-D (depth) data, the system calculates a 3D transformation. It uses Singular Value Decomposition (SVD) to find the exact rigid body rotation and translation needed to align the robot's current view with the demonstration frame.

The detailed FlowControl pipeline, showing the transition from RGB-D observations to masked flow and final 3D pointcloud alignment.

The robot tracks the entire trajectory by advancing through the demonstration video frames as it reaches the state depicted in each frame. This mechanism allows the robot to "play back" the motion while dynamically adjusting for real-world variations.

Experimental Evaluation

The authors evaluated FlowControl on several real-world robotic manipulation tasks using a KUKA iiwa arm, including grasping blocks, shape-sorting, and wheel insertion. The underlying optical flow model remained fixed, demonstrating the framework's ability to generalize across different objects and environments.

Key Results

  • High Success Rates: FlowControl achieved a 95% success rate on pick-and-stow tasks and a 90% success rate on complex wheel insertion.
  • Millimeter Precision: In industrial navigation tasks, the system achieved a precision of ±1 mm, proving its suitability for manufacturing scenarios.
  • Robust Generalization: The system successfully transferred a "grasping" motion from a wooden block to various fruits (apples, lemons, mandarins) without additional tuning, as it relies on geometric flow rather than object identity.
  • Efficiency: Unlike reinforcement learning approaches that require millions of simulated trials, FlowControl works directly in the real world from a single example.

Discussion and Limitations

FlowControl provides a robust method for one-shot imitation, but several areas for improvement remain. The system currently requires manual foreground masking, which could be automated in future iterations. Additionally, the performance is limited by the "convergence zone" of the optical flow algorithm; extreme initial offsets or rotations can lead to tracking failures. Finally, the system lacks high-level recovery logic for events like dropped objects, which is a key area for future research.

Summary updated

BibTeX
@inproceedings{argus2020flowcontrol,
  author = {Max Argus and Lukás Hermann and Jon Long and Thomas Brox},
  title = {{FlowControl: Optical Flow Based Visual Servoing}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2020},
  doi = {10.1109/iros45743.2020.9340942},
}
Figure