Conditional Visual Servoing for Multi-Step Tasks

Sergio Izquierdo, Max Argus, Thomas Brox · DOI

Introduction

Visual Servoing (VS) is a fundamental technique in robotics, enabling machines to use closed-loop feedback from camera images to achieve precise positioning or follow recorded trajectories. While "Servoing-from-Demonstration" (SfD) is highly effective for repetitive, single-step actions, it often fails in dynamic, real-world environments. Standard SfD typically assumes a static, one-to-one mapping between a single demonstration and the task at hand. In reality, tasks are often multi-step—such as sorting multiple objects—and environments are prone to change. If a robot encounters a different initial layout or accidentally drops an object, a linear demonstration becomes obsolete.

This paper introduces Conditional Visual Servoing, a modular framework designed to overcome these limitations. By treating individual demonstrations as a library of recombinable skills, the system allows robots to dynamically select and execute the most appropriate action based on real-time visual observations.

The Conditional Visual Servoing Framework

The authors build upon FlowControl, an algorithm that utilizes learned optical flow to establish correspondences between a robot's live camera feed and a demonstration frame. The "Conditional" extension introduces a hierarchical control structure consisting of two main loops:

1. The Demo Selection Loop

Before executing a movement, the robot captures its current view and compares it against the initial frames of all available demonstration sequences (e.g., "pick up red cube," "pick up green cylinder"). To determine the best match, the researchers evaluated four distinct scoring metrics:

  • Point-Quality: Measures the 3D distance between point clouds.
  • Color-Quality: Compares RGB values of matched points.
  • Reprojection Distance: Warps the live view into the demonstration view using optical flow and measures the L2 distance. This metric proved the most effective, as it evaluates flow prediction quality directly without requiring 3D ground truth.
  • Learned Distance: A Multi-Layer Perceptron (MLP) trained to predict success probability based on the other metrics.

2. The Servoing Loop

Once a demonstration is selected, the robot enters the standard FlowControl inner loop to execute the sub-task. Upon completion (or failure), the system returns to the selection loop to determine the next logical step, allowing for seamless transitions between different parts of a multi-step task.

Experimental Evaluation

The framework was rigorously tested using a Shape-Sorting Task, which required inserting various blocks into tight-fitting holes in a box. The evaluation spanned two environments:

  • Simulation: 1,500 runs were conducted in the PyBullet physics engine using a Kuka iiwa robot model to provide large-scale quantitative data and train the MLP.
  • Real-World: The system was validated on a Franka Emika Panda robot equipped with an eye-in-hand Intel RealSense D435 camera.

Key Insights and Results

The implementation of Conditional Visual Servoing (FlowControl-C) yielded several significant findings:

  • Performance Leap: On the real-world robot, the conditional approach achieved a 78% success rate, nearly doubling the 40% success rate of the baseline FlowControl system.
  • Automatic Error Recovery: One of the most compelling advantages of the selection loop is its inherent ability to recover from failures. If the robot drops an object, the selection loop re-evaluates the scene and can re-select the "pick up" demonstration. In simulation, the system recovered from dropped objects 59% of the time, compared to just 27% for the baseline.
  • Robustness to Environmental Nuisance: The system maintained high performance despite occlusions, varying lighting conditions, and new backgrounds. It also successfully handled geometric permutations, such as sorting objects that were initially stacked in a tower rather than spread out.

Limitations and Future Work

Despite its success, the framework has specific requirements that define its current boundaries. The selection process depends on the target object being within the robot's initial field of view; if an object is entirely hidden, the system cannot proceed. Additionally, the method currently requires foreground object segmentation masks for the demonstrations, which involves manual preprocessing.

Future research may explore more continuous "blending" of skills rather than discrete switching, or methods to generate new trajectories by interpolating between existing demonstrations to further increase flexibility in unstructured environments.

Summary updated

BibTeX
@inproceedings{izquierdo2022conditional,
  author = {Sergio Izquierdo and Max Argus and Thomas Brox},
  title = {{Conditional Visual Servoing for Multi-Step Tasks}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=0aBeDpVSZK2},
}
Figure