Tool center point calibration method, calibration system and storage medium for robot

The robot tool movement time parameters are automatically obtained through the beam transmitting and receiving device, and the tool center point coordinates are calculated and corrected, which solves the problem of low manual calibration efficiency in the existing technology, realizes automatic tool center point calibration, and improves production efficiency.

CN113442133BActive Publication Date: 2024-09-10PEITIAN ROBOTICS CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202110644443.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-09
Publication Date
2024-09-10
Estimated Expiration
2041-06-09

AI Technical Summary

Technical Problem

Existing tool center point calibration methods require manual recalibration, resulting in low production efficiency, especially when multiple rubber heads need to be calibrated multiple times during the production of different products.

Method used

Using a beam emitting device and a beam receiving device, by controlling the movement of the robot's end tool along a preset trajectory, the time parameters of the beam intersection are obtained, and the coordinate offset of the tool center point is calculated and corrected to achieve automatic tool center point calibration.

Benefits of technology

It improves the efficiency of tool center point calibration and robot work efficiency, reduces manual intervention, and significantly improves production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113442133B
    Figure CN113442133B
Patent Text Reader

Abstract

The present application discloses a tool center point calibration method and a tool center point calibration system and a computer storage medium for a robot. The tool center point calibration method comprises: controlling the end tool of the robot to move along a preset trajectory; obtaining the first time when the end tool moves to the first light beam, the second time when the end tool moves to the second light beam and the movement speed along the preset trajectory, wherein the first light beam and the second light beam intersect, the preset movement trajectory of the end tool is located in the plane where the first light beam and the second light beam are located, and the intersection of the first light beam and the second light beam is outside the preset movement trajectory, and the first light beam and the second light beam are emitted by a light beam emitting device; calculating the coordinate offset of the end tool in the standard tool coordinate system of the robot according to the preset time parameters, the first time, the second time and the movement speed of the end tool; and using the coordinate offset to correct the coordinates of the tool center point of the robot. It can improve the calibration efficiency of the tool center point of the robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robot technology, and in particular to a tool center point calibration method and tool center point calibration system of a robot, and a computer storage medium. Background Art

[0002] Nowadays, more and more factories or enterprises use industrial robots to replace manpower in the automation industry. For example, robots are used in gluing. During the gluing process, there are many glue tips of different sizes and lengths. There are differences between the same type of glue tips or different types of glue tips. Tool center point calibration is required before gluing. Tool center point calibration plays an important role in the quality and effect of the glued product. The error accuracy and time of tool center point calibration have a great impact on the cost and work efficiency of the enterprise.

[0003] The existing tool center point calibration method is to manually recalibrate a new tool center point based on the obvious difference or deformation of the rubber head, and then apply it back to the current operation procedure. Each rubber head needs to calibrate a tool center point. When producing different products, it is necessary to calibrate the tool center points of multiple rubber heads, resulting in reduced production efficiency. Summary of the invention

[0004] This application discloses how to realize automatic calibration of the tool center point of the robot to improve the calibration efficiency of the tool center point of the robot, thereby improving the working efficiency of the robot.

[0005] In order to solve the above technical problems, a technical solution adopted by the present application is: to provide a tool center point calibration method for a robot. The tool center point calibration method for the robot includes: controlling the end tool of the robot to move along a preset trajectory; obtaining the first time when the end tool moves to the first light beam, the second time when the end tool moves to the second light beam and the movement speed along the preset trajectory, wherein the first light beam and the second light beam intersect, the preset movement trajectory of the end tool is located in the plane where the first light beam and the second light beam are located, and the intersection of the first light beam and the second light beam is outside the preset movement trajectory, and the first light beam and the second light beam are emitted by a beam emitting device; calculating the coordinate offset of the end tool in the standard tool coordinate system of the robot according to the preset time parameters of the end tool, the first time, the second time and the movement speed, wherein the preset time parameters include the third time when the end tool moves along the preset trajectory in the standard tool coordinate system to reach the first light beam and the fourth time when the end tool moves along the preset trajectory to reach the second light beam; and using the coordinate offset to correct the coordinates of the tool center point of the robot.

[0006] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a tool center point calibration system for a robot. The tool center point calibration system of the robot includes: a beam emitting device, a beam receiving device, an end tool and a robot controller, the robot controller is coupled to the beam emitting device, the beam receiving device and the end tool respectively, and the end tool is arranged at the end of the robot; the robot controller is used to control the end tool to move along a preset trajectory; the beam emitting device is used to emit a first beam and a second beam respectively, and the beam receiving device is used to receive the first beam and the second beam respectively, and the robot controller is further used to obtain a first time when the end tool moves to the first beam, a second time when the end tool moves to the second beam and a movement speed along the preset trajectory, wherein the first beam and the second beam intersect, the preset movement trajectory of the end tool is located in the plane where the first beam and the second beam are located, and the intersection of the first beam and the second beam is outside the preset movement trajectory; the robot controller is further used to calculate the coordinate offset of the end tool in the standard tool coordinate system of the robot according to the preset time parameters of the end tool, the first time, the second time and the movement speed, wherein the preset time parameters include the third time when the end tool moves along the first coordinate axis to reach the first beam and the fourth time when the end tool moves along the first coordinate axis to reach the second beam in the standard tool coordinate system, and is used to correct the coordinates of the tool center point of the robot using the coordinate offset.

[0007] In order to solve the above technical problem, a technical solution adopted by the present application is: providing a computer storage medium having program instructions stored thereon, which, when executed, implement the tool center point calibration method of the robot.

[0008] The beneficial effect of the present application is as follows: different from the prior art, the tool center point calibration method of the robot in the embodiment of the present application includes: controlling the end tool of the robot to move along a preset trajectory; obtaining the first time when the end tool moves to the first light beam, the second time when the end tool moves to the second light beam and the movement speed along the preset trajectory, wherein the first light beam and the second light beam intersect, the preset movement trajectory of the end tool is located in the plane where the first light beam and the second light beam are located, and the intersection of the first light beam and the second light beam is outside the preset movement trajectory, and the first light beam and the second light beam are emitted by a light beam emitting device; calculating the coordinate offset of the end tool in the standard tool coordinate system of the robot according to the preset time parameters of the end tool, the first time, the second time and the movement speed, wherein the preset time parameters include the third time when the end tool moves along the preset trajectory in the standard tool coordinate system to reach the first light beam and the fourth time when the end tool moves along the preset trajectory to reach the second light beam; using the coordinate offset to correct the coordinates of the tool center point of the robot. The embodiment of the present application utilizes a light beam emitting device to respectively emit a first light beam and a second light beam, and utilizes the first light beam and the second light beam to automatically obtain the current time parameters of the movement of the robot's end tool along a preset trajectory, so as to automatically obtain the offset of the movement of the end tool, and automatically correct the coordinates of the robot's tool center point through the offset, so as to complete the automatic calibration of the robot's tool center point. The embodiment of the present application realizes the automatic calibration of the robot's tool center point. Compared with the existing manual tool center point calibration method, the tool center point calibration efficiency of the embodiment of the present application is significantly improved, which can improve the work efficiency of the robot. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0010] Figure 1 It is a structural schematic diagram of an embodiment of a tool center point calibration system of the robot of the present application;

[0011] Figure 2 yes Figure 1 A schematic top view of a photoelectric sensor in a tool center point calibration system of an embodiment robot;

[0012] Figure 3 yes Figure 1 A schematic side view of a photoelectric sensor in a tool center point calibration system of an embodiment robot;

[0013] Figure 4 yes Figure 2 A schematic diagram of the circuit structure of the photoelectric sensor of the embodiment;

[0014] Figure 5 It is a flow chart of an embodiment of a tool center point calibration method for a robot of the present application;

[0015] Figure 6 It is a schematic diagram of the transmission paths of the first light beam and the second light beam and the motion trajectory of the end tool in the tool center point calibration system of the robot of the present application;

[0016] Figure 7 A flowchart of an embodiment of a tool center point calibration method for a robot of the present application;

[0017] Figure 8 It is a structural diagram of an embodiment of the computer storage medium of the present application. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0019] The terms "first" and "second" in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically limited. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0020] This application first proposes a robot tool center point calibration system, such as Figure 1-3 As shown, Figure 1 It is a structural schematic diagram of an embodiment of a tool center point calibration system of the robot of the present application; Figure 2 yes Figure 1 A schematic top view of a photoelectric sensor in a calibration system for a tool center point of an embodiment robot; Figure 3 yes Figure 1Schematic side view of the photoelectric sensor in the calibration system of the tool center point of the robot of the embodiment. The tool center point calibration system 10 of the robot of the present embodiment comprises: a light beam emitting device (not marked in the figure), a light beam receiving device (not marked in the figure) (the light beam emitting device and the light beam receiving device constitute the photoelectric sensor 20), an end tool 30 and a robot controller (not shown in the figure), the robot controller is coupled to the light beam emitting device, the light beam receiving device and the end tool 30 respectively, and the end tool 30 is arranged at the end of the robot (not shown); the robot controller is used to control the end tool 30 to move along a preset trajectory; the robot controller is further used to obtain the first time when the end tool 30 moves to the first light beam, the second time when it moves to the second light beam and the movement speed along the preset trajectory, wherein the first The light beam intersects with the second light beam, and the preset motion trajectory of the end tool 30 is located in the plane where the first light beam and the second light beam are located, and the intersection of the first light beam and the second light beam is outside the preset motion trajectory; the robot controller is further used to calculate the coordinate offset of the end tool 30 in the standard tool coordinate system of the robot according to the preset time parameters, the first time, the second time and the movement speed of the end tool 30, wherein the preset time parameters include the third time for the end tool 30 to move along the first coordinate axis to reach the first light beam and the fourth time for the end tool 30 to move along the first coordinate axis to reach the second light beam in the standard tool coordinate system, and is used to use the coordinate offset to correct the coordinates of the tool center point of the robot.

[0021] The end tool 30 of this embodiment is a glue dispensing head. In other embodiments, the end tool can also be a welding head or the like.

[0022] The robot controller can be integrated on the robot and connected to the robot, the photoelectric sensor 20 and the end tool 30 by wire or wirelessly.

[0023] Different from the prior art, the present embodiment utilizes a light beam emitting device to emit a first light beam and a second light beam respectively, and utilizes the first light beam and the second light beam to automatically obtain the current time parameters of the movement of the robot's end tool 30 along a preset trajectory, so as to automatically obtain the offset of the movement of the end tool 30, and automatically correct the coordinates of the tool center point of the robot through the offset, so as to complete the automatic calibration of the tool center point of the robot. The present embodiment realizes the automatic calibration of the tool center point of the robot. Compared with the existing manual tool center point calibration method, the calibration efficiency of the tool center point of the present embodiment is significantly improved, which can improve the work efficiency of the robot.

[0024] Optionally, the photoelectric sensor 20 of this embodiment includes a first beam emitting device 211, a second beam emitting device 221, a first beam receiving device 212 and a second beam receiving device 222, the first beam emitting device 211 is used to emit a first beam, the second beam emitting device 221 is used to emit a second beam, the first beam receiving device 212 is used to receive the first beam, and the second beam receiving device 222 is used to receive the second beam; the preset motion trajectory of the end tool 30 is located in the plane where the first beam and the second beam are located.

[0025] The motion trajectory of the end tool 30 of this embodiment is located in the plane formed by the first light beam and the second light beam, so as to ensure that the end tool 30 can meet the first light beam and the second light beam during the movement, so that the robot controller can obtain the time parameters of the movement of the end tool 30 according to the first light beam and the second light beam.

[0026] The robot controller of this embodiment is further used to control the movement of the robot's end tool 30 along the first coordinate axis of the tool coordinate system, and use the first light beam emitting device 211 and the first light beam receiving device 212 to obtain the first time when the end tool 30 moves along the first coordinate axis to reach the first light beam, and use the second light beam emitting device 221 and the second light beam receiving device 222 to obtain the second time when the end tool 30 moves along the first coordinate axis to reach the second light beam.

[0027] The photoelectric sensor 20 of this embodiment further includes a substrate 23 and a connector 24. The first light beam emitting device 211, the first light beam receiving device 212, the second light beam emitting device 221 and the second light beam receiving device 222 are arranged on the substrate 23; the connector 24 can be connected to other sensors to achieve secondary output.

[0028] The line between the first light beam emitting device 211 and the first light beam receiving device 212 is perpendicular to the line between the second light beam emitting device 221 and the second light beam receiving device 222, that is, the direction of the first light beam is perpendicular to the direction of the second light beam.

[0029] Furthermore, the photoelectric sensor 20 of this embodiment is fixed on a workbench (not shown) through a mounting hole (not shown), which enables the above-mentioned light emitter and light receiver to be accurately positioned; and the photoelectric sensor 20 has a simple structure, is easy to assemble, and the wire connection is simple and easy to implement.

[0030] The model of the photoelectric sensor 20 in this embodiment is OGLW2-70T5-2PS6. The middle area of ​​the photoelectric sensor 20 has an open shape, and the product does not need to be sunk when calibrating the tool center point.

[0031] The circuit diagram of the photoelectric sensor 20 of this embodiment and the circuit connection structure between the photoelectric sensor 20 and the load are as follows: Figure 4 shown.

[0032] Of course, in other embodiments, photoelectric sensors with other structures or other models may also be used.

[0033] The robot in this embodiment may be a six-axis manipulator or the like.

[0034] This embodiment uses the light signal (first light beam and second light beam) of the photoelectric sensor 20 to obtain the current time parameters (first time and second time) of the end tool 30 moving along a preset trajectory, obtains the preset time parameters of the end tool 30 and the offset of the movement of the end tool 30, and uses the offset to correct the coordinates of the tool center point of the robot. The method will be described in detail in the following method embodiments.

[0035] This application further proposes a robot tool center point calibration method, such as Figure 5 As shown, Figure 5 1 is a flow chart of an embodiment of the tool center point calibration method of the robot of the present application. The tool center point calibration method of the robot of the present embodiment can be used for the tool center point calibration system 10 of the robot mentioned above. The tool center point calibration method of the robot of the present embodiment specifically comprises the following steps:

[0036] Step S501: Control the end tool 30 of the robot to move along a preset trajectory.

[0037] The tool center point calibration method of the robot in this embodiment is used to realize automatic calibration of the X-axis and Y-axis coordinate positions of the tool center point; the preset trajectory of the end tool 30 is located in the XY plane, and the first light beam generated by the first light beam emitting device 211 and the second light beam generated by the second light beam emitting device 212 are located in the XY plane.

[0038] Specifically, the robot controller controls the end tool 30 of the robot to move along the first coordinate axis of the tool coordinate system of the robot.

[0039] The first coordinate axis of this embodiment is the Y axis, and the first light beam and the second light beam are perpendicular to each other and form an angle of 45° with the Y axis respectively. Of course, in other embodiments, the end tool of the robot can also be controlled to move along the X axis of the tool coordinate system, and when the end tool moves along the X axis of the tool coordinate system, the subsequent tool center point calibration method is similar to the tool center point calibration method of this embodiment.

[0040] Step S502: Obtain the first time when the end tool 30 moves to the first light beam, the second time when it moves to the second light beam, and the movement speed along the preset trajectory, wherein the first light beam and the second light beam intersect, the preset movement trajectory of the end tool 30 is located in the plane where the first light beam and the second light beam are located, and the intersection of the first light beam and the second light beam is outside the preset movement trajectory, and the first light beam and the second light beam are emitted by the light beam emitting device.

[0041] Optionally, this embodiment uses the first light beam emitting device 211 and the first light beam receiving device 212 to obtain the first time when the end tool 30 moves along the first coordinate axis to reach the first light beam, and uses the second light beam emitting device 221 and the second light beam receiving device 222 to obtain the second time when the end tool 30 moves along the first coordinate axis to reach the second light beam.

[0042] Optionally, in this embodiment, step S502 may be implemented by the method shown in step S601 and step S602. The method of this embodiment includes the following steps:

[0043] Step S601: The time length between the moment when the end tool 30 starts to move along the preset trajectory and the moment when the end tool 20 blocks the first light beam is obtained as the first time when the end tool 30 moves along the preset trajectory to the first light beam.

[0044] Step S602: Obtain the time between the moment when the end tool 30 starts to move along the preset trajectory and the moment when the end tool 30 blocks the second light beam as the second time when the end tool 30 moves along the preset trajectory to the second light beam.

[0045] Furthermore, the robot controller controls the movement speed v of the end tool 30 along the preset trajectory.

[0046] Specifically, Figure 6 As shown, the starting point of the solid arrow is the coordinate of the standard tool center point of the end tool 30; the ending point of the solid arrow is the coordinate of the offset tool center point of the end tool 30, and the solid line is the preset motion trajectory of the end tool 30. The robot controller controls the end tool 30 to move along the solid line.

[0047] Step S503: Calculate the coordinate offset of the end tool 30 in the standard tool coordinate system of the robot according to the preset time parameters, the first time, the second time and the movement speed of the end tool 30, wherein the preset time parameters include the third time when the end tool 30 moves along the preset trajectory in the standard tool coordinate system to reach the first light beam and the fourth time when the end tool 30 moves along the preset trajectory to reach the second light beam.

[0048] The preset time parameters of the end tool 30 include a third time for the end tool 30 to move along the first coordinate axis to reach the first light beam and a fourth time for the end tool 30 to move along the first coordinate axis to reach the second light beam in the standard tool coordinate system of the robot.

[0049] Optionally, the present embodiment also adopts a method similar to the above method to obtain preset time parameters of the end tool 30. The preset time parameters should be obtained and stored in the standard tool coordinate system of the robot, that is, before offset.

[0050] Specifically, Figure 6 As shown, the dotted line parallel to the solid line is the trajectory of the end tool 30 moving along the Y axis in the standard tool coordinate system, and the robot controller controls the end tool 30 to move along the dotted line; the robot controller controls the propagation time of the first light beam to be the third time t11, and the robot controller controls the propagation time of the second light beam to be the fourth time t12; the robot controller further stores the third time t11 and the fourth time t12, and resets the timing. Optionally, this embodiment can obtain the offset (△x, △y) of the end tool 30 movement according to the first time t21, the second time t22, the movement speed v, the third time t11 and the fourth time t12.

[0051] Wherein, △x=v*(t12-t11+t21-t22) / 2, △y=v*(t21+t22-t11-t12) / 2, and v is the movement speed of the end tool 30 along the Y axis.

[0052] Furthermore, the robot controller can calculate the offset (△x, △y) according to the formula △x+L3+△y=L1 and the formula △y+L3+L4=△x+L1+L2. Wherein, L1 is the distance from the end tool 30 to the first light beam along the Y axis in the standard tool coordinate system, and L2 is the distance from the end tool 30 to the second light beam along the Y axis in the standard tool coordinate system; L3 is the distance from the end tool 30 to the first light beam along the Y axis after the offset, and L4 is the distance from the end tool 30 to the second light beam along the Y axis after the offset.

[0053] Step S504: Correct the coordinates of the tool center point of the robot using the offset.

[0054] The robot controller obtains the coordinates (x2, y2) of the new tool center point of the end tool 30 after correction; the robot controller obtains the coordinates (x1, y1) of the current tool center point when the end tool 30 moves along a preset trajectory.

[0055] Among them, x2=x1+△x, y2=y1+△y. (x2, y2) are the coordinates of the tool center point after calibration.

[0056] Different from the prior art, the present embodiment utilizes a light beam emitting device to emit a first light beam and a second light beam respectively, and utilizes the first light beam and the second light beam to automatically obtain the current time parameters of the movement of the robot's end tool 30 along a preset trajectory, so as to automatically obtain the offset of the movement of the end tool 30, and automatically correct the coordinates of the tool center point of the robot through the offset, so as to complete the automatic calibration of the tool center point of the robot. The present embodiment realizes the automatic calibration of the tool center point of the robot. Compared with the existing manual tool center point calibration method, the calibration efficiency of the tool center point of the present embodiment is significantly improved, which can improve the work efficiency of the robot.

[0057] The method of this embodiment is automatically executed by the robot controller through an internal program. For example, the internal program may be as follows:

[0058] 1) Define global variables: c1, c2, c3, c4, t:

[0059] New_file1.arl X

[0060] clock c1 / / Time parameter c1 of the first light beam arriving in the standard tool coordinate system

[0061] clock c2 / / Time parameter c2 of the second light beam arriving at the standard tool coordinate system

[0062] clock c3 / / Time parameter c3 of the first beam arriving in the deviation tool coordinate system

[0063] clock c4 / / Time parameter c4 of the second light beam in the deviation tool coordinate system

[0064] int t / / Judge whether it is standard or deviation

[0065] 2) Initialization:

[0066] func void main()

[0067] init()

[0068] clkread(c1)

[0069] clkread(c2)

[0070] clkread(c3)

[0071] clkread(c4)

[0072] Print "t11 = ", clkread (c1)

[0073] Print "t12 = ", clkread (c2)

[0074] Print "t21 = ", clkread (c3)

[0075] Print "t22 = ", clkread (c4)

[0076] Initialize the values ​​of t11, t12, t21, and t22. clkreset is the clock reset instruction, and clkread is the clock read instruction.

[0077] 3) Interrupt subroutine triggered by the first beam:

[0078] func void inthandler2()

[0079] If(t==1)

[0080] clkstop(c1)

[0081] Print "t11 = ", clkread (c1)

[0082] $D[0]=clkread(c1)

[0083] savesv("D")

[0084] Else

[0085] clkstop(c3)

[0086] Print "t21 = ", clkread (c3)

[0087] endif

[0088] endfunc

[0089] 4) Interrupt subroutine triggered by the second beam:

[0090] func void inthandler1()

[0091] If(t==1)

[0092] clkstop(c2)

[0093] Print "t12 = ", clkread (c2)

[0094] $D[1]=clkread(c2)

[0095] savesv("D")

[0096] Else

[0097] clkstop(c4)

[0098] Print "t22 = ", clkread (c4)

[0099] endif

[0100] endfunc

[0101] The interrupt program is triggered by the signal feedback of the first and second beams, and the clkstop instruction is used to stop the timing of each clock, thereby calculating t11 and t12 for the standard track when t = 1, and t21 and t22 for the offset track when t = 0. Since the standard track does not need to be measured later, the $D and savesv ("D") instructions are used here to perform power-off storage.

[0102] 5) Interruption statement of the first and second beams:

[0103] Interrupt 0,when:getdi(2),do:inthandler2()

[0104] Interrupt 0,when:getdi(1),do:inthandler1()

[0105] An interruption statement is made according to the signal feedback of the first light beam and the second light beam.

[0106] 6) Measure the motion trajectory in the standard tool coordinate system:

[0107] waittime 0

[0108] t=1

[0109] print "t = ", t

[0110] Movej j:j0,v:v0,s:s0

[0111] ptp p:p0,v:v1,s:s1,t:$tool0,w:$WORLD

[0112] lin p:p1,v:v2,s:s2,t:$tool0,w:$WORLD

[0113] waittime 0

[0114] clkstart(c1)

[0115] clkstart(c2)

[0116] lin p:p2,v:v2,s:s3,t:$tool0,w:$WORLD

[0117] ptp p:p3,v:v4,s:s4,t:$tool0,w:$WORLD

[0118] pause

[0119] At t=1, the trajectory of the end tool 30 in the standard tool coordinate system, clkstart is the start clock timing instruction, and pause is the pause instruction.

[0120] 7) Measure the motion trajectory in the offset tool coordinate system:

[0121] waittime 0

[0122] t=1

[0123] print "t = ", t

[0124] Movej j:j0,v:v0,s:s0

[0125] ptp p:p0,v:v1,s:s1,t:$tool0,w:$WORLD

[0126] lin p:p1,v:v2,s:s2,t:$tool0,w:$WORLD

[0127] waittime 0

[0128] clkstart(c3)

[0129] clkstart(c4)

[0130] lin p:p2,v:v2,s:s3,t:$tool0,w:$WORLD

[0131] ptp p:p3,v:v4,s:s4,t:$tool0,w:$WORLD

[0132] pause

[0133] At t=0, the trajectory of the end tool 30 in the offset tool coordinate system, clkstart is the start clock timing instruction, and pause is the pause instruction.

[0134] 8) Calculate the offset in the X-axis and Y-axis directions:

[0135] Double X,Y

[0136] X=v2.tcp*(clkread(c2)-clkread(c1)+clkread(c3)-clkread(c4)) / 2

[0137] Y=v2.tcp*(clkread(c3)+clkread(c4)-clkread(c1)-clkread(c2)) / 2

[0138] According to the above calculation formula, the offset X in the X-axis direction and the offset Y in the Y-axis direction, ie, △x and △y in the above embodiment, are calculated using the obtained time parameters.

[0139] 9) Get and correct the coordinates of the center point of the offset tool:

[0140] pose p

[0141] px=$TOOLS[0].T_frame.x

[0142] py=$TOOLS[0].T_frame.y

[0143] pz=$TOOLS[0].T_frame.z

[0144] pa=$TOOLS[0].T_frame.a

[0145] pb=$TOOLS[0].T_frame.b

[0146] pc=$TOOLS[0].T_frame.c

[0147] Savesv(“TOOLS”)

[0148] px=p.x+X

[0149] py=p.y+Y

[0150] Print p

[0151] Get the coordinates of the standard tool center point and add the offsets of the X and Y axes.

[0152] 10) Store the coordinates of the corrected tool center point in the work tool center point:

[0153] $TOOLS[2].T_frame.x=px

[0154] $TOOLS[2].T_frame.y=py

[0155] $TOOLS[2].T_frame.z=pz

[0156] $TOOLS[2].T_frame.a=pa

[0157] $TOOLS[2].T_frame.b=pb

[0158] $TOOLS[2].T_frame.c=pc

[0159] Savesv(“TOOLS”)

[0160] Print "The tool center point after calibration is", p

[0161] endfunc

[0162] The coordinates of the corrected tool center point are stored back into the work tool coordinate system to complete the automatic calibration of the tool center point.

[0163] The method of this embodiment can simultaneously complete the X-axis and Y-axis calibration of the tool center point.

[0164] In other embodiments, the embodiments of the present application can also realize three-dimensional deviation correction of the tool center point, etc. Specifically, after the end tool is offset, the mechanical arm (robot) first draws a circle normally according to the reference trajectory, and then the Z axis of the tool center point drops a certain distance and then draws a circle again. The actual inclination angle and component of the end tool can be obtained through the centers of the two circles, and the compensation angle is obtained according to the standard inclination angle and the actual inclination angle, and then the Z axis is corrected using the compensation angle.

[0165] The present application further proposes another embodiment of a robot tool center point calibration method. Figure 7 As shown, Figure 7 The tool center point calibration method of the robot of the present application is a flow chart of an embodiment of the present invention. The tool center point calibration method of the present embodiment comprises the following steps:

[0166] Step S901: Determine whether the coordinates of the current tool center point of the robot are offset.

[0167] For example, when the dispensing head is replaced, the dispensing head is obviously deformed, or the dispensing track is obviously offset, it can be determined that the coordinates of the current tool center point have shifted.

[0168] Step S902: If the coordinates of the current tool center point of the robot are offset, the end tool 30 of the robot is controlled to move along a preset trajectory.

[0169] If the coordinates of the current tool center point of the robot are offset, the robot controller calibrates the coordinates of the tool center point using the following method; if the coordinates of the current tool center point of the robot are not offset, the robot controller controls the end tool 30 to continue dispensing.

[0170] Step S903: Obtain the first time when the end tool 30 moves to the first light beam, the second time when it moves to the second light beam, and the movement speed along the preset trajectory, wherein the first light beam and the second light beam intersect, the preset movement trajectory of the end tool 30 is located in the plane where the first light beam and the second light beam are located, and the intersection of the first light beam and the second light beam is outside the preset movement trajectory, and the first light beam and the second light beam are emitted by the light beam emitting device.

[0171] Step S904: Calculate the coordinate offset of the end tool 30 in the standard tool coordinate system of the robot according to the preset time parameters, the first time, the second time and the movement speed of the end tool 30, wherein the preset time parameters include the third time for the end tool 30 to move along the preset trajectory in the standard tool coordinate system to reach the first light beam and the fourth time for the end tool 30 to move along the preset trajectory to reach the second light beam.

[0172] Step S905: Correct the coordinates of the tool center point of the robot using the offset.

[0173] Steps S903 to S905 are similar to the above-mentioned steps S502 to S504 and are not described in detail here.

[0174] On the basis of the above embodiment, this embodiment further determines whether the coordinates of the current tool center point are offset, and calibrates the coordinates of the current tool center point only after determining that the coordinates of the current tool center point are offset, which can further improve the tool center point calibration efficiency and the work efficiency of the robot.

[0175] The present application further proposes a computer storage medium, such as Figure 8 As shown, Figure 8 The computer storage medium 110 stores program instructions 111 thereon, and when the program instructions 111 are executed by a processor (not shown), the robot-based tool center point calibration method is implemented.

[0176] The computer storage medium 110 of this embodiment can be, but is not limited to, a USB flash drive, an SD card, a PD optical drive, a mobile hard disk, a large-capacity floppy drive, a flash memory, a multimedia memory card, a server, etc.

[0177] Different from the prior art, the tool center point calibration method of the robot in the embodiment of the present application includes: controlling the end tool of the robot to move along a preset trajectory; obtaining the first time when the end tool moves to the first light beam, the second time when the end tool moves to the second light beam and the movement speed along the preset trajectory, wherein the first light beam and the second light beam intersect, the preset movement trajectory of the end tool is located in the plane where the first light beam and the second light beam are located, and the intersection of the first light beam and the second light beam is outside the preset movement trajectory, and the first light beam and the second light beam are emitted by a light beam emitting device; calculating the coordinate offset of the end tool in the standard tool coordinate system of the robot according to the preset time parameters of the end tool, the first time, the second time and the movement speed, wherein the preset time parameters include the third time when the end tool moves along the preset trajectory in the standard tool coordinate system to reach the first light beam and the fourth time when the end tool moves along the preset trajectory to reach the second light beam; and using the coordinate offset to correct the coordinates of the tool center point of the robot. The embodiment of the present application utilizes a light beam emitting device to respectively emit a first light beam and a second light beam, and utilizes the first light beam and the second light beam to automatically obtain the current time parameters of the movement of the robot's end tool along a preset trajectory, so as to automatically obtain the offset of the movement of the end tool, and automatically correct the coordinates of the robot's tool center point through the offset, so as to complete the automatic calibration of the robot's tool center point. The embodiment of the present application realizes the automatic calibration of the robot's tool center point. Compared with the existing manual tool center point calibration method, the tool center point calibration efficiency of the embodiment of the present application is significantly improved, which can improve the work efficiency of the robot.

[0178] In addition, if the above functions are implemented in the form of software functions and sold or used as independent products, they can be stored in a storage medium readable by a mobile terminal, that is, the present application also provides a storage device storing program data, the program data can be executed to implement the method of the above embodiment, and the storage device can be, for example, a USB flash drive, an optical disk, a server, etc. In other words, the present application can be embodied in the form of a software product, which includes a number of instructions for enabling a smart terminal to execute all or part of the steps of the method described in each embodiment.

[0179] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" 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 application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradicting each other.

[0180] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0181] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0182] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (which can be a personal computer, server, network device or other system that can fetch instructions from the instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0183] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A robot tool center point calibration method, characterized in that: The tool center point calibration method comprises: Controlling the end tool of the robot to move along a preset trajectory; Acquiring a first time when the end tool moves to a first light beam, a second time when the end tool moves to a second light beam, and a moving speed along the preset trajectory, wherein the first light beam and the second light beam intersect, the preset movement trajectory of the end tool is located in a plane where the first light beam and the second light beam are located, and an intersection point of the first light beam and the second light beam is outside the preset movement trajectory, and the first light beam and the second light beam are emitted by a light beam emitting device; Calculating the coordinate offset of the end tool in the standard tool coordinate system of the robot according to the preset time parameters of the end tool, the first time, the second time and the movement speed, wherein the preset time parameters include a third time for the end tool to move along the preset trajectory in the standard tool coordinate system to reach the first light beam and a fourth time for the end tool to move along the preset trajectory to reach the second light beam; Correcting the coordinates of the tool center point of the robot using the coordinate offset; Wherein, controlling the end tool of the robot to move along a preset trajectory comprises: The end tool of the robot is controlled to move along the first coordinate axis of the tool coordinate system of the robot; the first coordinate axis is the Y axis, the first light beam and the second light beam are perpendicular to each other and form an angle of 45° with the Y axis respectively.

2. The tool center point calibration method according to claim 1, characterized in that: The coordinate offset (△x, △y) satisfies: △x=v*(t12-t11+t21-t22) / 2, △y=v*(t21+t22-t11-t12) / 2, v is the movement speed of the end tool along the Y-axis, t21 is the first time, t22 is the second time, t11 is the third time, and t12 is the fourth time.

3. The tool center point calibration method according to claim 2, characterized in that: The step of correcting the coordinates of the tool center point of the robot by using the coordinate offset comprises: Obtain the current coordinates (x1, y1) of the end tool in the tool coordinate system; Calculate and obtain the corrected new coordinates (x2, y2) of the end tool in the tool coordinate system; Among them, x2=x1+△x, y2=y1+△y.

4. The tool center point calibration method according to claim 1, characterized in that: The step of obtaining a first time when the end tool moves along the preset trajectory to the first light beam and a second time when the end tool moves along the preset trajectory to the second light beam comprises: The time length between the moment when the end tool starts to move along the preset trajectory and the moment when the end tool blocks the first light beam is obtained as the first time when the end tool moves along the preset trajectory to the first light beam; The time length between the moment when the end tool starts to move along the preset trajectory and the moment when the end tool blocks the second light beam is obtained as the second time when the end tool moves along the preset trajectory to the second light beam.

5. The tool center point calibration method according to claim 1, characterized in that: Before the step of controlling the end tool of the robot to move along a preset trajectory, the tool center point calibration method further comprises: Determining whether the current tool coordinates of the robot are offset; If the current tool coordinates of the robot are offset, the step of controlling the end tool of the robot to move along a preset trajectory is executed.

6. The tool center point calibration method according to claim 5, characterized in that: The determining whether the current tool coordinates of the robot are offset comprises: Detecting whether the end tool has been replaced or deformed; If the end tool is replaced or deformed, it is determined that the current tool coordinates of the robot are offset.

7. A tool center point calibration system for a robot, characterized in that: The tool center point calibration system comprises: a beam emitting device, a beam receiving device, an end tool and a robot controller, wherein the robot controller is coupled to the beam emitting device, the beam receiving device and the end tool respectively, and the end tool is arranged at the end of the robot; The robot controller is used to control the end tool to move along a preset trajectory; the beam emitting device is used to emit a first beam and a second beam respectively, and the beam receiving device is used to receive the first beam and the second beam respectively. The robot controller is further used to obtain a first time when the end tool moves to the first beam, a second time when the end tool moves to the second beam, and a movement speed along the preset trajectory, wherein the first beam and the second beam intersect, the preset movement trajectory of the end tool is located in the plane where the first beam and the second beam are located, and the intersection of the first beam and the second beam is outside the preset movement trajectory; the robot controller is further used to calculate the coordinate offset of the end tool in the standard tool coordinate system of the robot according to the preset time parameters of the end tool, the first time, the second time, and the movement speed, wherein the preset time parameters include a third time when the end tool moves along the preset movement trajectory to reach the first beam and a fourth time when the end tool moves along the preset movement trajectory to reach the second beam in the standard tool coordinate system, and is used to correct the coordinates of the tool center point of the robot using the coordinate offset; Among them, the robot controller is further used to control the end tool of the robot to move along the first coordinate axis of the tool coordinate system, the first coordinate axis is the Y axis, the first light beam and the second light beam are perpendicular to each other and form an angle of 45° with the Y axis respectively.

8. The tool center point calibration system according to claim 7, characterized in that: The coordinate offset (△x, △y) satisfies: △x=v*(t12-t11+t21-t22) / 2, △y=v*(t21+t22-t11-t12) / 2, v is the movement speed of the end tool along the Y-axis, t21 is the first time, t22 is the second time, t11 is the third time, and t12 is the fourth time.

9. A computer storage medium, characterized in that Program instructions are stored thereon, and when the program instructions are executed, the tool center point calibration method of the robot described in any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Tool center point calibration device and method

    US20240401933A1