A calibration method for dynamic following of robots
By installing a camera and an encoder wheel on the side of the conveyor belt, and using the six-point calibration method and electronic gear ratio to calculate the hand-eye calibration matrix, the problem in the existing technology that the robot cannot flexibly follow the moving workpiece is solved, and dynamic tracking and updating of the workpiece are realized. High adaptability.
Patent Information
- Application Number
- CN202410959280.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-17
AI Technical Summary
Existing robot hand-eye calibration methods are mainly suitable for static scenes and cannot realize the robot's flexible following of moving workpieces, which limits the adaptability and flexibility of the robot in complex tasks.
A calibration method for robot dynamic following is adopted. By installing a camera and an encoder wheel on the side of the conveyor belt, a six-point calibration method is used to calibrate the tool coordinate system, determine the origin and y-axis direction of the workpiece coordinate system, and solve the electronic gear of the encoder. Ratio, calculate the hand-eye calibration matrix to achieve dynamic tracking of the workpiece.
It improves the robot's adaptability and flexibility in following workpieces, can adapt to more task scenarios, and achieve precise tracking of moving workpieces.
Smart Images

Figure CN118493409B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of robot hand-eye calibration, and in particular relates to a robot dynamic following calibration method. Background Art
[0002] In the field of industrial applications, robots need to rely on the hand-eye system to perform tasks such as machining and installation. The hand-eye system is a visual system composed of a camera and a robot arm, where the camera is equivalent to a human eye and the end of the robot arm is equivalent to a human hand. To guide the robot arm to perform tasks through visual positioning, the camera coordinates and robot coordinates must first be calibrated to convert the camera coordinates of the visual positioning into robot coordinates to complete the visual guidance. The hand-eye calibration is the key to visually guiding the robot arm.
[0003] However, the application scenarios corresponding to the existing calibration methods are all static scenarios. The robot cannot flexibly and accurately follow the workpiece. If the workpiece moves, the robot must wait until it stops moving and returns to a static state before it can operate it. This greatly limits the adaptability and flexibility of the robot in complex tasks. Summary of the invention
[0004] The purpose of the present invention is to propose a calibration method for dynamic following of a robot, according to which the robot can follow a workpiece, thereby adapting to more task scenarios.
[0005] The present invention is achieved through the following technical solutions:
[0006] A robot dynamic following calibration method comprises the following steps:
[0007] Step S1, installing a camera and an encoder wheel on the side of the conveyor belt so that the laser line emitted by the camera is perpendicular to the conveying direction of the conveyor belt, installing a tool on the robot flange, and using a first pointed cone outside the robot to calibrate the tool coordinate system using a six-point calibration method. The encoder wheel includes a rubber wheel and a rotary encoder connected to the rubber wheel, and the rubber wheel is connected to the conveyor belt to rotate with the movement of the conveyor belt;
[0008] Step S2, placing a second pointed cone on the conveyor belt, the second pointed cone is located on the upstream side of the robot, the robot control tool approaches the second pointed cone to determine point A, lifts the tool, starts the conveyor belt, the second pointed cone moves with the conveyor belt to the downstream side of the robot, the robot control tool approaches the second pointed cone with the same posture to determine point B, and point B is also used as the origin of the workpiece coordinate system, and the direction from point A to point B is used as the positive direction of the y-axis of the workpiece coordinate system;
[0009] Step S3, determining the starting point and the final point of the following range in the tool coordinate system and the workpiece coordinate system;
[0010] Step S4, placing a second cone on the conveyor belt, the second cone is located on the upstream side of the robot, the robot control tool approaches the tip of the second cone, records the coordinates of the position P1 of the robot at this time, lifts the tool, starts the conveyor belt, the second cone moves with the conveyor belt to the downstream side of the robot, the robot control tool approaches the tip of the second cone, records the coordinates of the position P2 of the robot at this time, solves the distance between the position P1 and the position P2, and solves the electronic gear ratio E of the encoder according to the distance;
[0011] Step S5, place the second calibration block on the conveyor belt and make the side of the second calibration block pass through the origin of the workpiece coordinate system. The conveyor belt moves to make the laser line pass through the origin of the workpiece coordinate system. The laser line is perpendicular to the y-axis of the workpiece coordinate system, and the pixel coordinates of the origin of the workpiece coordinate system are obtained through the camera software. The value L3 of the encoder at this time is recorded. The X coordinate and Z coordinate of the hand-eye calibration matrix are calculated according to the pixel coordinates of the origin using the visual scanning software;
[0012] Step S6, the conveyor belt moves, moves the second calibration block to the front of the robot, records the encoder value L4 at this time, solves the Y coordinate of the hand-eye calibration matrix according to the formula Y=(L4-L3) / E, and calibrates the workpiece coordinate system according to the positive direction of the y-axis of the workpiece coordinate system.
[0013] Furthermore, in step S1, the six-point calibration method is used to calibrate the tool coordinate system, which specifically includes: controlling the robot to bring the end point of the tool close to the first cone in six different postures to obtain six position points, and recording the six position points in the form of a Cartesian coordinate system. The calibration of the tool coordinate system can be completed according to the coordinates of the six position points and the set average error value.
[0014] Furthermore, in step S2, point A and point B are both located on the downstream side of the camera and point A is located close to the camera.
[0015] Furthermore, in step S3, determining the starting point and the final point of the following range includes: placing a second calibration block at a predetermined position on the conveyor belt, at which time the second calibration block is located on the upstream side of the robot, the robot control tool approaches the second calibration block to obtain the starting point of the following range, lifts the tool, starts the conveyor belt, and the second calibration block moves with the conveyor belt to another predetermined position, which is located downstream of the robot, and the robot control tool approaches the same point of the second calibration block with the same posture, which point is the final point of the following range, and the starting point and the final point are 100-300mm away from the starting point and the end point of the conveyor belt, respectively.
[0016] Furthermore, in step S3, determining the starting point and the final point of the following range includes: the camera is set on the starting side of the conveyor belt, the robot is moved to a predetermined position close to the camera side, and the predetermined position is used as the starting point of the following range; then the robot is moved to a predetermined position away from the camera side, and the predetermined position is used as the final point of the following range. The starting point and the final point are respectively 100-300mm away from the starting point and the end point of the conveyor belt.
[0017] Furthermore, in step S4, the distance between the point on the upstream side of the robot and the point on the downstream side of the robot of the second pointed cone is not less than 1 / 2-3 / 4 of the distance of the conveyor belt.
[0018] Furthermore, in step S4, according to the formula Solving the electronic gear ratio of the encoder E ,in, L 1 is the encoder data corresponding to position P1, L 2 is the encoder data corresponding to position P2, Dis is the distance between position P1 and position P2.
[0019] Furthermore, in step S1, a third calibration block is placed on the conveyor belt so that the first side edge line of the third calibration block is parallel to the conveying direction of the conveyor belt. If the second side edge line of the third calibration block that is perpendicular to the conveying direction of the conveyor belt coincides with the laser line, it means that the laser line is perpendicular to the conveying direction of the conveyor belt. If the two do not coincide, the camera height needs to be adjusted to make the two coincide.
[0020] Furthermore, in step S1, a third calibration block is placed on the conveyor belt, and the third calibration block is located where the laser line can be irradiated. Two points where the laser line intersects with the upper surface of the third calibration block are obtained respectively, and the pixel values of the two points are obtained respectively through the camera software Daheng MER-Series Viewer. When the absolute value of the pixel value difference between the two points is not greater than 3, it means that the laser line is perpendicular to the conveying direction of the conveyor belt. If the absolute value of the pixel value difference is greater than 3, the camera height needs to be adjusted to make the absolute value of the pixel difference not greater than 3.
[0021] The present invention has the following beneficial effects:
[0022] The present invention firstly adopts the six-point calibration method to calibrate the tool coordinate system, and then determines the origin and the positive direction of the y-axis of the workpiece coordinate system by placing the second pointed cone at different positions relative to the robot. Then, the starting point and the final point of the following range are determined in the tool coordinate system and the workpiece coordinate system. After that, the hand-eye calibration matrix is obtained by solving the electronic gear ratio of the encoder and finally the workpiece coordinate system is calibrated. According to the calibration method, the robot can follow the workpiece with higher adaptability and flexibility, so as to adapt to more task scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The present invention is further described in detail below with reference to the accompanying drawings.
[0024] Figure 1 It is a flow chart of the present invention.
[0025] Figure 2 This is a schematic diagram of the overlap between the laser line of the present invention and the second side edge line of the third calibration block.
[0026] Figure 3 It is a schematic diagram of point C and point D where the laser line of the present invention intersects with the upper surface of the third calibration block.
[0027] Figure 4 It is a schematic diagram of the position range of point A and the position range of point B of the present invention.
[0028] Figure 5 It is a schematic diagram of the upstream point area and the downstream point area in the process of following range determination of the present invention.
[0029] Figure 6 Schematic diagram of the P1 region and the P2 region of the present invention.
[0030] Figure 7 Schematic diagram of the workpiece coordinate system of the present invention.
[0031] Figure 8 It is a schematic diagram of the encoder wheel structure of the present invention. DETAILED DESCRIPTION
[0032] like Figure 1 As shown, the calibration method of the robot dynamic following includes the following steps:
[0033] Step S1: Install a camera and an encoder wheel on the side of the conveyor belt so that the laser line emitted by the camera is perpendicular to the conveying direction of the conveyor belt. Install the tool on the robot flange and use the first cone outside the robot to calibrate the tool coordinate system using the six-point calibration method, such as Figure 8 As shown, the encoder wheel includes a rubber wheel and a rotary encoder connected to the rubber wheel, and the rubber wheel is connected to the conveyor belt to rotate with the movement of the conveyor belt, thereby converting the translational motion of the conveyor belt into the rotation of the electronic gear of the rotary encoder;
[0034] The camera is installed on the side of the conveyor belt near the starting point of the conveyor belt. As to how to ensure that the laser line emitted by the camera is perpendicular to the conveying direction of the conveyor belt, in this embodiment, the following method can be used:
[0035] like Figure 2As shown, place the third calibration block on the conveyor belt so that the first side edge line of the third calibration block is parallel to the conveying direction of the conveyor belt. If the second side edge line of the third calibration block that is perpendicular to the conveying direction of the conveyor belt coincides with the laser line, it means that the laser line is perpendicular to the conveying direction of the conveyor belt. If the two do not coincide, the camera height needs to be adjusted to make them coincide. Specifically, the number of camera installation gaskets or the camera installation screws can be adjusted.
[0036] In another embodiment, the verticality of the laser line and the transmission direction can also be ensured by using the camera software Daheng MER-Series Viewer:
[0037] like Figure 3 As shown, a third calibration block is placed on the conveyor belt, and the third calibration block is located where the laser line can irradiate. Points C and D where the laser line intersects with the upper surface of the third calibration block are obtained respectively. The pixel values of points C and D are obtained respectively through the camera software Daheng MER-Series Viewer. When the absolute value of the pixel value difference between points C and D is not greater than 3, it means that the laser line is perpendicular to the conveying direction of the conveyor belt. If the absolute value of the pixel value difference is greater than 3, the camera height needs to be adjusted to make the absolute value of the pixel difference not greater than 3.
[0038] The six-point calibration method is used to calibrate the tool coordinate system, including:
[0039] The tool installed on the robot can be a spray gun or a cone. The robot is controlled to bring the end point of the tool close to the first cone in six different postures to obtain six position points. The six position points are recorded in the LR register of the robot in the form of a Cartesian coordinate system. The tool calibration software pyqt is used to calibrate the tool coordinate system based on the coordinates of the six position points and the set average error value. The average error value is set to be no more than 0.15.
[0040] Step S2, placing a second pointed cone on the conveyor belt, the second pointed cone is located on the upstream side of the robot, the robot control tool approaches the second pointed cone to determine point A, lifts the tool, starts the conveyor belt, the second pointed cone moves with the conveyor belt to the downstream side of the robot, the robot control tool approaches the second pointed cone with the same posture to determine point B, and point B is also used as the origin of the workpiece coordinate system, and the direction from point A to point B is used as the positive direction of the y-axis of the workpiece coordinate system;
[0041] like Figure 4 As shown, point A and point B are both located on the downstream side of the camera and point A is located close to the camera.
[0042] Step S3, determining the starting point and the final point of the following range in the tool coordinate system and the workpiece coordinate system;
[0043] In this embodiment, the specific process is as follows: Figure 5 As shown, a second calibration block is placed at a predetermined position on the conveyor belt (i.e., a point in the upstream point area). At this time, the second calibration block is located on the upstream side of the robot. The robot control tool approaches the second calibration block to obtain the starting point of the following range, lifts the tool, starts the conveyor belt, and the second calibration block moves with the conveyor belt to another predetermined position (i.e., a point in the downstream point area). This position is located downstream of the robot. The robot control tool approaches the same point of the second calibration block with the same posture. This point is the final point of the following range. The starting point and the final point are 100-300mm away from the starting point and the end point of the conveyor belt, respectively, to avoid singular points, that is, to avoid robot limitation or collision between the robot and the outer frame of the conveyor belt.
[0044] In another embodiment, the starting point and the final point of the following range can also be obtained by the following steps: the camera is set at the starting side of the conveyor belt, and the robot is moved to a predetermined position close to the camera side (i.e. Figure 5 The robot is then moved to a predetermined position away from the camera (i.e. Figure 5 The predetermined position is taken as the final point of the following range, and the starting point and the final point are 100-300mm away from the starting point and the end point of the conveyor belt respectively.
[0045] Step S4: Place a second spike on the conveyor belt, the second spike being located on the upstream side of the robot (e.g. Figure 6 The robot controls the tool to approach the tip of the second cone, records the coordinates of the robot's position P1 (x1, y1, z1, A1, B1, C1), lifts the tool, starts the conveyor belt, and the second cone moves with the conveyor belt to the downstream side of the robot (such as Figure 6 The robot controls the tool to approach the tip of the second cone, records the coordinates of the robot's position P2 (x2, y2, z2, A2, B2, C2), calculates the distance between position P1 and position P2, and calculates the electronic gear ratio E of the encoder based on the distance;
[0046] The tool is specifically selected as a spray gun. The distance between the point where the second cone is located on the upstream side of the robot and the point where the second cone is located on the downstream side of the robot is not less than 1 / 2-3 / 4 of the distance of the conveyor belt.
[0047] According to the formula Solving the electronic gear ratio of the encoder E ,in, L 1 is the encoder data corresponding to position P1, L 2 is the encoder data corresponding to position P2. The encoder data is obtained through the visual scanning software ShoeScanner. is the distance between position P1 and position P2. When the conveyor belt changes, only the value in the y-axis direction changes. Dis Approximately Dis =| y 1- y 2|.
[0048] Step S5, place the second calibration block on the conveyor belt and make the side of the second calibration block pass through the origin of the workpiece coordinate system. The conveyor belt moves to make the laser line pass through the origin of the workpiece coordinate system. The laser line is perpendicular to the y-axis of the workpiece coordinate system, and the pixel coordinates of the origin of the workpiece coordinate system are obtained through the camera software. The value L3 of the encoder at this time is recorded. The X coordinate and Z coordinate of the hand-eye calibration matrix are calculated according to the pixel coordinates of the origin using the visual scanning software;
[0049] Step S6: The conveyor belt moves to move the second calibration block to the front of the robot, and the encoder value L4 is recorded. The Y coordinate of the hand-eye calibration matrix is solved according to the formula Y=(L4-L3) / E, and the workpiece coordinate system is calibrated according to the positive direction of the y-axis of the workpiece coordinate system, such as Figure 7 As shown, the three-point method can be used for workpiece calibration.
[0050] The final hand-eye matrix XYZ, Y is always facing the camera, and Z is always facing upward. If you want to lift the tool relative to the original trajectory, just increase Z. If the sole trajectory is too close to the camera, then Y must be reduced. Because the direction pointing to the camera is positive, the entire tool must be offset away from the camera, which is the negative direction of Y, so Y is reduced.
[0051] After completing the above steps, place the sole on the shoe holder and then on the conveyor belt, start the conveyor belt and the robot, and the robot can follow the movement of the sole.
[0052] The above description is only a preferred embodiment of the present invention, and therefore cannot be used to limit the scope of implementation of the present invention. That is, equivalent changes and modifications made according to the scope of the patent application of the present invention and the contents of the specification should still fall within the scope covered by the patent of the present invention.
Claims
1. A robot dynamic following calibration method, characterized in that: The steps include: Step S1, installing a camera and an encoder wheel on the side of the conveyor belt so that the laser line emitted by the camera is perpendicular to the conveying direction of the conveyor belt, installing a tool on the robot flange, and using a first pointed cone outside the robot to calibrate the tool coordinate system using a six-point calibration method. The encoder mechanism includes a rubber wheel and a rotary encoder connected to the rubber wheel, and the rubber wheel is connected to the conveyor belt to rotate with the movement of the conveyor belt; Step S2, placing a second pointed cone on the conveyor belt, the second pointed cone is located on the upstream side of the robot, the robot control tool approaches the second pointed cone to determine point A, lifts the tool, starts the conveyor belt, the second pointed cone moves with the conveyor belt to the downstream side of the robot, the robot control tool approaches the second pointed cone with the same posture to determine point B, and point B is also used as the origin of the workpiece coordinate system, and the direction from point A to point B is used as the positive direction of the y-axis of the workpiece coordinate system; Step S3, determining the starting point and the final point of the following range in the tool coordinate system and the workpiece coordinate system; Step S4, placing a second cone on the conveyor belt, the second cone is located on the upstream side of the robot, the robot control tool approaches the tip of the second cone, records the coordinates of the position P1 of the robot at this time, lifts the tool, starts the conveyor belt, the second cone moves with the conveyor belt to the downstream side of the robot, the robot control tool approaches the tip of the second cone, records the coordinates of the position P2 of the robot at this time, solves the distance between the position P1 and the position P2, and solves the electronic gear ratio E of the encoder according to the distance; Step S5, place the second calibration block on the conveyor belt and make the side of the second calibration block pass through the origin of the workpiece coordinate system. The conveyor belt moves to make the laser line pass through the origin of the workpiece coordinate system. The laser line is perpendicular to the y-axis of the workpiece coordinate system, and the pixel coordinates of the origin of the workpiece coordinate system are obtained through the camera software. The value L3 of the encoder at this time is recorded. The X coordinate and Z coordinate of the hand-eye calibration matrix are calculated according to the pixel coordinates of the origin using the visual scanning software; Step S6: The conveyor belt moves to move the second calibration block to the front of the robot, and the encoder value L4 is recorded. The Y coordinate of the hand-eye calibration matrix is solved according to the formula Y=(L4-L3) / E, and the workpiece coordinate system is calibrated according to the positive direction of the y-axis of the workpiece coordinate system. In step S4, according to the formula Solve the electronic gear ratio E of the encoder, where L1 is the encoder data corresponding to position P1, L2 is the encoder data corresponding to position P2, and Dis is the distance between position P1 and position P2.
2. A robot dynamic following calibration method according to claim 1, characterized in that: In step S1, the six-point calibration method is used to calibrate the tool coordinate system, specifically including: controlling the robot to bring the end point of the tool close to the first cone in six different postures to obtain six position points, and recording the six position points in the form of a Cartesian coordinate system. The calibration of the tool coordinate system can be completed according to the coordinates of the six position points and the set average error value.
3. A robot dynamic following calibration method according to claim 1, characterized in that: In the step S2, the point A and the point B are both located on the downstream side of the camera and the point A is located close to the camera.
4. A robot dynamic following calibration method according to claim 1, 2 or 3, characterized in that: In the step S3, determining the starting point and the final point of the following range includes: placing a second calibration block at a predetermined position on the conveyor belt, at which time the second calibration block is located on the upstream side of the robot, the robot control tool approaches the second calibration block to obtain the starting point of the following range, lifts the tool, starts the conveyor belt, and the second calibration block moves with the conveyor belt to another predetermined position, which is located downstream of the robot, and the robot control tool approaches the same point of the second calibration block with the same posture, which point is the final point of the following range, and the starting point and the final point are 100-300mm away from the starting point and the end point of the conveyor belt, respectively.
5. A robot dynamic following calibration method according to claim 1, 2 or 3, characterized in that: In step S3, determining the starting point and the final point of the following range includes: the camera is set on the starting side of the conveyor belt, the robot is moved to a predetermined position close to the camera side, and the predetermined position is used as the starting point of the following range, and then the robot is moved to a predetermined position away from the camera side, and the predetermined position is used as the final point of the following range. The starting point and the final point are 100-300mm away from the starting point and the end point of the conveyor belt respectively.
6. A robot dynamic following calibration method according to claim 1, 2 or 3, characterized in that: In step S4, the distance between the point where the second cone is located on the upstream side of the robot and the point where the second cone is located on the downstream side of the robot is not less than 1 / 2-3 / 4 of the distance of the conveyor belt.
7. A robot dynamic following calibration method according to claim 1, 2 or 3, characterized in that: In step S1, a third calibration block is placed on the conveyor belt so that the first side edge line of the third calibration block is parallel to the conveying direction of the conveyor belt. If the second side edge line of the third calibration block that is perpendicular to the conveying direction of the conveyor belt coincides with the laser line, it means that the laser line is perpendicular to the conveying direction of the conveyor belt. If the two do not coincide, the camera height needs to be adjusted to make them coincide.
8. A robot dynamic following calibration method according to claim 1, 2 or 3, characterized in that: In step S1, a third calibration block is placed on the conveyor belt, and the third calibration block is located where the laser line can be irradiated. Two points where the laser line intersects with the upper surface of the third calibration block are obtained respectively, and the pixel values of the two points are obtained respectively through the camera software Daheng MER-Series Viewer. When the absolute value of the pixel value difference between the two points is not greater than 3, it means that the laser line is perpendicular to the conveying direction of the conveyor belt. If the absolute value of the pixel value difference is greater than 3, the camera height needs to be adjusted to make the absolute value of the pixel difference not greater than 3.
Citation Information
Patent Citations
Dynamic tracking gluing method for industrial robot conveyor belt
CN111347423A
Manipulator workpiece coordinate system construction method, device and system and storage medium
CN113510696A
