Home▸Robotics & Kinematics▸Visual Servoing: Image-Based Camera Feedback (2D)

Visual Servoing & Precision Assembly (2D)

2D top-down image-based visual servoing (IBVS): a wrist camera drives a peg-in-hole insertion by continuously reducing the pixel-space error between current and desired feature points, compensating for part-position miscalibration in real time.

Robotics & Kinematics2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-visual-servoing-precision-assembly ↗ Open standalone

This 2D companion visualizes image-based visual servoing (IBVS) on an eye-in-hand robot end-effector performing a peg-in-hole insertion, viewed top-down on a canvas instead of a full 3D scene. Rather than driving to a pre-programmed coordinate, the controller continuously compares the current image positions of the hole's corner features against their desired positions and turns that pixel-space error into a velocity command — closing the loop on vision itself. Shift the part's true position with the calibration-error slider and watch the same feedback loop find and insert the peg anyway, then read the feature-error curve as it collapses toward zero with each control iteration.

⚙ Under the hood

A 2D top-down simulation of image-based visual servoing (IBVS): a robot end-effector uses camera feedback to insert a peg into a hole, repeatedly reducing the pixel-space error between current and desired feature positions until it converges, even when the hole's true position is offset from what the controller expects.

RoboticsComputer VisionControl SystemsIBVSAutomation

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)