Line laser camera and robot flange plate hand-eye calibration method
The conversion matrix between the line laser camera and the robot flange is solved through the triangulation method, which solves the problem of calibration efficiency and accuracy when the line laser camera is connected to the robot in the existing technology, achieves fast and accurate hand-eye calibration, reduces costs and Improved linkage and consistency.
Patent Information
- Application Number
- CN202411082157.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the conversion relationship between the line laser camera and the robot flange is difficult to solve quickly and accurately. Especially when the line laser camera is connected to the robot, a laser tracker or other detection equipment is required to assist in calibration, resulting in high on-site debugging efficiency and cost. , and the calculation results have large errors, and the linkage and consistency are poor.
Using the triangulation method, by setting up a line laser camera and a triangulation calibration block, measure the position of the target point and calculate the transformation matrix from the line laser camera coordinate system to the robot flange coordinate system, and use the measurement data of the robot in multiple postures to construct a matrix equation. , solve the result matrix of hand-eye calibration.
It achieves fast and accurate conversion between the line laser camera and the robot flange, without the need for external detection equipment to assist measurement, and improves the efficiency of rapid calibration after the line laser camera is installed and replaced.
Smart Images

Figure CN118636157A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of robot vision calibration, and in particular relates to a hand-eye calibration method for a line laser camera and a robot flange. Background Art
[0002] When a line laser camera is installed on a robot and then used in application scenarios such as position measurement or visual guidance, how to quickly and accurately obtain the conversion relationship between the line laser camera coordinate system and the robot flange is crucial to the efficiency and cost of project execution. Most of the current application scenarios are based on the fact that the line laser camera is fixedly installed and rarely connected to the robot; for scenarios where the line laser camera is connected to the robot, the conversion relationship between the line laser camera and the robot often requires the assistance of a laser tracker or other detection equipment for calibration. These methods are not optimal in terms of efficiency and cost of on-site debugging, especially because the calculation results often have large errors, and the linkage and consistency with the robot body coordinates are poor. The present invention proposes a hand-eye calibration method for a line laser camera and a robot flange, which can quickly calculate the conversion relationship between the line laser camera coordinate system and the robot flange coordinate system based on a triangulation measurement. Summary of the invention
[0003] The purpose of the present invention is to provide a hand-eye calibration method for a line laser camera and a robot flange, so as to solve the problem that the existing application scenarios are based on the line laser camera being fixedly installed and rarely connected to the robot; for the scenario where the line laser camera is connected to the robot, the conversion relationship between the line laser camera and the robot often needs to be calibrated with the aid of a laser tracker or other detection equipment. These methods are not optimal in terms of efficiency and cost of on-site debugging, especially the calculation results often have large errors, and the linkage and consistency with the robot body coordinates are poor.
[0004] In order to solve the above technical problems, the present invention is achieved through the following technical solutions: The present invention provides a hand-eye calibration method for a line laser camera and a robot flange, comprising the following steps: S1. Set up a line laser camera and a triangulation block, take the intersection of the top edge of the triangulation block and the marking line as the target point P, and measure the position of the target point P in the line laser camera coordinate system Camera, expressed as Pcam; S2. The position of the target point P in the robot base coordinate system Base is expressed as Pbase. Since the position of the target point P relative to the robot is unchanged, the position value of Pbase is actually a constant invariant. S3. Calculate the transformation matrix R from the robot flange coordinate system Flange to the robot base coordinate system Base. The R value can be read from the robot controller, that is, the six-degree-of-freedom spatial value of the robot flange center point in the robot base coordinate system is transformed into a matrix form; S4. Finally, solve the transformation matrix T from the line laser camera coordinate system to the robot flange center coordinate system. T is the transformation matrix that needs to be solved, the result matrix of the hand-eye calibration (4x4 matrix).
[0005] Furthermore, the line laser camera in step S1 is installed at the end of the robot's six-axis flange, so that the robot can carry the line laser camera to measure the target point P at the top edge marking line of the triangulation calibration block in different postures.
[0006] Furthermore, four pin holes and three countersunk holes are provided on one surface of the triangular calibration block, a through hole is provided in the countersunk hole, the countersunk hole and the through hole are connected, a marking line is provided in the middle of the inclined surface of the triangular calibration block, the angle between the two oblique sides of the triangular calibration block is 120°, and a groove is provided on the inclined surface of the triangular calibration block.
[0007] Furthermore, in step S2, the target point P is measured by the line laser camera and recorded as Pcam, and is gradually converted to the robot base coordinate system through T and R. The converted value is Pbase; therefore: , Where T is the target matrix, Pbase is the unknown constant, R is obtained from the robot, and Pcam is the measurement value of the line laser camera.
[0008] Furthermore, in step S3, by changing multiple postures of the robot and measuring the same point (target point P) in the space, multiple equations can be obtained to solve T; at least 6 or more different measurement positions are set, that is, the matrix equations of 6 equations are constructed: Position 1: ; Position 2: ; Position three: ; Position four: ; Position five: ; Position six: ; According to the matrix operation, Pbase is eliminated, so the equation of posture one and the equation of posture two can be combined into: ; Similarly, the equations for postures 1 to 6 can each form the above equation with only one unknown matrix T. Taking the above combined equation as an example, replace the known quantity on the left with Let it be A, and the known quantity on the right side Denoted as B, the equation after elimination becomes the standard equation form of AT=TB, and then the unknown matrix T can be solved by using Lie group knowledge.
[0009] Furthermore, in step S1, the vertex coordinate system of the triangular calibration block is constructed by expanding the vertex positions of the triangular calibration block and the column vectors of the X, Y, and Z axes into a 4x4 homogeneous matrix as follows: ; Among them, the vector [ ] is defined as the origin, that is, the target point P, and the vector [ ] is defined as the X-axis direction; the vector [ ] is the Y-axis direction; vector [ ] is the Z-axis direction; Combined with the triangulation block: P point coordinates[ ] is the intersection of the straight lines MP and NP; X-axis vector[ ] is the direction of the fitting line of the triangulation block MP edge, ; Z axis vector[ ] is perpendicular to both the line MP and the line NP, that is, the vector and The cross product of Y axis vector[ ] is the cross product of the X-axis and Z-axis vectors; All the above vectors need to be normalized.
[0010] Furthermore, the specific collection method in step S3 is: S301, using a triangulation block, using a line laser camera to measure a corner point, and using a scale line to ensure that the laser line can pass through the same intersection (corner) point each time, that is, to ensure that the laser line coincides with the scale line; S302. In terms of layout, place the triangulation block in front of the robot. The placement of the triangulation block needs to allow the robot to reverse the laser line of the line laser camera 180° to align with the scale line of the triangulation block. The purpose is to make the spatial position of the robot flange center change a little more, so that the R value data will be different.
[0011] The present invention has the following beneficial effects: The present invention can realize the conversion between the line laser camera and the robot flange by using a simple triangular calibration block; the present invention does not need to use external detection equipment for auxiliary measurement; the present invention plays an important role in the installation of the line laser camera, especially the rapid calibration after replacement.
[0012] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0014] Figure 1 It is a schematic diagram of the overall structure of a hand-eye calibration method for a line laser camera and a robot flange; Figure 2 This is a schematic diagram of hand-eye calibration; Figure 3 Construct a schematic diagram for the coordinate system of the vertices of the triangulated calibration block; Figure 4 It is a schematic diagram of the relationship between the triangulation block and the robot position; Figure 5 It is the main view of the triangulated calibration block; Figure 6 for Figure 5 Middle AA section; Figure 7 for Figure 5 Middle BB section; Figure 8 A top view of the triangulated calibration block. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in 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.
[0016] In the description of the present invention, it should be understood that the terms "upper", "middle", "outer", "inner" and the like indicating directions or positional relationships are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the components or elements referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0017] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "provided with", "connected", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0018] Embodiment 1 See also Figures 1 to 8 As shown, the present invention is a hand-eye calibration method for a line laser camera and a robot flange, comprising the following steps: S1. Set up a line laser camera and a triangulation block, take the intersection of the top edge of the triangulation block and the marking line as the target point P, and measure the position of the target point P in the line laser camera coordinate system Camera, expressed as Pcam; S2. The position of the target point P in the robot base coordinate system Base is expressed as Pbase. Since the position of the target point P relative to the robot is unchanged, the position value of Pbase is actually a constant invariant. S3. Calculate the transformation matrix R from the robot flange coordinate system Flange to the robot base coordinate system Base. The R value can be read from the robot controller, that is, the six-degree-of-freedom spatial value of the robot flange center point in the robot base coordinate system is transformed into a matrix form; S4. Finally, solve the transformation matrix T from the line laser camera coordinate system to the robot flange center coordinate system. T is the transformation matrix that needs to be solved, the result matrix of the hand-eye calibration (4x4 matrix).
[0019] Among them, the line laser camera in step S1 is installed at the end of the robot's six-axis flange, so that the robot can carry the line laser camera to measure the target point P at the top edge marking line of the triangulation calibration block in different postures.
[0020] Among them, four pin holes and three countersunk holes are set on the surface of the triangular calibration block. Four pin holes are designed on the triangular calibration block. The relative positions of the four pin holes are fixed. By inserting the positioning pins, when the line laser camera is calibrated, several different postures can be designed to measure these positioning pins, and the relative position relationship of these pin holes can be used to verify the reliability of the calibration results; a through hole is set in the countersunk hole, and the countersunk hole and the through hole are connected. A marking line is set in the middle of the inclined surface of the triangular calibration block, and the marking line is used as a physical reference for laser line alignment; a groove is set on the inclined surface of the triangular calibration block to facilitate a reference in the positive and negative directions when the line laser camera is imaging or calculating.
[0021] In step S2, the target point P is measured by the line laser camera and recorded as Pcam, and is gradually converted to the robot base coordinate system through T and R. The converted value is Pbase; therefore: , Where T is the target matrix, Pbase is the unknown constant, R is obtained from the robot, and Pcam is the measurement value of the line laser camera.
[0022] Among them, in step S3, by changing multiple postures of the robot and measuring the same point in space (target point P), multiple equations can be obtained to solve T; at least 6 or more different measurement positions are set, that is, the matrix equations of 6 equations are constructed: Position 1: ; Position 2: ; Position three: ; Position four: ; Position five: ; Position six: ; According to the matrix operation, Pbase is eliminated, so the equation of posture one and the equation of posture two can be combined into: ; Similarly, the equations for postures 1 to 6 can each form the above equation with only one unknown matrix T. Taking the above combined equation as an example, replace the known quantity on the left with Let it be A, and the known quantity on the right side Denoted as B, the equation after elimination becomes the standard equation form of AT=TB, and then the unknown matrix T can be solved by using Lie group knowledge.
[0023] Among them, in step S1, the vertex coordinate system of the triangular calibration block is constructed by expanding the vertex position of the triangular calibration block and the column vectors of the X, Y, and Z axes into a 4x4 homogeneous matrix as follows: ; Among them, the vector [ ] is defined as the origin, that is, the target point P, and the vector [ ] is defined as the X-axis direction; the vector [ ] is the Y-axis direction; vector [ ] is the Z-axis direction; Combined with the triangulation block: P point coordinates[ ] is the intersection of the straight lines MP and NP; X-axis vector[ ] is the direction of the fitting line of the triangulation block MP edge, ; Z axis vector[ ] is perpendicular to both the line MP and the line NP, that is, the vector and The cross product of Y axis vector[ ] is the cross product of the X-axis and Z-axis vectors; All the above vectors need to be normalized.
[0024] Among them, the specific collection method in step S3 is: S301, using a triangulation block, using a line laser camera to measure a corner point, and using a scale line to ensure that the laser line can pass through the same intersection (corner) point each time, that is, to ensure that the laser line coincides with the scale line; S302. In terms of layout, place the triangulation block in front of the robot. The placement of the triangulation block needs to allow the robot to reverse the laser line of the line laser camera 180° to align with the scale line of the triangulation block. The purpose is to make the spatial position of the robot flange center change a little more, so that the R value data will be different.
[0025] Embodiment 2 Application Scenario The 3D line laser camera is installed at the end of the robot's six-axis flange, so that the robot can carry the line laser camera to measure the target point P at the top edge marking line of the triangulation calibration block in different postures.
[0026] Here, the hand-eye calibration of the 3D line laser camera refers to finding the transformation matrix from the line laser camera coordinate system to the robot flange coordinate system; this method is called tool calibration from the robot perspective, and is collectively referred to as "hand-eye calibration of robot cameras" here.
[0027] Definition (1) The position of the target point P on the calibration block in the camera coordinate system Camera, denoted as Pcam; (2) The position of the target point P on the calibration block in the robot base coordinate system Base is expressed as Pbase. Since the position of this target point relative to the robot is unchanged, the value of Pbase is actually a constant unknown quantity. (3) The transformation matrix from the robot flange coordinate system Flange to the robot base coordinate system Base is R, which can be obtained from the robot, that is, the six-degree-of-freedom spatial value of the robot flange center point in the robot base coordinate system is transformed into a matrix form; (4) The transformation matrix from the camera coordinate system Camera to the robot flange coordinate system Flange is T. T is the transformation matrix that needs to be solved, the result matrix of the hand-eye calibration (4x4 matrix).
[0028] Calibration principle The line laser camera measures the target point to obtain Pcam, and then gradually transforms it to the robot base coordinate system Base through T and R. The converted value is Pbase, so: , Where T is the target matrix, Pbase is the unknown constant, R is obtained from the robot, and Pcam is the measurement value of the line laser camera.
[0029] The above is the equation measured by the robot in one posture position. By changing the robot to multiple postures and measuring the same point in space (target point P), multiple equations can be obtained to solve T; at least 6 or more different measurement positions are set, that is, the matrix equations of 6 equations are constructed: Position 1: ; Position 2: ; Position three: ; Position four: ; Position five: ; Position six: ; According to the matrix operation, Pbase is eliminated, so the equation of posture one and the equation of posture two can be combined into: ; Similarly, the equations for postures 1 to 6 can each form the above equation with only one unknown matrix T. Taking the above combined equation as an example, replace the known quantity on the left with Let it be A, and the known quantity on the right side Denoted as B, the equation after elimination becomes the standard equation form of AT=TB, and then the unknown matrix T can be solved by using Lie group knowledge.
[0030] Construction of vertex coordinate system of triangulation block In order to facilitate matrix operations, the vertex positions of the triangular calibration block and the column vectors of the X, Y, and Z axes need to be expanded into a 4x4 homogeneous matrix as follows: ; Among them, the vector [ ] is defined as the origin, that is, the target point P, and the vector [ ] is defined as the X-axis direction; the vector [ ] is the Y-axis direction; vector [ ] is the Z-axis direction; Combined with the triangulation block: P point coordinates[ ] is the intersection of the straight lines MP and NP; X-axis vector[ ] is the direction of the fitting line of the triangulation block MP edge, ; Z axis vector[ ] is perpendicular to both the line MP and the line NP, that is, the vector and The cross product of Y axis vector[ ] is the cross product of the X-axis and Z-axis vectors; All the above vectors need to be normalized.
[0031] Specific collection method like Figure 4 As shown, a line laser camera is used to measure a corner point using a triangulation block, and the scale lines are used to ensure that the laser line passes through the same intersection (corner) point every time. More strictly, it is even necessary to ensure that the laser line coincides with the scale lines. In terms of layout, the triangulation block is placed right in front of the robot. The placement of the triangulation block needs to allow the robot to reverse the camera laser line 180° and align it with the scale line of the triangulation block. The purpose is to make the spatial position of the robot flange center change as much as possible, that is, to make the R value data as different as possible.
[0032] Results Evaluation When the hand-eye calibration is completed, substitute the T value into each equation, calculate the difference between the conversion result and the mean point (calculate the distance), which is called the residual value, and then count the average residual value and the maximum residual value of each equation (each robot position measurement point), which is a direct indicator of the quality of the evaluation result.
[0033] After hand-eye calibration, the robot can measure with a camera. Keep the position of the triangulation block unchanged, run the same calibration trajectory program to measure the same corner point of the triangulation block (the target point P during calibration), and check whether the measured value of the corner point is the same in different postures and whether it is equal to the coordinate value of the target point in the robot base coordinate system Base.
[0034] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0035] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A hand-eye calibration method for a line laser camera and a robot flange, characterized in that: The following steps are involved: S1. Set up a line laser camera and a triangulation block, take the intersection of the top edge of the triangulation block and the marking line as the target point P, and measure the position of the target point P in the line laser camera coordinate system Camera, expressed as Pcam; S2, the position of the target point P in the robot base coordinate system Base, expressed as Pbase. Since the position of the target point P relative to the robot is unchanged, the position value of Pbase is actually a constant invariant; S3. Calculate the transformation matrix R from the robot flange coordinate system Flange to the robot base coordinate system Base. The R value can be read from the robot controller, that is, the six-degree-of-freedom spatial value of the robot flange center point in the robot base coordinate system is transformed into a matrix form; S4. Finally, solve the transformation matrix T from the line laser camera coordinate system to the robot flange center coordinate system. T is the transformation matrix that needs to be solved, the result matrix of the hand-eye calibration.
2. The hand-eye calibration method for a line laser camera and a robot flange according to claim 1, characterized in that: The line laser camera in step S1 is installed at the end of the robot's six-axis flange, so that the robot can carry the line laser camera to measure the target point P at the top edge marking line of the triangulation calibration block in different postures.
3. The hand-eye calibration method for a line laser camera and a robot flange according to claim 1, characterized in that: In step S1, four pin holes and three countersunk holes are arranged on the surface of the triangular calibration block, and through holes are arranged in the countersunk holes. The countersunk holes are connected with the through holes. A marking line is arranged in the middle of the inclined surface of the triangular calibration block. The angle between the two oblique sides of the triangular calibration block is 120°, and a groove is arranged on the inclined surface of the triangular calibration block.
4. The hand-eye calibration method for a line laser camera and a robot flange according to claim 1, characterized in that: In step S2, the target point P is measured by the line laser camera and recorded as Pcam, and is gradually converted to the robot base coordinate system through T and R. The converted value is Pbase; therefore: , Where T is the target matrix, Pbase is the unknown constant, R is obtained from the robot, and Pcam is the measurement value of the line laser camera.
5. The hand-eye calibration method for a line laser camera and a robot flange according to claim 1, characterized in that: In step S3, by changing multiple postures of the robot and measuring the same target point P in the space, multiple equations can be obtained to solve T; at least 6 or more different measurement positions are set, that is, the matrix equations of 6 equations are constructed: Position 1: ; Position 2: ; Position 3: ; Position 4: ; Position Five: ; Position six: ; According to the matrix operation, Pbase is eliminated, so the equation of posture one and the equation of posture two can be combined into: ; By analogy, the equations for postures 1 to 6 can each form the above equation with only one unknown matrix T. Taking the above combined equation as an example, replace the known quantity on the left with Let it be A, and the known quantity on the right side Denoted as B, the equation after elimination becomes the standard equation form of AT=TB, and then the unknown matrix T can be solved by using Lie group knowledge.
6. The hand-eye calibration method for a line laser camera and a robot flange according to claim 1, characterized in that: The vertex coordinate system of the triangular calibration block in step S1 is constructed by expanding the vertex positions of the triangular calibration block and the column vectors of the X, Y, and Z axes into a 4x4 homogeneous matrix as follows: ; Among them, the vector [ ] is defined as the origin, that is, the target point P, and the vector [ ] is defined as the X-axis direction; the vector [ ] is the Y-axis direction; vector [ ] is the Z-axis direction; Combined with the triangulation block: P point coordinates[ ] is the intersection of the straight lines MP and NP; X-axis vector[ ] is the direction of the fitting line of the triangulation block MP edge, ; Z axis vector[ ] is perpendicular to both the line MP and the line NP, that is, the vector and The cross product of Y axis vector[ ] is the cross product of the X-axis and Z-axis vectors; All the above vectors need to be normalized.
7. The hand-eye calibration method for a line laser camera and a robot flange according to claim 1, characterized in that: The specific collection method in step S3 is: S301, using a triangulation block, using a line laser camera to measure a corner point, and using a marking line to ensure that the laser line can pass through the same intersection point every time, that is, to ensure that the laser line coincides with the marking line; S302. In terms of layout, place the triangulation block in front of the robot. The placement of the triangulation block allows the robot to reverse the laser line of the line laser camera 180° to align with the scale line of the triangulation block. The purpose is to make the spatial position of the robot flange center change a little more, so that the R value data has a difference.
Citation Information
Patent Citations
Method for automatically tracking unilateral sewing laser visual sense paths of composite material three-dimensional structural member
CN109591011A
3D line laser scanning camera hand-eye calibration method
CN111986268A
Structured light hand-eye calibration method based on coordinate system servo alignment
CN113829338A
Robot hand-eye calibration method, device, equipment and medium
CN117415818A
Calibration method for robot with optical sensor
JP2014018932A
Cited By
Welding seam detection method, device and system and storage medium
CN118905521A
Weld detection method, device, system and storage medium
CN118905521B
Six-axis physiotherapy robot three-dimensional calibration method and physiotherapy robot
CN119871463A
Hand-eye calibration method based on standard cylinder axis characteristics
CN120235938A
A hand-eye calibration method based on the characteristics of a standard cylindrical axis
CN120235938B
