CN109311163B - Method for correcting motion control command of robot and related equipment - Google Patents

Method for correcting motion control command of robot and related equipment Download PDF

Info

Publication number
CN109311163B
CN109311163B CN201780037097.5A CN201780037097A CN109311163B CN 109311163 B CN109311163 B CN 109311163B CN 201780037097 A CN201780037097 A CN 201780037097A CN 109311163 B CN109311163 B CN 109311163B
Authority
CN
China
Prior art keywords
robot
position data
coordinate system
workpiece
points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201780037097.5A
Other languages
Chinese (zh)
Other versions
CN109311163A (en
Inventor
刘子雨
叶根
张志明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen A&E Intelligent Technology Institute Co Ltd
Original Assignee
Shenzhen A&E Intelligent Technology Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen A&E Intelligent Technology Institute Co Ltd filed Critical Shenzhen A&E Intelligent Technology Institute Co Ltd
Publication of CN109311163A publication Critical patent/CN109311163A/en
Application granted granted Critical
Publication of CN109311163B publication Critical patent/CN109311163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

本发明公开了一种校正机器人的运动控制命令的方法,其包括:获取工件上预设的三个点的第一位置数据(S11);获取预存的所述三个点的第二位置数据(S12);根据所述第一位置数据和所述第二位置数据确定第一位置转换参数(S13);根据所述第一位置转换参数对所述机器人的运动控制命令进行校正,得到校正后的所述机器人的运动控制命令(S14)。该方法能够在预先未标定工件坐标系的情况下在工件改变位置后也能实现对机器人的精确的运动控制。

Figure 201780037097

The present invention discloses a method for correcting a motion control command of a robot, which includes: acquiring first position data of three preset points on a workpiece (S11); acquiring pre-stored second position data of the three points (S11). S12); determine a first position conversion parameter according to the first position data and the second position data (S13); correct the motion control command of the robot according to the first position conversion parameter, and obtain a corrected motion control commands of the robot (S14). The method can realize precise motion control of the robot even after the workpiece changes its position without pre-calibrating the workpiece coordinate system.

Figure 201780037097

Description

Method for correcting motion control command of robot and related equipment thereof
Technical Field
The invention relates to the technical field of numerical control, in particular to a method for correcting a motion control command of a robot and related equipment thereof.
Background
When the teaching mode is adopted in the motion control of the robot, but a workpiece and a tool coordinate system are not established, the robot shifts relative to the workpiece (the position of the robot or the workpiece changes), and the original motion control command is still used; or the same motion control command needs to be used by a plurality of robots, and when the teaching programming used by the original motion control command does not establish a workpiece coordinate system, the robot still adopts the original motion control command to control the motion of the robot, so that the problem of inaccurate motion control exists.
The robot generally performs operations such as conveyance and machining by using a teaching method, and a general user performs a machining operation of a workpiece by directly using a tool of the user, while rarely using a dedicated tool for calibration at the time of programming. Therefore, there are few object coordinate systems in the program, and when the robot carries, moves, or moves a workpiece, it is often necessary to teach all the points again.
In order to solve the problem, each large manufacturer can establish a workpiece coordinate system in a software program, namely, the workpiece coordinate system needs to be calibrated before teaching, and then if the workpiece coordinate system changes, the workpiece coordinate system only needs to be changed, so that the workpiece coordinate system can be directly used without changing the original program. But not in a way that was addressed for a program that did not have a calibrated coordinate system before.
The current stage of the workpiece coordinate system function needs to be prepared in advance, that is, the method cannot be used if the coordinate system is not established in the original program.
Furthermore, the measurement of the object coordinate system is tool dependent. The workpiece coordinate system must be calibrated with knowledge of the Tool coordinate system and the Tool coordinate system origin (TCP). The general user has few special calibration tools, and if other arbitrary tools are used, the measurement of the tool is easy to generate errors, and moreover, the repeated assembly and disassembly of the tool reduces the efficiency.
Therefore, it is desirable to provide a method for correcting a motion control command of a robot and a related apparatus thereof to solve the above technical problems.
Disclosure of Invention
The invention mainly solves the technical problem of providing a robot teaching calibration method which can accurately control the robot to move according to a corrected motion control command after a workpiece changes the position under the condition that a workpiece coordinate system is not calibrated in advance.
In order to solve the technical problems, the invention provides a technical scheme that: there is provided a method of correcting a motion control command of a robot, the method comprising: acquiring first position data of three preset points on a workpiece; acquiring second position data of three prestored points; determining a first position conversion parameter according to the first position data and the second position data; and correcting the motion control command of the robot according to the first position conversion parameter to obtain the corrected motion control command of the robot.
In order to solve the above technical problems, another technical solution provided by the present invention is: a robot controller is provided, the robot controller comprising a memory having stored therein executable programs and data and a processor calling the executable programs and data in the memory to perform the steps of: acquiring first position data of three preset points on a workpiece; acquiring second position data of three prestored points; determining a first position conversion parameter according to the first position data and the second position data; and correcting the motion control command of the robot according to the first position conversion parameter to obtain the corrected motion control command of the robot.
In order to solve the above technical problems, another technical solution provided by the present invention is: there is provided a robot comprising a robot main body and a controller for: acquiring first position data of three preset points on a workpiece; acquiring second position data of three prestored points; determining a first position conversion parameter according to the first position data and the second position data; and correcting the motion control command of the robot according to the first position conversion parameter to obtain the corrected motion control command of the robot.
In order to solve the above technical problems, another technical solution provided by the present invention is: there is provided a storage device storing an executable program that is executed to implement the above-described method of correcting a motion control command of a robot.
The invention has the beneficial effects that: the method is different from the prior art in that first position data of three preset points on a workpiece are acquired; acquiring second position data of three prestored points; determining a first position conversion parameter according to the first position data and the second position data; and correcting the motion control command of the robot according to the first position conversion parameter to obtain the corrected motion control command of the robot, and accurately controlling the robot to move according to the corrected motion control command after the position of the workpiece is changed under the condition that the workpiece coordinate system is not calibrated in advance.
Drawings
FIG. 1 is a flowchart of a method for correcting a motion control command of a robot according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for correcting motion control commands of a robot according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a robot controller module of an embodiment of the present invention;
FIG. 4 is a schematic view of a robot module of an embodiment of the present invention;
FIG. 5 is a block diagram of a memory device according to an embodiment of the invention.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and examples.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for calibrating a motion control command of a robot according to a first embodiment of the present invention. In this embodiment, the method of correcting a motion control command of a robot may include the steps of:
step S11: first position data of three preset points on a workpiece are acquired.
In this embodiment, the preset three points may be any three points that are not collinear and are set on the workpiece in advance. The first position data may be position data of the three points after the workpiece is changed from the position. The acquisition of the first position data of the three preset points on the workpiece can be realized by acquiring teaching data input by a user to control the robot to enable the tool to contact the three points after the workpiece is changed in position, and then the acquisition of the first position data is realized according to the teaching data. In other embodiments, the first position data of the three preset points on the workpiece may be obtained through other manners, such as measurement calibration, which is not limited in this embodiment, and refer to the following description specifically.
Step S12: and acquiring pre-stored second position data of the three points.
In this embodiment, the second position data may be position data of the three points before the workpiece is shifted. And acquiring pre-stored second position data of the three points, for example, the robot pre-stores the second position data of the three points before the workpiece is changed in position, and acquires the second position data from a memory of the robot. In this embodiment, the second position data may be obtained and stored by teaching the three points before the position of the workpiece is changed, specifically, refer to the following description. In other embodiments, the second position data may be obtained by other means, such as measurement calibration, and then stored in memory.
Step S13: a first position transition parameter is determined based on the first position data and the second position data.
In this embodiment, determining the first position conversion parameter according to the first position data and the second position data may be calculating a conversion matrix according to the first position data and the second position data, and in other embodiments, other position conversion parameters may be calculated according to the first position data and the second position data. The embodiment of the present invention is not limited thereto.
Step S14: and correcting the motion control command of the robot according to the first position conversion parameter to obtain the corrected motion control command of the robot.
In this embodiment, the correcting the motion control command of the robot according to the first position conversion parameter, and the obtaining the corrected motion control command of the robot may include: correcting the three-dimensional coordinates in the motion control command of the robot according to the first position conversion parameter; and correcting the rotation angle in the motion control command of the robot according to the first position conversion parameter, which is described in detail below.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for calibrating a motion control command of a robot according to a second embodiment of the present invention. In this embodiment, acquiring first position data of three predetermined points on the workpiece includes: receiving teaching data input by a user to control the robot to enable the tool to contact three preset points on the workpiece; first position data is acquired based on the teaching data. Correcting the motion control command of the robot according to the first position conversion parameter comprises the following steps: and correcting the three-dimensional coordinates in the motion control command of the robot according to the first position conversion parameter and correcting the rotation angle in the motion control command of the robot according to the first position conversion parameter.
In this embodiment, the method of correcting a motion control command of a robot may include the steps of:
step S21: first teaching data input by a user is received to control the robot to enable the tool to contact three preset points on the workpiece.
In this embodiment, the preset three points may be any three points that are not collinear and are set on the workpiece in advance. The tool may be a robot-mounted tool. The tool may be rigidly connected to a flange of the robot. The tool may be a point contact tool. For example, the tool may be a welding gun. In other embodiments, the tool may be other tools, and the connection with the robot may be in other manners. Preferably, the first teaching data input by the user is received to control the robot to drive a tool mounted on the robot to contact three preset points on the workpiece after the workpiece is changed to the position. Teaching of the robot by the user means that when the user controls the robot to execute a specific motion, the robot records teaching data corresponding to the specific motion and can execute the specific motion according to the teaching data in a subsequent process.
Step S22: first position data is acquired based on the teaching data.
In this embodiment, the first position data is obtained according to the first teaching data, and the first position data may be position data of the three points after the workpiece is shifted. Acquiring the first position data according to the first teaching data may include: acquiring third position data of the three points in a basic coordinate system according to the first teaching data; converting the third position data into first position data in a flange coordinate system. Converting the third position data into first position data in a flange coordinate system may include: converting the third position data to the first position data using a second position conversion parameter between the known base coordinate system and the flange coordinate system.
Preference is given toThe first position data comprise the coordinates of each of the three points in the flange coordinate system after the workpiece has been displaced, the first point of said three points, for example, having x' coordinates in each of the three coordinate axes of the flange coordinate systemf1,y'f1,z'f1The first position data further includes attitude angles a ', b ', c ' of the first point in the base coordinate system with respect to three coordinate axes after the workpiece is repositioned.
Preferably, the third position data obtained from the first teaching data includes coordinates of each of the three points in the base coordinate system after the workpiece is changed in position, the coordinates of the first point in the base coordinate system being x ', y', z ', respectively, taking the first point as an example, and the fourth position data further includes attitude angles a', b ', c' of the first point in the base coordinate system with respect to three coordinate axes after the workpiece is changed in position.
The third position data is converted into the first position data using the second position conversion parameter. For example, using a known transformation relationship f1The coordinates x ', y', z 'of the first point in the base coordinate system after the workpiece has been repositioned are converted into the coordinates x' in the flange coordinate systemf1,y'f1,z'f1
Step S23: and acquiring pre-stored second position data of the three points.
In this embodiment, the second position data may be position data of the three points before the workpiece is shifted. And acquiring pre-stored second position data of the three points, for example, the robot pre-stores the second position data of the three points before the workpiece is changed in position, and acquires the second position data from a memory of the robot. The pre-storing the second position data of the three points may specifically include: and receiving second teaching data input by a user in advance to control the robot to enable the tool to contact the three points before the position of the workpiece is changed, acquiring second position data according to the second teaching data, and storing the second position data in a memory. Acquiring the second position data according to the second teaching data may include: acquiring fourth position data of the three points in a basic coordinate system according to the second teaching data; and converting the fourth position data into second position data in a flange coordinate system. Converting the fourth position data into second position data in a flange coordinate system may include: and converting the fourth position data into the second position data by using a second position conversion parameter between the known basic coordinate system and the flange coordinate system.
Preferably, the second position data comprise the coordinates of each of the three points in the flange coordinate system before the workpiece is repositioned, taking as an example the first point whose coordinates in the three coordinate axes of the flange coordinate system are x respectivelyf1,yf1,zf1The second position data further includes attitude angles a, b, c of the first point with respect to three coordinate axes in the base coordinate system before the workpiece is repositioned.
Preferably, the fourth position data acquired from the second teaching data includes coordinates of each of the three points in the basic coordinate system before the workpiece is repositioned, the coordinates of the first point in the basic coordinate system are x, y, z, respectively, taking the first point as an example, and the fourth position data further includes attitude angles a, b, c of the first point in the basic coordinate system with respect to the three coordinate axes before the workpiece is repositioned.
Preferably, the fourth position data is converted into the second position data using a second position conversion parameter between the known base coordinate system and the flange coordinate system. For example, using a known transformation relationship f1Converting the coordinates x, y, z of the first point in the basic coordinate system before the workpiece is repositioned to the coordinates x in the flange coordinate systemf1,yf1,zf1. It is understood that since the base coordinate system and the flange coordinate system are known, the conversion relationship therebetween, i.e., the second position conversion parameter, is known.
Step S24: determining a first position transition parameter based on the first position data and the second position data.
In this embodiment, determining a first position conversion parameter from the first position data and the second position data comprises: a transformation matrix is calculated from the first position data and the second position data.
Preferably, the calculating the conversion matrix from the first position data and the second position data comprises: setting a first point of the three points to coincide with an origin of a first three-dimensional rectangular coordinate system before the workpiece is shifted, and setting the first point to coincide with an origin of a second three-dimensional rectangular coordinate system after the workpiece is shifted, wherein the position relation between the coordinate axis of the first three-dimensional rectangular coordinate system and the three points is consistent with the relative position relation between the coordinate axis of the second three-dimensional rectangular coordinate system and the three points;
the transformation matrix is calculated by the following formula:
Figure BDA0001905437400000071
εX=a'-a;εY=b'-b;εz=c'-c
wherein x isf1,yf1,zf1For the coordinates, x', of the first point in the flange coordinate system in the three coordinate axes before the workpiece change positionf1,y'f1,z'f1The coordinate of the first point on three coordinate axes of the flange coordinate system after the workpiece is changed, a, b and c are respectively the attitude angle of the first point on the basic coordinate system before the workpiece is changed, a ', b ' and c ' are respectively the attitude angle of the first point on the basic coordinate system after the workpiece is changed, epsilonX,εY,εZThe included angles of the three coordinate axes of the first three-dimensional rectangular coordinate system and the three coordinate axes of the corresponding second three-dimensional rectangular coordinate system are respectively included.
The derivation process of the transformation matrix is as follows:
the calculation of the conversion matrix between the first three-dimensional rectangular coordinate system and the second three-dimensional rectangular coordinate system can be obtained by adopting a mode of adding three rotation matrixes and translation:
Figure BDA0001905437400000072
wherein R is1X)R2Y)R3Z) The three-dimensional rectangular coordinate system is a rotation matrix around three coordinate axes of x, y and z of the first three-dimensional rectangular coordinate system.
Figure BDA0001905437400000073
Figure BDA0001905437400000081
Figure BDA0001905437400000082
The transformation matrix can thus be obtained as:
Figure BDA0001905437400000083
step S25: and correcting the three-dimensional coordinates in the motion control command of the robot according to the first position conversion parameter and correcting the rotation angle in the motion control command of the robot according to the first position conversion parameter.
In this embodiment, the motion control command may be third teaching data of a user input received in advance. The third teaching data is corrected to generate fourth teaching data. Specifically, the coordinates and rotation angles of the respective points on the first motion trajectory recorded in the third teaching data are converted into new coordinates by the first conversion parameter to generate the second motion trajectory, and the corresponding fourth teaching data is generated by passing the points on the first trajectory through the conversion matrix TmThe robot can drive the tool to move according to the second motion trail recorded in the fourth teaching data so as to accurately process the workpiece after changing the position without inputting the teaching data again, and the robot can be realized according to the original teaching data and the first position conversion parameterPrecise control of the person. In other embodiments, the motion control command may be other commands for controlling the motion of the robot, which is not limited in the present invention.
Referring to fig. 3, fig. 3 is a schematic diagram of a robot controller module according to an embodiment of the invention. In this embodiment, the robot controller includes a memory 11 and a processor 12, the memory 11 stores executable programs and data, and the processor 12 calls the executable programs and data in the memory 11 to perform the following steps: acquiring first position data of three preset points on a workpiece; acquiring second position data of three prestored points; determining a first position conversion parameter according to the first position data and the second position data; and correcting the motion control command of the robot according to the first position conversion parameter to obtain the corrected motion control command of the robot.
For a detailed description of the steps of the processor 12 calling the executable program and executing the data in the memory 11, please refer to the foregoing description, which is not described herein again. The data stored in the memory 11 may include: any of the above embodiments may be implemented with the first position data, the second position data, the third position data, the fourth position data, the first position transition parameter, the second position transition parameter, the first teaching data, the second teaching data, the third teaching data, the fourth teaching data, and the other data mentioned in the above embodiments.
Referring to fig. 4, fig. 4 is a schematic diagram of a robot module according to an embodiment of the invention. In the present embodiment, the robot includes a robot main body 21 and a controller 22, and the controller 22 is configured to: acquiring first position data of three preset points on a workpiece; acquiring second position data of three prestored points; determining a first position conversion parameter according to the first position data and the second position data; and correcting the motion control command of the robot according to the first position conversion parameter to obtain the corrected motion control command of the robot.
Preferably, the controller 22 is configured to: correcting the three-dimensional coordinates in the motion control command of the robot according to the first position conversion parameter; and correcting the rotation angle in the motion control command of the robot according to the first position conversion parameter.
Preferably, the controller 22 is configured to: receiving teaching data input by a user to control the robot to enable the tool to contact three preset points on the workpiece; first position data is acquired based on the teaching data.
Preferably, the controller 22 is configured to: acquiring third position data of the three points in the basic coordinate system according to the teaching data;
preferably, the controller 22 is configured to: the third position data is converted into first position data in a flange coordinate system.
Preferably, the controller 22 is configured to: the third position data is converted to the first position data using a second position conversion parameter between the known base coordinate system and the flange coordinate system.
Preferably, the three predetermined points on the workpiece are not collinear.
Preferably, the controller is for: a transformation matrix is calculated from the first position data and the second position data.
Preferably, the first position data is position data of three points after the workpiece is changed in position, the second position data is position data of three points before the workpiece is changed in position,
the controller 22 is configured to:
setting a first point of three points before the workpiece is changed to coincide with the origin of a first three-dimensional rectangular coordinate system, and setting the first point after the workpiece is changed to coincide with the origin of a second three-dimensional rectangular coordinate system, wherein the position relation between the coordinate axis of the first three-dimensional rectangular coordinate system and the three points is consistent with the relative position relation between the coordinate axis of the second three-dimensional rectangular coordinate system and the three points;
the transformation matrix is calculated by the following formula:
Figure BDA0001905437400000101
εX=a'-a;εY=b'-b;εz=c'-c
wherein x isf1,yf1,zf1For changing position of workCoordinates, x' of the first point in front on three coordinate axes of the flange coordinate systemf1,y'f1,z'f1The coordinate of the first point on three coordinate axes of the flange coordinate system after the workpiece is changed, a, b and c are respectively the attitude angle of the first point on the basic coordinate system before the workpiece is changed, a ', b ' and c ' are respectively the attitude angle of the first point on the basic coordinate system after the workpiece is changed, epsilonX,εY,εZThe included angles of the three coordinate axes of the first three-dimensional rectangular coordinate system and the three coordinate axes of the corresponding second three-dimensional rectangular coordinate system are respectively included.
Preferably, the tool is a point contact tool.
Preferably, the tool is a welding gun.
Preferably, the tool is rigidly connected to the flange of the robot.
Referring to fig. 5, fig. 5 is a block diagram of a memory device according to an embodiment of the invention. In the present embodiment, the storage device 31 stores an executable program executed to implement the method for correcting the motion control command of the robot according to any one of the above-described embodiments. The storage device 31 may be a usb disk, an optical disk, a hard disk, a removable hard disk, a server, or the like, and of course, the storage device 31 may also be the memory 11 in the above embodiments.
The method is different from the prior art in that first position data of three preset points on a workpiece are acquired; acquiring second position data of three prestored points; determining a first position conversion parameter according to the first position data and the second position data; and correcting the motion control command of the robot according to the first position conversion parameter to obtain the corrected motion control command of the robot, and accurately controlling the robot to move according to the corrected motion control command after the position of the workpiece is changed under the condition that the workpiece coordinate system is not calibrated in advance.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (25)

1.一种校正机器人的运动控制命令的方法,其特征在于,所述方法包括:1. A method for correcting the motion control command of a robot, wherein the method comprises: 接收用户输入的示教数据,以控制所述机器人使工具接触工件上预设的三个点;receiving teaching data input by the user to control the robot to make the tool contact three preset points on the workpiece; 根据所述示教数据获取所述三个点在基础坐标系的第三位置数据;Acquiring third position data of the three points in the basic coordinate system according to the teaching data; 利用已知的基础坐标系和法兰坐标系之间的第二位置转换参数将所述第三位置数据转换为第一位置数据;Converting the third position data to the first position data using the second position conversion parameters between the known base coordinate system and the flange coordinate system; 获取预存的所述三个点的第二位置数据;acquiring pre-stored second position data of the three points; 根据所述第一位置数据和所述第二位置数据确定第一位置转换参数;determining a first position conversion parameter according to the first position data and the second position data; 根据所述第一位置转换参数对所述机器人的运动控制命令进行校正,得到校正后的所述机器人的运动控制命令。The motion control command of the robot is corrected according to the first position conversion parameter to obtain the corrected motion control command of the robot. 2.根据权利要求1所述的方法,其特征在于,所述根据所述第一位置转换参数对所述机器人的运动控制命令进行校正,包括:2. The method according to claim 1, wherein the calibrating the motion control command of the robot according to the first position conversion parameter comprises: 根据第一位置转换参数对所述机器人的运动控制命令中的三维坐标进行校正;及correcting the three-dimensional coordinates in the motion control command of the robot according to the first position conversion parameter; and 根据第一位置转换参数对所述机器人的运动控制命令中的旋转角度进行校正。The rotation angle in the motion control command of the robot is corrected according to the first position conversion parameter. 3.根据权利要求1所述的方法,其特征在于,所述工件上预设的三个点不共线。3 . The method according to claim 1 , wherein the three preset points on the workpiece are not collinear. 4 . 4.根据权利要求1所述的方法,其特征在于,所述根据所述第一位置数据和所述第二位置数据确定第一位置转换参数包括:4. The method according to claim 1, wherein the determining a first position conversion parameter according to the first position data and the second position data comprises: 根据所述第一位置数据和第二位置数据计算转换矩阵。A transformation matrix is calculated from the first position data and the second position data. 5.根据权利要求4所述的方法,其特征在于,所述第一位置数据为所述工件变换位置后所述三个点的位置数据,所述第二位置数据为所述工件变换位置前所述三个点的位置数据,所述根据所述第一位置数据和第二位置数据计算转换矩阵包括:5 . The method according to claim 4 , wherein the first position data is the position data of the three points after the position of the workpiece is changed, and the second position data is before the position of the workpiece is changed. 6 . The position data of the three points, the calculation of the transformation matrix according to the first position data and the second position data includes: 将所述工件变换位置前所述三个点中的第一点设置为与第一三维直角坐标系原点重合,将所述工件变换位置后所述第一点设置为与第二三维直角坐标系的原点重合,其中所述第一三维直角坐标系的坐标轴与所述三个点的位置关系与所述第二三维直角坐标系的坐标轴与所述三个点的相对位置关系一致;Set the first point of the three points before the workpiece transformation position to coincide with the origin of the first three-dimensional rectangular coordinate system, and set the first point after the workpiece transformation position to the second three-dimensional rectangular coordinate system. The origin of , where the coordinate axis of the first three-dimensional Cartesian coordinate system and the positional relationship of the three points are consistent with the relative positional relationship between the coordinate axis of the second three-dimensional Cartesian coordinate system and the three points; 通过以下公式计算转换矩阵:The transformation matrix is calculated by the following formula:
Figure FDA0003273200440000021
Figure FDA0003273200440000021
εX=a'-a;εY=b'-b;εz=c'-cε X = a'-a; ε Y = b'-b; ε z = c'-c 其中,xf1,yf1,zf1为所述工件变换位置前所述第一点在所述法兰坐标系的三个坐标轴上的坐标,x'f1,y'f1,z'f1为所述工件变换位置后所述第一点在所述法兰坐标系三个坐标轴上的坐标,a,b,c分别为所述工件变换位置前所述第一点在基础坐标系的姿态角度,a',b',c'分别为所述工件变换位置后所述第一点在所述基础坐标系的姿态角度,εX,εY,εZ分别为所述第一三维直角坐标系的三个坐标轴与对应的所述第二三维直角坐标系的三个坐标轴的夹角。Wherein, x f1 , y f1 , z f1 are the coordinates of the first point on the three coordinate axes of the flange coordinate system before the workpiece is transformed, and x' f1 , y' f1 , and z' f1 are The coordinates of the first point on the three coordinate axes of the flange coordinate system after the workpiece is changed, a, b, and c are the attitudes of the first point in the basic coordinate system before the workpiece is changed. Angle, a', b', c' are the attitude angles of the first point in the basic coordinate system after the workpiece is transformed, respectively, ε X , ε Y , ε Z are the first three-dimensional Cartesian coordinates, respectively The included angle between the three coordinate axes of the system and the corresponding three coordinate axes of the second three-dimensional rectangular coordinate system.
6.根据权利要求1所述的方法,其特征在于,所述工具为点接触式工具。6. The method of claim 1, wherein the tool is a point-contact tool. 7.根据权利要求6所述的方法,其特征在于,所述工具为焊枪。7. The method of claim 6, wherein the tool is a welding gun. 8.根据权利要求6所述的方法,其特征在于,所述工具与所述机器人的法兰刚性连接。8. The method of claim 6, wherein the tool is rigidly connected to a flange of the robot. 9.一种机器人控制器,其特征在于,所述机器人控制器包括存储器和处理器,所述存储器中存储有可执行程序和数据,所述处理器调用所述存储器中的可执行程序和数据以执行以下步骤:9. A robot controller, characterized in that the robot controller comprises a memory and a processor, wherein executable programs and data are stored in the memory, and the processor calls the executable programs and data in the memory to perform the following steps: 接收用户输入的示教数据,以控制所述机器人使工具接触工件上预设的三个点;receiving teaching data input by the user to control the robot to make the tool contact three preset points on the workpiece; 根据所述示教数据获取所述三个点在基础坐标系的第三位置数据;Acquiring third position data of the three points in the basic coordinate system according to the teaching data; 利用已知的基础坐标系和法兰坐标系之间的第二位置转换参数将所述第三位置数据转换为第一位置数据;Converting the third position data to the first position data using the second position conversion parameters between the known base coordinate system and the flange coordinate system; 获取预存的所述三个点的第二位置数据;acquiring pre-stored second position data of the three points; 根据所述第一位置数据和所述第二位置数据确定第一位置转换参数;determining a first position conversion parameter according to the first position data and the second position data; 根据所述第一位置转换参数对所述机器人的运动控制命令进行校正,得到校正后的所述机器人的运动控制命令。The motion control command of the robot is corrected according to the first position conversion parameter to obtain the corrected motion control command of the robot. 10.根据权利要求9所述的机器人控制器,其特征在于,所述根据所述第一位置转换参数对所述机器人的运动控制命令进行校正,包括:10. The robot controller according to claim 9, wherein the calibrating the motion control command of the robot according to the first position conversion parameter comprises: 根据第一位置转换参数对所述机器人的运动控制命令中的三维坐标进行校正;及correcting the three-dimensional coordinates in the motion control command of the robot according to the first position conversion parameter; and 根据第一位置转换参数对所述机器人的运动控制命令中的旋转角度进行校正。The rotation angle in the motion control command of the robot is corrected according to the first position conversion parameter. 11.根据权利要求9所述的机器人控制器,其特征在于,所述工件上预设的三个点不共线。11. The robot controller according to claim 9, wherein the three preset points on the workpiece are not collinear. 12.根据权利要求9所述的机器人控制器,其特征在于,所述根据所述第一位置数据和所述第二位置数据确定第一位置转换参数包括:12. The robot controller according to claim 9, wherein the determining the first position conversion parameter according to the first position data and the second position data comprises: 根据所述第一位置数据和第二位置数据计算转换矩阵。A transformation matrix is calculated from the first position data and the second position data. 13.根据权利要求12所述的机器人控制器,其特征在于,所述第一位置数据为所述工件变换位置后所述三个点的位置数据,所述第二位置数据为所述工件变换位置前所述三个点的位置数据,所述根据所述第一位置数据和第二位置数据计算转换矩阵包括:13 . The robot controller according to claim 12 , wherein the first position data is the position data of the three points after the position of the workpiece is changed, and the second position data is the workpiece change. 14 . The position data of the three points before the position, and the calculation of the transformation matrix according to the first position data and the second position data includes: 将所述工件变换位置前所述三个点中的第一点设置为与第一三维直角坐标系原点重合,将所述工件变换位置后所述第一点设置为与第二三维直角坐标系的原点重合,其中所述第一三维直角坐标系的坐标轴与所述三个点的位置关系与所述第二三维直角坐标系的坐标轴与所述三个点的相对位置关系一致;Set the first point of the three points before the workpiece transformation position to coincide with the origin of the first three-dimensional rectangular coordinate system, and set the first point after the workpiece transformation position to the second three-dimensional rectangular coordinate system. The origins of , where the coordinate axes of the first three-dimensional rectangular coordinate system and the positional relationship of the three points are consistent with the relative positional relationship between the coordinate axes of the second three-dimensional rectangular coordinate system and the three points; 通过以下公式计算转换矩阵:The transformation matrix is calculated by the following formula:
Figure FDA0003273200440000041
Figure FDA0003273200440000041
εX=a'-a;εY=b'-b;εz=c'-cε X = a'-a; ε Y = b'-b; ε z = c'-c 其中,xf1,yf1,zf1为所述工件变换位置前所述第一点在所述法兰坐标系的三个坐标轴上的坐标,x'f1,y'f1,z'f1为所述工件变换位置后所述第一点在所述法兰坐标系三个坐标轴上的坐标,a,b,c分别为所述工件变换位置前所述第一点在基础坐标系的姿态角度,a',b',c'分别为所述工件变换位置后所述第一点在所述基础坐标系的姿态角度,εX,εY,εZ分别为所述第一三维直角坐标系的三个坐标轴与对应的所述第二三维直角坐标系的三个坐标轴的夹角。Wherein, x f1 , y f1 , z f1 are the coordinates of the first point on the three coordinate axes of the flange coordinate system before the workpiece is transformed, and x' f1 , y' f1 , and z' f1 are The coordinates of the first point on the three coordinate axes of the flange coordinate system after the workpiece is changed, a, b, and c are the attitudes of the first point in the basic coordinate system before the workpiece is changed. Angle, a', b', c' are the attitude angles of the first point in the basic coordinate system after the workpiece is transformed, respectively, ε X , ε Y , ε Z are the first three-dimensional Cartesian coordinates, respectively The included angle between the three coordinate axes of the system and the corresponding three coordinate axes of the second three-dimensional rectangular coordinate system.
14.根据权利要求9所述的机器人控制器,其特征在于,所述工具为点接触式工具。14. The robot controller of claim 9, wherein the tool is a point-contact tool. 15.根据权利要求14所述的机器人控制器,其特征在于,所述工具为焊枪。15. The robot controller of claim 14, wherein the tool is a welding gun. 16.根据权利要求14所述的机器人控制器,其特征在于,所述工具与所述机器人的法兰刚性连接。16. The robot controller of claim 14, wherein the tool is rigidly connected to a flange of the robot. 17.一种机器人,其特征在于,所述机器人包括机器人主体和控制器,所述控制器用于:17. A robot, characterized in that the robot comprises a robot body and a controller, and the controller is used for: 接收用户输入的示教数据,以控制所述机器人使工具接触工件上预设的三个点;receiving teaching data input by the user to control the robot to make the tool contact three preset points on the workpiece; 根据所述示教数据获取所述三个点在基础坐标系的第三位置数据;Acquiring third position data of the three points in the basic coordinate system according to the teaching data; 利用已知的基础坐标系和法兰坐标系之间的第二位置转换参数将所述第三位置数据转换为第一位置数据;Converting the third position data to the first position data using the second position conversion parameters between the known base coordinate system and the flange coordinate system; 获取预存的所述三个点的第二位置数据;acquiring pre-stored second position data of the three points; 根据所述第一位置数据和所述第二位置数据确定第一位置转换参数;determining a first position conversion parameter according to the first position data and the second position data; 根据所述第一位置转换参数对所述机器人的运动控制命令进行校正,得到校正后的所述机器人的运动控制命令。The motion control command of the robot is corrected according to the first position conversion parameter to obtain the corrected motion control command of the robot. 18.根据权利要求17所述的机器人,其特征在于,所述控制器用于:18. The robot of claim 17, wherein the controller is configured to: 根据第一位置转换参数对所述机器人的运动控制命令中的三维坐标进行校正;及correcting the three-dimensional coordinates in the motion control command of the robot according to the first position conversion parameter; and 根据第一位置转换参数对所述机器人的运动控制命令中的旋转角度进行校正。The rotation angle in the motion control command of the robot is corrected according to the first position conversion parameter. 19.根据权利要求17所述的机器人,其特征在于,所述工件上预设的三个点不共线。19. The robot according to claim 17, wherein the three preset points on the workpiece are not collinear. 20.根据权利要求17所述的机器人,其特征在于,所述控制器用于:20. The robot of claim 17, wherein the controller is configured to: 根据所述第一位置数据和第二位置数据计算转换矩阵。A transformation matrix is calculated from the first position data and the second position data. 21.根据权利要求20所述的机器人,其特征在于,所述第一位置数据为所述工件变换位置后所述三个点的位置数据,所述第二位置数据为所述工件变换位置前所述三个点的位置数据,所述控制器用于:21. The robot according to claim 20, wherein the first position data is the position data of the three points after the position of the workpiece is changed, and the second position data is before the position of the workpiece is changed The position data of the three points, the controller is used to: 将所述工件变换位置前所述三个点中的第一点设置为与第一三维直角坐标系原点重合,将所述工件变换位置后所述第一点设置为与第二三维直角坐标系的原点重合,其中所述第一三维直角坐标系的坐标轴与所述三个点的位置关系与所述第二三维直角坐标系的坐标轴与所述三个点的相对位置关系一致;Set the first point of the three points before the workpiece transformation position to coincide with the origin of the first three-dimensional rectangular coordinate system, and set the first point after the workpiece transformation position to the second three-dimensional rectangular coordinate system. The origin of , where the coordinate axis of the first three-dimensional Cartesian coordinate system and the positional relationship of the three points are consistent with the relative positional relationship between the coordinate axis of the second three-dimensional Cartesian coordinate system and the three points; 通过以下公式计算转换矩阵:The transformation matrix is calculated by the following formula:
Figure FDA0003273200440000051
Figure FDA0003273200440000051
εX=a'-a;εY=b'-b;εz=c'-cε X = a'-a; ε Y = b'-b; ε z = c'-c 其中,xf1,yf1,zf1为所述工件变换位置前所述第一点在所述法兰坐标系的三个坐标轴上的坐标,x'f1,y'f1,z'f1为所述工件变换位置后所述第一点在所述法兰坐标系三个坐标轴上的坐标,a,b,c分别为所述工件变换位置前所述第一点在基础坐标系的姿态角度,a',b',c'分别为所述工件变换位置后所述第一点在所述基础坐标系的姿态角度,εX,εY,εZ分别为所述第一三维直角坐标系的三个坐标轴与对应的所述第二三维直角坐标系的三个坐标轴的夹角。Wherein, x f1 , y f1 , z f1 are the coordinates of the first point on the three coordinate axes of the flange coordinate system before the workpiece is transformed, and x' f1 , y' f1 , and z' f1 are The coordinates of the first point on the three coordinate axes of the flange coordinate system after the workpiece is changed, a, b, and c are the attitudes of the first point in the basic coordinate system before the workpiece is changed. Angle, a', b', c' are the attitude angles of the first point in the basic coordinate system after the workpiece is transformed, respectively, ε X , ε Y , ε Z are the first three-dimensional Cartesian coordinates, respectively The included angle between the three coordinate axes of the system and the corresponding three coordinate axes of the second three-dimensional rectangular coordinate system.
22.根据权利要求17所述的机器人,其特征在于,所述工具为点接触式工具。22. The robot of claim 17, wherein the tool is a point-contact tool. 23.根据权利要求22所述的机器人,其特征在于,所述工具为焊枪。23. The robot of claim 22, wherein the tool is a welding gun. 24.根据权利要求22所述的机器人,其特征在于,所述工具与所述机器人的法兰刚性连接。24. The robot of claim 22, wherein the tool is rigidly connected to a flange of the robot. 25.一种存储装置,其特征在于,所述存储装置存储有可执行程序,所述可执行程序被执行以实现权利要求1-8中任一项所述的方法。25. A storage device, wherein the storage device stores an executable program, and the executable program is executed to implement the method of any one of claims 1-8.
CN201780037097.5A 2017-05-26 2017-05-26 Method for correcting motion control command of robot and related equipment Active CN109311163B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/086112 WO2018214156A1 (en) 2017-05-26 2017-05-26 Method of correcting locomotion control command of robot, and related apparatus for same

Publications (2)

Publication Number Publication Date
CN109311163A CN109311163A (en) 2019-02-05
CN109311163B true CN109311163B (en) 2022-02-15

Family

ID=64396101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780037097.5A Active CN109311163B (en) 2017-05-26 2017-05-26 Method for correcting motion control command of robot and related equipment

Country Status (2)

Country Link
CN (1) CN109311163B (en)
WO (1) WO2018214156A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109514533B (en) * 2019-01-08 2023-03-28 崧智智能科技(深圳)有限公司 Industrial robot rapid teaching system and teaching method
CN115362049B (en) * 2020-04-02 2025-10-28 发那科株式会社 Device for correcting the teaching position of a robot, teaching device, robot system, teaching position correction method, and computer program
CN114290330B (en) * 2021-12-13 2023-09-05 库卡机器人制造(上海)有限公司 Calibration method and calibration device for robot, and readable storage medium
CN116834024B (en) * 2023-08-31 2024-01-26 北京集度科技有限公司 Calibration method, calibration device and medium of robot user coordinate system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE525399C2 (en) * 2002-10-30 2005-02-15 Mikael Fridenfalk Eliminating position errors in robotic wrists, e.g. for telerobotics applications, using inverse kinetics scheme based on robot motion limiter and tool centre point position compensator
JP2011235500A (en) * 2010-05-07 2011-11-24 Hirai Kogyo Kk Resin sheet mold and its manufacturing method
CN103322953A (en) * 2013-05-22 2013-09-25 北京配天大富精密机械有限公司 Method and device for calibration of workpiece coordinate system, and method and device for workpiece processing
CN105964453A (en) * 2016-07-14 2016-09-28 青岛金光鸿智能机械电子有限公司 Spraying system and method based on vision positioning
CN106182018A (en) * 2016-07-30 2016-12-07 福州大学 A kind of grinding and polishing industrial robot off-line programing method based on workpiece three-dimensional graph
CN106271081A (en) * 2016-09-30 2017-01-04 华南理工大学 Three coordinate rectangular robot line laser seam tracking system and trackings thereof

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100621100B1 (en) * 2000-02-11 2006-09-07 삼성전자주식회사 Welding robot teaching position correction method and welding robot system
JP5272617B2 (en) * 2008-09-26 2013-08-28 株式会社Ihi Robot apparatus and control method of robot apparatus
JP5319271B2 (en) * 2008-12-26 2013-10-16 川崎重工業株式会社 ROBOT TOOL POSITION DETECTING METHOD, ROBOT AND OBJECT RELATIVE POSITION DETECTING METHOD AND DEVICE
JP5577157B2 (en) * 2010-06-01 2014-08-20 株式会社ダイヘン Robot control system
JP5618770B2 (en) * 2010-11-09 2014-11-05 三菱電機株式会社 Robot calibration apparatus and calibration method
JP5789114B2 (en) * 2011-04-04 2015-10-07 オークマ株式会社 Correction value calculation method and program for machine tool
CN103777570B (en) * 2014-01-07 2017-03-01 浙江大学 Mismachining tolerance quick detection compensation method based on nurbs surface
CN104476549B (en) * 2014-11-20 2016-04-27 北京卫星环境工程研究所 The manipulator motion path compensation method that view-based access control model is measured
JP6126143B2 (en) * 2015-01-20 2017-05-10 ファナック株式会社 Numerical control device with drawing path correction function
CN104613899A (en) * 2015-02-09 2015-05-13 淮阴工学院 Full-automatic calibration method for structured light hand-eye three-dimensional measuring system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE525399C2 (en) * 2002-10-30 2005-02-15 Mikael Fridenfalk Eliminating position errors in robotic wrists, e.g. for telerobotics applications, using inverse kinetics scheme based on robot motion limiter and tool centre point position compensator
JP2011235500A (en) * 2010-05-07 2011-11-24 Hirai Kogyo Kk Resin sheet mold and its manufacturing method
CN103322953A (en) * 2013-05-22 2013-09-25 北京配天大富精密机械有限公司 Method and device for calibration of workpiece coordinate system, and method and device for workpiece processing
CN105964453A (en) * 2016-07-14 2016-09-28 青岛金光鸿智能机械电子有限公司 Spraying system and method based on vision positioning
CN106182018A (en) * 2016-07-30 2016-12-07 福州大学 A kind of grinding and polishing industrial robot off-line programing method based on workpiece three-dimensional graph
CN106271081A (en) * 2016-09-30 2017-01-04 华南理工大学 Three coordinate rectangular robot line laser seam tracking system and trackings thereof

Also Published As

Publication number Publication date
WO2018214156A1 (en) 2018-11-29
CN109311163A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US10695910B2 (en) Automatic calibration method for robot system
US10618164B2 (en) Robot system having learning control function and learning control method
US9221176B2 (en) Robot system and method for controlling the same
JP5670416B2 (en) Robot system display device
JP6223640B2 (en) Calibration apparatus and robot system using the same
US9138893B2 (en) Robot teaching system, robot teaching assistant device, robot teaching method, and computer-readable recording medium
CN102909728B (en) The vision correction methods of robot tooling center points
US8155789B2 (en) Device, method, program and recording medium for robot offline programming
JP4202365B2 (en) Force control device
CN109311163B (en) Method for correcting motion control command of robot and related equipment
CN111452047B (en) Method for correcting robot tool deviation, robot control device and system
JPWO2017064851A1 (en) Robot teaching method and robot arm control device
JP2015042437A (en) Robot system and robot system calibration method
KR102561103B1 (en) Robot calibration system and calibration method thereof
JP2017056546A (en) Measurement system used for calibrating mechanical parameters of robot
CN113263498B (en) Mechanical arm movement control method and device, terminal equipment and storage medium
EP2818283A1 (en) Method for robot calibration
CN109954955B (en) Robot system
EP1886771B1 (en) Rotation center point calculating method, rotation axis calculating method, program creating method, operation method, and robot apparatus
CN110154043B (en) Robot system for learning control based on machining result and control method thereof
CN114750160B (en) Robot control method, apparatus, computer device, and storage medium
CN115319754A (en) Robot and laser sensor hand-eye calibration method and device
JP5565503B2 (en) Motion trajectory generation device, motion trajectory generation method, robot control device, and robot control method
US12420424B2 (en) Coordinate system setting system and position/orientation measurement system
CN111683797B (en) Calibration method and calibration device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518063 23 Floor (Room 2303-2306) of Desai Science and Technology Building, Yuehai Street High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen AANDE Intelligent Technology Research Institute Co., Ltd.

Address before: 518104 Shajing Industrial Co., Ltd. No. 3 Industrial Zone, Hexiang Road, Shajing Street, Baoan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen AANDE Intelligent Technology Research Institute Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant