Robot guidance with cameras: how it works, when to choose 2D or 3D
How cameras guide robots in pick and place, when 2D is enough, when 3D is needed, and why hand-eye calibration decides accuracy.
How cameras guide robots in pick and place, when 2D is enough, when 3D is needed, and why hand-eye calibration decides accuracy.
A robot is excellent at repeating a path, but only when the part is exactly where it is expected to be. A tray that shifts, a conveyor that vibrates or a part that rotates to a different angle is enough to cause a missed pick. A robot guidance camera (vision guided robotics) solves this: the camera tells the robot where the part is and how it is oriented, and the robot adjusts its motion on every cycle. This article explains how a robot guidance system works, when a 2D camera is enough, when you need 3D, and why hand-eye calibration decides the quality of the whole system.
A robot guidance system has four connected blocks: the camera with its lens and lighting, the image processor (a smart camera or a vision PC), the robot with its controller, and the calibration that lets both sides share one coordinate system. The processing chain repeats on every cycle:
The whole chain must be stable in time. Communication delay and arm vibration at the moment of capture directly affect pick accuracy, so they belong in the design from the start rather than in commissioning.
A 2D camera produces a flat image and determines X, Y and rotation on that plane. It is compact, fast and cheap to integrate, and it fits when:
Typical examples are picking components from a loosely positioned tray, or picking products that travel on a conveyor tracked by an encoder. For this kind of task a 2D camera with well-designed lighting is usually more stable than a complex 3D setup. Lighting matters as much as the camera: bad lighting destabilises even the best algorithm.
A 3D camera gives the robot height and tilt as well. Choose 3D when:
In exchange, 3D needs more data, more careful setup and collision checking between the gripper, the bin and neighbouring parts. To go deeper, see the 3D camera page and the article on the Cognex In-Sight L38 industrial 3D vision system.
| Task | Choose | Main reason |
|---|---|---|
| Picking single-layer flat parts from a conveyor | 2D | Only X, Y and rotation are needed |
| Picking from a loosely positioned tray at fixed height | 2D | Simple, short cycle time |
| Placing a part into an assembly position with alignment | 2D (sometimes plus 3D) | Alignment is mostly in-plane |
| Picking randomly piled parts from a bin | 3D | Full Z and pose are required |
| Depalletizing cartons in several layers | 3D | Layer heights vary |
| Parts the same colour as the background, few features | 3D | Shape separates better than image |
A practical rule: if 2D solves the task, use 2D, because simpler is more stable. Move to 3D only when height or pose is a variable the robot cannot ignore.
The camera sees the part in camera coordinates, while the robot works in robot coordinates. Hand-eye calibration creates the transform between the two. If this step is off, a correctly detected part is still picked in the wrong place.
There are two ways to mount the camera, each with its own calibration method:
A few principles keep calibration robust:
Vision software can be excellent and the system can still fail if integration is unclear. Agree on the following between the vision, robot and PLC teams from the start:
Before designing, it helps to understand the basics in what is machine vision, since field of view (FOV), resolution and lighting all affect pick accuracy.
The safest way to decide between 2D and 3D is a POC (proof of concept) on real parts. Prepare:
BeeVision engineers test your samples, assess whether 2D or 3D fits, and recommend the camera, lens, lighting and robot integration. Results depend on each application, so a POC on real samples is always the first step worth taking. For an overview of the solution, see BeeVision's robot guidance page.
A fixed-path robot repeats taught coordinates, so the product must always be in the same place. A vision-guided robot reads the real part position on every cycle and adjusts the pick point.
Yes, if the robot interface is designed to be open from the beginning. But if height or pose is clearly unknown, assess 3D during the POC to avoid rework.
There is no universal answer. A fixed camera is stable and easier to calibrate, while an arm-mounted camera is more flexible when many positions must be viewed. The choice depends on machine layout and the required accuracy.
Repeat it when the camera, lens or gripper changes, when the robot is moved, or when pick error starts to grow.
Follow BeeVision on LinkedIn and YouTube for more 3D vision videos. If you are considering robot guidance for your line, send samples for a POC and our engineers will recommend the right setup.
When should you move from pattern matching, blob and edge tools to deep learning? A comparison, a checklist and Cognex tools for cosmetic defects.
You have decided to bring machine vision onto your line, and two quotes are sitting on your desk. One proposes an industrial smart camera mounted directly at the inspection…
Thousands of parts move down a conveyor every shift. A QC operator has to look at each one for scratches, missing components, crooked labels or a smudged lot code. By the sixth…