A Closed-Loop Multi-perspective Visual Servoing Approach with Reinforcement Learning

Lei Zhang, Jiacheng Pei, Kaixin Bai, Zhaopeng Chen, Jianwei Zhang · DOI

Introduction

Visual servoing—the use of visual feedback to control a robot's motion—is a fundamental technique in robotics. Traditional approaches, such as Image-Based Visual Servoing (IBVS) and Position-Based Visual Servoing (PBVS), have long been used for precision tasks. However, these methods typically suffer from a "small convergence domain." When a robot begins in a configuration significantly different from its target pose, or when the target is viewed from a drastically different perspective, traditional controllers often fail to converge.

Furthermore, classical methods frequently struggle to account for robot-specific kinematic constraints. A controller might calculate a mathematically valid visual path that nonetheless forces the robot into a singularity, exceeds joint limits, or results in self-collision. This paper presents a robust, learning-based framework designed to bridge the gap between global navigation and local precision while strictly adhering to physical and kinematic constraints.

Methodology

The proposed framework utilizes a multi-stage learning approach that combines the representational power of deep learning with the decision-making capabilities of Reinforcement Learning (RL).

Latent Space Representation

To avoid the computational overhead and noise sensitivity of processing raw high-dimensional images, the system employs an Autoencoder. This network compresses depth images into a low-dimensional "latent space." By focusing on essential geometric features, the autoencoder allows the controller to generalize across various perspectives without requiring explicit 3D models of the target objects.

Reinforcement Learning via TD3

The core of the controller is the Twin Delayed Deep Deterministic Policy Gradient (TD3) algorithm. The state space for the RL agent includes the latent visual features of both the current and target images, alongside the robot's joint positions, velocities, and end-effector pose. The agent outputs the camera's Cartesian velocity, which is subsequently mapped to joint velocities through the robot's Jacobian.

Training Strategies: HER and LfD

Training an RL agent for visual servoing often faces the "sparse reward" problem, where the agent rarely reaches the goal through random exploration. To mitigate this, the authors implemented two key strategies:

  1. Hindsight Experience Replay (HER): This allows the agent to treat failed trajectories as successful ones by re-labeling the final state reached as the intended goal, significantly accelerating the learning process.
  2. Learning from Demonstration (LfD): The authors utilized a traditional Direct Visual Servoing (DVS) controller to generate "imperfect" demonstrations. These trajectories provide the RL agent with a foundational understanding of the task, effectively giving it a "head start" over pure exploration.

Constraint-Aware Reward Function

Unlike traditional controllers that may ignore physical limits, the RL reward function explicitly penalizes the agent for approaching singularities (monitored via the Jacobian determinant), hitting joint limits, or losing the target object from the camera's Field of View (FOV).

Experimental Setup

The framework was evaluated within the Gazebo simulation environment integrated with OpenAI Gym.

  • Data Generation: An autoencoder was trained on 10,000 samples of a "blue cup" rendered from randomized camera poses on a spherical surface.
  • Evaluation Settings: The researchers tested the system across three levels of difficulty. Setting 1 and 2 involved moderate object movement, while Setting 3 introduced large object movement ranges combined with randomized initial robot poses to test the limits of multi-perspective convergence.

Results and Discussion

The experimental results demonstrate that the proposed RL-based approach significantly outperforms traditional methods in complex scenarios.

  • Success Rate: The system achieved a 97.0% mean success rate across all tested settings. In the most challenging scenarios (Setting 3), where traditional DVS often failed to converge due to the wide perspective gap, the RL agent maintained high reliability.
  • Ablation Studies: The inclusion of HER and LfD proved critical. Without these components, the pure TD3 agent failed to converge entirely for multi-perspective tasks, highlighting the difficulty of the global search problem in visual servoing.
  • Adaptability vs. Precision: While traditional DVS showed slightly higher precision in very simple, near-target scenarios, the RL method demonstrated a much wider "basin of attraction." It successfully navigated to the target from positions where traditional methods would have stalled or failed due to kinematic constraints.

Conclusion

This research presents a viable path forward for robust visual servoing in unconstrained environments. By combining latent space visual features with a constraint-aware RL policy, the authors developed a system capable of handling drastic perspective shifts while respecting the physical limits of the robotic platform. Future work will focus on "sim-to-real" transfer to address lighting and sensor noise in physical environments, as well as expanding the framework to handle cluttered scenes and more complex robotic hardware, such as multi-fingered hands.

Summary updated

BibTeX
@inproceedings{zhang2023closed,
  author = {Lei Zhang and Jiacheng Pei and Kaixin Bai and Zhaopeng Chen and Jianwei Zhang},
  title = {{A Closed-Loop Multi-perspective Visual Servoing Approach with Reinforcement Learning}},
  booktitle = {ROBIO},
  year = {2023},
  doi = {10.1109/robio58561.2023.10354958},
}
Figure