A truss robot hand-eye calibration method, device and system
By installing a calibration pin at the end of the Z-axis of the truss robot and calculating the homogeneous transformation matrix, the hand-eye calibration process is simplified, tedious and complex problems in the existing technology are solved, and fast and accurate robot calibration and grasping tasks are achieved.
Patent Information
- Application Number
- CN202311806115.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-12-25
AI Technical Summary
In the existing technology, the hand-eye calibration process of the truss robot is cumbersome and complicated, and it is impossible to quickly and accurately guide the manipulator to complete the grasping task, and the rotational freedom of the end effector of the manipulator is not considered.
By installing a calibration pin at the center of the Z-axis end of the truss robot, the calibration plate image and point cloud data are collected, the homogeneous transformation matrix is calculated, and the calibration process is simplified, including calculating the transformation matrix from the camera point cloud coordinate system to the robot base coordinate system and the tool coordinate system. The transformation matrix to the robot's base coordinate system optimizes the calibration process.
It simplifies the robot calibration operation, improves the calibration speed and accuracy, reduces the number of robot movements, and achieves fast and accurate grabbing and processing operations.
Smart Images

Figure CN117754572B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial robots, and in particular to a truss robot hand-eye calibration method, device and system. Background Art
[0002] As a type of industrial robot, the truss robot has the advantages of good rigidity, high strength, large working space, and a wide range of applicable occasions compared to other industrial robots. It is widely used in the manufacturing field, such as loading and unloading, assembly, stacking, packaging and other tasks, and has made outstanding contributions to the intelligent development of the manufacturing industry.
[0003] The visual sensor is equivalent to the "eyes" of the robot, which can guide the robot arm to perform autonomous grasping, welding and other tasks. Hand-eye calibration is an important link in the interaction between the robot arm and the real world under the perspective of visual sensing, and is a key technical link in realizing robot vision-guided positioning. According to the different camera installation positions in the robot visual servo control system, it can be divided into two installation methods: eye-in-hand and eye-out-of-hand. In the Eye-to-Hand method, the camera is fixed and is mainly used for the identification and positioning of targets in a fixed area. The Eye-in-Hand method is to install a camera at the end of the robot arm. The camera moves with the end of the robot arm, which can give the robot active vision function. Therefore, its application range is wider than that of the Eye-to-Hand method.
[0004] In the prior art, the patent with application number 202010741078.4 discloses a hand-eye calibration method for a three-degree-of-freedom parallel robot based on a 3D vision sensor. It only considers the translational degrees of freedom in the three mutually orthogonal directions of the truss robot, but does not consider the rotational degrees of freedom of the end effector of the robotic arm. In addition, the calibration process requires controlling the actuator of the robotic arm to perform two mutually perpendicular translation movements. The operation is cumbersome and the calculation is complex. Summary of the invention
[0005] In view of this, the present invention proposes a truss robot hand-eye calibration method, device and system to solve the problem that the truss robot hand-eye calibration process in the prior art is cumbersome and complicated, and cannot quickly and accurately guide the manipulator to complete the grasping task.
[0006] The technical solution of the present invention is achieved in this way:
[0007] In one aspect, the present invention provides a truss robot hand-eye calibration method, comprising the following steps:
[0008] S1. Assemble the calibration pin and the Z-axis end center of the truss robot, and randomly attach n calibration objects to the calibration board to ensure that there are at least 3 non-collinear contact points in the same plane, where n ≥ 3;
[0009] S2, collect the calibration plate image, and calculate the three-dimensional coordinates of the calibration object center in the camera point cloud coordinate system {C};
[0010] S3, operate the robot to move so that the calibration target contacts the center of the calibration object, and calculate the three-dimensional coordinates of the center of the calibration object {B} in the base coordinate system;
[0011] S4. Calculate the homogeneous transformation matrix from the camera point cloud coordinate system {C} to the truss robot base coordinate system {B} base H cam ;
[0012] S5. Calculate the homogeneous transformation matrix from the tool coordinate system {G} to the truss robot base coordinate system {B} base H tool ;
[0013] S6. Calculate the homogeneous transformation matrix from the camera point cloud coordinate system {C} to the tool coordinate system {G} tool H cam ,in, tool H cam =( base H tool ) -1 · base H cam .
[0014] On the basis of the above technical solution, preferably, before step S1, it also includes establishing a mathematical model for hand-eye calibration of the truss robot vision system, taking the zero point of the truss robot as the origin, and establishing a robot base coordinate system {B} along the three orthogonal motion axis directions; taking the center of the Z-axis end of the truss robot as the origin, and establishing a tool coordinate system {G} along the same coordinate axis direction as the base coordinate system {B}, the camera point cloud coordinate system {C} is set on the camera, the origin of the camera point cloud coordinate system {C} coincides with the optical center, and the Z axis coincides with the optical axis of the camera.
[0015] On the basis of the above technical solution, preferably, in step S2, the step of calculating the three-dimensional coordinates of the center of the calibration object in the camera point cloud coordinate system {C} includes: controlling the truss robot to move to the photo-taking position, recording the three-dimensional coordinates p0=(x0, y0, z0) of the center point of the Z-axis end of the truss robot in the robot base coordinate system {B} and the rotation angle A0 of the end effector when the camera takes the image, using the image processing circle finding method to sequentially calculate the pixel coordinates of the centers of i calibration objects on the calibration plate in the image, and then combining the camera intrinsic parameters and depth information to sequentially calculate the three-dimensional coordinates of the centers of i calibration objects on the calibration plate in the point cloud coordinate system {C} Among them, n≥3.
[0016] On the basis of the above technical solution, preferably, in step S3, the step of calculating the three-dimensional coordinates of the center of the calibration object in the base coordinate system {B} includes: sequentially contacting and overlapping the needle tip of the calibration needle with the centers of i calibration objects on the calibration plate, and sequentially recording the three-dimensional coordinates of the center point of the Z-axis end of the truss robot in the robot base coordinate system {B} when overlapping, and using the structural parameter L to calculate the three-dimensional coordinates of the centers of i calibration objects on the calibration plate in the base coordinate system {B} Among them, the structural parameter L is the length of the calibration needle.
[0017] Based on the above technical solution, preferably, in step S4, the homogeneous transformation matrix is calculated base H cam The methods include:
[0018] S41, remember C p i , B p i They represent the three-dimensional coordinates of the i-th marker point in the camera coordinate system {C} and the three-dimensional coordinates of the robot base coordinate system {B}, respectively. There is a one-to-one correspondence between the two. The point set formed by the marker point in the camera coordinate system {C} is G1={ C p1, C p2, C p i ,…, C p n}, the point set formed by the landmark points in the robot base coordinate system {B} is G2 = { B p1, B p2, B p i ,…, B p n}, i=1,2,…,n,n≥3;
[0019] S42. Use formula (1) to calculate the centroid of the two sets of points respectively:
[0020]
[0021] Where centroid C 、centroid B They are the centroid of the point set of the landmark point in the camera point cloud coordinate system and the robot base coordinate system respectively;
[0022] S43, move the point set to the origin and calculate the optimal approximate rotation matrix The calculation steps are:
[0023] First, the point set is reinitialized to generate new point sets G′1 and G′2, G′1={x1,x2,x i ,…,x n}, G′2={y1,y2,y i ,…,y n}, i=1,2,…,n, n≥3. where y i = B P i -centroid B 、x i = C P i -centroid C ;
[0024] Next, calculate the covariance matrix H between the point sets G′1 and G′2, then
[0025]
[0026] Then, the U, S and V of the matrix H are obtained by the SVD method, and the rotation matrix between the point sets is calculated using equations (3) and (4):
[0027] [U,S,V]=SVD(H) (3)
[0028]
[0029] Where U and V are 3×3 orthogonal matrices, and S is a 3×3 diagonal matrix;
[0030] S44. Calculate the translation vector
[0031]
[0032] S45, rotate the matrix and translation vectors Merge into a 4x4 transformation matrix and get in
[0033] Based on the above technical solution, preferably, in step S5, the homogeneous transformation matrix is calculated base H tool The method includes: assuming that the motion parameters of each axis read from the teaching pendant when the camera collects data are X0, Y0, Z0, and A0, respectively, where X0, Y0, and Z0 are the motion positions of the robot's X, Y, and Z axes relative to the base coordinate system, and A0 is the rotation angle of the robot's end effector relative to the Z axis of the truss robot. Using X0, Y0, and Z0, a 3×1 translation vector can be constructed, that is, Since the rotation angles of the end effector relative to the X and Y axes of the truss robot are both 0, the matrix [0 0 A0] can be converted into a 3×3 rotation matrix through the transformation relationship between the RPY angle and the rotation matrix: Will and Merge to get a 4×4 matrix
[0034] On the basis of the above technical solution, preferably, when the camera shooting posture changes, the relative posture of the robot end effector and the robot base coordinate system {B} will also change, and the transformation matrix from the tool coordinate system {G} to the robot base coordinate system {B} in the current state is obtained through step S5. base H′ tool , using the formula B P= base H′ tool · tool H cam C P calculates the three-dimensional coordinates of any feature point in the camera point cloud coordinate system {C} C X=[x c y c z c ] T The three-dimensional coordinates of the robot base system {B} B X=[x B y B z B ] T The following mapping relationship, C P. B P is the homogeneous coordinate expression, C P=[ C X 1] T , B P=[ B X1] T .
[0035] In a second aspect, the present invention discloses a truss robot hand-eye calibration device, comprising:
[0036] The calibration acquisition module includes a calibration plate and a calibration needle. The top end of the calibration needle is vertically installed at the center of the Z-axis end rotation mechanism of the truss robot and shares the same origin with the end effector installed at the center of the Z-axis end rotation mechanism of the truss robot. The calibration needle is used to obtain the three-dimensional coordinates of the center of the calibration object on the calibration plate in the robot base coordinate system.
[0037] The camera is installed on the rotating mechanism at the end of the Z axis of the truss robot and keeps a fixed relative position with the end effector. It is used to collect the image of the calibration plate to obtain the three-dimensional coordinates of the center of the calibration object on the calibration plate in the camera point cloud coordinate system;
[0038] A control module is used to control the Z-axis end of the truss robot to move to the calibration plate position in the workspace of the robot vision system to be calibrated, so that the camera can capture the calibration object pattern on the calibration plate, and the bottom end of the calibration needle contacts the center of the calibration object on the calibration plate;
[0039] The calculation module is used to calculate the homogeneous transformation matrix of the tool coordinate system {G} relative to the robot base coordinate system {B} base H tool , the homogeneous transformation matrix of the camera point cloud coordinate system {C} relative to the robot base coordinate system {B} base H cam ,according to base H tool and base H cam Solve the homogeneous transformation matrix of the camera coordinate system {C} relative to the robot tool coordinate system {G} tool H cam .
[0040] In the third aspect, the present invention discloses a truss robot hand-eye calibration system, including a truss robot, a control device, a camera and a calibration pin, the calibration pin is installed at the center of the rotating mechanism at the end of the Z-axis of the truss robot and shares the same origin with the end effector, the camera and the end effector are installed together on the rotating mechanism at the end of the Z-axis of the truss robot and maintain a fixed relative position with the end effector, the control device includes a memory and a processor, the memory stores a computer program, and the processor implements the truss robot hand-eye calibration method described in the first aspect when executing the computer program.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] The present invention installs a calibration needle at the center of the Z-axis end of the truss robot, and collects a calibration plate image and corresponding point cloud data once through the camera at the Z-axis end of the truss robot. It only needs to operate the robot's mechanical arm to move so that the calibration needle contacts multiple calibration points on the calibration plate respectively, and the calibration data collection work can be completed. The calibration tool used in the entire calibration process is simple, the operation process is simple, and the calculation is convenient, which greatly simplifies the operation process of the robot calibration point, and can effectively and quickly complete the robot calibration. Therefore, before the production line starts working, in order to ensure that the robot can accurately grab objects or accurately fall on objects for processing, etc., the robot calibration process does not need to move the robot multiple times, and can be completed quickly. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 It is a flow chart of the hand-eye calibration method of the truss robot disclosed in the present invention;
[0045] Figure 2 It is a schematic diagram of the three-dimensional structure of the truss robot disclosed in the present invention;
[0046] Figure 3 It is a three-dimensional schematic diagram of the assembly structure of the end effector, camera, calibration pin and rotating mechanism disclosed in the present invention;
[0047] Figure 4 It is a plan view schematic diagram of the assembly structure of the end effector, camera, calibration pin and rotating mechanism disclosed in the present invention;
[0048] Figure 5 It is a schematic diagram of the hand-eye calibration mathematical model disclosed in the present invention;
[0049] Reference numerals:
[0050] 100. Truss robot; 110. End effector; 120. Camera; 130. Calibration pin; 140. Rotation mechanism. DETAILED DESCRIPTION
[0051] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] like Figure 1 As shown, the embodiment of the present invention discloses a truss robot hand-eye calibration method, comprising the following steps:
[0053] Step S1, assemble the calibration pin and the Z-axis end center of the truss robot, randomly stick n calibration objects on the calibration board, and make sure that there are at least 3 non-collinear contact points in the same plane, where n≥3.
[0054] Specifically, during the setting of the calibration board, at least three calibration stickers can be pasted on the calibration board, or at least three calibration graphics can be directly printed on the calibration board as calibration objects, which are used as calibration points. It can be understood that points that are not on the same straight line determine a plane. In order to ensure that the robot can accurately locate the object, there are at least 3 calibration objects on the calibration board.
[0055] Since the robotic arm of the truss robot of this embodiment needs to translate in three directions, X / Y / Z, and the Z-axis end of the robotic arm is also equipped with a rotation mechanism to drive the end effector to rotate around the Z axis at any angle in the XY plane, the end effector can be understood as a gripper mechanism for clamping the target object.
[0056] In this embodiment, the calibration needle is installed at the center of the Z-axis end of the truss robot, specifically at the center of the rotating flange of the rotating mechanism, and the end effector is also installed at the center of the rotating flange. Since the end effector of this embodiment is a clamp, the clamp is horizontally opened in the initial state, and the calibration needle is vertically installed between the clamps. The top of the calibration needle is detachably connected to the center of the rotating flange, that is, when the calibration work of the calibration robot is completed, the calibration needle can be removed. In this embodiment, the top of the calibration needle can be used as the initial origin of the end effector.
[0057] In order to establish a robot vision system, this embodiment installs the camera on the rotating flange of the above-mentioned rotating mechanism, so that the camera and the end effector maintain a fixed relative position, and the camera can rotate around the Z axis on the XY plane together with the end effector driven by the rotating mechanism.
[0058] It is worth noting that in order to perform hand-eye calibration, it is also necessary to establish a mathematical model for hand-eye calibration of the truss robot vision system. For details, refer to the attached Figure 5As shown, in this embodiment, the robot base coordinate system {B} is established along the three orthogonal motion axis directions with the zero point of the truss robot as the origin; the tool coordinate system {G} is established along the same coordinate axis direction as the base coordinate system {B} with the center of the rotating flange on the rotating mechanism at the end of the Z-axis of the truss robot as the origin, and the tool coordinate system {G} can also be understood as the coordinate system of the end effector; {C} is the camera point cloud coordinate system, the camera coordinate system is fixed on the camera, the origin of the camera coordinate system coincides with the optical center, the Z-axis coincides with the optical axis of the camera, and {W} is the world coordinate system, which can be directly fixed on the calibration plate.
[0059] Step S2: collect the calibration plate image and calculate the three-dimensional coordinates of the center of the calibration object in the camera point cloud coordinate system {C}.
[0060] During the specific operation, use the robot teach pendant to move the robotic arm to the appropriate position, adjust the camera acquisition parameters, collect a 2D calibration plate image and the corresponding 3D point cloud, and then read and record the relative position of the end effector in the robot base coordinate system from the teach pendant.
[0061] Among them, the posture of the end effector in the robot base coordinate system is composed of position and posture. The moving positions of the X, Y, and Z axes relative to the robot base coordinate system constitute the position of the end effector in the robot base coordinate system. The posture of the end effector in the robot base coordinate system is determined by the rotation angle of the rotating mechanism at the end of the robot's Z axis, which represents the rotation angle of the end effector around the Z axis.
[0062] In this embodiment, the three-dimensional coordinates p0 = (x0, y0, z0) of the center point of the rotating flange at the end of the truss robot Z-axis in the robot base coordinate system {B} and the rotation angle α of the end effector are used to calculate the pixel coordinates of the centers of n calibration objects on the calibration plate in the image in sequence using the image processing circle finding method, and then the three-dimensional coordinates of the centers of n calibration objects on the calibration plate in the point cloud coordinate system {C} are calculated in sequence using the point cloud registration technology.
[0063] Step S3, operate the robot to move so that the calibration target contacts the center of the calibration object, and calculate the three-dimensional coordinates of the center of the calibration object {B} in the base coordinate system;
[0064] Specifically, the needle tip of the calibration needle is contacted and overlapped with the centers of n calibration objects on the calibration plate in turn, and the three-dimensional coordinates of the center point of the rotating flange at the end of the truss robot Z axis in the robot base coordinate system {B} are recorded in turn, and the three-dimensional coordinates of the centers of the n calibration objects on the calibration plate in the base coordinate system {B} are calculated using the structural parameter L. Among them, the structural parameter L is the length of the calibration needle.
[0065] Assume that there are three calibration objects on the calibration board, and use the teach pendant to control the movement of the robot arm so that the calibration needle touches the center of the three calibration objects in turn, and the teach pendant reading is recorded every time a mark point is touched. Assuming that the teach pendant reading is {x′, y′, z′}, the position of the mark point in the robot base coordinate system is [x′, y′, z′+L], where L is the distance from the calibration needle tip to the origin of the tool coordinate system.
[0066] Step S4: Calculate the homogeneous transformation matrix from the camera point cloud coordinate system {C} to the truss robot base coordinate system {B} base H cam .
[0067] S5. Calculate the homogeneous transformation matrix from the tool coordinate system {G} to the truss robot base coordinate system {B} base H tool ;
[0068] S6. Calculate the homogeneous transformation matrix from the camera point cloud coordinate system {C} to the tool coordinate system {G} tool H cam ,in, tool H cam =( base H tool ) -1 · base H cam .
[0069] The present invention constructs two groups of point sets using the three-dimensional coordinates of the marking points on the calibration plate in the camera point cloud coordinate system and the robot base coordinate system respectively, and uses the singular value decomposition method to iteratively solve the nearest point problem to obtain the homogeneous transformation matrix from the camera point cloud coordinate system to the robot base coordinate system; the homogeneous transformation matrix from the tool coordinate system to the robot base coordinate system is obtained by using the end effector posture during image capture, which can quickly and accurately calibrate the hand-eye of the truss robot, thereby guiding the end effector to accurately grasp the object.
[0070] As some implementations, the homogeneous transformation matrix is calculated as follows base H cam Specific steps:
[0071] First, remember C p i , B p i denote the three-dimensional coordinates of the i-th marker point in the camera coordinate system {C} and the three-dimensional coordinates of the robot base coordinate system {B} respectively. Then the point set formed by the marker point in the camera coordinate system {C} is G1={ C p1, C p2, C p i ,…, C pn}, the point set formed by the landmark points in the robot base coordinate system {B} is G2 = { B p1, B p2, B p i ,…, B p n}, i=1,2,…,n,n≥3.
[0072] Assuming that there is a rigid transformation between the corresponding points in the point sets G1 and G2, then there is a relationship
[0073] B X i = base H cam C X i (1)
[0074] In formula (1) C X i =[ C P i 1] T , B X i =[ B P i 1] T , is a 3×3 rotation matrix, is a 3×1 translation vector. Due to measurement errors and noise interference, there are matching errors between the corresponding points in point sets G1 and G2. In order to solve the optimal transformation that maps point set G1 to G2 and The least squares error equation can be constructed:
[0075]
[0076] In formula (2) and They are and As the result of the least squares solution of equation (2), the point sets G1 and G2 will have the same centroid. Using this constraint, we can get:
[0077]
[0078] Formula (2) can be rearranged through formula (3) to obtain:
[0079]
[0080] Formula (5) can be obtained by formula (4):
[0081]
[0082] Centroid C 、centroid B are the centroids of point sets G1 and G2 respectively.
[0083] Move the point set to the origin and calculate the optimal approximate rotation matrix As The calculation steps are:
[0084] First, the point set is reinitialized to generate new point sets G′1 and G′2, G′1={x1,x2,x i ,…,x n}, G′2={y1,y2,y i ,…,y n}, i=1,2,…,n, n≥3. where y i = B P i -centroid B 、x i = C P i -centroid C ; We can continue to simplify the minimization expression of formula (4),
[0085]
[0086] In formula (6) is a constant. When the last term of equation (6) When it is maximized, equation (6) is minimized, which is equivalent to maximizing tr represents the trace of the solution matrix. To this end, we then calculate the covariance matrix H between the point sets G′1 and G′2, then
[0087]
[0088] Then, the SVD method is used to obtain U, S and V of the matrix H, and the optimal approximate rotation matrix between the point sets is calculated using equations (8) and (9):
[0089] [U,S,V]=SVD(H) (8)
[0090]
[0091] Where U and V are 3×3 orthogonal matrices, and S is a 3×3 diagonal matrix.
[0092] Use formula (10) to calculate the translation vector
[0093]
[0094] The rotation matrix and translation vectors Merge into a 4x4 transformation matrix and get in
[0095] It is worth noting that, in the above embodiment, in order to reduce the influence of calibration operation and measurement error on the accuracy of collected data, the least square method is used for solution, which is simple and convenient, and the accuracy can meet the requirements.
[0096] In step S5, the homogeneous transformation matrix is calculated base H tool The methods include:
[0097] Assuming that the positions of the X-axis, Y-axis, Z-axis, and rotation axis of the truss robot are read from the teach pendant when the camera collects image data, respectively, then the relative position of the gripper in the coordinate system {B} is The units of X0, Y0, and Z0 are mm. A0 represents the rotation angle of the end gripper of the truss robot around the Z axis of the truss robot, and the unit is degree. Since the rotation angle of the end gripper of the truss robot relative to the X and Y axes of the truss robot is 0, the RPY angle of the relative posture of the gripper in the robot base coordinate system {B} can be expressed by a matrix as [0 0 α], where α is the radian form of A0, and the unit is radian, α=A0 / 180*π.
[0098] The RPY angle of the relative posture of the gripper in the coordinate system {B} is converted into a rotation matrix form:
[0099]
[0100] Let a=0, b=0, c=α, then
[0101]
[0102] The rotation matrix with translation vector Merge to get a 4×4 homogeneous transformation matrix base H tool , is a 3×3 rotation matrix, is a 3×1 translation vector.
[0103] In the above embodiment, the motion of each axis is directly obtained by using the teaching pendant for solving, and the calculation is simple.
[0104] When the calculation is obtained base Hcam and base H tool , through the formula tool H cam =( base H tool ) -1 · base H cam Then we can solve tool H cam .
[0105] Since the gripper and the camera are fixedly installed, their relative position relationship is fixed, that is, tool H cam When the camera shooting posture changes, the relative posture of the robot end effector and the robot base coordinate system {B} will also change. Step S5 is used to calculate the transformation matrix from the tool coordinate system {G} to the robot base coordinate system {B} in the current state. base H′ tool , using the formula B P= base H′ tool · tool H cam P C Calculate the three-dimensional coordinates of any feature point in the space in the camera coordinate system {C} C X=[x c y c z c ] T The three-dimensional coordinates of the robot base system {B} B X=[x B y B z B ] T The following mapping relationship, C P. B P is a homogeneous coordinate expression, and C P=[ C X 1] T , B P=[ B X 1] T .
[0106] The present invention has the following effects by adopting the above-mentioned hand-eye calibration method:
[0107] 1. The calibration tool is simple: a calibration pin and a calibration plate with a circular marker pattern. The calibration pin is installed at the center of the Z-axis end of the truss robot, and the calibration plate is placed in the camera's field of view. During the calibration process, the calibration plate remains in place.
[0108] (2) The operation process is simple: first, use the teach pendant to operate the robot arm to move to the appropriate position, collect a 2D image of the calibration plate and the corresponding 3D point cloud; after taking the photo, continue to operate the robot arm to move so that the calibration needle contacts multiple calibration points on the calibration plate. Each time the robot arm moves, it is necessary to read and record the X, Y, Z positions and the rotation angle of the end rotation axis from the teach pendant to obtain the end position of the robot.
[0109] (3) Simple calculation: Using the robot end position obtained when shooting the image, the homogeneous transformation matrix of the tool coordinate system relative to the robot base coordinate system is directly calculated base H tool ;exist base H cam During the calculation process, we first construct two sets of 3D point sets G1 and G2 using the three-dimensional coordinates of the marker points on the calibration plate in the camera point cloud coordinate system and the robot base coordinate system respectively; then, we calculate the centroid of each point set. C 、centroid B , and calculate the centroid coordinates of each point in each point set to construct two new point sets G′1 and G′2; then, calculate the covariance matrix H between the two new point sets, and use the singular value SVD method to decompose the matrix to obtain the rotation matrix Finally, we get the translation vector By transforming the rotation matrix and translation vectors Merge to form a 4x4 change matrix base H cam , using the formula tool H cam =( base H tool ) -1 · base H cam Then the homogeneous transformation matrix from the camera point cloud coordinate system {C} to the tool coordinate system {G} can be quickly calculated tool H cam , thereby realizing the hand-eye calibration operation of the truss robot.
[0110] The embodiment of the present invention also discloses a truss robot hand-eye calibration device, Figure 2-4 As shown, it includes a calibration acquisition module, a camera, a control module and a computing module.
[0111] Among them, the calibration acquisition module includes a calibration plate and a calibration needle. The top of the calibration needle is vertically installed at the flange center of the Z-axis end rotation mechanism of the truss robot, and shares the origin with the end effector installed at the flange center of the Z-axis end rotation mechanism of the truss robot. The calibration needle is used to obtain the three-dimensional coordinates of the center of the calibration object on the calibration plate in the robot base coordinate system;
[0112] The camera is installed on the rotating mechanism at the end of the Z-axis of the truss robot and maintains a fixed relative position with the end effector. It is used to collect the image of the calibration plate to obtain the three-dimensional coordinates of the center of the calibration object on the calibration plate in the camera point cloud coordinate system; in this embodiment, the camera is a 3D industrial camera.
[0113] The control module is used to control the Z-axis end of the truss robot to move to the calibration plate position in the workspace of the robot vision system to be calibrated, so that the camera can capture the calibration object pattern on the calibration plate and make the bottom end of the calibration needle contact with the center of the calibration object on the calibration plate; in this embodiment, the control module is preferably a controller, which is arranged on the truss robot to control the movement of the robot and the action of the camera.
[0114] The calculation module is used to calculate the homogeneous transformation matrix of the tool coordinate system {G} relative to the robot base coordinate system {B} tool H cam , the homogeneous transformation matrix of the camera point cloud coordinate system {C} relative to the robot base coordinate system {B} base H cam ,according to tool H cam and base H cam Solve the homogeneous transformation matrix of the camera coordinate system {C} relative to the robot tool coordinate system {G} tool H cam In this embodiment, the computing module is a processing system.
[0115] The truss robot hand-eye calibration device of the embodiment of the present invention installs a calibration pin at the center of the Z-axis end of the truss robot, and collects a calibration plate image and corresponding point cloud data once through the camera at the Z-axis end of the truss robot. The calibration data collection work can be completed by only operating the robot's mechanical arm to move so that the calibration pin contacts multiple calibration points on the calibration plate respectively, which simplifies the operation process of the robot calibration point and can effectively and quickly complete the robot calibration. Therefore, before the production line starts working, in order to ensure that the robot can accurately grasp objects or accurately fall on objects for processing, etc., the robot calibration process does not need to move the robot multiple times, and can be completed quickly.
[0116] The present invention also discloses a truss robot hand-eye calibration system, including a truss robot, a control device, a camera and a calibration pin, the calibration pin is installed at the center of the rotating mechanism at the end of the Z-axis of the truss robot and shares the same origin with the end effector, the camera is installed on the rotating mechanism at the end of the Z-axis of the truss robot and maintains a fixed relative position with the end effector, the control device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the truss robot hand-eye calibration method described in the first aspect is implemented.
[0117] The truss robot hand-eye calibration system disclosed in the present invention has a simple overall structure, concise calibration operation steps, simple processing and calculation methods, and simplifies the operation process of robot calibration points, which can effectively and quickly complete robot calibration while reducing time consumption. Therefore, before the production line starts working, in order to ensure that the robot can accurately grasp objects or accurately fall on objects for processing, the robot calibration process does not need to move the robot multiple times, and can be completed quickly.
[0118] It should be noted that the computer-readable storage medium of the present embodiment may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0119] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A truss robot hand-eye calibration method, characterized in that: The steps include: S1. Assemble the calibration pin and the center of the Z-axis end of the truss robot. n The calibration objects are randomly attached to the calibration board, and it is determined that there are at least three non-collinear contact points in the same plane. n ≥3; S2, collect the calibration plate image, calculate the calibration object center in the camera point cloud coordinate system { C }Three-dimensional coordinates under; S3, operate the robot to move, so that the calibration point contacts the center of the calibration object, and calculate the center of the calibration object in the base coordinate system { B }'s three-dimensional coordinates; S4, calculate the camera point cloud coordinate system { C } to the truss robot base coordinate system { B The homogeneous transformation matrix of ; S5. Calculation tool coordinate system { G } to the truss robot base coordinate system { B The homogeneous transformation matrix of ; S6. Calculate the camera point cloud coordinate system { C } to tool coordinate system { G The homogeneous transformation matrix of ,in, ; In step S4, the homogeneous transformation matrix is calculated The methods include: S41, remember , Respectively represent i The landmark points are in the camera coordinate system { C } and the robot base coordinate system { B }, there is a one-to-one correspondence between the two, then the marker point is in the camera coordinate system { C The point set formed by , the landmark point is in the robot base coordinate system { B The point set formed by , , ; S42. Use formula (1) to calculate the centroid of the two sets of points respectively: (1) In the formula, , They are the centroid of the point set of the landmark point in the camera point cloud coordinate system and the robot base coordinate system respectively; S43, move the point set to the origin and calculate the optimal approximate rotation matrix , the calculation steps are: First, reinitialize the point set to generate a new point set and , , , , ,in , ; Next, calculate the point set and The covariance matrix between ,but (2) Then, the matrix is obtained by SVD method of U , S and V , use equations (3) and (4) to calculate the rotation matrix between point sets ; (3) (4) In the formula, U and V for The orthogonal matrix of S for The diagonal matrix of ; S44. Calculate the translation vector : (5) S45, rotate the matrix and translation vectors Merge into a 4x4 transformation matrix and get ,in , .
2. The truss robot hand-eye calibration method according to claim 1, characterized in that: Before step S1, it also includes establishing a mathematical model for hand-eye calibration of the truss robot vision system, taking the zero point of the truss robot as the origin, and establishing a robot base coordinate system { B }; Take the center of the Z-axis end of the truss robot as the origin, along the base coordinate system { B }Establish tool coordinate system with the same coordinate axis direction{ G }; Camera point cloud coordinate system { C }Set on the camera, camera point cloud camera coordinate system{ C } coincides with the optical center, Z Axis coincides with the camera optical axis.
3. The truss robot hand-eye calibration method according to claim 2, characterized in that: In step S2, the center of the calibration object is calculated in the camera point cloud coordinate system { C The steps of obtaining the three-dimensional coordinates include: controlling the truss robot to move to the photo taking position, recording the image taken by the camera, and the center point of the Z axis end of the truss robot in the robot base coordinate system { B }Three-dimensional coordinates under and the end effector rotation angle , and use the image processing circle finding method to calculate the n The pixel coordinates of the center of the calibration object in the image are then calculated in turn based on the camera intrinsic parameters and depth information. n The center of the calibration object is in the point cloud coordinate system { C }Three-dimensional coordinates under , .
4. The truss robot hand-eye calibration method according to claim 2, characterized in that: In step S3, the center of the calibration object is calculated in the base coordinate system { B The step of calibrating the three-dimensional coordinates of the calibration needle comprises: sequentially aligning the needle tip with the calibration plate n The centers of the calibration objects are in contact and coincide with each other, and the center point of the Z-axis end of the truss robot in the robot base coordinate system { B }, and use the structural parameters Calculate the calibration plate n The center of the calibration object is in the base coordinate system { B }'s three-dimensional coordinates , , , where the structural parameters is the length of the calibration needle.
5. The truss robot hand-eye calibration method according to claim 1, characterized in that: In step S5, the homogeneous transformation matrix is calculated The method includes: assuming that the motion parameters of each axis read from the teaching pendant when the camera collects data are ,in, are the motion positions of the robot's X, Y, and Z axes relative to the robot's base coordinate system, is the rotation angle of the robot end effector relative to the Z axis of the truss robot; Can construct a The translation vector is ,Since the rotation angle of the end effector relative to the X and Y axes of the truss robot is 0, the matrix Through the transformation relationship between the RPY angle and the rotation matrix, we can get a The rotation matrix ,Will and Merge to get a 4×4 matrix .
6. The truss robot hand-eye calibration method according to claim 5, characterized in that: When the camera shooting posture changes, the robot end effector and the robot base coordinate system { B The relative position of the tool coordinate system { G } to the robot base coordinate system { B }'s transformation matrix , using the formula Calculate the coordinate system of any feature point in the space in the camera point cloud { C }'s three-dimensional coordinates With robot base system B }Three-dimensional coordinates under The following mapping relationship, , is the homogeneous coordinate expression, , .
7. A truss robot hand-eye calibration device, used to implement the truss robot hand-eye calibration method according to any one of claims 1 to 6, characterized in that: include: The calibration acquisition module includes a calibration plate and a calibration needle. The top end of the calibration needle is vertically installed at the center of the Z-axis end rotation mechanism of the truss robot and shares the same origin with the end effector installed at the center of the Z-axis end rotation mechanism of the truss robot. The calibration needle is used to obtain the three-dimensional coordinates of the center of the calibration object on the calibration plate in the robot base coordinate system. The camera is installed on the rotating mechanism at the end of the Z axis of the truss robot and keeps a fixed relative position with the end effector. It is used to collect the image of the calibration plate to obtain the three-dimensional coordinates of the center of the calibration object on the calibration plate in the camera point cloud coordinate system; A control module is used to control the Z-axis end of the truss robot to move to the calibration plate position in the workspace of the robot vision system to be calibrated, so that the camera can capture the calibration object pattern on the calibration plate, and the bottom end of the calibration needle contacts the center of the calibration object on the calibration plate; Calculation module, used to calculate tool coordinate system { G }Relative to the robot base coordinate system{ B The homogeneous transformation matrix of , camera point cloud coordinate system { C }Relative to the robot base coordinate system{ B The homogeneous transformation matrix of ,according to and Solve the camera point cloud coordinate system { C }Relative to the robot tool coordinate system{ G The homogeneous transformation matrix of .
8. A truss robot hand-eye calibration system, characterized by: The method comprises a truss robot, a control device, a camera and a calibration pin, wherein the calibration pin is installed at the center of the rotating mechanism at the end of the Z-axis of the truss robot and shares the same origin with the end effector, the camera and the end effector are installed together on the rotating mechanism at the end of the Z-axis of the truss robot and keep a fixed relative position with the end effector, the control device comprises a memory and a processor, the memory stores a computer program, and the processor implements the truss robot hand-eye calibration method according to any one of claims 1 to 6 when executing the computer program.
