WO2018119642A1 - Method and device for calibrating tool coordinate system origin of industrial robot - Google Patents

Method and device for calibrating tool coordinate system origin of industrial robot Download PDF

Info

Publication number
WO2018119642A1
WO2018119642A1 PCT/CN2016/112328 CN2016112328W WO2018119642A1 WO 2018119642 A1 WO2018119642 A1 WO 2018119642A1 CN 2016112328 W CN2016112328 W CN 2016112328W WO 2018119642 A1 WO2018119642 A1 WO 2018119642A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinate system
origin
tool
flange
sets
Prior art date
Application number
PCT/CN2016/112328
Other languages
French (fr)
Chinese (zh)
Inventor
叶根
Original Assignee
深圳配天智能技术研究院有限公司
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 深圳配天智能技术研究院有限公司 filed Critical 深圳配天智能技术研究院有限公司
Priority to CN201680086636.XA priority Critical patent/CN109311155B/en
Priority to PCT/CN2016/112328 priority patent/WO2018119642A1/en
Publication of WO2018119642A1 publication Critical patent/WO2018119642A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/02Programme-controlled manipulators characterised by movement of the arms, e.g. cartesian coordinate type
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/02Programme-controlled manipulators characterised by movement of the arms, e.g. cartesian coordinate type
    • B25J9/04Programme-controlled manipulators characterised by movement of the arms, e.g. cartesian coordinate type by rotating at least one arm, excluding the head movement itself, e.g. cylindrical coordinate type or polar coordinate type

Definitions

  • Embodiments of the present invention relate to the field of robots, and in particular, to a calibration method and apparatus for an origin of a tool coordinate system of an industrial robot.
  • the robot In the use of the robot, it is generally necessary to assemble tools at the end of the robot to achieve the corresponding functions. In order to obtain better processing results, it is often necessary to calibrate the position and posture of the tool relative to the robot end coordinate system (flange coordinate system) after the tool and equipment are completed.
  • the standard measurement tool is generally used to measure the coordinates of the tool coordinate system (Tool Center Point, TCP) in the flange coordinate system, and there are technical problems such as high cost and complicated operation.
  • the embodiment of the invention provides a calibration method and device for the origin of the tool coordinate system of the industrial robot, so as to solve at least part of the problems caused by the calibration of the origin of the tool coordinate system by means of a standard measuring tool in the prior art.
  • a technical solution adopted by the embodiment of the present invention is to provide a calibration method for the origin of the tool coordinate system of the industrial robot, comprising: controlling the robot to drive the tool to be calibrated installed at the end of the robot, so that the tool to be calibrated
  • the origin of the tool coordinate system reaches a fixed reference point along N different trajectories.
  • the connection between the origin of the flange coordinate system of the robot and the origin of the tool coordinate system does not coincide.
  • N is an integer greater than or equal to 3; respectively record the rotation angle of each axis of the robot when the origin of the tool coordinate system reaches the reference point; calculate the origin of the tool coordinate system in the flange coordinate system of the robot according to the recorded N sets of rotation angles Coordinate value.
  • the step of calculating the coordinate value of the tool coordinate system origin in the flange coordinate system of the robot according to the recorded N sets of rotation angles comprises: arbitrarily selecting three groups from the recorded N sets of rotation angles, and calculating a corresponding flange coordinate system.
  • the three sets of homogeneous matrices; the coordinate values of the origin of the tool coordinate system in the flange coordinate system are calculated by three sets of homogeneous matrices.
  • the three groups are randomly selected from the recorded N sets of rotation angles
  • the steps of calculating the three sets of homogeneous matrices of the corresponding flange coordinate system include: calculating the corresponding three sets of rotation angles by using the positive kinematics algorithm respectively
  • the three sets of homogeneous matrices of the flange coordinate system are expressed as:
  • R 1 , R 2 and R 3 are respectively 3 ⁇ 3 matrices for respectively indicating the direction of the flange coordinate system when the origin of the three tool coordinate system corresponding to the three sets of rotation angles reaches the reference point
  • O 1 , O 2 and O 3 are 3 ⁇ 1 matrices respectively, which are used to respectively represent the coordinates of the origin of the flange coordinate system when the origin of the three tool coordinate system corresponding to the three sets of rotation angles reaches the reference point.
  • the step of calculating the coordinate values of the tool coordinate system origin in the flange coordinate system by the three sets of homogeneous matrices includes: calculating the coordinate values of the tool coordinate system origin in the flange coordinate system by using the following formula:
  • O T is a 3 ⁇ 1 matrix, which is used to represent the coordinate value of the origin of the tool coordinate system in the flange coordinate system.
  • N is an integer greater than or equal to 4, the method further comprising: calculating a tool coordinate system origin in the flange coordinate system according to at least one of the three sets of homogeneous matrices, O T and the remaining at least one set of rotation angles The error of the coordinate value.
  • the step of calculating the error of the coordinate value of the tool coordinate system origin in the flange coordinate system according to at least one of the above three sets of homogeneous matrices, O T and the remaining at least one set of rotation angles comprises: using a forward kinematic algorithm The remaining at least one set of rotation angles is calculated to obtain at least one fourth set of homogeneous matrices of the corresponding flange coordinate system, and expressed as:
  • R 4 is a 3 ⁇ 3 matrix, which is used to indicate the direction of the flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point, and O 4 is 3 ⁇ 1.
  • a matrix configured to represent coordinates of an origin of a flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point; according to at least one of the three sets of homogeneous matrices, O T and the fourth group
  • the sub-matrix calculates the error of the coordinate value of the tool coordinate system origin in the flange coordinate system.
  • the step of calculating the error of the coordinate value of the tool coordinate system origin in the flange coordinate system according to at least one of the three sets of homogeneous matrices, the O T and the fourth set of homogeneous matrices includes: calculating the tool coordinate system by using the following formula The error of the coordinate value of the origin in the flange coordinate system:
  • T n R n O T +O n
  • T 4 R 4 O T +O 4
  • R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the above three sets of homogeneous matrices, and err represents an error. value.
  • a technical solution adopted by the embodiment of the present invention is to provide a calibration device for the origin of the tool coordinate system of the industrial robot, comprising: a control unit for controlling the movement of the tool to be calibrated installed at the end of the robot by the robot The origin of the tool coordinate system of the tool to be calibrated reaches a fixed reference point along N different trajectories.
  • N is an integer greater than or equal to 3; the recording unit is used to separately record the rotation angle of each axis of the robot when the origin of the tool coordinate system reaches the reference point; the coordinate calculation unit is used for the N groups according to the record The rotation angle calculates the coordinate value of the tool coordinate system origin in the robot's flange coordinate system.
  • the coordinate calculation unit includes: a first sub-coordinate calculation unit configured to arbitrarily select three groups from the recorded N sets of rotation angles, and calculate three sets of homogeneous matrices of the corresponding flange coordinate system; the second sub-coordinate calculation unit , used to calculate the coordinate value of the origin of the tool coordinate system in the flange coordinate system according to the three sets of homogeneous matrices.
  • the first sub-coordinate calculation unit uses the forward kinematics algorithm to calculate three sets of homogeneous matrices of the corresponding flange coordinate system from the selected three sets of rotation angles, respectively expressed as:
  • R 1 , R 2 and R 3 are respectively 3 ⁇ 3 matrices for respectively indicating the direction of the flange coordinate system when the origin of the three tool coordinate system corresponding to the three sets of rotation angles reaches the reference point
  • O 1 , O 2 and O 3 are 3 ⁇ 1 matrices respectively, which are used to respectively represent the coordinates of the origin of the flange coordinate system when the origin of the three tool coordinate system corresponding to the three sets of rotation angles reaches the reference point.
  • the second sub-coordinate calculation unit calculates the coordinate values of the tool coordinate system origin in the flange coordinate system by using the following formula:
  • O T is a 3 ⁇ 1 matrix, which is used to represent the coordinate value of the origin of the tool coordinate system in the flange coordinate system.
  • the apparatus further includes an error calculation unit, configured to calculate a tool coordinate system origin according to at least one of the three sets of homogeneous matrices, O T and the remaining at least one set of rotation angles The error of the coordinate value in the blue coordinate system.
  • the error calculation unit includes: a first sub-error calculation unit configured to calculate, by using a forward kinematics algorithm, at least one fourth group of homogeneous matrices of the corresponding flange coordinate system from the remaining at least one set of rotation angles, and expressed as :
  • R 4 is a 3 ⁇ 3 matrix, which is used to indicate the direction of the flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point, and O 4 is 3 ⁇ 1.
  • a matrix configured to represent coordinates of an origin of a flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point; and a second sub-error calculation unit configured to be based on at least the three sets of homogeneous matrices One, O T and the fourth set of homogeneous matrices calculate the error of the coordinate values of the tool coordinate system origin in the flange coordinate system.
  • the second sub-error calculation unit calculates the error of the coordinate value of the origin of the tool coordinate system in the flange coordinate system by using the following formula:
  • T n R n O T +O n
  • T 4 R 4 O T +O 4
  • R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the above three sets of homogeneous matrices, and err represents an error. value.
  • a technical solution adopted by the embodiment of the present invention is to provide a calibration device for the origin of the tool coordinate system of the industrial robot, including a processor and a memory connected to the processor, wherein the processor runs through the memory
  • the stored program performs the above steps.
  • the beneficial effects of the embodiments of the present invention are: in the calibration method and device for the origin of the tool coordinate system of the industrial robot provided by the embodiment of the present invention, the calibration tool of the industrial robot can be used for calibration only by using the external standard measurement tool. The tool coordinate system origin coordinates are obtained, and the calibration error can be further given.
  • FIG. 1 is a schematic structural view of an industrial robot according to a first embodiment of the present invention
  • FIG. 2 is a flow chart showing a calibration method of an origin of a tool coordinate system of an industrial robot according to a second embodiment of the present invention
  • FIG. 3 is a schematic block diagram of a calibration device for an origin of a tool coordinate system of an industrial robot according to a third embodiment of the present invention
  • FIG. 4 is a schematic block diagram of a calibration device for the origin of a tool coordinate system of an industrial robot according to a fourth embodiment of the present invention.
  • FIG. 1 is a schematic structural view of an industrial robot according to a first embodiment of the present invention.
  • the industrial robot of the present embodiment mainly includes a base 11, robot arms 12, 13, and a tool 14 equipped at the end of the robot arm 13.
  • the mechanical arm 12 and the base 11 and between the mechanical arms 12 and 13 are respectively connected by the rotating shafts 15 and 16, and the tool 14 is driven to reach different positions by controlling the rotation of the rotating shafts 15 and 16.
  • the robot has the following coordinate system: (1) the world coordinate system, the user specifies a coordinate system fixed to the earth, and the coordinate system does not change during the operation, for example In Fig. 1, the coordinate system defined by the origin o1 and the coordinate axes x1 and y1; (2) the base coordinate system, based on the coordinate system of the robot base, generally does not change during operation, for example, the origin o2 and The coordinate system defined by the axes x2 and y2.
  • each robot has its own base coordinate system, and the world coordinate system is the common reference coordinate system of the base coordinate system; (3) the flange coordinate system, the connection tool at the end of the robot The coordinate system of the robot arm, for example The coordinate system defined by the origin o3 and the coordinate axes x3 and y3 in Fig. 1. In general, when the attitude of the robot changes, the flange coordinate system changes.
  • Tool coordinate system a coordinate system located on the tool, such as the coordinate system defined by the origin o4 and the coordinate axes x4 and y4 in FIG.
  • FIG. 2 is a flow chart showing a calibration method of the origin of the tool coordinate system of the industrial robot according to the second embodiment of the present invention.
  • the tool coordinate system origin coordinates can be obtained by calibration of the industrial robot without the aid of an external standard measurement tool, and the calibration error can be further given.
  • the calibration method of this embodiment includes the following steps:
  • Step 21 The control robot drives the to-be-calibrated tool 14 installed at the end of the robot to move, so that the tool coordinate origin d4 of the tool to be calibrated 14 reaches a fixed position along N different trajectories (for example, the trajectory shown by the dotted line in FIG. 1).
  • N is an integer greater than or equal to 3, and further preferably, when the tool coordinate system origin o4 reaches the reference point o5 along different trajectories, the origin of the flange coordinate system o3 of the robot is connected with the origin o4 of the tool coordinate system.
  • the lines do not coincide, for example, when the tool coordinate system origin o4 reaches the reference point o5 along different tracks, the angle between the above lines is greater than 5 degrees;
  • Step 22 respectively recording the rotation angle of each axis of the robot (for example, the rotating shafts 15, 16) when the tool coordinate system origin o4 reaches the reference point o5;
  • step 23 coordinate values of the tool coordinate system origin o4 in the flange coordinate system of the robot (the coordinate system defined by o3, x3, and y3 in Fig. 1) are calculated according to the recorded N sets of rotation angles.
  • this step it is preferable to arbitrarily select three groups from the recorded N sets of rotation angles, calculate three sets of homogeneous matrices of the corresponding flange coordinate system, and further calculate the origin of the tool coordinate system o4 by the three sets of homogeneous matrices.
  • the coordinate value in the flange coordinate system it is preferable to arbitrarily select three groups from the recorded N sets of rotation angles, calculate three sets of homogeneous matrices of the corresponding flange coordinate system, and further calculate the origin of the tool coordinate system o4 by the three sets of homogeneous matrices.
  • the coordinate value in the flange coordinate system is preferable to arbitrarily select three groups from the recorded N sets of rotation angles, calculate three sets of homogeneous matrices of the corresponding flange coordinate system, and further calculate the origin of the tool coordinate system o4 by the three sets of homogeneous matrices.
  • the three sets of homogeneous matrices of the corresponding flange coordinate system are respectively calculated from the selected three sets of rotation angles, which are respectively expressed as:
  • R 1 , R 2 and R 3 are respectively a matrix of 3 ⁇ 3, which are respectively used to indicate the direction of the flange coordinate system when the origin o4 of the three-tool coordinate system corresponding to the three sets of rotation angles reaches the reference point o5
  • O 1 , O 2 and O 3 are respectively a matrix of 3 ⁇ 1 for respectively indicating the coordinates of the origin o3 of the flange coordinate system when the origin o4 of the three-tool coordinate system corresponding to the three sets of rotation angles reaches the reference point o5.
  • the world coordinate system or the base coordinate system can be used as the reference coordinate system to calculate the direction of the flange coordinate system and the coordinates of the origin o3. Further, the calculation of the homogeneous matrix based on the rotation angle of each axis of the robot using the forward kinematics algorithm is common knowledge in the art, and will not be described herein.
  • O T is a matrix of 3 ⁇ 1
  • X T , Y T , and Z T are used to represent coordinate values of the tool coordinate system origin o4 in the flange coordinate system.
  • the coordinate values of the origin of the tool coordinate system in the flange coordinate system can be calculated.
  • the method of this embodiment is further preferred and does not have to include:
  • step 24 the error of the coordinate value of the tool coordinate system origin o4 in the flange coordinate system is calculated.
  • At least one fourth set of homogeneous matrices of the corresponding flange coordinate system is calculated from the remaining at least one set of rotation angles using a forward kinematics algorithm and expressed as:
  • R 4 is a 3 ⁇ 3 matrix, which is used to indicate the direction of the flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point
  • O 4 is a matrix of 3 ⁇ 1, and is used for Representing the coordinates of the origin of the flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point, and further according to at least one of the above three sets of homogeneous matrices, O T and the fourth set of homogeneous matrices Calculate the error of the coordinate value of the tool coordinate system origin in the flange coordinate system. Specifically calculate the error of the coordinate value of the tool coordinate system origin in the flange coordinate system by the following formula:
  • T n R n O T +O n
  • T 4 R 4 O T +O 4
  • R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the above three sets of homogeneous matrices, and err represents an error. value.
  • the error of the coordinate value of the tool coordinate system origin in the flange coordinate system may be respectively calculated according to the remaining two or more rotation angles, and finally the calculated two or more errors are averaged to obtain the final Error.
  • FIG. 3 is a tool coordinate system of an industrial robot according to a third embodiment of the present invention.
  • the calibration device of this embodiment includes a control unit 31, a recording unit 32, and a coordinate calculation unit 33.
  • the control unit 31 is configured to control the movement of the tool to be calibrated 14 installed at the end of the robot, so that the origin o4 of the tool coordinate system of the tool to be calibrated reaches a fixed reference point o5 along N different trajectories, where N is greater than or An integer equal to 3.
  • the origin of the robot's flange coordinate system origin o3 does not coincide with the line of the tool coordinate system origin o4.
  • the recording unit 32 is for separately recording the rotation angle of each axis of the robot each time the tool coordinate system origin o4 reaches the reference point o5.
  • the coordinate calculation unit 33 is configured to calculate the coordinate value of the tool coordinate system origin o4 in the flange coordinate system of the robot based on the recorded N sets of rotation angles.
  • the calculation unit 33 includes a first sub-coordinate calculation unit 331 and a second sub-coordinate calculation unit 332.
  • the first sub-coordinate calculation unit 331 is configured to arbitrarily select three groups from the recorded N sets of rotation angles, and calculate three sets of homogeneous matrices of the corresponding flange coordinate system
  • the second sub-coordinate calculation unit 332 is configured to The group homogeneous matrix is calculated to obtain the coordinate value of the origin of the tool coordinate system in the flange coordinate system.
  • the first sub-coordinate calculation unit 331 calculates the three sets of homogeneous matrices of the corresponding flange coordinate system by using the positive kinematics algorithm from the selected three sets of rotation angles, respectively:
  • R 1 , R 2 and R 3 are respectively 3 ⁇ 3 matrices for respectively indicating the direction of the flange coordinate system when the origin o2 of the three-tool coordinate system corresponding to the three sets of rotation angles reaches the reference point o5.
  • O 1 , O 2 , and O 3 are respectively a matrix of 3 ⁇ 1, and are used to respectively represent the coordinates of the origin o3 of the flange coordinate system when the origin o4 of the three-tool coordinate system corresponding to the three sets of rotation angles reaches the reference point o5.
  • the second sub-coordinate calculation unit 332 calculates the coordinate value of the tool coordinate system origin o4 in the flange coordinate system using the following formula:
  • O T is a 3 ⁇ 1 matrix for indicating the coordinate value of the tool coordinate system origin o4 in the flange coordinate system.
  • N is an integer greater than or equal to 4, said apparatus further comprising a calibration error calculating unit 34, according to the above-described three homogeneous matrix of at least one, O T and at least a set of rotating the remaining The angle calculation tool coordinate system origin o4 error in the coordinate value of the flange coordinate system.
  • the error calculation unit 34 includes a first sub-error calculation unit 341 and a second sub-error calculation unit 342.
  • the first sub-error calculating unit 34 is configured to calculate at least one fourth set of homogeneous matrices of the corresponding flange coordinate system from the remaining at least one set of rotation angles by using a forward kinematics algorithm, and is expressed as:
  • R 4 is a 3 ⁇ 3 matrix for indicating the direction of the flange coordinate system when the tool coordinate system origin o4 corresponding to the remaining at least one set of rotation angles reaches the reference point o5, and O 4 is 3 ⁇ .
  • the second sub-error calculating unit 342 is configured to calculate an error of the coordinate value of the tool coordinate system origin o4 in the flange coordinate system according to at least one of the three sets of homogeneous matrices, O T and the fourth set of homogeneous matrices. Specifically, the second sub-error calculation unit 342 calculates the error of the coordinate value of the tool coordinate system origin o4 in the flange coordinate system using the following formula:
  • T n R n O T +O n
  • T 4 R 4 O T +O 4
  • R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the above three sets of homogeneous matrices, and err represents an error. value.
  • FIG. 4 is a schematic block diagram of a calibration device for the origin of the tool coordinate system of the industrial robot according to the fourth embodiment of the present invention.
  • the calibration apparatus of this embodiment includes a processor 41 and a memory 42.
  • the processor 41 is connected to the memory 42 and executes the steps in the calibration method shown in the second embodiment of the present invention described with reference to Fig. 2 by running a program stored in the memory 42.

Abstract

Disclosed in an embodiment of the present invention is a method for calibrating a tool coordinate system origin of an industrial robot. The method comprises: controlling an industrial robot to drive a to-be-calibrated tool mounted on a tail end of the robot to move, so that a tool coordinate system origin of the to-be-calibrated tool reaches a fixed reference point along N different tracks; respectively recording a rotation angle of each shaft of the robot when the tool coordinate system origin reaches the reference point each time; and computing coordinate values of the tool coordinate system origin in a flange coordinate system of the robot according to the recorded N sets of rotation angles. In this way, coordinates of a tool coordinate system origin can be calibrated by means of movements of the industrial robot, without an external standard measurement tool.

Description

一种工业机器人的工具坐标系原点的标定方法及装置Method and device for calibrating origin of tool coordinate system of industrial robot 【技术领域】[Technical Field]
本发明实施例涉及机器人领域,特别是涉及一种工业机器人的工具坐标系原点的标定方法及装置。Embodiments of the present invention relate to the field of robots, and in particular, to a calibration method and apparatus for an origin of a tool coordinate system of an industrial robot.
【背景技术】【Background technique】
在机器人的使用过程中,一般需要在机器人的末端装配工具,进而实现相应的功能。为更好地获得加工效果,往往需要在工具装备完成后对工具相对于机器人末端坐标系(法兰坐标系)的位置及姿态进行标定。目前,一般是使用标准的测量工具来对工具坐标系原点(Tool Center Point,TCP)在法兰坐标系中的坐标进行测量,存在成本高、操作繁琐等技术问题。In the use of the robot, it is generally necessary to assemble tools at the end of the robot to achieve the corresponding functions. In order to obtain better processing results, it is often necessary to calibrate the position and posture of the tool relative to the robot end coordinate system (flange coordinate system) after the tool and equipment are completed. At present, the standard measurement tool is generally used to measure the coordinates of the tool coordinate system (Tool Center Point, TCP) in the flange coordinate system, and there are technical problems such as high cost and complicated operation.
【发明内容】[Summary of the Invention]
本发明实施例提供一种工业机器人的工具坐标系原点的标定方法及装置,以解决现有技术中借助标准的测量工具来对工具坐标系原点进行标定而导致的至少部分问题。The embodiment of the invention provides a calibration method and device for the origin of the tool coordinate system of the industrial robot, so as to solve at least part of the problems caused by the calibration of the origin of the tool coordinate system by means of a standard measuring tool in the prior art.
为解决上述技术问题,本发明实施例采用的一个技术方案是:提供一种工业机器人的工具坐标系原点的标定方法,包括:控制机器人带动安装在机器人末端的待标定工具运动,使待标定工具的工具坐标系原点沿N条不同的轨迹到达一个固定的参考点,其中,工具坐标系原点沿着不同轨迹到达参考点时,机器人的法兰坐标系原点与工具坐标系原点的连线不重合,N为大于或等于3的整数;分别记录每次工具坐标系原点到达参考点时机器人各轴的旋转角度;根据记录的N组旋转角度计算工具坐标系原点在机器人的法兰坐标系中的坐标值。In order to solve the above technical problem, a technical solution adopted by the embodiment of the present invention is to provide a calibration method for the origin of the tool coordinate system of the industrial robot, comprising: controlling the robot to drive the tool to be calibrated installed at the end of the robot, so that the tool to be calibrated The origin of the tool coordinate system reaches a fixed reference point along N different trajectories. When the origin of the tool coordinate system reaches the reference point along different trajectories, the connection between the origin of the flange coordinate system of the robot and the origin of the tool coordinate system does not coincide. , N is an integer greater than or equal to 3; respectively record the rotation angle of each axis of the robot when the origin of the tool coordinate system reaches the reference point; calculate the origin of the tool coordinate system in the flange coordinate system of the robot according to the recorded N sets of rotation angles Coordinate value.
其中,根据记录的N组旋转角度计算工具坐标系原点在机器人的法兰坐标系中的坐标值的步骤包括:从记录的N组旋转角度中任意选择三组,计算得到对应的法兰坐标系的三组齐次矩阵;由三组齐次矩阵计算得到工具坐标系原点在法兰坐标系中的坐标值。The step of calculating the coordinate value of the tool coordinate system origin in the flange coordinate system of the robot according to the recorded N sets of rotation angles comprises: arbitrarily selecting three groups from the recorded N sets of rotation angles, and calculating a corresponding flange coordinate system. The three sets of homogeneous matrices; the coordinate values of the origin of the tool coordinate system in the flange coordinate system are calculated by three sets of homogeneous matrices.
其中,从记录的N组旋转角度中任意选择三组,计算得到对应的法兰坐标系的三组齐次矩阵的步骤包括:运用正运动学算法由选择的三组旋转角度分别计算得到对应的法兰坐标系的三组齐次矩阵,分别表示为: Wherein, the three groups are randomly selected from the recorded N sets of rotation angles, and the steps of calculating the three sets of homogeneous matrices of the corresponding flange coordinate system include: calculating the corresponding three sets of rotation angles by using the positive kinematics algorithm respectively The three sets of homogeneous matrices of the flange coordinate system are expressed as:
Figure PCTCN2016112328-appb-000001
以及
Figure PCTCN2016112328-appb-000002
Figure PCTCN2016112328-appb-000001
as well as
Figure PCTCN2016112328-appb-000002
在上述表达式中,R1、R2和R3分别为3×3的矩阵,用于分别表示三组旋转角度对应的三次工具坐标系原点到达参考点时的法兰坐标系的方向,O1、O2和O3分别为3×1的矩阵,用于分别表示三组旋转角度对应的三次工具坐标系原点到达参考点时的法兰坐标系原点的坐标。In the above expression, R 1 , R 2 and R 3 are respectively 3×3 matrices for respectively indicating the direction of the flange coordinate system when the origin of the three tool coordinate system corresponding to the three sets of rotation angles reaches the reference point, O 1 , O 2 and O 3 are 3×1 matrices respectively, which are used to respectively represent the coordinates of the origin of the flange coordinate system when the origin of the three tool coordinate system corresponding to the three sets of rotation angles reaches the reference point.
其中,由三组齐次矩阵计算得到工具坐标系原点在法兰坐标系中的坐标值的步骤包括:利用如下公式计算工具坐标系原点在法兰坐标系中的坐标值:The step of calculating the coordinate values of the tool coordinate system origin in the flange coordinate system by the three sets of homogeneous matrices includes: calculating the coordinate values of the tool coordinate system origin in the flange coordinate system by using the following formula:
OT=(R1+R3-2R2)-1(2O2-O1-O3)O T =(R 1 +R 3 -2R 2 ) -1 (2O 2 -O 1 -O 3 )
在上述表达式中,OT为3×1的矩阵,用于表示工具坐标系原点在法兰坐标系中的坐标值。In the above expression, O T is a 3 × 1 matrix, which is used to represent the coordinate value of the origin of the tool coordinate system in the flange coordinate system.
其中,N为大于或等于4的整数,该方法还包括:根据上述三组齐次矩阵中的至少一个、OT以及剩余的至少一组旋转角度计算工具坐标系原点在法兰坐标系中的坐标值的误差。Wherein, N is an integer greater than or equal to 4, the method further comprising: calculating a tool coordinate system origin in the flange coordinate system according to at least one of the three sets of homogeneous matrices, O T and the remaining at least one set of rotation angles The error of the coordinate value.
其中,根据上述三组齐次矩阵中的至少一个、OT以及剩余的至少一组旋转角度计算工具坐标系原点在法兰坐标系中的坐标值的误差的步骤包括:运用正运动学算法由剩余的至少一组旋转角度计算得到对应的法兰坐标系的至少一个第四组齐次矩阵,并表示为:The step of calculating the error of the coordinate value of the tool coordinate system origin in the flange coordinate system according to at least one of the above three sets of homogeneous matrices, O T and the remaining at least one set of rotation angles comprises: using a forward kinematic algorithm The remaining at least one set of rotation angles is calculated to obtain at least one fourth set of homogeneous matrices of the corresponding flange coordinate system, and expressed as:
Figure PCTCN2016112328-appb-000003
Figure PCTCN2016112328-appb-000003
在上述表达式中,R4为3×3的矩阵,用于表示剩余的至少一组旋转角度对应的工具坐标系原点到达参考点时的法兰坐标系的方向,O4为3×1的矩阵,用于表示剩余的至少一组旋转角度对应的工具坐标系原点到达参考点时的法兰坐标系原点的坐标;根据上述三组齐次矩阵中的至少一个、OT和第四组齐次矩阵计算工具坐标系原点在法兰坐标系中的坐标值的误差。In the above expression, R 4 is a 3×3 matrix, which is used to indicate the direction of the flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point, and O 4 is 3×1. a matrix, configured to represent coordinates of an origin of a flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point; according to at least one of the three sets of homogeneous matrices, O T and the fourth group The sub-matrix calculates the error of the coordinate value of the tool coordinate system origin in the flange coordinate system.
其中,根据上述三组齐次矩阵中的至少一个、OT和第四组齐次矩阵计算工具坐标系原点在法兰坐标系中的坐标值的误差的步骤包括:利用如下公式计算工具坐标系原点在法兰坐标系中的坐标值的误差: The step of calculating the error of the coordinate value of the tool coordinate system origin in the flange coordinate system according to at least one of the three sets of homogeneous matrices, the O T and the fourth set of homogeneous matrices includes: calculating the tool coordinate system by using the following formula The error of the coordinate value of the origin in the flange coordinate system:
Tn=RnOT+On T n =R n O T +O n
T4=R4OT+O4 T 4 =R 4 O T +O 4
err=|Tn-T4|Err=|T n -T 4 |
在上述表达式中,Rn和On分别为上述三组齐次矩阵中的R1、R2和R3中的任意一个以及O1、O2和O3中的对应一个,err表示误差值。In the above expression, R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the above three sets of homogeneous matrices, and err represents an error. value.
为解决上述技术问题,本发明实施例采用的一个技术方案是:提供一种工业机器人的工具坐标系原点的标定装置,包括:控制单元,用于控制机器人带动安装在机器人末端的待标定工具运动,使待标定工具的工具坐标系原点沿N条不同的轨迹到达一个固定的参考点,其中,工具坐标系原点沿着不同轨迹到达参考点时,机器人的法兰坐标系原点与工具坐标系原点的连线不重合,N为大于或等于3的整数;记录单元,用于分别记录每次工具坐标系原点到达参考点时机器人各轴的旋转角度;坐标计算单元,用于根据记录的N组旋转角度计算工具坐标系原点在机器人的法兰坐标系中的坐标值。In order to solve the above technical problem, a technical solution adopted by the embodiment of the present invention is to provide a calibration device for the origin of the tool coordinate system of the industrial robot, comprising: a control unit for controlling the movement of the tool to be calibrated installed at the end of the robot by the robot The origin of the tool coordinate system of the tool to be calibrated reaches a fixed reference point along N different trajectories. When the origin of the tool coordinate system reaches the reference point along different trajectories, the origin of the flange coordinate system of the robot and the origin of the tool coordinate system The connection lines do not coincide, N is an integer greater than or equal to 3; the recording unit is used to separately record the rotation angle of each axis of the robot when the origin of the tool coordinate system reaches the reference point; the coordinate calculation unit is used for the N groups according to the record The rotation angle calculates the coordinate value of the tool coordinate system origin in the robot's flange coordinate system.
其中,坐标计算单元包括:第一子坐标计算单元,用于从记录的N组旋转角度中任意选择三组,计算得到对应的法兰坐标系的三组齐次矩阵;第二子坐标计算单元,用于根据三组齐次矩阵计算得到工具坐标系原点在法兰坐标系中的坐标值。The coordinate calculation unit includes: a first sub-coordinate calculation unit configured to arbitrarily select three groups from the recorded N sets of rotation angles, and calculate three sets of homogeneous matrices of the corresponding flange coordinate system; the second sub-coordinate calculation unit , used to calculate the coordinate value of the origin of the tool coordinate system in the flange coordinate system according to the three sets of homogeneous matrices.
其中,第一子坐标计算单元运用正运动学算法由选择的三组旋转角度分别计算得到对应的法兰坐标系的三组齐次矩阵,分别表示为:The first sub-coordinate calculation unit uses the forward kinematics algorithm to calculate three sets of homogeneous matrices of the corresponding flange coordinate system from the selected three sets of rotation angles, respectively expressed as:
Figure PCTCN2016112328-appb-000004
以及
Figure PCTCN2016112328-appb-000005
Figure PCTCN2016112328-appb-000004
as well as
Figure PCTCN2016112328-appb-000005
在上述表达式中,R1、R2和R3分别为3×3的矩阵,用于分别表示三组旋转角度对应的三次工具坐标系原点到达参考点时的法兰坐标系的方向,O1、O2和O3分别为3×1的矩阵,用于分别表示三组旋转角度对应的三次工具坐标系原点到达参考点时的法兰坐标系原点的坐标。In the above expression, R 1 , R 2 and R 3 are respectively 3×3 matrices for respectively indicating the direction of the flange coordinate system when the origin of the three tool coordinate system corresponding to the three sets of rotation angles reaches the reference point, O 1 , O 2 and O 3 are 3×1 matrices respectively, which are used to respectively represent the coordinates of the origin of the flange coordinate system when the origin of the three tool coordinate system corresponding to the three sets of rotation angles reaches the reference point.
其中,第二子坐标计算单元利用如下公式计算工具坐标系原点在法兰坐标系中的坐标值: The second sub-coordinate calculation unit calculates the coordinate values of the tool coordinate system origin in the flange coordinate system by using the following formula:
OT=(R1+R3-2R2)-1(2O2-O1-O3)   (2)O T =(R 1 +R 3 -2R 2 ) -1 (2O 2 -O 1 -O 3 ) (2)
在上述表达式中,OT为3×1的矩阵,用于表示工具坐标系原点在法兰坐标系中的坐标值。In the above expression, O T is a 3 × 1 matrix, which is used to represent the coordinate value of the origin of the tool coordinate system in the flange coordinate system.
其中,N为大于或等于4的整数,该装置还包括误差计算单元,用于根据上述三组齐次矩阵中的至少一个、OT以及剩余的至少一组旋转角度计算工具坐标系原点在法兰坐标系中的坐标值的误差。Wherein, N is an integer greater than or equal to 4, the apparatus further includes an error calculation unit, configured to calculate a tool coordinate system origin according to at least one of the three sets of homogeneous matrices, O T and the remaining at least one set of rotation angles The error of the coordinate value in the blue coordinate system.
其中,误差计算单元包括:第一子误差计算单元,用于运用正运动学算法由剩余的至少一组旋转角度计算得到对应的法兰坐标系的至少一个第四组齐次矩阵,并表示为:The error calculation unit includes: a first sub-error calculation unit configured to calculate, by using a forward kinematics algorithm, at least one fourth group of homogeneous matrices of the corresponding flange coordinate system from the remaining at least one set of rotation angles, and expressed as :
Figure PCTCN2016112328-appb-000006
Figure PCTCN2016112328-appb-000006
在上述表达式中,R4为3×3的矩阵,用于表示剩余的至少一组旋转角度对应的工具坐标系原点到达参考点时的法兰坐标系的方向,O4为3×1的矩阵,用于表示剩余的至少一组旋转角度对应的工具坐标系原点到达参考点时的法兰坐标系原点的坐标;第二子误差计算单元,用于根据上述三组齐次矩阵中的至少一个、OT和第四组齐次矩阵计算工具坐标系原点在法兰坐标系中的坐标值的误差。In the above expression, R 4 is a 3×3 matrix, which is used to indicate the direction of the flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point, and O 4 is 3×1. a matrix, configured to represent coordinates of an origin of a flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point; and a second sub-error calculation unit configured to be based on at least the three sets of homogeneous matrices One, O T and the fourth set of homogeneous matrices calculate the error of the coordinate values of the tool coordinate system origin in the flange coordinate system.
其中,第二子误差计算单元利用如下公式计算工具坐标系原点在法兰坐标系中的坐标值的误差:Wherein, the second sub-error calculation unit calculates the error of the coordinate value of the origin of the tool coordinate system in the flange coordinate system by using the following formula:
Tn=RnOT+On T n =R n O T +O n
T4=R4OT+O4 T 4 =R 4 O T +O 4
err=|Tn-T4|Err=|T n -T 4 |
在上述表达式中,Rn和On分别为上述三组齐次矩阵中的R1、R2和R3中的任意一个以及O1、O2和O3中的对应一个,err表示误差值。In the above expression, R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the above three sets of homogeneous matrices, and err represents an error. value.
为解决上述技术问题,本发明实施例采用的一个技术方案是:提供一种工业机器人的工具坐标系原点的标定装置,包括处理器及与处理器连接的存储器,其中,处理器通过运行存储器内存储的程序执行上述步骤。 In order to solve the above technical problem, a technical solution adopted by the embodiment of the present invention is to provide a calibration device for the origin of the tool coordinate system of the industrial robot, including a processor and a memory connected to the processor, wherein the processor runs through the memory The stored program performs the above steps.
本发明实施例的有益效果是:在本发明实施例所提供的工业机器人的工具坐标系原点的标定方法及装置中,无需借助外部标准的测量工具,只需通过工业机器人的自身运动即可标定得到工具坐标系原点坐标,并且可以进一步给出标定误差。The beneficial effects of the embodiments of the present invention are: in the calibration method and device for the origin of the tool coordinate system of the industrial robot provided by the embodiment of the present invention, the calibration tool of the industrial robot can be used for calibration only by using the external standard measurement tool. The tool coordinate system origin coordinates are obtained, and the calibration error can be further given.
【附图说明】[Description of the Drawings]
图1是根据本发明第一实施例的工业机器人的结构示意图;1 is a schematic structural view of an industrial robot according to a first embodiment of the present invention;
图2是根据本发明第二实施例的工业机器人的工具坐标系原点的标定方法的流程示意图;2 is a flow chart showing a calibration method of an origin of a tool coordinate system of an industrial robot according to a second embodiment of the present invention;
图3是根据本发明第三实施例的工业机器人的工具坐标系原点的标定装置的示意框图;3 is a schematic block diagram of a calibration device for an origin of a tool coordinate system of an industrial robot according to a third embodiment of the present invention;
图4是根据本发明第四实施例的工业机器人的工具坐标系原点的标定装置的示意框图。4 is a schematic block diagram of a calibration device for the origin of a tool coordinate system of an industrial robot according to a fourth embodiment of the present invention.
【具体实施方式】【detailed description】
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
如图1所示,图1是根据本发明第一实施例的工业机器人的结构示意图。本实施例的工业机器人主要包括基座11、机械臂12、13以及装备在机械臂13的末端的工具14。其中,机械臂12与基座11之间以及机械臂12和13之间分别通过转轴15和16进行连接,并通过控制转轴15和16的旋转带动工具14到达不同位置。As shown in FIG. 1, FIG. 1 is a schematic structural view of an industrial robot according to a first embodiment of the present invention. The industrial robot of the present embodiment mainly includes a base 11, robot arms 12, 13, and a tool 14 equipped at the end of the robot arm 13. The mechanical arm 12 and the base 11 and between the mechanical arms 12 and 13 are respectively connected by the rotating shafts 15 and 16, and the tool 14 is driven to reach different positions by controlling the rotation of the rotating shafts 15 and 16.
为了方便地描述机器人的运动或位姿变化,一般规定机器人存在如下坐标系:(1)世界坐标系,用户指定与大地固连的一个坐标系,在操作过程中此坐标系不发生变化,例如图1中由原点o1和坐标轴x1和y1所定义的坐标系;(2)基坐标系,基于机器人基座的坐标系,操作过程中一般也不发生变化,例如图1中由原点o2和坐标轴x2和y2所定义的坐标系。一般来说,在多个机器人协作时,每个机器人有自己的基坐标系,而世界坐标系是基坐标系的共同参考坐标系;(3)法兰坐标系,位于机器人末端的连接工具的那段机械臂的坐标系,例 如图1中由原点o3和坐标轴x3和y3所定义的坐标系。一般来说,机器人姿态发生变化时,法兰坐标系随着变化。(4)工具坐标系,位于工具上的坐标系,例如图1中由原点o4和坐标轴x4和y4所定义的坐标系。In order to conveniently describe the movement or pose change of the robot, it is generally prescribed that the robot has the following coordinate system: (1) the world coordinate system, the user specifies a coordinate system fixed to the earth, and the coordinate system does not change during the operation, for example In Fig. 1, the coordinate system defined by the origin o1 and the coordinate axes x1 and y1; (2) the base coordinate system, based on the coordinate system of the robot base, generally does not change during operation, for example, the origin o2 and The coordinate system defined by the axes x2 and y2. Generally speaking, when multiple robots cooperate, each robot has its own base coordinate system, and the world coordinate system is the common reference coordinate system of the base coordinate system; (3) the flange coordinate system, the connection tool at the end of the robot The coordinate system of the robot arm, for example The coordinate system defined by the origin o3 and the coordinate axes x3 and y3 in Fig. 1. In general, when the attitude of the robot changes, the flange coordinate system changes. (4) Tool coordinate system, a coordinate system located on the tool, such as the coordinate system defined by the origin o4 and the coordinate axes x4 and y4 in FIG.
进一步如图2所示,图2是根据本发明第二实施例的工业机器人的工具坐标系原点的标定方法的流程示意图。在本实施例中,在不借助外部标准的测量工具情况下,只需通过工业机器人的自身运动即可标定得到工具坐标系原点坐标,并且可以进一步给出标定误差。具体来说,本实施例的标定方法包括以下步骤:Further, as shown in FIG. 2, FIG. 2 is a flow chart showing a calibration method of the origin of the tool coordinate system of the industrial robot according to the second embodiment of the present invention. In the present embodiment, the tool coordinate system origin coordinates can be obtained by calibration of the industrial robot without the aid of an external standard measurement tool, and the calibration error can be further given. Specifically, the calibration method of this embodiment includes the following steps:
步骤21,控制机器人带动安装在机器人末端的待标定工具14运动,使待标定工具14的工具坐标系原点o4沿N条不同的轨迹(例如,图1中虚线所示的轨迹)到达一个固定的参考点o5;Step 21: The control robot drives the to-be-calibrated tool 14 installed at the end of the robot to move, so that the tool coordinate origin d4 of the tool to be calibrated 14 reaches a fixed position along N different trajectories (for example, the trajectory shown by the dotted line in FIG. 1). Reference point o5;
在本步骤中,N为大于或等于3的整数,并进一步优选地,工具坐标系原点o4沿着不同轨迹到达参考点o5时,机器人的法兰坐标系原点o3与工具坐标系原点o4的连线不重合,例如在工具坐标系原点o4沿着不同轨迹到达参考点o5时,上述连线之间的夹角大于5度;In this step, N is an integer greater than or equal to 3, and further preferably, when the tool coordinate system origin o4 reaches the reference point o5 along different trajectories, the origin of the flange coordinate system o3 of the robot is connected with the origin o4 of the tool coordinate system. The lines do not coincide, for example, when the tool coordinate system origin o4 reaches the reference point o5 along different tracks, the angle between the above lines is greater than 5 degrees;
步骤22,分别记录每次工具坐标系原点o4到达参考点o5时机器人各轴(例如,转轴15、16)的旋转角度; Step 22, respectively recording the rotation angle of each axis of the robot (for example, the rotating shafts 15, 16) when the tool coordinate system origin o4 reaches the reference point o5;
步骤23,根据记录的N组旋转角度计算工具坐标系原点o4在机器人的法兰坐标系(图1中由o3、x3和y3定义的坐标系)中的坐标值。In step 23, coordinate values of the tool coordinate system origin o4 in the flange coordinate system of the robot (the coordinate system defined by o3, x3, and y3 in Fig. 1) are calculated according to the recorded N sets of rotation angles.
在本步骤中,优选从记录的N组旋转角度中任意选择三组,计算得到对应的法兰坐标系的三组齐次矩阵,并进一步由三组齐次矩阵计算得到工具坐标系原点o4在法兰坐标系中的坐标值。In this step, it is preferable to arbitrarily select three groups from the recorded N sets of rotation angles, calculate three sets of homogeneous matrices of the corresponding flange coordinate system, and further calculate the origin of the tool coordinate system o4 by the three sets of homogeneous matrices. The coordinate value in the flange coordinate system.
具体来说,运用正运动学算法由选择的三组旋转角度分别计算得到对应的法兰坐标系的三组齐次矩阵,分别表示为:Specifically, using the forward kinematics algorithm, the three sets of homogeneous matrices of the corresponding flange coordinate system are respectively calculated from the selected three sets of rotation angles, which are respectively expressed as:
Figure PCTCN2016112328-appb-000007
以及
Figure PCTCN2016112328-appb-000008
Figure PCTCN2016112328-appb-000007
as well as
Figure PCTCN2016112328-appb-000008
其中,R1、R2和R3分别为3×3的矩阵,用于分别表示三组旋转角度对应的三次工具坐标系原点o4到达参考点o5时的法兰坐标系的方向,O1、O2和O3分别为3×1的矩阵,用于分别表示三组旋转角度对应的三次工具坐标系原点o4到达参考点o5时的法兰坐标系原点o3的坐标。在上述表达式中,可以将世界 坐标系或基坐标系作为参考坐标系来计算法兰坐标系的方向以及原点o3的坐标。进一步,运用正运动学算法根据机器人的各轴的旋转角度来计算齐次矩阵为本领域公知常识,在此不再赘述。Wherein, R 1 , R 2 and R 3 are respectively a matrix of 3×3, which are respectively used to indicate the direction of the flange coordinate system when the origin o4 of the three-tool coordinate system corresponding to the three sets of rotation angles reaches the reference point o5, O 1 , O 2 and O 3 are respectively a matrix of 3 × 1 for respectively indicating the coordinates of the origin o3 of the flange coordinate system when the origin o4 of the three-tool coordinate system corresponding to the three sets of rotation angles reaches the reference point o5. In the above expression, the world coordinate system or the base coordinate system can be used as the reference coordinate system to calculate the direction of the flange coordinate system and the coordinates of the origin o3. Further, the calculation of the homogeneous matrix based on the rotation angle of each axis of the robot using the forward kinematics algorithm is common knowledge in the art, and will not be described herein.
随后,进一步定义:Subsequently, further defined:
Figure PCTCN2016112328-appb-000009
Figure PCTCN2016112328-appb-000009
其中,OT为3×1的矩阵,XT、YT、ZT用于表示工具坐标系原点o4在法兰坐标系中的坐标值。进一步由于上述三组旋转角度数据对应的工具坐标系原点o4在运动过程中达到同一个参考点o5,即此时三组旋转角度数据对应的工具坐标系原点o4的坐标相同,所以可以列出如下方程:Wherein, O T is a matrix of 3×1, and X T , Y T , and Z T are used to represent coordinate values of the tool coordinate system origin o4 in the flange coordinate system. Further, since the tool coordinate system origin o4 corresponding to the three sets of rotation angle data reaches the same reference point o5 during the motion, that is, the coordinate of the tool coordinate system origin o4 corresponding to the three sets of rotation angle data is the same, so it can be listed as follows equation:
Figure PCTCN2016112328-appb-000010
Figure PCTCN2016112328-appb-000010
Figure PCTCN2016112328-appb-000011
Figure PCTCN2016112328-appb-000011
展开后得到:Expanded to get:
R1OT+O1=R2OT+O2 R 1 O T +O 1 =R 2 O T +O 2
R3OT+O3=R2OT+O2 R 3 O T +O 3 =R 2 O T +O 2
将上面两个式子左右相加可得:Add the above two equations left and right to get:
(R1+R3)OT+O1+O3=2R2OT+2O2 (R 1 +R 3 )O T +O 1 +O 3 =2R 2 O T +2O 2
(R1+R3-2R2)OT=2O2-O1-O3 (R 1 +R 3 -2R 2 )O T =2O 2 -O 1 -O 3
最终可得:Finally available:
OT=(R1+R3-2R2)-1(2O2-O1-O3)O T =(R 1 +R 3 -2R 2 ) -1 (2O 2 -O 1 -O 3 )
进而,利用上述公式可以计算出工具坐标系原点在法兰坐标系中的坐标值。 Furthermore, using the above formula, the coordinate values of the origin of the tool coordinate system in the flange coordinate system can be calculated.
由此可见,通过上述方法可以在不借助外部标准的测量工具情况下,只需通过工业机器人的自身运动即可标定得到工具坐标系原点o4在法兰坐标系内的坐标。It can be seen that the above method can be used to calibrate the coordinates of the origin of the tool coordinate system origin o4 in the flange coordinate system without the aid of an external standard measuring tool.
进一步,如图2所示,本实施例的方法进一步优选而非必须包括:Further, as shown in FIG. 2, the method of this embodiment is further preferred and does not have to include:
步骤24,计算工具坐标系原点o4在法兰坐标系内的坐标值的误差。In step 24, the error of the coordinate value of the tool coordinate system origin o4 in the flange coordinate system is calculated.
此时,需要在步骤21和22中控制工具坐标系原点o4沿至少4条不同的轨迹到达参考点o5,并记录至少4组旋转角度,即N为大于或等于4的整数,并根据上述步骤计算得到的上述三组齐次矩阵中的至少一个、OT以及剩余的至少一组旋转角度计算工具坐标系原点在法兰坐标系中的坐标值的误差。At this time, it is necessary to control the tool coordinate system origin o4 to reach the reference point o5 along at least four different trajectories in steps 21 and 22, and record at least four sets of rotation angles, that is, N is an integer greater than or equal to 4, and according to the above steps Calculating at least one of the above three sets of homogeneous matrices, O T and the remaining at least one set of rotation angles to calculate an error of the coordinate value of the tool coordinate system origin in the flange coordinate system.
具体来说,运用正运动学算法由剩余的至少一组旋转角度计算得到对应的法兰坐标系的至少一个第四组齐次矩阵,并表示为:Specifically, at least one fourth set of homogeneous matrices of the corresponding flange coordinate system is calculated from the remaining at least one set of rotation angles using a forward kinematics algorithm and expressed as:
Figure PCTCN2016112328-appb-000012
Figure PCTCN2016112328-appb-000012
其中,R4为3×3的矩阵,用于表示剩余的至少一组旋转角度对应的工具坐标系原点到达参考点时的法兰坐标系的方向,O4为3×1的矩阵,用于表示剩余的至少一组旋转角度对应的工具坐标系原点到达参考点时的法兰坐标系原点的坐标,并进一步根据上述三组齐次矩阵中的至少一个、OT和第四组齐次矩阵计算工具坐标系原点在法兰坐标系中的坐标值的误差,具体利用如下公式计算工具坐标系原点在法兰坐标系中的坐标值的误差:Wherein, R 4 is a 3×3 matrix, which is used to indicate the direction of the flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point, and O 4 is a matrix of 3×1, and is used for Representing the coordinates of the origin of the flange coordinate system when the origin of the tool coordinate system corresponding to the remaining at least one set of rotation angles reaches the reference point, and further according to at least one of the above three sets of homogeneous matrices, O T and the fourth set of homogeneous matrices Calculate the error of the coordinate value of the tool coordinate system origin in the flange coordinate system. Specifically calculate the error of the coordinate value of the tool coordinate system origin in the flange coordinate system by the following formula:
Tn=RnOT+On T n =R n O T +O n
T4=R4OT+O4 T 4 =R 4 O T +O 4
err=|Tn-T4|Err=|T n -T 4 |
在上述表达式中,Rn和On分别为上述三组齐次矩阵中的R1、R2和R3中的任意一个以及O1、O2和O3中的对应一个,err表示误差值。In the above expression, R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the above three sets of homogeneous matrices, and err represents an error. value.
在上述步骤中,可以根据剩余的两组以上的旋转角度分别各自计算工具坐标系原点在法兰坐标系中的坐标值的误差,并最后将计算得到的两个以上误差进行求平均而得到最终的误差。In the above steps, the error of the coordinate value of the tool coordinate system origin in the flange coordinate system may be respectively calculated according to the remaining two or more rotation angles, and finally the calculated two or more errors are averaged to obtain the final Error.
如图3所示,图3是根据本发明第三实施例的工业机器人的工具坐标系原 点的标定装置的示意框图。本实施例的标定装置包括控制单元31、记录单元32以及坐标计算单元33。其中,控制单元31用于控制机器人带动安装在机器人末端的待标定工具14运动,使待标定工具14的工具坐标系原点o4沿N条不同的轨迹到达一个固定的参考点o5,N为大于或等于3的整数。工具坐标系原点o4沿着不同轨迹到达参考点o5时,机器人的法兰坐标系原点o3与工具坐标系原点o4的连线不重合。As shown in FIG. 3, FIG. 3 is a tool coordinate system of an industrial robot according to a third embodiment of the present invention. A schematic block diagram of the calibration device for the point. The calibration device of this embodiment includes a control unit 31, a recording unit 32, and a coordinate calculation unit 33. The control unit 31 is configured to control the movement of the tool to be calibrated 14 installed at the end of the robot, so that the origin o4 of the tool coordinate system of the tool to be calibrated reaches a fixed reference point o5 along N different trajectories, where N is greater than or An integer equal to 3. When the tool coordinate system origin o4 reaches the reference point o5 along different trajectories, the origin of the robot's flange coordinate system origin o3 does not coincide with the line of the tool coordinate system origin o4.
记录单元32用于分别记录每次工具坐标系原点o4到达参考点o5时机器人各轴的旋转角度。坐标计算单元33用于根据记录的N组旋转角度计算工具坐标系原点o4在机器人的法兰坐标系中的坐标值。The recording unit 32 is for separately recording the rotation angle of each axis of the robot each time the tool coordinate system origin o4 reaches the reference point o5. The coordinate calculation unit 33 is configured to calculate the coordinate value of the tool coordinate system origin o4 in the flange coordinate system of the robot based on the recorded N sets of rotation angles.
进一步,计算单元33包括第一子坐标计算单元331和第二子坐标计算单元332。其中,第一子坐标计算单元331用于从记录的N组旋转角度中任意选择三组,计算得到对应的法兰坐标系的三组齐次矩阵,第二子坐标计算单元332用于根据三组齐次矩阵计算得到工具坐标系原点在法兰坐标系中的坐标值。Further, the calculation unit 33 includes a first sub-coordinate calculation unit 331 and a second sub-coordinate calculation unit 332. The first sub-coordinate calculation unit 331 is configured to arbitrarily select three groups from the recorded N sets of rotation angles, and calculate three sets of homogeneous matrices of the corresponding flange coordinate system, and the second sub-coordinate calculation unit 332 is configured to The group homogeneous matrix is calculated to obtain the coordinate value of the origin of the tool coordinate system in the flange coordinate system.
具体来说,第一子坐标计算单元331运用正运动学算法由选择的三组旋转角度分别计算得到对应的法兰坐标系的三组齐次矩阵,分别表示为:Specifically, the first sub-coordinate calculation unit 331 calculates the three sets of homogeneous matrices of the corresponding flange coordinate system by using the positive kinematics algorithm from the selected three sets of rotation angles, respectively:
Figure PCTCN2016112328-appb-000013
以及
Figure PCTCN2016112328-appb-000014
Figure PCTCN2016112328-appb-000013
as well as
Figure PCTCN2016112328-appb-000014
在上述表达式中,R1、R2和R3分别为3×3的矩阵,用于分别表示三组旋转角度对应的三次工具坐标系原点o4到达参考点o5时的法兰坐标系的方向,O1、O2和O3分别为3×1的矩阵,用于分别表示三组旋转角度对应的三次工具坐标系原点o4到达参考点o5时的法兰坐标系原点o3的坐标。In the above expression, R 1 , R 2 and R 3 are respectively 3×3 matrices for respectively indicating the direction of the flange coordinate system when the origin o2 of the three-tool coordinate system corresponding to the three sets of rotation angles reaches the reference point o5. , O 1 , O 2 , and O 3 are respectively a matrix of 3×1, and are used to respectively represent the coordinates of the origin o3 of the flange coordinate system when the origin o4 of the three-tool coordinate system corresponding to the three sets of rotation angles reaches the reference point o5.
第二子坐标计算单元332利用如下公式计算工具坐标系原点o4在法兰坐标系中的坐标值:The second sub-coordinate calculation unit 332 calculates the coordinate value of the tool coordinate system origin o4 in the flange coordinate system using the following formula:
OT=(R1+R3-2R2)-1(2O2-O1-O3)   (2)O T =(R 1 +R 3 -2R 2 ) -1 (2O 2 -O 1 -O 3 ) (2)
在上述表达式中,OT为3×1的矩阵,用于表示工具坐标系原点o4在法兰坐标系中的坐标值。In the above expression, O T is a 3 × 1 matrix for indicating the coordinate value of the tool coordinate system origin o4 in the flange coordinate system.
再进一步优选地实施例中,N为大于或等于4的整数,上述标定装置还包括误差计算单元34,用于根据上述三组齐次矩阵中的至少一个、OT以及剩余的至少一组旋转角度计算工具坐标系原点o4在法兰坐标系中的坐标值的误差。 Still further preferred embodiment, N is an integer greater than or equal to 4, said apparatus further comprising a calibration error calculating unit 34, according to the above-described three homogeneous matrix of at least one, O T and at least a set of rotating the remaining The angle calculation tool coordinate system origin o4 error in the coordinate value of the flange coordinate system.
具体来说,误差计算单元34包括第一子误差计算单元341和第二子误差计算单元342。第一子误差计算单元34用于运用正运动学算法由剩余的至少一组旋转角度计算得到对应的法兰坐标系的至少一个第四组齐次矩阵,并表示为:Specifically, the error calculation unit 34 includes a first sub-error calculation unit 341 and a second sub-error calculation unit 342. The first sub-error calculating unit 34 is configured to calculate at least one fourth set of homogeneous matrices of the corresponding flange coordinate system from the remaining at least one set of rotation angles by using a forward kinematics algorithm, and is expressed as:
Figure PCTCN2016112328-appb-000015
Figure PCTCN2016112328-appb-000015
在上述表达式中,R4为3×3的矩阵,用于表示剩余的至少一组旋转角度对应的工具坐标系原点o4到达参考点o5时的法兰坐标系的方向,O4为3×1的矩阵,用于表示剩余的至少一组旋转角度对应的工具坐标系原点o4到达参考点o5时的法兰坐标系原点的坐标。In the above expression, R 4 is a 3×3 matrix for indicating the direction of the flange coordinate system when the tool coordinate system origin o4 corresponding to the remaining at least one set of rotation angles reaches the reference point o5, and O 4 is 3×. A matrix of 1 for indicating the coordinates of the origin of the flange coordinate system when the tool coordinate system origin o4 corresponding to the remaining at least one set of rotation angles reaches the reference point o5.
第二子误差计算单元342用于根据上述三组齐次矩阵中的至少一个、OT和第四组齐次矩阵计算工具坐标系原点o4在法兰坐标系中的坐标值的误差。具体来说,第二子误差计算单元342利用如下公式计算工具坐标系原点o4在法兰坐标系中的坐标值的误差:The second sub-error calculating unit 342 is configured to calculate an error of the coordinate value of the tool coordinate system origin o4 in the flange coordinate system according to at least one of the three sets of homogeneous matrices, O T and the fourth set of homogeneous matrices. Specifically, the second sub-error calculation unit 342 calculates the error of the coordinate value of the tool coordinate system origin o4 in the flange coordinate system using the following formula:
Tn=RnOT+On T n =R n O T +O n
T4=R4OT+O4 T 4 =R 4 O T +O 4
err=|Tn-T4|Err=|T n -T 4 |
在上述表达式中,Rn和On分别为上述三组齐次矩阵中的R1、R2和R3中的任意一个以及O1、O2和O3中的对应一个,err表示误差值。In the above expression, R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the above three sets of homogeneous matrices, and err represents an error. value.
如图4所示,图4是根据本发明第四实施例的工业机器人的工具坐标系原点的标定装置的示意框图。本实施例的标定装置包括处理器41和存储器42。处理器41与存储器42连接,并通过运行存储器42内存储的程序执行参照图2描述的本发明的第二实施例所示的标定方法中的各步骤。As shown in FIG. 4, FIG. 4 is a schematic block diagram of a calibration device for the origin of the tool coordinate system of the industrial robot according to the fourth embodiment of the present invention. The calibration apparatus of this embodiment includes a processor 41 and a memory 42. The processor 41 is connected to the memory 42 and executes the steps in the calibration method shown in the second embodiment of the present invention described with reference to Fig. 2 by running a program stored in the memory 42.
综上所述,本领域技术人员容易理解,在本发明实施例所提供的工业机器人的工具坐标系原点的标定方法及装置中,无需借助外部标准的测量工具,只需通过工业机器人的自身运动即可标定得到工具坐标系原点坐标,并且可以进一步给出标定误差。In summary, those skilled in the art can easily understand that in the calibration method and device for the origin of the tool coordinate system of the industrial robot provided by the embodiment of the present invention, it is only necessary to pass the self-movement of the industrial robot without using the external standard measurement tool. The tool coordinate system origin coordinates can be calibrated and the calibration error can be further given.
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接 运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 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 transformation, or direct or indirect, using the description of the present invention and the contents of the drawings. The use of other related technical fields is equally included in the scope of patent protection of the present invention.

Claims (20)

  1. 一种工业机器人的工具坐标系原点的标定方法,其特征在于,包括:A method for calibrating an origin of a tool coordinate system of an industrial robot, comprising:
    控制机器人带动安装在机器人末端的待标定工具运动,使所述待标定工具的工具坐标系原点沿N条不同的轨迹到达一个固定的参考点,其中,所述工具坐标系原点沿着不同轨迹到达所述参考点时,所述机器人的法兰坐标系原点与所述工具坐标系原点的连线不重合,N为大于或等于3的整数;Controlling the robot to drive the tool to be calibrated installed at the end of the robot, so that the origin of the tool coordinate system of the tool to be calibrated reaches a fixed reference point along N different trajectories, wherein the origin of the tool coordinate system arrives along different trajectories In the reference point, the origin of the flange coordinate system origin of the robot does not coincide with the line connecting the origin of the tool coordinate system, and N is an integer greater than or equal to 3;
    分别记录每次所述工具坐标系原点到达所述参考点时机器人各轴的旋转角度;Recording, respectively, a rotation angle of each axis of the robot each time the origin of the tool coordinate system reaches the reference point;
    根据记录的N组旋转角度计算所述工具坐标系原点在所述机器人的法兰坐标系中的坐标值。The coordinate values of the tool coordinate system origin in the flange coordinate system of the robot are calculated according to the recorded N sets of rotation angles.
  2. 根据权利要求1所述的方法,其特征在于,所述根据记录的N组旋转角度计算所述工具坐标系原点在所述机器人的法兰坐标系中的坐标值的步骤包括:The method according to claim 1, wherein the step of calculating the coordinate value of the tool coordinate system origin in the flange coordinate system of the robot according to the recorded N sets of rotation angles comprises:
    从记录的N组旋转角度中任意选择三组,计算得到对应的所述法兰坐标系的三组齐次矩阵;Three groups are randomly selected from the recorded N sets of rotation angles, and three corresponding homogeneous matrices of the flange coordinate system are calculated;
    由所述三组齐次矩阵计算得到所述工具坐标系原点在所述法兰坐标系中的坐标值。The coordinate values of the origin of the tool coordinate system in the flange coordinate system are calculated by the three sets of homogeneous matrices.
  3. 根据权利要求2所述的方法,其特征在于,所述从记录的N组旋转角度中任意选择三组,计算得到对应的所述法兰坐标系的三组齐次矩阵的步骤包括:The method according to claim 2, wherein the step of arbitrarily selecting three groups from the recorded N sets of rotation angles, and calculating the corresponding three sets of homogeneous matrices of the flange coordinate system comprises:
    运用正运动学算法由选择的三组旋转角度分别计算得到对应的所述法兰坐标系的三组齐次矩阵,分别表示为:Using the forward kinematics algorithm, the three sets of homogeneous matrices of the corresponding flange coordinate system are respectively calculated from the selected three sets of rotation angles, which are respectively expressed as:
    Figure PCTCN2016112328-appb-100001
    以及
    Figure PCTCN2016112328-appb-100002
    Figure PCTCN2016112328-appb-100001
    as well as
    Figure PCTCN2016112328-appb-100002
    其中,R1、R2和R3分别为3×3的矩阵,用于分别表示所述三组旋转角度对应的三次所述工具坐标系原点到达所述参考点时的所述法兰坐标系的方向,O1、O2和O3分别为3×1的矩阵,用于分别表示所述三组旋转角度对应的三次所述工具坐标系原点到达所述参考点时的所述法兰坐标系原点的坐标。Wherein R 1 , R 2 and R 3 are respectively a matrix of 3×3 for respectively representing the flange coordinate system when the origin of the tool coordinate system corresponding to the three sets of rotation angles reaches the reference point The directions, O 1 , O 2 and O 3 are respectively 3×1 matrices for respectively representing the flange coordinates when the origin of the tool coordinate system corresponding to the three sets of rotation angles reaches the reference point The coordinates of the origin.
  4. 根据权利要求3所述的方法,其特征在于,所述由所述三组齐次矩阵计算得到所述工具坐标系原点在所述法兰坐标系中的坐标值的步骤包括:The method according to claim 3, wherein the step of calculating the coordinate values of the tool coordinate system origin in the flange coordinate system by the three sets of homogeneous matrices comprises:
    利用如下公式计算所述工具坐标系原点在所述法兰坐标系中的坐标值: Calculating the coordinate values of the origin of the tool coordinate system in the flange coordinate system by using the following formula:
    OT=(R1+R3-2R2)-1(2O2-O1-O3)O T =(R 1 +R 3 -2R 2 ) -1 (2O 2 -O 1 -O 3 )
    其中,OT为3×1的矩阵,用于表示所述工具坐标系原点在所述法兰坐标系中的坐标值。Wherein, O T is a matrix of 3×1 for indicating the coordinate value of the origin of the tool coordinate system in the flange coordinate system.
  5. 根据权利要求4所述的方法,其特征在于,N为大于或等于4的整数,所述方法还包括:The method according to claim 4, wherein N is an integer greater than or equal to 4, the method further comprising:
    根据所述三组齐次矩阵中的至少一个、OT以及剩余的至少一组旋转角度计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差。Calculating an error of a coordinate value of the tool coordinate system origin in the flange coordinate system according to at least one of the three sets of homogeneous matrices, O T and the remaining at least one set of rotation angles.
  6. 根据权利要求5所述的方法,其特征在于,所述根据三组齐次矩阵中的至少一个、OT以及剩余的至少一组旋转角度计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差的步骤包括:The method according to claim 5, wherein said calculating said tool coordinate system origin in said flange coordinate system according to at least one of three sets of homogeneous matrices, O T and remaining remaining at least one set of rotation angles The steps of the error in the coordinate values include:
    运用正运动学算法由剩余的至少一组旋转角度计算得到对应的所述法兰坐标系的至少一个第四组齐次矩阵,并表示为:Calculating, by using a positive kinematics algorithm, at least one fourth set of homogeneous matrices of the corresponding flange coordinate system from the remaining at least one set of rotation angles, and expressing:
    Figure PCTCN2016112328-appb-100003
    Figure PCTCN2016112328-appb-100003
    其中,R4为3×3的矩阵,用于表示剩余的至少一组旋转角度对应的所述工具坐标系原点到达所述参考点时的所述法兰坐标系的方向;O4为3×1的矩阵,用于表示剩余的至少一组旋转角度对应的所述工具坐标系原点到达所述参考点时的所述法兰坐标系原点的坐标;Wherein R 4 is a 3×3 matrix, which is used to indicate the direction of the flange coordinate system when the tool coordinate system origin corresponding to the remaining at least one set of rotation angles reaches the reference point; O 4 is 3× a matrix of 1 for indicating coordinates of an origin of the flange coordinate system when the tool coordinate system origin corresponding to the remaining at least one set of rotation angles reaches the reference point;
    根据所述三组齐次矩阵中的至少一个、OT和所述第四组齐次矩阵计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差。Calculating an error of a coordinate value of the tool coordinate system origin in the flange coordinate system according to at least one of the three sets of homogeneous matrices, O T and the fourth set of homogeneous matrices.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述三组齐次矩阵中的至少一个、OT和所述第四组齐次矩阵计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差的步骤包括:The method according to claim 6, wherein said calculating said tool coordinate system origin according to said method according to at least one of said three sets of homogeneous matrices, O T and said fourth set of homogeneous matrices The steps of the error of the coordinate values in the blue coordinate system include:
    利用如下公式计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差:Calculating the error of the coordinate value of the origin of the tool coordinate system in the flange coordinate system by using the following formula:
    Tn=RnOT+On T n =R n O T +O n
    T4=R4OT+O4 T 4 =R 4 O T +O 4
    err=|Tn-T4|Err=|T n -T 4 |
    其中,Rn和On分别为所述三组齐次矩阵中的R1、R2和R3中的任意一个以及O1、O2和O3中的对应一个,err表示误差值。Wherein R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the three sets of homogeneous matrices, and err represents an error value.
  8. 一种工业机器人的工具坐标系原点的标定装置,其特征在于,所述装置包括:A calibration device for an origin coordinate of a tool coordinate system of an industrial robot, characterized in that the device comprises:
    控制单元,用于控制机器人带动安装在机器人末端的待标定工具运动,使所述待标定工具的工具坐标系原点沿N条不同的轨迹到达一个固定的参考点,其中,所述工具坐标系原点沿着不同轨迹到达所述参考点时,所述机器人的法兰坐标系原点与所述工具坐标系原点的连线不重合,N为大于或等于3的整数;a control unit, configured to control the movement of the tool to be calibrated installed at the end of the robot, so that the origin of the tool coordinate system of the tool to be calibrated reaches a fixed reference point along N different trajectories, wherein the tool coordinate system origin When the reference point is reached along different trajectories, the origin of the flange coordinate system origin of the robot does not coincide with the line connecting the origin of the tool coordinate system, and N is an integer greater than or equal to 3;
    记录单元,用于分别记录每次所述工具坐标系原点到达所述参考点时机器人各轴的旋转角度;a recording unit, configured to separately record a rotation angle of each axis of the robot each time the origin of the tool coordinate system reaches the reference point;
    坐标计算单元,用于根据记录的N组旋转角度计算所述工具坐标系原点在所述机器人的法兰坐标系中的坐标值。And a coordinate calculation unit configured to calculate coordinate values of the tool coordinate system origin in the flange coordinate system of the robot according to the recorded N sets of rotation angles.
  9. 根据权利要求8所述的标定装置,其特征在于,所述坐标计算单元包括:The calibration device according to claim 8, wherein the coordinate calculation unit comprises:
    第一子坐标计算单元,用于从记录的N组旋转角度中任意选择三组,计算得到对应的所述法兰坐标系的三组齐次矩阵;a first sub-coordinate calculation unit, configured to arbitrarily select three groups from the recorded N sets of rotation angles, and calculate three corresponding homogeneous matrices of the flange coordinate system;
    第二子坐标计算单元,用于根据所述三组齐次矩阵计算得到所述工具坐标系原点在所述法兰坐标系中的坐标值。And a second sub-coordinate calculation unit configured to calculate coordinate values of the tool coordinate system origin in the flange coordinate system according to the three sets of homogeneous matrices.
  10. 根据权利要求9所述的标定装置,其特征在于,所述第一子坐标计算单元运用正运动学算法由选择的三组旋转角度分别计算得到对应的所述法兰坐标系的三组齐次矩阵,分别表示为:The calibration device according to claim 9, wherein the first sub-coordinate calculation unit calculates three sets of the corresponding flange coordinate systems by using the positive kinematics algorithm from the selected three sets of rotation angles. The matrix is expressed as:
    Figure PCTCN2016112328-appb-100004
    以及
    Figure PCTCN2016112328-appb-100004
    as well as
    其中,R1、R2和R3分别为3×3的矩阵,用于分别表示所述三组旋转角度对应的三次所述工具坐标系原点到达所述参考点时的所述法兰坐标系的方向,O1、O2和O3分别为3×1的矩阵,用于分别表示所述三组旋转角度对应的三次所述工具坐标系原点到达所述参考点时的所述法兰坐标系原点的坐标。Wherein R 1 , R 2 and R 3 are respectively a matrix of 3×3 for respectively representing the flange coordinate system when the origin of the tool coordinate system corresponding to the three sets of rotation angles reaches the reference point The directions, O 1 , O 2 and O 3 are respectively 3×1 matrices for respectively representing the flange coordinates when the origin of the tool coordinate system corresponding to the three sets of rotation angles reaches the reference point The coordinates of the origin.
  11. 根据权利要求10所述的标定装置,其特征在于,所述第二子坐标计算单元利用如下公式计算所述工具坐标系原点在所述法兰坐标系中的坐标值: The calibration device according to claim 10, wherein the second sub-coordinate calculation unit calculates a coordinate value of the tool coordinate system origin in the flange coordinate system by using the following formula:
    OT=(R1+R3-2R2)-1(2O2-O1-O3)O T =(R 1 +R 3 -2R 2 ) -1 (2O 2 -O 1 -O 3 )
    其中,OT为3×1的矩阵,用于表示所述工具坐标系原点在所述法兰坐标系中的坐标值。Wherein, O T is a matrix of 3×1 for indicating the coordinate value of the origin of the tool coordinate system in the flange coordinate system.
  12. 根据权利要求11所述的标定装置,其特征在于,N为大于或等于4的整数,所述装置还包括误差计算单元,用于根据所述三组齐次矩阵中的至少一个、OT以及剩余的至少一组旋转角度计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差。The calibration apparatus according to claim 11, wherein N is an integer greater than or equal to 4, and said apparatus further comprises an error calculation unit for performing at least one of said three sets of homogeneous matrices, O T and The remaining at least one set of rotation angles calculates an error of coordinate values of the tool coordinate system origin in the flange coordinate system.
  13. 根据权利要求12所述的标定装置,其特征在于,所述误差计算单元包括:The calibration apparatus according to claim 12, wherein the error calculation unit comprises:
    第一子误差计算单元,用于运用正运动学算法由剩余的至少一组旋转角度计算得到对应的所述法兰坐标系的至少一个第四组齐次矩阵,并表示为:a first sub-error calculating unit configured to calculate, by using a forward kinematics algorithm, at least one fourth set of homogeneous matrices of the corresponding flange coordinate system from the remaining at least one set of rotation angles, and expressed as:
    Figure PCTCN2016112328-appb-100006
    Figure PCTCN2016112328-appb-100006
    其中,R4为3×3的矩阵,用于表示剩余的至少一组旋转角度对应的所述工具坐标系原点到达所述参考点时的所述法兰坐标系的方向;O4为3×1的矩阵,用于表示剩余的至少一组旋转角度对应的所述工具坐标系原点到达所述参考点时的所述法兰坐标系原点的坐标;Wherein R 4 is a 3×3 matrix, which is used to indicate the direction of the flange coordinate system when the tool coordinate system origin corresponding to the remaining at least one set of rotation angles reaches the reference point; O 4 is 3× a matrix of 1 for indicating coordinates of an origin of the flange coordinate system when the tool coordinate system origin corresponding to the remaining at least one set of rotation angles reaches the reference point;
    第二子误差计算单元,用于根据所述三组齐次矩阵中的至少一个、OT和所述第四组齐次矩阵计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差。a second sub-error calculating unit, configured to calculate coordinates of an origin of the tool coordinate system in the flange coordinate system according to at least one of the three sets of homogeneous matrices, O T and the fourth set of homogeneous matrices The error of the value.
  14. 根据权利要求13所述的标定装置,其特征在于,所述第二子误差计算单元利用如下公式计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差:The calibration apparatus according to claim 13, wherein the second sub-error calculation unit calculates an error of a coordinate value of the tool coordinate system origin in the flange coordinate system by using the following formula:
    Tn=RnOT+On T n =R n O T +O n
    T4=R4OT+O4 T 4 =R 4 O T +O 4
    err=|Tn-T4|Err=|T n -T 4 |
    其中,Rn和On分别为所述三组齐次矩阵中的R1、R2和R3中的任意一个以 及O1、O2和O3中的对应一个,err表示误差值。Wherein R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the three sets of homogeneous matrices, and err represents an error value.
  15. 一种工业机器人的工具坐标系原点的标定装置,其特征在于,所述标定装置包括处理器及与所述处理器连接的存储器,其中,所述处理器通过运行所述存储器内存储的程序执行以下步骤:A calibration device for an origin coordinate of a tool coordinate system of an industrial robot, characterized in that the calibration device comprises a processor and a memory connected to the processor, wherein the processor executes by executing a program stored in the memory The following steps:
    控制机器人带动安装在机器人末端的待标定工具运动,使所述待标定工具的工具坐标系原点沿N条不同的轨迹到达一个固定的参考点,其中,所述工具坐标系原点沿着不同轨迹到达所述参考点时,所述机器人的法兰坐标系原点与所述工具坐标系原点的连线不重合,N为大于或等于3的整数;Controlling the robot to drive the tool to be calibrated installed at the end of the robot, so that the origin of the tool coordinate system of the tool to be calibrated reaches a fixed reference point along N different trajectories, wherein the origin of the tool coordinate system arrives along different trajectories In the reference point, the origin of the flange coordinate system origin of the robot does not coincide with the line connecting the origin of the tool coordinate system, and N is an integer greater than or equal to 3;
    分别记录每次所述工具坐标系原点到达所述参考点时机器人各轴的旋转角度;Recording, respectively, a rotation angle of each axis of the robot each time the origin of the tool coordinate system reaches the reference point;
    根据记录的N组旋转角度计算所述工具坐标系原点在所述机器人的法兰坐标系中的坐标值。The coordinate values of the tool coordinate system origin in the flange coordinate system of the robot are calculated according to the recorded N sets of rotation angles.
  16. 根据权利要求15所述的标定装置,其特征在于,所述根据记录的N组旋转角度计算所述工具坐标系原点在所述机器人的法兰坐标系中的坐标值的步骤包括:The calibration device according to claim 15, wherein the step of calculating the coordinate value of the tool coordinate system origin in the flange coordinate system of the robot according to the recorded N sets of rotation angles comprises:
    从记录的N组旋转角度中任意选择三组,计算得到对应的所述法兰坐标系的三组齐次矩阵;Three groups are randomly selected from the recorded N sets of rotation angles, and three corresponding homogeneous matrices of the flange coordinate system are calculated;
    由所述三组齐次矩阵计算得到所述工具坐标系原点在所述法兰坐标系中的坐标值。The coordinate values of the origin of the tool coordinate system in the flange coordinate system are calculated by the three sets of homogeneous matrices.
  17. 根据权利要求16所述的标定装置,其特征在于,所述从记录的N组旋转角度中任意选择三组,计算得到对应的所述法兰坐标系的三组齐次矩阵的步骤包括:The calibration device according to claim 16, wherein the step of arbitrarily selecting three groups from the recorded N sets of rotation angles, and calculating the corresponding three sets of homogeneous matrices of the flange coordinate system comprises:
    运用正运动学算法由选择的三组旋转角度分别计算得到对应的所述法兰坐标系的三组齐次矩阵,分别表示为:Using the forward kinematics algorithm, the three sets of homogeneous matrices of the corresponding flange coordinate system are respectively calculated from the selected three sets of rotation angles, which are respectively expressed as:
    Figure PCTCN2016112328-appb-100007
    以及
    Figure PCTCN2016112328-appb-100008
    Figure PCTCN2016112328-appb-100007
    as well as
    Figure PCTCN2016112328-appb-100008
    其中,R1、R2和R3分别为3×3的矩阵,用于分别表示所述三组旋转角度对应的三次所述工具坐标系原点到达所述参考点时的所述法兰坐标系的方向,O1、O2和O3分别为3×1的矩阵,用于分别表示所述三组旋转角度对应的三次所述工具坐标系原点到达所述参考点时的所述法兰坐标系原点的坐标。 Wherein R 1 , R 2 and R 3 are respectively a matrix of 3×3 for respectively representing the flange coordinate system when the origin of the tool coordinate system corresponding to the three sets of rotation angles reaches the reference point The directions, O 1 , O 2 and O 3 are respectively 3×1 matrices for respectively representing the flange coordinates when the origin of the tool coordinate system corresponding to the three sets of rotation angles reaches the reference point The coordinates of the origin.
  18. 根据权利要求16所述的标定装置,其特征在于,所述由所述三组齐次矩阵计算得到所述工具坐标系原点在所述法兰坐标系中的坐标值的步骤包括:The calibration apparatus according to claim 16, wherein the step of calculating the coordinate values of the tool coordinate system origin in the flange coordinate system by the three sets of homogeneous matrices comprises:
    利用如下公式计算所述工具坐标系原点在所述法兰坐标系中的坐标值:Calculating the coordinate values of the origin of the tool coordinate system in the flange coordinate system by using the following formula:
    OT=(R1+R3-2R2)-1(2O2-O1-O3)  (2)O T =(R 1 +R 3 -2R 2 ) -1 (2O 2 -O 1 -O 3 ) (2)
    其中,OT为3×1的矩阵,用于表示所述工具坐标系原点在所述法兰坐标系中的坐标值。Wherein, O T is a matrix of 3×1 for indicating the coordinate value of the origin of the tool coordinate system in the flange coordinate system.
  19. 根据权利要求18所述的标定装置,其特征在于,N为大于或等于4的整数,所述处理器进一步执行以下步骤:The calibration apparatus according to claim 18, wherein N is an integer greater than or equal to 4, and said processor further performs the following steps:
    根据所述三组齐次矩阵中的至少一个、OT以及剩余的至少一组旋转角度计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差。Calculating an error of a coordinate value of the tool coordinate system origin in the flange coordinate system according to at least one of the three sets of homogeneous matrices, O T and the remaining at least one set of rotation angles.
  20. 根据权利要求19所述的标定装置,其特征在于,所述根据所述三组齐次矩阵中的至少一个、OT以及剩余的至少一组旋转角度计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差的步骤包括:The calibration apparatus according to claim 19, wherein said homogeneous according to the three sets of at least one matrix, O T and at least a set of the remaining rotation angle is calculated in the origin of the tool coordinate system the method The steps of the error of the coordinate values in the blue coordinate system include:
    运用正运动学算法由剩余的至少一组旋转角度计算得到对应的所述法兰坐标系的至少一个第四组齐次矩阵,并表示为:Calculating, by using a positive kinematics algorithm, at least one fourth set of homogeneous matrices of the corresponding flange coordinate system from the remaining at least one set of rotation angles, and expressing:
    Figure PCTCN2016112328-appb-100009
    Figure PCTCN2016112328-appb-100009
    其中,R4为3×3的矩阵,用于表示剩余的至少一组旋转角度对应的所述工具坐标系原点到达所述参考点时的所述法兰坐标系的方向;O4为3×1的矩阵,用于表示剩余的至少一组旋转角度对应的所述工具坐标系原点到达所述参考点时的所述法兰坐标系原点的坐标;Wherein R 4 is a 3×3 matrix, which is used to indicate the direction of the flange coordinate system when the tool coordinate system origin corresponding to the remaining at least one set of rotation angles reaches the reference point; O 4 is 3× a matrix of 1 for indicating coordinates of an origin of the flange coordinate system when the tool coordinate system origin corresponding to the remaining at least one set of rotation angles reaches the reference point;
    利用如下公式计算所述工具坐标系原点在所述法兰坐标系中的坐标值的误差:Calculating the error of the coordinate value of the origin of the tool coordinate system in the flange coordinate system by using the following formula:
    Tn=RnOT+On T n =R n O T +O n
    T4=R4OT+O4 T 4 =R 4 O T +O 4
    err=|Tn-T4|Err=|T n -T 4 |
    其中,Rn和On分别为所述三组齐次矩阵中的R1、R2和R3中的任意一个以 及O1、O2和O3中的对应一个,err表示误差值。 Wherein R n and O n are respectively any one of R 1 , R 2 and R 3 and a corresponding one of O 1 , O 2 and O 3 in the three sets of homogeneous matrices, and err represents an error value.
PCT/CN2016/112328 2016-12-27 2016-12-27 Method and device for calibrating tool coordinate system origin of industrial robot WO2018119642A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680086636.XA CN109311155B (en) 2016-12-27 2016-12-27 Method and device for calibrating tool coordinate system origin of industrial robot
PCT/CN2016/112328 WO2018119642A1 (en) 2016-12-27 2016-12-27 Method and device for calibrating tool coordinate system origin of industrial robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112328 WO2018119642A1 (en) 2016-12-27 2016-12-27 Method and device for calibrating tool coordinate system origin of industrial robot

Publications (1)

Publication Number Publication Date
WO2018119642A1 true WO2018119642A1 (en) 2018-07-05

Family

ID=62706617

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112328 WO2018119642A1 (en) 2016-12-27 2016-12-27 Method and device for calibrating tool coordinate system origin of industrial robot

Country Status (2)

Country Link
CN (1) CN109311155B (en)
WO (1) WO2018119642A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111157004A (en) * 2019-12-31 2020-05-15 上海新时达机器人有限公司 Tool calibration method of four-axis robot with downward flange
CN113712672A (en) * 2021-11-04 2021-11-30 极限人工智能(北京)有限公司 Origin position calibration method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110561387B (en) * 2019-08-23 2022-09-02 东南大学 Method for determining a rotatable workpiece in an industrial robot system
CN111347136B (en) * 2020-04-21 2021-07-13 南京工程学院 Arc welding robot tool coordinate system on-line quick calibration system and method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103322953A (en) * 2013-05-22 2013-09-25 北京配天大富精密机械有限公司 Method and device for calibration of workpiece coordinate system, and method and device for workpiece processing
CN104165584A (en) * 2013-05-17 2014-11-26 上海三菱电梯有限公司 Non-contact high-precision calibration method and application of base reference coordinate system of robot
CN104827480A (en) * 2014-02-11 2015-08-12 泰科电子(上海)有限公司 Automatic calibration method of robot system
JP2015147280A (en) * 2014-02-07 2015-08-20 キヤノン株式会社 robot calibration method
CN105588525A (en) * 2014-11-14 2016-05-18 北京配天技术有限公司 Method and apparatus for calibrating tool on robot flange coordinate system
CN106113035A (en) * 2016-06-16 2016-11-16 华中科技大学 A kind of Six-DOF industrial robot end-of-arm tooling coordinate system caliberating device and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0778021A (en) * 1993-06-23 1995-03-20 Fanuc Ltd Position instructing method for robot and robot control unit
US9188973B2 (en) * 2011-07-08 2015-11-17 Restoration Robotics, Inc. Calibration and transformation of a camera system's coordinate system
CN105058387A (en) * 2015-07-17 2015-11-18 北京航空航天大学 Industrial robot base coordinate system calibration method based on laser tracker

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104165584A (en) * 2013-05-17 2014-11-26 上海三菱电梯有限公司 Non-contact high-precision calibration method and application of base reference coordinate system of robot
CN103322953A (en) * 2013-05-22 2013-09-25 北京配天大富精密机械有限公司 Method and device for calibration of workpiece coordinate system, and method and device for workpiece processing
JP2015147280A (en) * 2014-02-07 2015-08-20 キヤノン株式会社 robot calibration method
CN104827480A (en) * 2014-02-11 2015-08-12 泰科电子(上海)有限公司 Automatic calibration method of robot system
CN105588525A (en) * 2014-11-14 2016-05-18 北京配天技术有限公司 Method and apparatus for calibrating tool on robot flange coordinate system
CN106113035A (en) * 2016-06-16 2016-11-16 华中科技大学 A kind of Six-DOF industrial robot end-of-arm tooling coordinate system caliberating device and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111157004A (en) * 2019-12-31 2020-05-15 上海新时达机器人有限公司 Tool calibration method of four-axis robot with downward flange
CN111157004B (en) * 2019-12-31 2024-03-19 上海新时达机器人有限公司 Tool calibration method for flange downward four-axis robot
CN113712672A (en) * 2021-11-04 2021-11-30 极限人工智能(北京)有限公司 Origin position calibration method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109311155B (en) 2022-04-15
CN109311155A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
WO2018090323A1 (en) Method, system, and device for calibrating coordinate system
US10150215B2 (en) Robot control device and robot
WO2018119642A1 (en) Method and device for calibrating tool coordinate system origin of industrial robot
US8560122B2 (en) Teaching and playback method based on control of redundancy resolution for robot and computer-readable medium controlling the same
WO2016074646A1 (en) Method and device for calibrating tool in flange coordinate system of robot
US20140031982A1 (en) Robotic system and robot control device
US20170277167A1 (en) Robot system, robot control device, and robot
US20170259433A1 (en) Robot control device, information processing device, and robot system
US10377043B2 (en) Robot control apparatus, robot, and robot system
Richter et al. Augmented reality predictive displays to help mitigate the effects of delayed telesurgery
JP2019155556A (en) Control device of robot, robot, robot system, and calibration method for camera
US20180085920A1 (en) Robot control device, robot, and robot system
JP5223407B2 (en) Redundant robot teaching method
CN112123341A (en) Robot double-arm coordinated motion control method and device and electronic equipment
CN109129469B (en) Mechanical arm kinematics inverse solution method and device and mechanical arm
CN115446847A (en) System and method for improving 3D eye-hand coordination accuracy of a robotic system
CN111168680A (en) Soft robot control method based on neurodynamics method
JP2013039635A (en) Robot control system and robot control method
CN112476435B (en) Calibration method and calibration device for gravity acceleration direction and storage medium
CN107263469B (en) Mechanical arm attitude compensation method and device, storage medium and mechanical arm
CN116038647A (en) Scooter, control method of mechanical arm, electronic equipment and storage medium
US20220105627A1 (en) Singularity-free kinematic parameterization of soft robot manipulators
CN109648563B (en) Method for controlling motion of serial robot and computer storage medium
CN107636418B (en) Robot control method, control equipment and system
WO2020010628A1 (en) Positioner axis coordinate system calibration method, robot system, and storage device

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: 16925002

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: 16925002

Country of ref document: EP

Kind code of ref document: A1