Validate hand-eye calibration¶
This task checks the quality of the hand-eye calibration of the active camera. The following steps are carried out for this purpose:
Move the robot to the specified validation pose.
Wait until the robot has reached the pose.
Record point cloud.
Search for validation object in point cloud.
Read the pose of the validation object from the URDF.
Determine the deviation between the model pose and the pose recognized in the point cloud. The distance error \(e_{\mathrm{Trans}}\) and the angle error \(e_{\mathrm{Rot}}\) are determined.
Compare the errors determined with the accuracy of the last hand-eye calibration performed.
Hint
The task can also be used to check the TCP calibration by specifying a part of the gripper or the entire gripper group as the validation object.
Warning
The success of the validation is heavily dependent on the quality of the object recognition of the validation object used or the corresponding product!
Variablen¶
Input/Output |
Name |
Typ |
Description |
|---|---|---|---|
Input |
Validation object |
String |
Name of the validation object. A product with this name must be set up (products are defined in the Product management) and a URDF object with this name must exist (URDF objects are defined in the Cell geometry). For a fixed camera setup, link 4 of the robot arm is clearly visible on most robots and is therefore suitable as a validation object. |
Input |
Validation pose |
Pose |
Robot flange pose adopted for validation |
Input (optional) |
Permitted deviation |
Double |
Scaling \(f\) of the limit value for successful validation. (Default is 1 for 100% of the mean error of the last HAK) |
Sequence change¶
Name |
Condition |
Remark |
|---|---|---|
Validation failed |
Unexpected error occurred |
E.g. no URDF object / product set up, product not found in point cloud, … |
Limit value exceeded |
\(e_{\mathrm{Trans}} > f \cdot \bar{e}_{\mathrm{Trans}}\) oder \(e_{\mathrm{Rot}} > f \cdot \bar{e}_{\mathrm{Rot}}\) |
Determined distance and/or angle error is greater than during the last HAK. A detailed description of the error calculation can be found here Calculation of the deviation |
Detailed description¶
Collision monitoring and grip planning in Mikado are always carried out in global coordinates, i.e. the point cloud and the robot pose are transformed into the global coordinate system. To be able to do this, Mikado requires very precise information about the robot’s joint position on the one hand and very precise information about the camera’s mounting position on the other. The process of hand-eye calibration determines the transformation between the camera and the robot base in the case of a fixed camera. In the case of a mobile camera, the transformation between the robot flange and the camera is determined by the HAK. If the robot pose visible in the point cloud differs from the visualized robot pose, there can be two reasons for this:
the robot calibration is incorrect: the joint angles received from the robot controller do not correspond to the actual joint angles or
the mounting position of the camera determined by the HAK does not correspond to the actual mounting position.
The following figure provides an overview of the various transformation chains. The transformations marked in blue are determined by the hand-eye calibration (Hand-eye calibration), in each case for the two cases fixed or mobile camera. The transformations marked in black are determined by the joint angles obtained from the robot controller. The orange marked transformation from the robot flange to the gripper (Calibrate TCP) is determined by the Cell geometry and can only be modified in the Assistant.
Overview of the relevant transformations¶
To check the quality of the hand-eye calibration, the point cloud is compared with the Mikado-internal model of the cell. To do this, a validation object, which is also an integral part of the cell, is searched for in the point cloud and checked to see whether the recognized pose matches the model pose. The following figure shows a successful validation of the hand-eye calibration with link_4 as the validation object. The robot model (shown here in blue with half opacity) matches the point cloud (shown by the colored dots). To quantify the match, the detection algorithm specified in the validation product is used to determine the exact pose of link_4 in the point cloud (the detected product is highlighted in white in the figure). This pose is then compared with the model pose of link_4.
Successful validation of the hand-eye calibration¶
Calculation of the deviation¶
If the hand-eye calibration has become invalid due to a change in the mounting position of the camera (caused by a collision, for example), this can be quickly recognized with the help of this task. The following illustration shows a failed validation. The model pose (again shown in blue with half opacity) differs greatly from the point cloud. The deviation between the model pose and the recognized pose of the validation object is correspondingly large.
Failed validation of the hand-eye calibration¶
Here \(^{\mathrm{model}}T_{\mathrm{match}}\) denotes the transformation between the model pose and the pose recognized in the point cloud, which is called \(T\) in the following for the sake of simplicity. The distance error \(e_{\mathrm{Trans}}\) now results from the Euclidean norm of the translation part \(t\) of the transformation \(T\):
where \(t\) results from the transformation matrix:
Each 3-dimensional rotation can be represented by an axis of rotation and an angle of rotation \(\theta\) around this axis. This property is used to determine the angular error and the rotation component \(R\) is first converted into this axis-angle representation. The angular error is defined as the magnitude of the rotation angle:
It should be noted that the angular error only provides information about the rotation around the axis of rotation, but no information about the orientation of this axis.