Hand-Eye Calibration

Zivid Studio can perform the full hand-eye calibration workflow through a graphical interface: capture pose pairs, calibrate, and verify the result. It uses the same calibration as the SDK, so you can calibrate a robot cell without writing code.

This page describes the Studio interface. For other ways to calibrate (Python samples, RoboDK, HALCON, ROS), see How to run and integrate Zivid Hand-Eye Calibration. For the concepts, getting a good dataset, and troubleshooting, see the hand-eye calibration tutorial, and for the API, see Hand-Eye Calibration.

Prerequisites

Opening the Hand-Eye Calibration window

Go to Tools → Hand-Eye Calibration…. The window opens as a standalone window and does not require a connected camera or robot to open. Close Infield Correction and Warmup first, because Hand-Eye Calibration cannot be open at the same time as either (see Using several tools in one session).

The window has a Configuration panel on the left, the capture and pose-pair area in the center, and a Tutorial panel on the right that guides you through the workflow.

../../../../../_images/zivid-studio-hand-eye-calibration-window.png

Video tutorial

These videos were recorded with the Hand-Eye GUI with RoboDK, but the principles of the workflow are the same in Zivid Studio.

Eye-to-hand
Eye-in-hand

This is a short video; for a more detailed walkthrough, check the Eye-to-hand version.

Configuration

Mounting

Select how the camera is mounted:

  • Eye-in-hand: the camera is mounted on the robot.

  • Eye-to-hand: the camera is stationary and observes the robot.

Session

The Session section shows the current session. Click Sessions… to open, create, or switch sessions without leaving the Hand-Eye Calibration window.

Calibration object

Select Checkerboard or Markers. For markers, choose the ArUco dictionary and enter the marker IDs to use. For the supported calibration objects and ArUco dictionaries, see Zivid Calibration Object. The marker IDs field accepts comma-separated integers and inclusive ranges, for example 1, 2, 5-8. Valid IDs depend on the chosen dictionary: the number in its name is the dictionary size, so the IDs run from 0 to one less than that. For example, aruco4x4_50 allows 0 to 49, and aruco7x7_1000 allows 0 to 999.

Low-DOF calibration

For robots with fewer than six degrees of freedom, enable Low-DOF and define the fixed placement of the calibration object with Set fixed objects…, or load it from a file with Load fixed objects from file…. Positions are given in the robot base frame for eye-in-hand, or the end-effector frame for eye-to-hand. See Low-DOF Hand-Eye Calibration for when this is required and how to measure the fixed placement.

Robot connection

Choose the robot type:

  • None: enter each robot pose manually and confirm it before capturing.

  • Universal Robots (read-only): stream the live robot pose, with no robot motion.

  • Universal Robots (read/write): stream the live pose and command the robot (MoveL, MoveJ, and the touch move used in verification).

For the Universal Robots modes, enter the robot IP or hostname and click Connect. For Studio to move the robot, the teach pendant must be in Remote Control; in local control, Studio shows a warning and the robot does not move.

Capturing pose pairs

Each capture pairs the current robot pose with the camera’s detection of the calibration object. Before you capture, choose capture settings in the Capture panel of the main Studio window: a preset, or Manual mode. For pose pairs and for verification by projection, only the vision engine and pixel sampling of those settings are used. The Hand-Eye Calibration tool sets the other capture settings itself, so changing exposure, color, or filter settings has no effect on the pose pairs. Verification by stitching and by touch captures with your chosen settings unchanged, so choose the settings your application uses.

  1. Move the robot to a new pose and make sure the calibration object is visible.

  2. Confirm the robot pose. When Studio streams the live pose from a Universal Robots robot, this is automatic; otherwise enter the pose and toggle Confirm.

  3. Click Capture or press F5.

Each successful capture adds a row to the pose-pair table. Studio saves each pose pair, including its point cloud, in the current session, so the pose pairs take up disk space. Capture 10 to 20 poses that span a range of orientations and positions for a well-constrained calibration. For pose coverage and data-quality guidance, see How to get Good Dataset for Hand-Eye Calibration.

Tip

Uncheck a pose pair in the table to exclude it from the calibration without deleting it, so you can experiment with which poses to use.

To remove a pose pair permanently, click its delete button in the table and confirm. This deletes the pose pair’s capture and robot pose files from the session. The delete button is not available when you review a saved session.

Calibrating

Click Calibrate. It becomes available once enough pose pairs are selected: at least four for a checkerboard, or six for markers. Studio runs the calibration that matches your configuration (eye-in-hand or eye-to-hand, standard or low-DOF) and shows the resulting transform, the per-pose residuals in the table, and a status banner. Use Diagnose for an analysis of the selected poses, including suspected outliers and alternative interpretations, without changing the result.

The calibrated transform is saved with the session, in Calibration/hand_eye_transform.yaml inside the session folder. This is the file to load in your robot application; the per-pose residuals are in Calibration/hand_eye_residuals.yaml next to it.

Verifying the result

The Verify tab offers three ways to check a calibration. Verification captures also work on a saved session that you opened for review. For how to choose a verification method and interpret it, see How to Verify Hand-Eye Calibration.

By projection

Projects the detected feature points back into the scene using the calibrated transform, so you can see how well they line up with the physical object. Editing the robot pose re-projects live.

../../../../../_images/zivid-studio-hand-eye-verify-projection.png

The video below shows the expected result of the verification by projection. It was recorded with the Hand-Eye GUI with RoboDK, but the principle is the same in Zivid Studio.

By stitching

Captures from several poses and stitches the point clouds into one using the calibration. Misaligned clouds indicate a poor calibration. A session can hold several named stitch datasets, each with its own captures and settings, and the result can be exported to a PLY file.

../../../../../_images/zivid-studio-hand-eye-verify-stitching.png

Rotate the stitched point cloud below to see how well the checkers from the different poses overlap.

By touching

Detects a marker and commands the robot to touch it, so you can confirm the calibration against the physical world. The touch point is defined by a full tool center point (TCP) pose. The touch test needs a pointed verification tool mounted on the robot, so its tip can reach the marker. Zivid provides the Pointed Hand-Eye Verification Tool, with CAD files for 3D printing and its tool center point transform. Before you run the touch test in Studio, read the Introduction and the Pointed Hand-Eye Verification Tool section of the touch test tutorial; the rest of that tutorial is specific to RoboDK. The Touch button moves the robot only for Universal Robots in read/write mode. With other robots, Studio still shows the detected marker pose in the robot base frame, and you can move the robot to it from the robot controller. To run the touch test with any RoboDK-supported robot, use the Hand-Eye GUI with RoboDK and follow the touch test tutorial. See also the touch-test section of hand-eye calibration verification.

../../../../../_images/zivid-studio-hand-eye-verify-touch.png

The video below shows the expected result of the touch test. It was recorded with the Hand-Eye GUI with RoboDK, but the principle is the same in Zivid Studio.

Warning

Touching commands a real robot move. Keep the path clear, make sure the target is reachable, and keep the emergency stop within reach.

Next steps

Continue reading about Zivid Studio in Live Scene View.