WO2018214156A1 - Method of correcting locomotion control command of robot, and related apparatus for same - Google Patents
Method of correcting locomotion control command of robot, and related apparatus for same Download PDFInfo
- Publication number
- WO2018214156A1 WO2018214156A1 PCT/CN2017/086112 CN2017086112W WO2018214156A1 WO 2018214156 A1 WO2018214156 A1 WO 2018214156A1 CN 2017086112 W CN2017086112 W CN 2017086112W WO 2018214156 A1 WO2018214156 A1 WO 2018214156A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- robot
- 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.)
- Ceased
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
Definitions
- the invention relates to the field of numerical control technology, and in particular to a method for correcting a motion control command of a robot and related equipment.
- the robot's motion control uses the teaching method, but the workpiece and tool coordinate system are not established, the robot is displaced relative to the workpiece (the robot or the workpiece position changes), and the original motion control command is still used; or the same motion
- the control command needs to be used by multiple robots.
- the original motion control command uses the teaching programming without establishing the workpiece coordinate system, if the robot still uses the original motion control command to control the robot motion, there will be a problem that the motion control is inaccurate.
- Robots usually use teaching methods to carry out operations such as handling and machining. Generally, users rarely use special tools for calibration during programming, but directly use the user's tools to perform workpiece machining operations. Therefore, there are very few workpiece coordinate systems in the program. When encountering robot handling, moving or moving workpieces, it is often necessary to re-teach all the points.
- the major manufacturers can establish the workpiece coordinate system in the software program, that is, before the teaching, the workpiece coordinate system needs to be calibrated, and if there is a change, only the workpiece coordinate system needs to be changed, and the original program can be changed. Use directly. But there is no way to deal with programs that have not previously calibrated the coordinate system.
- the current workpiece coordinate system function needs to be prepared in advance, which means that if the coordinate system is not established in the original program, the method cannot be used.
- the measurement of the workpiece coordinate system is dependent on the tool.
- the workpiece coordinate system must be calibrated only if the tool coordinate system and the tool coordinate system origin (Tool Center Point, TCP) are known.
- the general user rarely has a special calibration tool. If any other tool is used, the measurement of the tool is also prone to error, and the tool is repeatedly disassembled to reduce the efficiency.
- the technical problem to be solved by the present invention is to provide a method for robot teaching calibration, which can accurately control the robot motion according to the corrected motion control command after the workpiece changes position after the workpiece coordinate system is not calibrated in advance.
- the present invention provides a technical solution for providing a method for correcting a motion control command of a robot, the method comprising: acquiring first position data of three preset points on a workpiece; and acquiring pre-stored three The second position data of the points; determining the first position conversion parameter according to the first position data and the second position data; correcting the motion control command of the robot according to the first position conversion parameter, and obtaining the motion control command of the corrected robot.
- a robot controller including a memory and a processor, wherein the memory stores executable programs and data, and the processor calls the memory. Executing the program and the data to perform the steps of: acquiring first position data of three preset points on the workpiece; acquiring second position data of the pre-stored three points; determining the first according to the first position data and the second position data Position conversion parameter; correcting the motion control command of the robot according to the first position conversion parameter, and obtaining a motion control command of the corrected robot.
- another technical solution provided by the present invention is to provide a robot, the robot includes a robot body and a controller, and the controller is configured to: acquire first position data of three preset points on the workpiece; Obtaining second position data of the pre-stored three points; determining a first position conversion parameter according to the first position data and the second position data; correcting the motion control command of the robot according to the first position conversion parameter, and obtaining the corrected robot Motion control commands.
- another technical solution provided by the present invention is to provide a storage device that stores an executable program that is executed to implement the above-described method of correcting a motion control command of a robot.
- the present invention obtains first position data of three preset points on the workpiece; acquires second position data of the pre-stored three points; according to the first position data and Second The position data determines a first position conversion parameter; the motion control command of the robot is corrected according to the first position conversion parameter, and the corrected motion control command of the robot is obtained, and the workpiece can be changed after the workpiece is changed without pre-calibrating the workpiece coordinate system. Accurately control robot motion in accordance with the corrected motion control commands.
- FIG. 1 is a flow chart showing a method of correcting a motion control command of a robot according to a first embodiment of the present invention
- FIG. 2 is a flow chart showing a method of correcting a motion control command of a robot according to a second embodiment of the present invention
- FIG. 3 is a schematic diagram of a robot controller module according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram of a robot module according to an embodiment of the present invention.
- FIG. 5 is a block diagram of a memory device according to an embodiment of the present invention.
- FIG. 1 is a flow chart of a method for correcting a motion control command of a robot according to a first embodiment of the present invention.
- the method of correcting the motion control command of the robot may include the following steps:
- Step S11 Acquire first position data of three points preset on the workpiece.
- the preset three points may be any three points that are not collinearly set on the workpiece in advance.
- the first position data may be position data of the three points after the workpiece is transformed. Obtaining the first position data of the preset three points on the workpiece may obtain the teaching data input by the user to control the robot to make the tool contact the three points after the workpiece transformation position, and then obtain the first position according to the teaching data. data.
- the first position data of the three points preset on the workpiece may be obtained by other methods, such as measurement calibration, etc., which is not limited in this embodiment. For details, refer to the description below.
- Step S12 Acquire second location data of the pre-stored three points.
- the second position data may be position data of the three points before the workpiece transformation position. Acquiring the second position data of the pre-stored three points, for example, the robot pre-stores the second position data of the three points before the workpiece transformation position, and acquires the second position data from the memory of the robot.
- the second location data may be obtained and stored by teaching the three points before the workpiece transformation position, as described in the following description. In other embodiments, the second location data may be obtained by other means such as measurement calibration, and then the second location data is stored in the memory.
- Step S13 determining a first position conversion parameter according to the first position data and the second position data.
- determining the first location conversion parameter according to the first location data and the second location data may be: calculating a conversion matrix according to the first location data and the second location data, and in other embodiments, The first location data and the second location data calculate other location conversion parameters. This embodiment of the present invention does not limit this.
- Step S14 Correcting the motion control command of the robot according to the first position conversion parameter, and obtaining a motion control command of the corrected robot.
- the motion control command of the robot is corrected according to the first position conversion parameter
- the corrected motion control command of the robot may include: Correcting the three-dimensional coordinates in the motion control command; and correcting the rotation angle in the motion control command of the robot according to the first position conversion parameter, as described in the following description.
- FIG. 2 is a flow chart of a method for correcting a motion control command of a robot according to a second embodiment of the present invention.
- acquiring the first position data of the preset three points on the workpiece comprises: receiving the teaching data input by the user, so as to control the robot to make the tool contact the three preset points on the workpiece; acquiring according to the teaching data First location data.
- Correcting 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 controlling the motion control command of the robot according to the first position conversion parameter The rotation angle is corrected.
- the method of correcting the motion control command of the robot may include the following steps:
- Step S21 receiving the first teaching data input by the user to control the robot to make the tool contact the three preset points on the workpiece.
- the preset three points may be any three points that are not collinearly set on the workpiece in advance.
- the tool can be a tool that is installed on the robot.
- the tool can be rigidly connected to the flange of the robot.
- the tool can be a point contact tool.
- the tool can be a welding torch.
- the tool can be other tools.
- the connection to the robot can also be other ways.
- the first teaching data input by the user is received to control three points preset on the workpiece after the tool on which the robot drive is mounted contacts the workpiece changing position.
- Teaching the robot to the user means that when the user controls the robot to perform a specific motion, the robot records the teaching data corresponding to the specific motion and can perform the specific motion according to the teaching data in a subsequent process.
- Step S22 Acquire first location data according to the teaching data.
- the first position data is acquired according to the first teaching data, and the first position data may be position data of the three points after the workpiece is transformed.
- Obtaining the first location data according to the first teaching data may include: acquiring third location data of three points in a basic coordinate system according to the first teaching data; converting the third location data into a flange coordinate The first location data in the system.
- Converting the third position data into first position data in the flange coordinate system may include converting the third position data using a second position conversion parameter between the known base coordinate system and the flange coordinate system For the first location data.
- the first position data includes coordinates of each of the three points in the flange coordinate system after the workpiece changes position, taking the first point of the three points as an example, the first point is at the flange coordinate
- the coordinates of the three coordinate axes of the system are respectively x' fl , y ' fl , z' fl
- the first position data further includes the attitude angle a′ of the first coordinate point relative to the three coordinate axes after the workpiece changes position. , b', c'.
- the third position data acquired from the first teaching data includes coordinates of the base coordinate system of each of the three points after the workpiece changes position, taking the first point as an example, the first point is in the basic coordinate system
- the coordinates are respectively x', y', z'
- the fourth position data further includes the attitude angles a', b', c' of the base coordinate system relative to the three coordinate axes after the workpiece is changed position.
- the third position data is converted into the first position data using the second position conversion parameter.
- the first point is converted to the coordinates x', y', z' of the base coordinate system after the workpiece is changed position to the coordinate x' fl , y ' fl in the flange coordinate system ,z' fl .
- Step S23 Acquire second location data of the pre-stored three points.
- the second position data may be position data of the three points before the workpiece transformation position.
- Acquiring the second position data of the pre-stored three points for example, the robot pre-stores the second position data of the three points before the workpiece transformation position, and acquires the second position data from the memory of the robot.
- the second position data of the point may specifically include: receiving the second teaching data input by the user in advance to control the robot to make the tool contact the three points before the workpiece transformation position, and acquiring the second position data according to the second teaching data. And storing the second location data in the memory.
- the second position data includes coordinates of each of the three points in the flange coordinate system before the workpiece changes position, taking the first point as an example, the first point is in the three coordinate axes of the flange coordinate system
- the coordinates are x fl , y fl , z fl , respectively.
- the second position data further includes the attitude angles a, b, c of the first coordinate point relative to the three coordinate axes before the workpiece changes position.
- 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 changes position, taking the first point as an example, the first point is in the basic coordinate system
- the coordinates are x, y, z, respectively.
- the fourth position data also includes the attitude angles a, b, c of the first coordinate point relative to the three coordinate axes before the workpiece changes position.
- the fourth position data is converted to the second position data using a second positional shift parameter between the known base coordinate system and the flange coordinate system.
- a second positional shift parameter between the known base coordinate system and the flange coordinate system.
- the first point is converted to the coordinates x fl , y fl , z fl in the flange coordinate system before the workpiece changes position in the coordinates x, y, z of the base coordinate system. It is not difficult to understand that since the basic coordinate system and the flange coordinate system are known, the conversion relationship between the two, that is, the second position conversion parameter is known.
- Step S24 Determine a first location conversion parameter according to the first location data and the second location data.
- determining the first location conversion parameter according to the first location data and the second location data comprises: calculating a conversion matrix according to the first location data and the second location data.
- calculating the conversion matrix according to the first position data and the second position data comprises: setting a first point of the three points before the workpiece transformation position to coincide with a first three-dimensional Cartesian coordinate system origin, The first point after the workpiece transformation position is set to coincide with an origin of the second three-dimensional Cartesian coordinate system, wherein the first a positional relationship between a coordinate axis of the three-dimensional Cartesian coordinate system and the three points is consistent with a relative positional relationship between a coordinate axis of the second three-dimensional Cartesian coordinate system and the three points;
- x fl , y fl , z fl are the coordinates of the first point before the workpiece transformation position on the three coordinate axes of the flange coordinate system
- x' fl , y ' fl , z ' fl is the first position after the workpiece transformation position
- the coordinates of the points on the three coordinate axes of the flange coordinate system, a, b, and c are the attitude angles of the first point in the base coordinate system before the workpiece transformation position
- a', b', and c' are the workpiece transformation positions respectively.
- the first point is the attitude angle of the basic coordinate system
- ⁇ X , ⁇ Y , ⁇ Z are the angles between the three coordinate axes of the first three-dimensional Cartesian coordinate system and the three coordinate axes of the corresponding second three-dimensional Cartesian coordinate system, respectively.
- R 1 ( ⁇ X )R 2 ( ⁇ Y )R 3 ( ⁇ Z ) is a rotation matrix around the three coordinate axes x, y, and z of the first three-dimensional Cartesian coordinate system, respectively.
- Step S25 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.
- the motion control command may be the third teaching data input by the user received in advance.
- the third teaching data is corrected to generate fourth teaching data.
- the coordinates and the rotation angle of each point on the first motion trajectory recorded in the third teaching data are converted into new coordinates by the first conversion parameter to generate a second motion trajectory to generate corresponding fourth teaching data.
- the robot can move the tool according to the second motion trajectory recorded in the fourth teaching data to accurately process the workpiece after the position change, without re-entering the teaching data, according to the original teaching data and the first position conversion parameter. Precise control of the robot is achieved.
- the motion control command may be other commands for controlling the motion of the robot, which is not limited by the present invention.
- FIG. 3 is a schematic diagram of a robot controller module according to an embodiment of the present invention.
- the robot controller includes a memory 11 and a processor 12, in which the executable program and data are stored, and the processor 12 calls the executable program and data in the memory 11 to perform the following steps: acquiring the workpiece The first position data of the three points is set; the second position data of the pre-stored three points is obtained; the first position conversion parameter is determined according to the first position data and the second position data; and the movement of the robot is performed according to the first position conversion parameter The control command is corrected to obtain a motion control command of the corrected robot.
- the steps of the above-mentioned processor 12 calling the executable program and the data execution in the memory 11 are described in detail in the foregoing description, and are not described herein again.
- the data stored in the memory 11 may include: first location data, second location data, third location data, fourth location data, and first location rotation according to any one of the foregoing implementations.
- FIG. 4 is a schematic diagram of a robot module according to an embodiment of the present invention.
- the robot includes a robot body 21 and a controller 22, and the controller 22 is configured to: acquire first position data of three preset points on the workpiece; and acquire second position data of the pre-stored three points; The first position data and the second position data determine a first position conversion parameter; the motion control command of the robot is corrected according to the first position conversion parameter to obtain a motion control command of the corrected robot.
- the controller 22 is configured to: correct the three-dimensional coordinates in the motion control command of the robot according to the first position conversion parameter; and correct the rotation angle in the motion control command of the robot according to the first position conversion parameter.
- the controller 22 is configured to: receive teaching data input by the user to control the robot to make the tool contact the three points preset on the workpiece; and acquire the first position data according to the teaching data.
- the controller 22 is configured to: acquire third position data of the three points in the basic coordinate system according to the teaching data;
- the controller 22 is configured to convert the third position data into first position data in the flange coordinate system.
- the controller 22 is configured to convert the third position data into the first position data using a second position conversion parameter between the known base coordinate system and the flange coordinate system.
- the three points preset on the workpiece are not collinear.
- the controller is configured to: calculate a conversion matrix according to the first location data and the second location data.
- the first position data is position data of three points after the workpiece transformation position
- the second position data is position data of the first three points of the workpiece transformation position
- the controller 22 is used to:
- the first point of the first three points of the workpiece transformation position is set to coincide with the origin of the first three-dimensional Cartesian coordinate system, and the first point after the workpiece transformation position is set to coincide with the origin of the second three-dimensional Cartesian coordinate system, wherein the first three-dimensional The positional relationship between the coordinate axes of the Cartesian coordinate system and the three points is consistent with the relative positional relationship between the coordinate axes of the second three-dimensional Cartesian coordinate system and the three points;
- x fl , y fl , z fl are the coordinates of the first point before the workpiece transformation position on the three coordinate axes of the flange coordinate system
- x' fl , y ' fl , z ' fl is the first position after the workpiece transformation position
- the coordinates of the points on the three coordinate axes of the flange coordinate system, a, b, and c are the attitude angles of the first point in the base coordinate system before the workpiece transformation position
- a', b', and c' are the workpiece transformation positions respectively.
- the first point is the attitude angle of the basic coordinate system
- ⁇ X , ⁇ Y , ⁇ Z are the angles between the three coordinate axes of the first three-dimensional Cartesian coordinate system and the three coordinate axes of the corresponding second three-dimensional Cartesian coordinate system, respectively.
- the tool is a point contact tool.
- the tool is a welding torch.
- the tool is rigidly connected to the flange of the robot.
- FIG. 5 is a schematic diagram of a module of a storage device according to an embodiment of the present invention.
- the storage device 31 stores an executable program that is executed to implement the method of correcting the motion control command of the robot described in any of the above embodiments.
- the storage device 31 can be a USB flash drive, an optical disk, a hard disk, a mobile hard disk, a server, etc.
- the storage device 31 can also be the memory 11 in the above embodiment.
- the present invention obtains first position data of three points preset on a workpiece; acquires second position data of three pre-stored points; and determines first according to the first position data and the second position data Position conversion parameter; correcting the motion control command of the robot according to the first position conversion parameter, and obtaining the motion control command of the corrected robot, which can follow the corrected motion after the workpiece changes position without pre-calibrating the workpiece coordinate system Control commands accurately control robot motion.
Landscapes
- Engineering & Computer Science (AREA)
- Robotics (AREA)
- Mechanical Engineering (AREA)
- Manipulator (AREA)
- Numerical Control (AREA)
Abstract
Description
本发明涉及数控技术领域,特别是涉及一种校正机器人的运动控制命令的方法及其相关设备。The invention relates to the field of numerical control technology, and in particular to a method for correcting a motion control command of a robot and related equipment.
当机器人的运动控制中采用的示教方式,但未建立工件和工具坐标系,机器人相对工件出现了移位(机器人或者工件位置发生改变),仍然要使用原运动控制命令时;或同一个运动控制命令需要被多台机器人使用,而原运动控制命令使用的示教编程而没有建立工件坐标系时,机器人若仍然采用原来的运动控制命令控制机器人运动则会存在运动控制不准确的问题。When the robot's motion control uses the teaching method, but the workpiece and tool coordinate system are not established, the robot is displaced relative to the workpiece (the robot or the workpiece position changes), and the original motion control command is still used; or the same motion The control command needs to be used by multiple robots. When the original motion control command uses the teaching programming without establishing the workpiece coordinate system, if the robot still uses the original motion control command to control the robot motion, there will be a problem that the motion control is inaccurate.
机器人通常使用示教的方式进行搬运、加工等操作,一般用户在编程时很少使用专用工具进行标定,而是直接使用用户的工具进行工件的加工操作。因此程序中很少有工件坐标系,遇到机器人搬运、移动或者工件移动等情况时,常常需要重新对所有的点位进行示教。Robots usually use teaching methods to carry out operations such as handling and machining. Generally, users rarely use special tools for calibration during programming, but directly use the user's tools to perform workpiece machining operations. Therefore, there are very few workpiece coordinate systems in the program. When encountering robot handling, moving or moving workpieces, it is often necessary to re-teach all the points.
为了解决该问题,各大厂家在软件程序中可以建立工件坐标系,即在示教前,需要标定工件坐标系,之后如果出现变动,只需要改变工件坐标系,就能够在不改变原程序时直接使用。但是对于之前没有标定坐标系的程序却没有处理的方式。In order to solve this problem, the major manufacturers can establish the workpiece coordinate system in the software program, that is, before the teaching, the workpiece coordinate system needs to be calibrated, and if there is a change, only the workpiece coordinate system needs to be changed, and the original program can be changed. Use directly. But there is no way to deal with programs that have not previously calibrated the coordinate system.
现阶段的工件坐标系功能需要提前准备,也就是说如果原程序中没有建立坐标系时则不能用该方法。The current workpiece coordinate system function needs to be prepared in advance, which means that if the coordinate system is not established in the original program, the method cannot be used.
此外,工件坐标系的测量都是依赖于工具。必须在已知工具坐标系和工具坐标系原点(Tool Center Point,TCP)的情况下,才能够标定工件坐标系。一般用户很少有专用标定工具,如果使用其他任意工具,工具的测量也易产生误差,再者工具的反复拆装降低效率。In addition, the measurement of the workpiece coordinate system is dependent on the tool. The workpiece coordinate system must be calibrated only if the tool coordinate system and the tool coordinate system origin (Tool Center Point, TCP) are known. The general user rarely has a special calibration tool. If any other tool is used, the measurement of the tool is also prone to error, and the tool is repeatedly disassembled to reduce the efficiency.
因此,需要提供一种校正机器人的运动控制命令的方法及其相关设备,以解决上述技术问题。 Therefore, it is desirable to provide a method of correcting a motion control command of a robot and related equipment to solve the above technical problems.
【发明内容】[Summary of the Invention]
本发明主要解决的技术问题是提供一种机器人示教标定的方法,能够在预先未标定工件坐标系的情况下在工件改变位置后按照校正后的运动控制命令准确控制机器人运动。The technical problem to be solved by the present invention is to provide a method for robot teaching calibration, which can accurately control the robot motion according to the corrected motion control command after the workpiece changes position after the workpiece coordinate system is not calibrated in advance.
为解决上述技术问题,本发明提供的一种技术方案是:提供一种校正机器人的运动控制命令的方法,方法包括:获取工件上预设的三个点的第一位置数据;获取预存的三个点的第二位置数据;根据第一位置数据和第二位置数据确定第一位置转换参数;根据第一位置转换参数对机器人的运动控制命令进行校正,得到校正后的机器人的运动控制命令。In order to solve the above technical problem, the present invention provides a technical solution for providing a method for correcting a motion control command of a robot, the method comprising: acquiring first position data of three preset points on a workpiece; and acquiring pre-stored three The second position data of the points; determining the first position conversion parameter according to the first position data and the second position data; correcting the motion control command of the robot according to the first position conversion parameter, and obtaining the motion control command of the corrected robot.
为解决上述技术问题,本发明提供的另一种技术方案是:提供一种机器人控制器,该机器人控制器包括存储器和处理器,存储器中存储有可执行程序和数据,处理器调用存储器中的可执行程序和数据以执行以下步骤:获取工件上预设的三个点的第一位置数据;获取预存的三个点的第二位置数据;根据第一位置数据和第二位置数据确定第一位置转换参数;根据第一位置转换参数对机器人的运动控制命令进行校正,得到校正后的机器人的运动控制命令。In order to solve the above technical problem, another technical solution provided by the present invention is to provide a robot controller including a memory and a processor, wherein the memory stores executable programs and data, and the processor calls the memory. Executing the program and the data to perform the steps of: acquiring first position data of three preset points on the workpiece; acquiring second position data of the pre-stored three points; determining the first according to the first position data and the second position data Position conversion parameter; correcting the motion control command of the robot according to the first position conversion parameter, and obtaining a motion control command of the corrected robot.
为解决上述技术问题,本发明提供的又一种技术方案是:提供一种机器人,该机器人包括机器人主体和控制器,控制器用于:获取工件上预设的三个点的第一位置数据;获取预存的三个点的第二位置数据;根据第一位置数据和第二位置数据确定第一位置转换参数;根据第一位置转换参数对机器人的运动控制命令进行校正,得到校正后的机器人的运动控制命令。In order to solve the above technical problem, another technical solution provided by the present invention is to provide a robot, the robot includes a robot body and a controller, and the controller is configured to: acquire first position data of three preset points on the workpiece; Obtaining second position data of the pre-stored three points; determining a first position conversion parameter according to the first position data and the second position data; correcting the motion control command of the robot according to the first position conversion parameter, and obtaining the corrected robot Motion control commands.
为解决上述技术问题,本发明提供的又一种技术方案是:提供一种存储装置,该存储装置存储有可执行程序,可执行程序被执行以实现上述的校正机器人的运动控制命令的方法。In order to solve the above technical problem, another technical solution provided by the present invention is to provide a storage device that stores an executable program that is executed to implement the above-described method of correcting a motion control command of a robot.
本发明的有益效果是:区别于现有技术的情况本发明通过获取工件上预设的三个点的第一位置数据;获取预存的三个点的第二位置数据;根据第一位置数据和第二 位置数据确定第一位置转换参数;根据第一位置转换参数对机器人的运动控制命令进行校正,得到校正后的机器人的运动控制命令,能够在预先未标定工件坐标系的情况下在工件改变位置后按照校正后的运动控制命令准确控制机器人运动。The beneficial effects of the present invention are: different from the prior art, the present invention obtains first position data of three preset points on the workpiece; acquires second position data of the pre-stored three points; according to the first position data and Second The position data determines a first position conversion parameter; the motion control command of the robot is corrected according to the first position conversion parameter, and the corrected motion control command of the robot is obtained, and the workpiece can be changed after the workpiece is changed without pre-calibrating the workpiece coordinate system. Accurately control robot motion in accordance with the corrected motion control commands.
图1是本发明第一实施例校正机器人的运动控制命令的方法流程图;1 is a flow chart showing a method of correcting a motion control command of a robot according to a first embodiment of the present invention;
图2是本发明第二实施例校正机器人的运动控制命令的方法流程图;2 is a flow chart showing a method of correcting a motion control command of a robot according to a second embodiment of the present invention;
图3是本发明实施例的机器人控制器模块示意图;3 is a schematic diagram of a robot controller module according to an embodiment of the present invention;
图4是本发明实施例的机器人模块示意图;4 is a schematic diagram of a robot module according to an embodiment of the present invention;
图5是本发明实施例的存储装置的模块示意图。FIG. 5 is a block diagram of a memory device according to an embodiment of the present invention.
下面结合附图和实施例对本发明进行详细的说明。The invention will now be described in detail in conjunction with the drawings and embodiments.
请参阅图1,图1是本发明第一实施例校正机器人的运动控制命令的方法流程图。在本实施例中,校正机器人的运动控制命令的方法可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a flow chart of a method for correcting a motion control command of a robot according to a first embodiment of the present invention. In this embodiment, the method of correcting the motion control command of the robot may include the following steps:
步骤S11:获取工件上预设的三个点的第一位置数据。Step S11: Acquire first position data of three points preset on the workpiece.
在本实施例中,预设的三个点可以为预先在工件上设定的不共线的任意三个点。第一位置数据可以为工件变换位置后所述三个点的位置数据。获取工件上预设的三个点的第一位置数据可以通过获取用户输入的示教数据,以控制机器人使工具接触工件变换位置后的所述三个点,然后根据示教数据获取第一位置数据。在其他实施例中,获取工件上预设的三个点的第一位置数据可以通过其他方式,例如测量标定等,本实施例对此不做限定,具体请参见下文的描述。In this embodiment, the preset three points may be any three points that are not collinearly set on the workpiece in advance. The first position data may be position data of the three points after the workpiece is transformed. Obtaining the first position data of the preset three points on the workpiece may obtain the teaching data input by the user to control the robot to make the tool contact the three points after the workpiece transformation position, and then obtain the first position according to the teaching data. data. In other embodiments, the first position data of the three points preset on the workpiece may be obtained by other methods, such as measurement calibration, etc., which is not limited in this embodiment. For details, refer to the description below.
步骤S12:获取预存的所述三个点的第二位置数据。Step S12: Acquire second location data of the pre-stored three points.
在本实施例中,第二位置数据可以为工件变换位置前所述三个点的位置数据。获取预存的所述三个点的第二位置数据,例如机器人预先存储有所述工件变换位置前所述三个点的第二位置数据,从机器人的存储器中获取第二位置数据。在本实施例中, 可以通过对所述工件变换位置前所述三个点进行示教的方式获取第二位置数据并存储,具体请参见下文的描述。在其他实施例中,可以通过测量标定等其他的方式获取第二位置数据,然后将第二位置数据存储在存储器。In this embodiment, the second position data may be position data of the three points before the workpiece transformation position. Acquiring the second position data of the pre-stored three points, for example, the robot pre-stores the second position data of the three points before the workpiece transformation position, and acquires the second position data from the memory of the robot. In this embodiment, The second location data may be obtained and stored by teaching the three points before the workpiece transformation position, as described in the following description. In other embodiments, the second location data may be obtained by other means such as measurement calibration, and then the second location data is stored in the memory.
步骤S13:根据第一位置数据和第二位置数据确定第一位置转换参数。Step S13: determining a first position conversion parameter according to the first position data and the second position data.
在本实施例中,根据第一位置数据和第二位置数据确定第一位置转换参数可以为根据所述第一位置数据和第二位置数据计算转换矩阵,在其他实施例中,还可以为根据所述第一位置数据和第二位置数据计算其他的位置转换参数。本发明实施例对此不做限定。In this embodiment, determining the first location conversion parameter according to the first location data and the second location data may be: calculating a conversion matrix according to the first location data and the second location data, and in other embodiments, The first location data and the second location data calculate other location conversion parameters. This embodiment of the present invention does not limit this.
步骤S14:根据第一位置转换参数对机器人的运动控制命令进行校正,得到校正后的机器人的运动控制命令。Step S14: Correcting the motion control command of the robot according to the first position conversion parameter, and obtaining a motion control command of the corrected robot.
在本实施例中,根据所述第一位置转换参数对所述机器人的运动控制命令进行校正,得到校正后的所述机器人的运动控制命令可以包括:根据第一位置转换参数对所述机器人的运动控制命令中的三维坐标进行校正;及根据第一位置转换参数对所述机器人的运动控制命令中的旋转角度进行校正,具体请参见下文的描述。In this embodiment, the motion control command of the robot is corrected according to the first position conversion parameter, and the corrected motion control command of the robot may include: Correcting the three-dimensional coordinates in the motion control command; and correcting the rotation angle in the motion control command of the robot according to the first position conversion parameter, as described in the following description.
请参阅图2,图2是本发明第二实施例校正机器人的运动控制命令的方法流程图。在本实施例中,获取工件上预设的三个点的第一位置数据包括:接收用户输入的示教数据,以控制机器人使工具接触工件上预设的三个点;根据示教数据获取第一位置数据。根据所述第一位置转换参数对机器人的运动控制命令进行校正包括:根据第一位置转换参数对机器人的运动控制命令中的三维坐标进行校正及根据第一位置转换参数对机器人的运动控制命令中的旋转角度进行校正。Referring to FIG. 2, FIG. 2 is a flow chart of a method for correcting a motion control command of a robot according to a second embodiment of the present invention. In this embodiment, acquiring the first position data of the preset three points on the workpiece comprises: receiving the teaching data input by the user, so as to control the robot to make the tool contact the three preset points on the workpiece; acquiring according to the teaching data First location data. Correcting 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 controlling the motion control command of the robot according to the first position conversion parameter The rotation angle is corrected.
在本实施例中,校正机器人的运动控制命令的方法可以包括以下步骤:In this embodiment, the method of correcting the motion control command of the robot may include the following steps:
步骤S21:接收用户输入的第一示教数据,以控制机器人使工具接触工件上预设的三个点。Step S21: receiving the first teaching data input by the user to control the robot to make the tool contact the three preset points on the workpiece.
在本实施例中,预设的三个点可以为预先在工件上设定的不共线的任意三个点。工具可以为安装在机器人的工具。工具可以为与机器人的法兰刚性连接。工具可以为点接触式工具。例如,工具可以为焊枪。在其他实施例中,工具可以为其他工具,其 与机器人的连接方式也可以为其他方式。优选地,接收用户输入的第一示教数据,以控制机器人传动安装于其上的工具接触工件变换位置后所述工件上预设的三个点。用户对机器人示教是指用户控制机器人执行特定的运动时,机器人记录与该特定的运动对应的示教数据并在后续过程中可以按照该示教数据自行执行所述特定的运动。In this embodiment, the preset three points may be any three points that are not collinearly set on the workpiece in advance. The tool can be a tool that is installed on the robot. The tool can be rigidly connected to the flange of the robot. The tool can be a point contact tool. For example, the tool can be a welding torch. In other embodiments, the tool can be other tools, The connection to the robot can also be other ways. Preferably, the first teaching data input by the user is received to control three points preset on the workpiece after the tool on which the robot drive is mounted contacts the workpiece changing position. Teaching the robot to the user means that when the user controls the robot to perform a specific motion, the robot records the teaching data corresponding to the specific motion and can perform the specific motion according to the teaching data in a subsequent process.
步骤S22:根据示教数据获取第一位置数据。Step S22: Acquire first location data according to the teaching data.
在本实施例中,根据所述第一示教数据获取第一位置数据,第一位置数据可以为工件变换位置后所述三个点的位置数据。根据第一示教数据获取所述第一位置数据可以包括:根据所述第一示教数据获取三个点在基础坐标系的第三位置数据;将所述第三位置数据转换成法兰坐标系中的第一位置数据。将所述第三位置数据转换成法兰坐标系中的第一位置数据可以包括:利用已知的基础坐标系和法兰坐标系之间的第二位置转换参数将所述第三位置数据转换为所述第一位置数据。In this embodiment, the first position data is acquired according to the first teaching data, and the first position data may be position data of the three points after the workpiece is transformed. Obtaining the first location data according to the first teaching data may include: acquiring third location data of three points in a basic coordinate system according to the first teaching data; converting the third location data into a flange coordinate The first location data in the system. Converting the third position data into first position data in the flange coordinate system may include converting the third position data using a second position conversion parameter between the known base coordinate system and the flange coordinate system For the first location data.
优选地,第一位置数据包括三个点中每个点在工件改变位置后在法兰坐标系的坐标,以所述三个点中的第一点为例,该第一点在法兰坐标系的三个坐标轴的坐标分别为x′fl,y′fl,z′fl,第一位置数据还包括第一点在工件改变位置后在基础坐标系相对三个坐标轴的姿态角度a′,b′,c′。Preferably, the first position data includes coordinates of each of the three points in the flange coordinate system after the workpiece changes position, taking the first point of the three points as an example, the first point is at the flange coordinate The coordinates of the three coordinate axes of the system are respectively x' fl , y ' fl , z' fl , and the first position data further includes the attitude angle a′ of the first coordinate point relative to the three coordinate axes after the workpiece changes position. , b', c'.
优选地,从第一示教数据获取的第三位置数据包括三个点中每个点在工件改变位置后在基础坐标系的坐标,以第一点为例,该第一点在基础坐标系的坐标分别为x′,y′,z′,第四位置数据还包括第一点在工件改变位置后在基础坐标系相对三个坐标轴的姿态角度a′,b′,c′。Preferably, the third position data acquired from the first teaching data includes coordinates of the base coordinate system of each of the three points after the workpiece changes position, taking the first point as an example, the first point is in the basic coordinate system The coordinates are respectively x', y', z', and the fourth position data further includes the attitude angles a', b', c' of the base coordinate system relative to the three coordinate axes after the workpiece is changed position.
利用第二位置转换参数将第三位置数据转换为第一位置数据。例如,利用已知的转换关系f1,将第一点在工件改变位置后在基础坐标系的坐标x′,y′,z′转换为在法兰坐标系的坐标x′fl,y′fl,z′fl。The third position data is converted into the first position data using the second position conversion parameter. For example, using the known transformation relationship f 1 , the first point is converted to the coordinates x', y', z' of the base coordinate system after the workpiece is changed position to the coordinate x' fl , y ' fl in the flange coordinate system ,z' fl .
步骤S23:获取预存的所述三个点的第二位置数据。Step S23: Acquire second location data of the pre-stored three points.
在本实施例中,第二位置数据可以为工件变换位置前所述三个点的位置数据。获取预存的所述三个点的第二位置数据,例如机器人预先存储有所述工件变换位置前所述三个点的第二位置数据,从机器人的存储器中获取第二位置数据。预存所述三个 点的第二位置数据具体可以包括:预先通过接收用户输入的第二示教数据,以控制机器人使工具接触工件变换位置前的所述三个点,根据第二示教数据获取第二位置数据,再将第二位置数据存储在存储器。根据第二示教数据获取第二位置数据可以包括:根据所述第二示教数据获取所述三个点在基础坐标系的第四位置数据;将所述第四位置数据转换成法兰坐标系中的第二位置数据。将所述第四位置数据转换成法兰坐标系中的第二位置数据可以包括:利用已知的基础坐标系和法兰坐标系之间的第二位置转换参数将第四位置数据转换为所述第二位置数据。In this embodiment, the second position data may be position data of the three points before the workpiece transformation position. Acquiring the second position data of the pre-stored three points, for example, the robot pre-stores the second position data of the three points before the workpiece transformation position, and acquires the second position data from the memory of the robot. Pre-save the three The second position data of the point may specifically include: receiving the second teaching data input by the user in advance to control the robot to make the tool contact the three points before the workpiece transformation position, and acquiring the second position data according to the second teaching data. And storing the second location data in the memory. Obtaining the second location data according to the second teaching data may include: acquiring fourth location data of the three points in the basic coordinate system according to the second teaching data; converting the fourth location data into a flange coordinate The second location data in the system. Converting the fourth position data into the second position data in the flange coordinate system may include converting the fourth position data into a position by using a second position conversion parameter between the known base coordinate system and the flange coordinate system The second location data is described.
优选地,第二位置数据包括三个点中每个点在工件改变位置前在法兰坐标系的坐标,以第一点为例,该第一点在法兰坐标系的三个坐标轴的坐标分别为xfl,yfl,zfl,第二位置数据还包括第一点在工件改变位置前在基础坐标系相对三个坐标轴的姿态角度a,b,c。Preferably, the second position data includes coordinates of each of the three points in the flange coordinate system before the workpiece changes position, taking the first point as an example, the first point is in the three coordinate axes of the flange coordinate system The coordinates are x fl , y fl , z fl , respectively. The second position data further includes the attitude angles a, b, c of the first coordinate point relative to the three coordinate axes before the workpiece changes position.
优选地,从第二示教数据获取的第四位置数据包括三个点中每个点在工件改变位置前在基础坐标系的坐标,以第一点为例,该第一点在基础坐标系的坐标分别为x,y,z,第四位置数据还包括第一点在工件改变位置前在基础坐标系相对三个坐标轴的姿态角度a,b,c。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 changes position, taking the first point as an example, the first point is in the basic coordinate system The coordinates are x, y, z, respectively. The fourth position data also includes the attitude angles a, b, c of the first coordinate point relative to the three coordinate axes before the workpiece changes position.
优选地,利用已知的基础坐标系和法兰坐标系之间的第二位置转换参数将第四位置数据转换为第二位置数据。例如,利用已知的转换关系f1,将第一点在工件改变位置前在基础坐标系的坐标x,y,z,转换为在法兰坐标系的坐标xfl,yfl,zfl。不难理解由于基础坐标系和法兰坐标系是已知的,其二者的转换关系即第二位置转换参数是已知的。Preferably, the fourth position data is converted to the second position data using a second positional shift parameter between the known base coordinate system and the flange coordinate system. For example, using the known transformation relationship f 1 , the first point is converted to the coordinates x fl , y fl , z fl in the flange coordinate system before the workpiece changes position in the coordinates x, y, z of the base coordinate system. It is not difficult to understand that since the basic coordinate system and the flange coordinate system are known, the conversion relationship between the two, that is, the second position conversion parameter is known.
步骤S24:根据所述第一位置数据和所述第二位置数据确定第一位置转换参数。Step S24: Determine a first location conversion parameter according to the first location data and the second location data.
在本实施例中,根据所述第一位置数据和所述第二位置数据确定第一位置转换参数包括:根据第一位置数据和第二位置数据计算转换矩阵。In this embodiment, determining the first location conversion parameter according to the first location data and the second location data comprises: calculating a conversion matrix according to the first location data and the second location data.
优选地,根据第一位置数据和第二位置数据计算转换矩阵包括:将所述工件变换位置前所述三个点中的第一点设置为与第一三维直角坐标系原点重合,将所述工件变换位置后所述第一点设置为与所述第二三维直角坐标系的原点重合,其中所述第一 三维直角坐标系的坐标轴与所述三个点的位置关系与所述第二三维直角坐标系的坐标轴与所述三个点的相对位置关系一致;Preferably, calculating the conversion matrix according to the first position data and the second position data comprises: setting a first point of the three points before the workpiece transformation position to coincide with a first three-dimensional Cartesian coordinate system origin, The first point after the workpiece transformation position is set to coincide with an origin of the second three-dimensional Cartesian coordinate system, wherein the first a positional relationship between a coordinate axis of the three-dimensional Cartesian coordinate system and the three points is consistent with a relative positional relationship between a coordinate axis of the second three-dimensional Cartesian coordinate system and the three points;
通过以下公式计算转换矩阵:Calculate the transformation matrix by the following formula:
εX=a′-a;εY=b′-b;εz=c′-cε X = a'-a; ε Y = b'-b; ε z = c'-c
其中,xfl,yfl,zfl为工件变换位置前第一点在法兰坐标系的三个坐标轴上的坐标,x′fl,y′fl,z′fl为工件变换位置后第一点在法兰坐标系三个坐标轴上的坐标,a,b,c分别为工件变换位置前第一点在基础坐标系的姿态角度,a′,b′,c′分别为工件变换位置后第一点在基础坐标系的姿态角度,εX,εY,εZ分别为第一三维直角坐标系的三个坐标轴与对应的第二三维直角坐标系的三个坐标轴的夹角。Where x fl , y fl , z fl are the coordinates of the first point before the workpiece transformation position on the three coordinate axes of the flange coordinate system, and x' fl , y ' fl , z ' fl is the first position after the workpiece transformation position The coordinates of the points on the three coordinate axes of the flange coordinate system, a, b, and c are the attitude angles of the first point in the base coordinate system before the workpiece transformation position, and a', b', and c' are the workpiece transformation positions respectively. The first point is the attitude angle of the basic coordinate system, ε X , ε Y , ε Z are the angles between the three coordinate axes of the first three-dimensional Cartesian coordinate system and the three coordinate axes of the corresponding second three-dimensional Cartesian coordinate system, respectively.
转换矩阵的推导过程如下:The derivation process of the transformation matrix is as follows:
第一三维直角坐标系和第二三维直角坐标系之间的转换矩阵的计算采用三个旋转矩阵加上平移的方式可得:The calculation of the transformation matrix between the first three-dimensional Cartesian coordinate system and the second three-dimensional Cartesian coordinate system is obtained by means of three rotation matrices plus translation:
其中R1(εX)R2(εY)R3(εZ)分别为绕着第一三维直角坐标系的x、y、z三个坐标轴的旋转矩阵。Where R 1 (ε X )R 2 (ε Y )R 3 (ε Z ) is a rotation matrix around the three coordinate axes x, y, and z of the first three-dimensional Cartesian coordinate system, respectively.
从而可以得到转换矩阵为:Thus the conversion matrix can be obtained as:
步骤S25:根据第一位置转换参数对机器人的运动控制命令中的三维坐标进行校正及根据第一位置转换参数对机器人的运动控制命令中的旋转角度进行校正。Step S25: 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.
在本实施例中,运动控制命令可以为预先接收的用户输入的第三示教数据。对第三示教数据进行校正以生成第四示教数据。具体而言,将第三示教数据中记录的第一运动轨迹上各个点的坐标及旋转角度通过第一转换参数转换为新的坐标以生成第二运动轨迹从而生成对应的第四示教数据,即通过将第一轨迹上的个点均通过转换矩阵Tm转换为一一对应新的坐标,新的坐标形成第二运动轨迹,然后根据第二运动轨迹生成对应的第四示教数据,然后机器人可以传动工具按照第四示教数据中记录的第二运动轨迹运动以对改变位置后的工件进行准确处理,而不需要重新输入示教数据,根据原示教数据和第一位置转换参数即可实现对机器人的精确控制。在其他实施例中,运动控制命令可以为其他用于控制机器人运动的命令,本发明对此不做限定。In this embodiment, the motion control command may be the third teaching data input by the user received in advance. The third teaching data is corrected to generate fourth teaching data. Specifically, the coordinates and the rotation angle of each point on the first motion trajectory recorded in the third teaching data are converted into new coordinates by the first conversion parameter to generate a second motion trajectory to generate corresponding fourth teaching data. , that is, by converting the points on the first track through the conversion matrix T m into one-to-one corresponding new coordinates, the new coordinates form a second motion track, and then generating corresponding fourth teaching data according to the second motion track, Then, the robot can move the tool according to the second motion trajectory recorded in the fourth teaching data to accurately process the workpiece after the position change, without re-entering the teaching data, according to the original teaching data and the first position conversion parameter. Precise control of the robot is achieved. In other embodiments, the motion control command may be other commands for controlling the motion of the robot, which is not limited by the present invention.
请参阅图3,图3是本发明实施例的机器人控制器模块示意图。在本实施例中,机器人控制器包括存储器11和处理器12,存储器11中存储有可执行程序和数据,处理器12调用存储器11中的可执行程序和数据以执行以下步骤:获取工件上预设的三个点的第一位置数据;获取预存的三个点的第二位置数据;根据第一位置数据和第二位置数据确定第一位置转换参数;根据第一位置转换参数对机器人的运动控制命令进行校正,得到校正后的机器人的运动控制命令。Please refer to FIG. 3. FIG. 3 is a schematic diagram of a robot controller module according to an embodiment of the present invention. In the present embodiment, the robot controller includes a
上述处理器12调用存储器11中的可执行程序和数据执行的步骤具体说明请参见前文的描述,此处不再赘述。其中,存储器11存储的数据可包括:上述任意一实施所述的第一位置数据、第二位置数据、第三位置数据、第四位置数据、第一位置转
换参数、第二位置转换参数、第一示教数据、第二示教数据、第三示教数据、第四示教数据以及其他上述实施例中提到的数据。The steps of the above-mentioned
请参阅图4,图4是本发明实施例的机器人模块示意图。在本实施例中,机器人包括机器人主体21和控制器22,控制器22用于:获取工件上预设的三个点的第一位置数据;获取预存的三个点的第二位置数据;根据第一位置数据和第二位置数据确定第一位置转换参数;根据第一位置转换参数对机器人的运动控制命令进行校正,得到校正后的机器人的运动控制命令。Please refer to FIG. 4. FIG. 4 is a schematic diagram of a robot module according to an embodiment of the present invention. In this embodiment, the robot includes a
优选地,控制器22用于:根据第一位置转换参数对机器人的运动控制命令中的三维坐标进行校正;及根据第一位置转换参数对机器人的运动控制命令中的旋转角度进行校正。Preferably, the controller 22 is configured to: correct the three-dimensional coordinates in the motion control command of the robot according to the first position conversion parameter; and correct the rotation angle in the motion control command of the robot according to the first position conversion parameter.
优选地,控制器22用于:接收用户输入的示教数据,以控制机器人使工具接触工件上预设的三个点;根据示教数据获取第一位置数据。Preferably, the controller 22 is configured to: receive teaching data input by the user to control the robot to make the tool contact the three points preset on the workpiece; and acquire the first position data according to the teaching data.
优选地,控制器22用于:根据示教数据获取三个点在基础坐标系的第三位置数据;Preferably, the controller 22 is configured to: acquire third position data of the three points in the basic coordinate system according to the teaching data;
优选地,控制器22用于:将第三位置数据转换成法兰坐标系中的第一位置数据。Preferably, the controller 22 is configured to convert the third position data into first position data in the flange coordinate system.
优选地,控制器22用于:利用已知的基础坐标系和法兰坐标系之间的第二位置转换参数将第三位置数据转换为第一位置数据。Preferably, the controller 22 is configured to convert the third position data into the first position data using a second position conversion parameter between the known base coordinate system and the flange coordinate system.
优选地,工件上预设的三个点不共线。Preferably, the three points preset on the workpiece are not collinear.
优选地,控制器用于:根据第一位置数据和第二位置数据计算转换矩阵。Preferably, the controller is configured to: calculate a conversion matrix according to the first location data and the second location data.
优选地,第一位置数据为工件变换位置后三个点的位置数据,第二位置数据为工件变换位置前三个点的位置数据,Preferably, the first position data is position data of three points after the workpiece transformation position, and the second position data is position data of the first three points of the workpiece transformation position,
控制器22用于:The controller 22 is used to:
将工件变换位置前三个点中的第一点设置为与第一三维直角坐标系原点重合,将工件变换位置后第一点设置为与第二三维直角坐标系的原点重合,其中第一三维直角坐标系的坐标轴与三个点的位置关系与第二三维直角坐标系的坐标轴与三个点的相对位置关系一致; The first point of the first three points of the workpiece transformation position is set to coincide with the origin of the first three-dimensional Cartesian coordinate system, and the first point after the workpiece transformation position is set to coincide with the origin of the second three-dimensional Cartesian coordinate system, wherein the first three-dimensional The positional relationship between the coordinate axes of the Cartesian coordinate system and the three points is consistent with the relative positional relationship between the coordinate axes of the second three-dimensional Cartesian coordinate system and the three points;
通过以下公式计算转换矩阵:Calculate the transformation matrix by the following formula:
εX=a′-a;εY=b′-b;εz=c′-cε X = a'-a; ε Y = b'-b; ε z = c'-c
其中,xfl,yfl,zfl为工件变换位置前第一点在法兰坐标系的三个坐标轴上的坐标,x′fl,y′fl,z′fl为工件变换位置后第一点在法兰坐标系三个坐标轴上的坐标,a,b,c分别为工件变换位置前第一点在基础坐标系的姿态角度,a′,b′,c′分别为工件变换位置后第一点在基础坐标系的姿态角度,εX,εY,εZ分别为第一三维直角坐标系的三个坐标轴与对应的第二三维直角坐标系的三个坐标轴的夹角。Where x fl , y fl , z fl are the coordinates of the first point before the workpiece transformation position on the three coordinate axes of the flange coordinate system, and x' fl , y ' fl , z ' fl is the first position after the workpiece transformation position The coordinates of the points on the three coordinate axes of the flange coordinate system, a, b, and c are the attitude angles of the first point in the base coordinate system before the workpiece transformation position, and a', b', and c' are the workpiece transformation positions respectively. The first point is the attitude angle of the basic coordinate system, ε X , ε Y , ε Z are the angles between the three coordinate axes of the first three-dimensional Cartesian coordinate system and the three coordinate axes of the corresponding second three-dimensional Cartesian coordinate system, respectively.
优选地,工具为点接触式工具。Preferably, the tool is a point contact tool.
优选地,工具为焊枪。Preferably, the tool is a welding torch.
优选地,工具与机器人的法兰刚性连接。Preferably, the tool is rigidly connected to the flange of the robot.
请参阅图5,图5是本发明实施例的存储装置的模块示意图。在本实施例中,该存储装置31存储有可执行程序,可执行程序被执行以实现上述任意一实施例所述的校正机器人的运动控制命令的方法。该存储装置31可以为U盘、光盘、硬盘、移动硬盘、服务器等,当然,存储装置31也可以为上述实施例中的存储器11。Please refer to FIG. 5. FIG. 5 is a schematic diagram of a module of a storage device according to an embodiment of the present invention. In the present embodiment, the
区别于现有技术的情况本发明通过获取工件上预设的三个点的第一位置数据;获取预存的三个点的第二位置数据;根据第一位置数据和第二位置数据确定第一位置转换参数;根据第一位置转换参数对机器人的运动控制命令进行校正,得到校正后的机器人的运动控制命令,能够在预先未标定工件坐标系的情况下在工件改变位置后按照校正后的运动控制命令准确控制机器人运动。Different from the prior art, the present invention obtains first position data of three points preset on a workpiece; acquires second position data of three pre-stored points; and determines first according to the first position data and the second position data Position conversion parameter; correcting the motion control command of the robot according to the first position conversion parameter, and obtaining the motion control command of the corrected robot, which can follow the corrected motion after the workpiece changes position without pre-calibrating the workpiece coordinate system Control commands accurately control robot motion.
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above is only the embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.
Claims (34)
Priority Applications (2)
| 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 |
| CN201780037097.5A CN109311163B (en) | 2017-05-26 | 2017-05-26 | Method for correcting motion control command of robot and related equipment |
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 (1)
| Publication Number | Publication Date |
|---|---|
| WO2018214156A1 true WO2018214156A1 (en) | 2018-11-29 |
Family
ID=64396101
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/086112 Ceased WO2018214156A1 (en) | 2017-05-26 | 2017-05-26 | Method of correcting locomotion control command of robot, and related apparatus for same |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109311163B (en) |
| WO (1) | WO2018214156A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109514533A (en) * | 2019-01-08 | 2019-03-26 | 崧智智能科技(深圳)有限公司 | The quick teaching system of industrial robot and teaching method |
| US12318914B2 (en) | 2020-04-02 | 2025-06-03 | Fanuc Corporation | Device for correcting robot teaching position, teaching device, robot system, teaching position correction method, and computer program |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| 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)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20010013511A1 (en) * | 2000-02-11 | 2001-08-16 | Sung-Jin Hong | Method for correcting teaching points for welding robot and welding robot system employing the same |
| 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 |
| JP2011253300A (en) * | 2010-06-01 | 2011-12-15 | Daihen Corp | Robot control system |
| 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 |
| CN106271081A (en) * | 2016-09-30 | 2017-01-04 | 华南理工大学 | Three coordinate rectangular robot line laser seam tracking system and trackings thereof |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| 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 |
| JP4913887B2 (en) * | 2010-05-07 | 2012-04-11 | 平井工業株式会社 | Resin sheet molding mold and its manufacturing method |
| 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 |
| 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 |
-
2017
- 2017-05-26 WO PCT/CN2017/086112 patent/WO2018214156A1/en not_active Ceased
- 2017-05-26 CN CN201780037097.5A patent/CN109311163B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20010013511A1 (en) * | 2000-02-11 | 2001-08-16 | Sung-Jin Hong | Method for correcting teaching points for welding robot and welding robot system employing the same |
| 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 |
| JP2011253300A (en) * | 2010-06-01 | 2011-12-15 | Daihen Corp | Robot control system |
| 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 |
| CN106271081A (en) * | 2016-09-30 | 2017-01-04 | 华南理工大学 | Three coordinate rectangular robot line laser seam tracking system and trackings thereof |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109514533A (en) * | 2019-01-08 | 2019-03-26 | 崧智智能科技(深圳)有限公司 | The quick teaching system of industrial robot and teaching method |
| US12318914B2 (en) | 2020-04-02 | 2025-06-03 | Fanuc Corporation | Device for correcting robot teaching position, teaching device, robot system, teaching position correction method, and computer program |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109311163B (en) | 2022-02-15 |
| CN109311163A (en) | 2019-02-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6964989B2 (en) | Control methods, robot systems, article manufacturing methods, programs, and recording media | |
| JP7207851B2 (en) | Control method, robot system, article manufacturing method, program and recording medium | |
| JP6108860B2 (en) | Robot system and control method of robot system | |
| JP3946711B2 (en) | Robot system | |
| JP4271232B2 (en) | Apparatus, method, program, and recording medium for executing offline programming of robot | |
| CN102909728B (en) | The vision correction methods of robot tooling center points | |
| US9517563B2 (en) | Robot system using visual feedback | |
| US20200238525A1 (en) | System and method for automatic hand-eye calibration of vision system for robot motion | |
| US9519736B2 (en) | Data generation device for vision sensor and detection simulation system | |
| US20140288710A1 (en) | Robot system and calibration method | |
| WO2016079967A1 (en) | Robot and robot system | |
| JP7190552B1 (en) | Robot teaching system | |
| WO2016074646A1 (en) | Method and device for calibrating tool in flange coordinate system of robot | |
| WO2016208467A1 (en) | Calibration device and robot system using same | |
| JP2016187846A (en) | Robot, robot controller and robot system | |
| WO2018043525A1 (en) | Robot system, robot system control device, and robot system control method | |
| CN112123341A (en) | Robot double arm coordinated motion control method, device and electronic device | |
| WO2018214156A1 (en) | Method of correcting locomotion control command of robot, and related apparatus for same | |
| CN107953333B (en) | Control method and system for calibrating tool at tail end of manipulator | |
| US7957834B2 (en) | Method for calculating rotation center point and axis of rotation, method for generating program, method for moving manipulator and positioning device, and robotic system | |
| CN115319754A (en) | Robot and laser sensor hand-eye calibration method and device | |
| CN114986522A (en) | A positioning method, grasping method, electronic device and storage medium of a mechanical arm | |
| CN115476338A (en) | Attitude adjustment method and apparatus, robot mechanism, electronic device, and storage medium | |
| CN111283323B (en) | Welding method, welding device, terminal equipment and storage medium | |
| CN114939867A (en) | Calibration method and system for mechanical arm external irregular asymmetric tool based on stereoscopic vision |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17910598 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17910598 Country of ref document: EP Kind code of ref document: A1 |