Zero Position Calibration for Small-Reach Robots
This page describes how to use the Robot Calibration feature to calibrate the zero positions of small-reach robots. One NANO ULTRA-GL camera is recommended for this workflow.
Introduction to the Overall Process
The following figure shows the overall process for calibrating the zero positions of small-reach robots.
-
Preparation before Calibration: Complete the required preparations before calibration.
-
Configuration before Calibration: Select the pre-calibration configuration options, such as the robot model and camera setup.
-
Perform Calibration: Start the calibration and obtain the calibration result after completing several calibration steps. In this step, perform operations on the robot to establish communication between the vision system and the robot.
-
Validate Calibration Result: Validate the calibration result to check whether it meets the requirements.
-
Apply Calibration Result: Apply the verified calibration result to the robot.
Preparation before Calibration
Complete the following preparations before calibrating the robot:
Set Up the System Hardware
Set up the system hardware by following the instructions in the System Hardware Setup section.
Configure Robot Communication
Configure master-control communication for the robot. Refer to the master-control communication configuration document for the corresponding robot brand in the Master-Control Communication section to configure master-control communication for the robot.
Prepare the Required Materials for Calibration
Prepare the following equipment and components before calibration:
-
One supported robot.
-
One NANO ULTRA-GL camera, with its power cable and Ethernet cable.
-
A camera mounting frame, a calibration sphere, and a bracket for connecting the calibration sphere to the robot flange.
-
An industrial PC that can run Mech-Vision.
-
A calibration board (optional).
If the camera has not been hand-eye calibrated, prepare a calibration board and check the calibration board point cloud quality.
Check the Calibration Sphere Point Cloud Quality
Complete the following steps to make sure that the calibration sphere point cloud quality meets the requirements.
| The point cloud quality of the calibration sphere affects the accuracy of robot calibration results. Check the point cloud quality of the calibration sphere to ensure the accuracy and reliability of the calibration results. The robot calibration workflow includes a step for checking the calibration sphere point cloud quality. You can also check the point cloud quality before starting calibration to save time. |
-
Place the calibration sphere at the center of the working plane within the camera’s field of view.
-
Open Mech-Eye Viewer, select the camera used for robot calibration, select the "calib" parameter group, and adjust the camera parameters.
-
In the 2D image, the calibration sphere should not be too dark, too bright, or unevenly illuminated.
-
In the depth map, the calibration sphere should be fully visible.
If the ambient light at the site is complex, block or supplement the light to reduce its impact on the 2D image and depth map.
-
Complete the Pre-calibration Checks
Refer to Pre-calibration Checks and complete the following checks:
-
Make sure that the robot base is firmly installed.
-
Make sure that the camera and calibration sphere are ready.
-
Make sure that the camera has been hand-eye calibrated.
-
Make sure that the software and robot communication configuration meet the requirements.
-
Make sure that there is a safe space for the robot.
-
Make sure that the camera has been warmed up.
Configuration before Calibration
-
Open Robot Calibration.
In the Mech-Vision menu bar, select to open the Configuration before Calibration window.
-
Confirm the checks and start a new calibration.
Make sure that you have completed the pre-calibration checks, click I’ve finished all checks, and then click Next.
-
Select how to calibrate.
In the Select how to calibrate: window, select New calibration, and then click Next.
-
Select a robot.
In the Select robot: window, click Select robot model and select the robot model used in the project. The tool determines the robot’s reach based on the model to recommend a suitable camera configuration.
-
Select a calibration task.
In the Calibration task window, select Zero position calibration. The tool recommends the number and model of cameras based on the robot’s reach and the calibration task.
-
Select the camera installation method and configure the camera information.
In the Camera setup window, select Eye to hand, and confirm the Number of cameras and Camera model based on the recommendation.
-
Set the camera installation position.
Follow the guidance in the Select Camera Installation Position window to select a camera position. After checking the installation, click I’ve finished installation check, and then click Next.
-
Confirm that the cameras have been hand-eye calibrated.
In the Confirm That the Camera Has Been Hand-Eye Calibrated window, confirm that all cameras used for calibration have been hand-eye calibrated, and then click Calibrate to start the calibration workflow.
The calibration preconfiguration is now complete. The calibration workflow starts.
Perform Calibration
Connect to Camera
-
Select and connect the camera used for calibration.
In the Connect to camera step, click Select camera. In the pop-up window, select and connect the camera used for robot calibration, and then click OK.
After connecting, click Acquire once or Acquire continuously to make sure that the camera can capture images normally.
-
Check the captured images.
Check that the images are displayed correctly in the Image viewer panel on the right. After confirming that images are captured normally, click Next in the bottom bar.
Install the Calibration Sphere and Acquire Its Position
-
Check the calibration sphere diameter.
Make sure that the Calibration sphere diameter matches the actual calibration sphere so that the software calculates the sphere position using the correct size.
-
Install the calibration sphere and move it into the camera’s field of view.
Securely install the calibration sphere on the robot end, and use the teach pendant to move the robot so that the sphere enters the camera’s field of view. In the 2D view, make sure that the sphere is fully within the red box so that the camera can capture the entire sphere.
-
Adjust the distance between the calibration sphere and camera, and acquire its position.
Adjust the distance until it is close to the recommended distance displayed in the interface. Then capture an image and acquire the sphere position as prompted.
After acquiring the calibration sphere position, keep the robot pose unchanged to ensure that the sphere position corresponds to the robot pose.
-
Check the calibration sphere image quality.
In the 2D image, make sure that the calibration sphere is evenly illuminated and has moderate brightness. In the depth map, make sure that the sphere is fully visible. Image quality affects position measurement and calibration results. If the image quality is poor, adjust the "calib" parameter group in Mech-Eye Viewer and capture the image again.
Connect to the Robot
-
Run the master-control program on the robot teach pendant.
Select and run the master-control program to establish master-control communication between the robot and Mech-Vision. For instructions on configuring the program, refer to the Master-Control Communication section.
-
Set the robot IP address and connect the robot.
In the Connect robot step, set the Robot IP address and click Connect robot. Wait for the status to update and make sure that the robot is communicating with Mech-Vision.
-
Confirm the connection status and continue.
In the Connect robot section, make sure that the status shows "Disconnect robot", and then click Next in the bottom bar.
Generate the Calibration Path
-
Set the robot motion range.
In the Robot motion settings area, set the Robot joint motion range (°) by entering the minimum and maximum angles for J1 to J6. Then set the Robot flange motion range (mm) by entering the minimum and maximum positions along the X, Y, and Z axes. This range is used to constrain calibration path generation and robot motion.
To view the flange motion range in the scene, select Show robot flange motion range and check that the range meets the site requirements.
-
Set the number of calibration points and generate the points.
In the Calibration point settings area, set the Number of calibration points per camera and Number of test points, and then click Generate calibration points. The tool generates points for calibration and result verification based on the settings, and evaluates the calibration point quality.
-
Check the evaluation results and adjust as needed.
In the Calibration point evaluation area, check the Calibration point quality evaluation and the variation ranges for joints 1 to 3. If the quality is Low, follow the prompts to expand the joint or flange motion range and generate the calibration points again. If the quality is still low, adjust the position of the single camera as follows.
-
Click Adjust camera position.
-
Set the camera movement range and calculate the recommended position.
Set the movement ranges along the X, Y, and Z axes in Camera movable range (mm), and then click Calculate the optimal camera position.
-
Move the camera based on the calculation results and perform hand-eye calibration again.
Go to the camera calibration interface and perform hand-eye calibration again.
-
Perform robot calibration again.
After completing hand-eye calibration, perform robot calibration again and generate and evaluate the calibration points. After confirming that the calibration point quality meets the requirements, click Accept current calibration points to continue the workflow.
-
Test the Calibration Path
-
Check the calibration path and motion environment.
In the Scene viewer, check that the path is safe and that there are no obstacles within the robot’s motion range. If there is a risk of collision, adjust the robot pose or clear the obstacles to ensure that the robot can move safely.
-
Run the simulation and check the path.
Set the Execution speed and click Run simulated robot to check that the robot can move safely along the entire path.
-
Run the real robot at a low speed and check the path on site.
After the simulation, check the Robot status. If it shows Disconnected, click Connect robot. After confirming that the site is safe, click Run the real robot at a low speed and observe the robot moving along the entire path.
Keep people away from the robot’s motion range while the real robot is running. If there is a risk of collision, press the emergency stop button immediately.
To modify the calibration path, follow the steps below to modify calibration points, test points, and intermediate points in the calibration point list.
-
Modify a path point.
Select a point to modify from the Selected point information drop-down list or the calibration point list. Then adjust the point in either of the following ways:
-
Adjust it in the software interface.
Switch to the Joint or Tool pose tab and modify the joint positions or tool pose of the selected point. After confirming that the robot is connected, click Move real robot to selected point and check that the adjusted point is within the camera’s field of view and does not cause interference.
-
Update the pose using the robot teach pendant.
Click Disconnect robot, switch the robot to manual mode, and jog it to the target pose. Then switch to automatic mode, click Connect robot, and click Set selected point as real robot pose.
-
-
Insert an intermediate point.
Select an existing path point in the calibration point list, click + on the right of the list, and then select Insert intermediate waypoint before or Insert intermediate waypoint after.
-
Delete an intermediate point.
Select the intermediate point to delete in the calibration point list, click - on the right of the list, and then select Delete intermediate waypoint.
Obtain Images & JPs
-
Make sure that the equipment and calibration path are ready.
Make sure that the camera and robot are connected and that the calibration path has been checked. This prevents the acquisition from being interrupted by connection or path issues.
-
Check that the acquisition environment is safe.
Make sure that the area around the robot is safe, there are no obstacles within its motion range, and the emergency stop device is available. The robot moves automatically during acquisition; keep people away from its motion range.
-
Set the acquisition parameters and start calibration.
Set the Execution speed and Waiting time, and then click Start calibration to start automatic data acquisition.
-
Acquire images and joint positions automatically.
The robot moves along the calibration path in sequence. The camera captures images at each calibration point, and the software records the robot joint positions at the same time. These data are used to calculate the calibration parameters.
-
Monitor the acquisition and check the results.
Continue to monitor the robot’s movement. If there is a risk of collision, stop the operation immediately and press the emergency stop button. When acquisition is complete, check the results in the Message area to confirm the acquisition status.
|
The robot moves automatically along the calibration path. Keep people away from the robot’s motion range. If there is a risk of collision, press the emergency stop button immediately. |
Calculate the Calibration Parameters
-
Calculate the calibration parameters.
Click Calculate calibration parameters. The tool calculates the robot parameters based on the acquired calibration data.
-
Save the calibration results.
After the calculation succeeds, set the save location in Calibration result save path and click Save calibration result to save the results for subsequent verification and application.
-
Review the calculation results.
Make sure that the results are saved, and review the calibration result evaluation and residual plots before and after calibration.
Validate Calibration Result
-
Set the verification parameters.
Set the Execution speed and Waiting time based on the site conditions.
-
Acquire test point data.
Click Start verification. The robot moves to the test points to acquire verification data and calculate the errors.
-
Evaluate the calibration results.
Review Average error, Max error, and Calibration result evaluation to make sure that the calibration results meet the requirements.
Apply Calibration Result
Reproduce Calibration Results
The calibration results are saved in the robot_calibration folder under the solution directory. The folder name consists of the robot model and a timestamp.
The folder contains calibration information and data. In the Configuration before Calibration window, select Load calibration parameters, and then select the corresponding calibration result folder to reproduce the existing calibration data.
Manually Modify the Robot Zero Positions
Robot zero position error is the difference between the actual joint position and the zero position when each joint is at zero according to the teach pendant. To correct the robot zero positions, you can modify them manually.
First, move all robot joints to the zero positions shown on the teach pendant. Use the opposite of each error value in the Robot zero position error table as the offset, and adjust the corresponding joint. Then use the zero calibration or modification function provided by the robot manufacturer to set the current position as the zero position. The operation varies by robot brand; follow the instructions provided by the robot manufacturer.