[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105976380A - Vision based calibration method for spraying track of robot - Google Patents

Vision based calibration method for spraying track of robot Download PDF

Info

Publication number
CN105976380A
CN105976380A CN201610308946.3A CN201610308946A CN105976380A CN 105976380 A CN105976380 A CN 105976380A CN 201610308946 A CN201610308946 A CN 201610308946A CN 105976380 A CN105976380 A CN 105976380A
Authority
CN
China
Prior art keywords
workpiece
sprayed
calibration
spraying
matrix
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610308946.3A
Other languages
Chinese (zh)
Other versions
CN105976380B (en
Inventor
陶波
阮惠恒
龚泽宇
李磊
张阳
望金山
尹周平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN201610308946.3A priority Critical patent/CN105976380B/en
Publication of CN105976380A publication Critical patent/CN105976380A/en
Application granted granted Critical
Publication of CN105976380B publication Critical patent/CN105976380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B05SPRAYING OR ATOMISING IN GENERAL; APPLYING FLUENT MATERIALS TO SURFACES, IN GENERAL
    • B05BSPRAYING APPARATUS; ATOMISING APPARATUS; NOZZLES
    • B05B13/00Machines or plants for applying liquids or other fluent materials to surfaces of objects or other work by spraying, not covered by groups B05B1/00 - B05B11/00
    • B05B13/02Means for supporting work; Arrangement or mounting of spray heads; Adaptation or arrangement of means for feeding work
    • B05B13/04Means for supporting work; Arrangement or mounting of spray heads; Adaptation or arrangement of means for feeding work the spray heads being moved during spraying operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Manipulator (AREA)
  • Application Of Or Painting With Fluid Materials (AREA)
  • Spray Control Apparatus (AREA)

Abstract

本发明属于机器人喷涂相关领域,其公开了一种基于视觉的机器人喷涂轨迹校准方法,包括:对真实摄像机内参数的标定及喷涂机器人与真实摄像机之间的手眼标定;采用所述真实摄像机获取标定工件位于理想位置时的参考图像;采用所述真实摄像机获取待喷涂工件的目标图像;设定虚拟摄像机及获取所述真实摄像机在所述虚拟摄像机的坐标系下的位置及姿态信息;对待喷涂工件的喷涂轨迹进行校准。本发明的机器人喷涂轨迹校准方法利用视觉方法对待喷涂工件进行位姿的标定,进而对喷涂轨迹进行校准,无需对待喷涂工件进行严格定位及设计特定工装夹具,降低了成本,简化了校准流程。

The invention belongs to the field of robot spraying, and discloses a vision-based robot spraying trajectory calibration method, including: calibration of the internal parameters of the real camera and hand-eye calibration between the spraying robot and the real camera; using the real camera to obtain the calibration The reference image when the workpiece is in an ideal position; using the real camera to obtain the target image of the workpiece to be sprayed; setting the virtual camera and obtaining the position and attitude information of the real camera under the coordinate system of the virtual camera; the workpiece to be sprayed Calibration of the spray trajectory. The robot spraying trajectory calibration method of the present invention uses a visual method to calibrate the pose of the workpiece to be sprayed, and then calibrates the spraying trajectory, without the need for strict positioning of the workpiece to be sprayed and the design of specific fixtures, which reduces costs and simplifies the calibration process.

Description

一种基于视觉的机器人喷涂轨迹校准方法A vision-based method for robot spraying trajectory calibration

技术领域technical field

本发明属于工业机器人喷涂相关领域,更具体地,涉及一种基于视觉的机器人喷涂轨迹校准方法。所述机器人喷涂轨迹校准方法利用视觉方法对待喷涂工件进行位姿的标定,进而对喷涂轨迹进行校准,既无需对待喷涂工件进行严格定位,也无需设计特定工装夹具,降低了成本,简化了喷涂轨迹校准流程。The invention belongs to the field related to industrial robot spraying, and more specifically relates to a vision-based method for calibrating robot spraying tracks. The robot spraying trajectory calibration method uses a visual method to calibrate the position and posture of the workpiece to be sprayed, and then calibrates the spraying trajectory, which does not require strict positioning of the workpiece to be sprayed, nor does it need to design specific fixtures, which reduces costs and simplifies the spraying trajectory. Calibration process.

背景技术Background technique

随着喷涂行业的迅速发展,对喷涂质量提出了更高的要求。原有的人工喷涂的方式作业效率低下,喷涂质量无法保证,且会对人体会造成明显伤害,已经不适合当前发展的需要。喷涂机器人的出现替代了原有的手工操作,极大提高了作业效率,同时也提高了喷涂质量。With the rapid development of the spraying industry, higher requirements are put forward for the spraying quality. The original manual spraying method is inefficient, the spraying quality cannot be guaranteed, and it will cause obvious harm to the human body, which is no longer suitable for the current development needs. The emergence of spraying robots has replaced the original manual operation, which greatly improves the work efficiency and also improves the spraying quality.

喷涂机器人所需的喷涂轨迹一般是由人工示教或者基于工件的理想模型直接生成。喷涂机器人按照生成的理想轨迹进行喷涂作业,为了保证喷涂质量,要求待喷涂工件必须放置于理想位置,也就是说,为了保持待喷涂工件的位置与理想位置重合,需要设计特定的工装夹具来对待喷涂工件进行严格定位。待喷涂工件的定位流程繁琐,并且需要设计特定的工装夹具,周期长、成本较高。相应地,本领域亟需对机器人喷涂轨迹校准方案作进一步的优化,以便满足机器人喷涂中对喷涂质量的更高要求。The spraying trajectory required by the spraying robot is generally directly generated by manual teaching or based on the ideal model of the workpiece. The spraying robot performs the spraying operation according to the generated ideal trajectory. In order to ensure the quality of the spraying, it is required that the workpiece to be sprayed must be placed in an ideal position. Spraying workpieces are strictly positioned. The positioning process of the workpiece to be sprayed is cumbersome and requires the design of specific fixtures, which has a long cycle and high cost. Correspondingly, there is an urgent need in this field to further optimize the robot spraying trajectory calibration scheme in order to meet the higher requirements for spraying quality in robot spraying.

发明内容Contents of the invention

针对现有技术的以上缺陷或改进需求,本发明提供了一种基于视觉的机器人喷涂轨迹校准方法,其结合喷涂工况,在待喷涂工件不需要严格定位的情况下,采用视觉方法对待喷涂工件进行位姿的标定,并对喷涂轨迹进行校准。所述机器人喷涂轨迹校准方法既无需对待喷涂工件进行严格定位,也无需设计特定工装夹具,降低了生产成本,提高了喷涂质量。Aiming at the above defects or improvement needs of the prior art, the present invention provides a vision-based robot spraying trajectory calibration method, which combines the spraying conditions and adopts a visual method to treat the sprayed workpiece when the workpiece to be sprayed does not need strict positioning Calibrate the pose and calibrate the spraying trajectory. The robot spraying trajectory calibration method does not require strict positioning of the workpiece to be sprayed, nor does it need to design specific fixtures, which reduces production costs and improves spraying quality.

为实现上述目的,本发明提供了一种基于视觉的机器人喷涂轨迹校准方法,其包括如下步骤:To achieve the above object, the invention provides a vision-based robot spraying trajectory calibration method, which includes the following steps:

(a)对真实摄像机内参数的标定及喷涂机器人与所述真实摄像机之间的手眼标定;(a) hand-eye calibration between the calibration of the internal parameters of the real camera and the spraying robot and the real camera;

(b)将设置有两个间隔设置的第一特征点的标定工件设置在理想位置;测量两个所述第一特征点在世界坐标系下的相对位置;采用所述真实摄像机拍摄所述标定工件位于所述理想位置下的图像,以此图像作为参考图像;(b) setting the calibration workpiece provided with the first feature points at two intervals at an ideal position; measuring the relative position of the two first feature points in the world coordinate system; using the real camera to shoot the calibration An image of the workpiece at the ideal position, using this image as a reference image;

(c)将待喷涂工件放置于所述真实摄像机的视场内的任意位置,所述待喷涂工件与所述标定工件的结构相同,其上设置有两个位置分别与两个所述第一特征点的位置相对应的第二特征点;所述真实摄像机拍摄所述待喷涂工件以获取目标图像;(c) placing the workpiece to be sprayed at any position in the field of view of the real camera, the structure of the workpiece to be sprayed is the same as that of the calibration workpiece, and there are two positions respectively corresponding to the two first A second feature point corresponding to the position of the feature point; the real camera shoots the workpiece to be sprayed to obtain a target image;

(d)在邻近所述待喷涂工件的位置设置一个虚拟摄像机,所述虚拟摄像机获取的所述待喷涂工件的图像与步骤(b)获得的所述参考图像相同;通过图像匹配算法计算所述参考图像与步骤(c)获得的所述目标图像之间的本质矩阵E;通过所述本质矩阵E分解获得所述虚拟摄像机与所述真实摄像机之间的旋转矩阵R,基于所述第一特征点在所述参考图像中的位置,计算所述第一特征点在所述虚拟摄像机坐标系下的坐标,进而获得所述真实摄像机相对所述虚拟摄像机的平移向量t;(d) a virtual camera is set adjacent to the position of the workpiece to be sprayed, the image of the workpiece to be sprayed obtained by the virtual camera is the same as the reference image obtained in step (b); the image matching algorithm is used to calculate the The essential matrix E between the reference image and the target image obtained in step (c); the rotation matrix R between the virtual camera and the real camera is obtained by decomposing the essential matrix E, based on the first feature The position of the point in the reference image, calculating the coordinates of the first feature point in the virtual camera coordinate system, and then obtaining the translation vector t of the real camera relative to the virtual camera;

(e)对所述待喷涂工件的喷涂轨迹进行校准。(e) Calibrating the spraying track of the workpiece to be sprayed.

进一步的,所述真实摄像机的内参数与所述虚拟摄像机的内参数相同。Further, the internal parameters of the real camera are the same as the internal parameters of the virtual camera.

进一步的,所述图像匹配算法为以下方法中的一种:SURF算法、SIFT算法Further, the image matching algorithm is one of the following methods: SURF algorithm, SIFT algorithm

进一步的,所述本质矩阵E优选由以下公式获得:Further, the essential matrix E is preferably obtained by the following formula:

E=KTFKE=K T FK

其中K为所述真实摄像机的内参数矩阵,F为所述参考图像与目标图像之间的基础矩阵。Where K is the internal parameter matrix of the real camera, and F is the fundamental matrix between the reference image and the target image.

进一步的,所述本质矩阵E的分解过程基于奇异值分解,依据奇异值分解的结果E=UDVT,可通过以下公式计算旋转矩阵R的两个取值Ra和RbFurther, the decomposition process of the essential matrix E is based on singular value decomposition, and according to the result of singular value decomposition E=UDV T , the two values R a and R b of the rotation matrix R can be calculated by the following formula:

Ra=UWVT,Rb=UWTVT R a = UWV T , R b = UW T V T

其中矩阵U和矩阵V为所述奇异值分解E=UDVT的分解结果, Wherein matrix U and matrix V are the decomposition result of described singular value decomposition E=UDV T ,

进一步的,所述平移向量t可通过以下公式计算:Further, the translation vector t can be calculated by the following formula:

ta1=K-1(KRaX1-λ′a1x1′)t a1 =K -1 (KR a X 1 -λ′ a1 x 1 ′)

ta2=K-1(KRaX2-λ′a2x′2)t a2 =K -1 (KR a X 2 -λ′ a2 x′ 2 )

or

tb1=K-1(KRbX1-λ′b1x1′)t b1 =K -1 (KR b X 1 -λ′ b1 x 1 ′)

tb2=K-1(KRbX2-λ′b2x′2)t b2 =K -1 (KR b X 2 -λ′ b2 x′ 2 )

其中x1′和x′2为所述待喷涂工件上的两个第二特征点在所述目标图像中的像素坐标,K为所述真实摄像机的内参数矩阵,λ′a1、λ′a2、λ′b1、λ′b2、X1和X2优选通过两个所述第一特征点在世界坐标系下的相对位置Δ、Ra和Rb获得。Wherein x 1 ' and x' 2 are the pixel coordinates of the two second feature points on the workpiece to be sprayed in the target image, K is the internal parameter matrix of the real camera, λ' a1 , λ' a2 , λ' b1 , λ' b2 , X 1 and X 2 are preferably obtained by the relative positions Δ, R a and R b of the two first feature points in the world coordinate system.

进一步的,对待喷涂工件的喷涂轨迹进行校准优选采用以下公式进行:Further, the following formula is preferably used for calibrating the spray trajectory of the workpiece to be sprayed:

其中P′为目标喷涂轨迹点,Rw和tw为所述手眼标定的结果,P为理想喷涂轨迹点。Where P′ is the target spraying trajectory point, R w and t w are the results of the hand-eye calibration, and P is the ideal spraying trajectory point.

进一步的,所述理想喷涂轨迹点是在所述标定工件位于所述理想位置的情况下生成的,且所述理想喷涂轨迹点是在世界坐标系下描述的。Further, the ideal spraying trajectory points are generated when the calibration workpiece is located at the ideal position, and the ideal spraying trajectory points are described in the world coordinate system.

总体而言,通过本发明所构思的以上技术方案与现有技术相比,采用本发明的基于视觉的机器人喷涂轨迹校准方法,其在待喷涂工件不需要严格定位的情况下,采用视觉方法对待喷涂工件进行位姿的标定,并对喷涂轨迹进行校准;既无需对待喷涂工件进行严格定位,也无需设计特定工装夹具,降低了生产成本,提高了喷涂质量。Generally speaking, compared with the prior art, the above technical solution conceived by the present invention adopts the vision-based robot spraying trajectory calibration method of the present invention, which adopts the visual method to treat the workpiece under the condition that the workpiece to be sprayed does not need to be strictly positioned. Calibrate the pose of the sprayed workpiece and calibrate the spraying trajectory; neither strict positioning of the workpiece to be sprayed nor design of specific fixtures is required, which reduces production costs and improves spraying quality.

附图说明Description of drawings

图1是本发明较佳实施方式提供的基于视觉的机器人喷涂轨迹校准方法中的标定工件处于理想位置的示意图。Fig. 1 is a schematic diagram of a calibration workpiece in an ideal position in a vision-based robot spraying trajectory calibration method provided by a preferred embodiment of the present invention.

图2是图1中的机器人喷涂轨迹校准方法中的待喷涂工件处于任意位置时的示意图。FIG. 2 is a schematic diagram of the workpiece to be sprayed in any position in the robot spraying trajectory calibration method in FIG. 1 .

在所有附图中,相同的附图标记用来表示相同的元件或结构,其中:1-喷涂机器人,2-第一特征点,3-标定工件,4-真实摄像机,5-虚拟摄像机,6-待喷涂工件,7-第二特征点。In all the drawings, the same reference numerals are used to represent the same elements or structures, wherein: 1-spraying robot, 2-first feature point, 3-calibrated workpiece, 4-real camera, 5-virtual camera, 6 - the workpiece to be sprayed, 7 - the second feature point.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

请参阅图1及图2,本发明较佳实施方式提供的基于视觉的机器人喷涂轨迹校准方法包括以下步骤:Referring to Fig. 1 and Fig. 2, the vision-based robot spraying trajectory calibration method provided by the preferred embodiment of the present invention includes the following steps:

步骤1,真实摄像机4内参数的标定及喷涂机器人1与所述真实摄像机4之间的手眼标定。所谓真实摄像机4,也即现实中用于实际拍摄的摄像机Step 1, calibration of internal parameters of the real camera 4 and hand-eye calibration between the painting robot 1 and the real camera 4 . The so-called real camera 4, that is, the camera used for actual shooting in reality

本实施方式中,所述真实摄像机4的内参数的标定方法采用传统摄像机标定方法中的张正友标定法,即将黑白棋盘格放置于所述真实摄像机4的前方,固定所述真实摄像机4,改变所述棋盘格的位置以获取多幅图像;并对所述多幅图像进行角点提取,利用所述角点与所述真实摄像机4的内参数的关系列出矩阵方程,并通过奇异值分解得出所述真实摄像机4的内参数。可以理解,在其他实施方式中,所述真实摄像机4的内参数的标定还可以采用其他方法,如主动视觉摄像机标定方法、摄像机自标定方法等。In this embodiment, the calibration method of the internal parameters of the real camera 4 adopts the Zhang Zhengyou calibration method in the traditional camera calibration method, that is, placing a black and white checkerboard in front of the real camera 4, fixing the real camera 4, changing the Describe the position of the checkerboard to obtain multiple images; and extract the corner points of the multiple images, use the relationship between the corner points and the internal parameters of the real camera 4 to list the matrix equation, and obtain by singular value decomposition Get the internal parameters of the real camera 4. It can be understood that in other implementation manners, other methods may be used to calibrate the internal parameters of the real camera 4 , such as an active vision camera calibration method, a camera self-calibration method, and the like.

步骤2,获取标定工件3位于理想位置时的参考图像。具体的,所述标定工作3设置在理想位置,其上设置有两个间隔设置的第一特征点2;测量两个所述第一特征点2在世界坐标系下的相对位置;采用所述真实摄像机4拍摄一幅所述标定工件3位于所述理想位置下的参考图像。可以理解,在其他实施方式中,所诉第一特征点2的数量可以根据实际需要改变,如所述第一特征点2的数量可以为3个。Step 2, obtaining a reference image when the calibration workpiece 3 is in an ideal position. Specifically, the calibration work 3 is set at an ideal position, on which two first feature points 2 are arranged at intervals; measure the relative positions of the two first feature points 2 in the world coordinate system; use the The real camera 4 captures a reference image of the calibration workpiece 3 at the ideal position. It can be understood that, in other implementation manners, the number of the first feature points 2 may be changed according to actual needs, for example, the number of the first feature points 2 may be three.

步骤3,获取待喷涂工件6的目标图像。具体的,将所述待喷涂工件6放置于所述真实摄像机4的视场内的任意位置;所述真实摄像机4拍摄所述待喷涂工件6以获取目标图像。Step 3, acquiring the target image of the workpiece 6 to be sprayed. Specifically, the workpiece 6 to be sprayed is placed at any position within the field of view of the real camera 4; the real camera 4 shoots the workpiece 6 to be sprayed to obtain a target image.

本实施方式中,所述待喷涂工件6与所述标定工件3为同一型号的工件,且所述待喷涂工件6上设置有两个第二特征点7,两个所述第二特征点7位于所述待喷涂工件6的位置分别与两个所述第一特征点2位于所述标定工件3的位置相对应,即两个所述第二特征点7分别与两个所述第一特征点2一一对应。可以理解,在其他实施方式中,所述第二特征点7的数量亦可以为其他数量,如3个、4个等。In this embodiment, the workpiece 6 to be sprayed and the calibration workpiece 3 are workpieces of the same type, and the workpiece 6 to be sprayed is provided with two second feature points 7, and the two second feature points 7 The positions on the workpiece 6 to be sprayed correspond to the positions of the two first feature points 2 on the calibration workpiece 3 respectively, that is, the two second feature points 7 correspond to the two first feature points 7 respectively. Point 2 corresponds one to one. It can be understood that, in other implementation manners, the number of the second feature points 7 may also be other numbers, such as 3, 4, and so on.

步骤4,设定虚拟摄像机5及获取所述真实摄像机4在所述虚拟摄像机5的坐标系下的位置及姿态信息。所谓所述虚拟摄像机5,即为不真实存在,虚拟的仿实物。具体的,首先,在邻近所述待喷涂工件6的位置设置一个虚拟摄像机5,所述虚拟摄像机5获取的所述待喷涂工件6的图像与所述真实摄像机4拍摄的所述待喷涂工件6位于理想位置时的图像相同,即与所述参考图像相同,本实施方式中,所述真实摄像机4的内参数与所述虚拟摄像机5的内参数相同;其次,通过图像匹配算法计算反映所述参考图像与所述目标图像之间位姿关系的本质矩阵E,所述本质矩阵E优选由以下公式获得;Step 4, setting the virtual camera 5 and obtaining the position and attitude information of the real camera 4 in the coordinate system of the virtual camera 5 . The so-called virtual camera 5 is a virtual imitation object that does not exist in reality. Specifically, at first, a virtual camera 5 is set at a position adjacent to the workpiece 6 to be sprayed, and the image of the workpiece 6 to be sprayed by the virtual camera 5 is the same as the workpiece 6 to be sprayed by the real camera 4. The image at the ideal position is the same, that is, the same as the reference image. In this embodiment, the internal parameters of the real camera 4 are the same as the internal parameters of the virtual camera 5; secondly, the image matching algorithm is used to calculate and reflect the An essential matrix E of the pose relationship between the reference image and the target image, the essential matrix E is preferably obtained by the following formula;

E=KTFKE=K T FK

其中K为所述真实摄像机4的内参数矩阵,F为所述参考图像与所述目标图像之间的基础矩阵,所述基础矩阵F通过图像特征匹配算法计算获得,所述图像匹配算法可以为SURF算法、SIFT算法等。Wherein K is the internal parameter matrix of described real camera 4, and F is the basic matrix between described reference image and described target image, and described basic matrix F is calculated and obtained by image feature matching algorithm, and described image matching algorithm can be SURF algorithm, SIFT algorithm, etc.

之后,基于所述本质矩阵E计算所述真实摄像机4在所述虚拟摄像机5的坐标系下的位置及姿态信息。具体的,通过分解所述本质矩阵E获得反映所述虚拟摄像机5与所述真实摄像机4之间姿态关系的旋转矩阵,所述本质矩阵E的分解过程采用基于奇异值分解方法。所述旋转矩阵R优选通过以下公式计算获得所述旋转矩阵R的两个取值Ra和RbAfterwards, the position and attitude information of the real camera 4 in the coordinate system of the virtual camera 5 is calculated based on the essential matrix E. Specifically, a rotation matrix reflecting the attitude relationship between the virtual camera 5 and the real camera 4 is obtained by decomposing the essential matrix E, and the decomposition process of the essential matrix E is based on a singular value decomposition method. The rotation matrix R is preferably calculated by the following formula to obtain two values R a and R b of the rotation matrix R:

Ra=UWVT,Rb=UWTVT R a = UWV T , R b = UW T V T

其中矩阵U和矩阵V分别表示对所述奇异值分解E=UDVT的分解结果, Wherein matrix U and matrix V represent the decomposition result to described singular value decomposition E=UDV T respectively,

基于所述第一特征点2在所述参考图像中的位置,计算所述第一特征点2在所述虚拟摄像机5坐标系下的坐标,进而求解所述真实摄像机4相对所述虚拟摄像机5的平移向量t。所述平移向量t优选通过以下公式计算:Based on the position of the first feature point 2 in the reference image, calculate the coordinates of the first feature point 2 in the virtual camera 5 coordinate system, and then solve the relative relationship between the real camera 4 and the virtual camera 5 The translation vector t. The translation vector t is preferably calculated by the following formula:

ta1=K-1(KRaX1-λ′a1x1′)t a1 =K -1 (KR a X 1 -λ′ a1 x 1 ′)

ta2=K-1(KRaX2-λ′a2x′2)t a2 =K -1 (KR a X 2 -λ′ a2 x′ 2 )

or

tb1=K-1(KRbX1-λ′b1x1′)t b1 =K -1 (KR b X 1 -λ′ b1 x 1 ′)

tb2=K-1(KRbX2-λ′b2x′2)t b2 =K -1 (KR b X 2 -λ′ b2 x′ 2 )

其中x1′和x′2为两个所述第二特征点7在所述目标图像中的像素坐标,K为所述真实摄像机4的内参数矩阵,λ′a1、λ′a2、λ′b1、λ′b2、X1和X2中间值,优选通过两个所述第一特征点2在世界坐标系下的相对位置Δ、Ra和Rb进行求解。Wherein x 1 ' and x' 2 are the pixel coordinates of the two second feature points 7 in the target image, K is the internal parameter matrix of the real camera 4, λ' a1 , λ' a2 , λ' The intermediate values of b1 , λ′ b2 , X 1 and X 2 are preferably solved through the relative positions Δ, R a and R b of the two first feature points 2 in the world coordinate system.

在所述参考图像和所述目标图像提取所述第一特征点2及所述第二特征点7的算法可以为颜色识别算法、模版匹配算法等。The algorithm for extracting the first feature point 2 and the second feature point 7 from the reference image and the target image may be a color recognition algorithm, a template matching algorithm, and the like.

由以上方法获得的两组可能的旋转矩阵R和平移向量t,可利用以下判据进行筛:Two sets of possible rotation matrices R and translation vector t obtained by the above method can be sieved by the following criteria:

tt ii == αtαt nno tt ii ≡≡ tt ii 11 tt ii ≡≡ tt ii 22 ,, (( ii == aa ,, bb ))

其中α为一不为零常数,tn为所述本质矩阵奇异值分解E=UDVT的分解结果中的矩阵U的最后一列。Wherein α is a non-zero constant, and t n is the last column of the matrix U in the decomposition result of the singular value decomposition E=UDV T of the essential matrix.

步骤5,对待喷涂工件6的喷涂轨迹进行校准。利用所述虚拟摄像机5与所述真实摄像机4之间的旋转矩阵R和平移向量t,结合所述喷涂机器人1与所述真实摄像机4之间手眼标定的结果,对所述待喷涂工件6的位姿进行标定,进而对喷涂轨迹进行校准。对于任意一个理想喷涂轨迹点,可以按照以下公式进行校准:Step 5, calibrate the spray trajectory of the workpiece 6 to be sprayed. Using the rotation matrix R and the translation vector t between the virtual camera 5 and the real camera 4, combined with the result of hand-eye calibration between the painting robot 1 and the real camera 4, the workpiece 6 to be sprayed 6 The pose is calibrated, and then the spraying trajectory is calibrated. For any ideal spraying trajectory point, it can be calibrated according to the following formula:

其中P′为目标喷涂轨迹点,Rw和tw为所述手眼标定的结果,P为理想喷涂轨迹点。所述理想喷涂轨迹点在世界坐标系下描述,且所述理想喷涂轨迹点是在所述标定工件3处于所述理想位置的情况下生成。Where P′ is the target spraying trajectory point, R w and t w are the results of the hand-eye calibration, and P is the ideal spraying trajectory point. The ideal spraying trajectory points are described in the world coordinate system, and the ideal spraying trajectory points are generated when the calibration workpiece 3 is at the ideal position.

采用本发明的基于视觉的机器人喷涂轨迹校准方法,其在待喷涂工件不需要严格定位的情况下,采用视觉方法对待喷涂工件进行位姿的标定,并对喷涂轨迹进行校准。所述机器人喷涂轨迹校准方法既无需对待喷涂工件进行严格定位,也无需设计特定工装夹具,降低了生产成本,提高了喷涂质量。The vision-based robot spraying trajectory calibration method of the present invention adopts a visual method to calibrate the pose of the workpiece to be sprayed and calibrate the spraying trajectory under the condition that the workpiece to be sprayed does not need to be strictly positioned. The robot spraying trajectory calibration method does not require strict positioning of the workpiece to be sprayed, nor does it need to design specific fixtures, which reduces production costs and improves spraying quality.

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。It is easy for those skilled in the art to understand that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, All should be included within the protection scope of the present invention.

Claims (8)

1.一种基于视觉的机器人喷涂轨迹校准方法,其特征在于,所述方法包括:1. a vision-based robot spraying trajectory calibration method, is characterized in that, the method comprises: (a)对真实摄像机(4)内参数执行标定,同时对喷涂机器人(1)与该真实摄像机(4)之间执行手眼标定;(a) Calibrate the internal parameters of the real camera (4), and simultaneously perform hand-eye calibration between the spraying robot (1) and the real camera (4); (b)将标定工件(3)放置在理想位置,所述标定工件被选择为与待喷涂工件(6)的结构相同,并且所述标定工件(3)上面还设有彼此间隔的多个第一特征点(2),然后对各个所述第一特征点(2)在世界坐标系下的相对位置进行测量;接着,采用所述真实摄像机(4)拍摄所述标定工件(3)位于所述理想位置下的图像,并以此图像作为参考图像;(b) Place the calibration workpiece (3) in an ideal position, the calibration workpiece is selected to have the same structure as the workpiece (6) to be sprayed, and the calibration workpiece (3) is also provided with a plurality of first A feature point (2), then measure the relative position of each of the first feature points (2) in the world coordinate system; then, use the real camera (4) to shoot the calibration workpiece (3) located at the Describe the image under the ideal position, and use this image as a reference image; (c)将所述待喷涂工件(6)放置于所述真实摄像机(4)的视场之内,并且所述待喷涂工件(6)设有第二特征点(7)且这些第二特征点(7)分别与所述第一特征点(2)一一对应;接着,继续采用所述真实摄像机(4)对所述待喷涂工件(6),由此获取反映此待喷涂工件(6)真实位置的目标图像;(c) the workpiece to be sprayed (6) is placed within the field of view of the real camera (4), and the workpiece to be sprayed (6) is provided with second feature points (7) and these second features Points (7) are in one-to-one correspondence with the first feature point (2) respectively; then, continue to adopt the real camera (4) to the workpiece (6) to be sprayed, thereby obtaining and reflecting the workpiece (6) to be sprayed. ) the target image of the real position; (d)在邻近所述待喷涂工件(6)的位置设置虚拟摄像机(5),并且使得该虚拟摄像机(5)所获取的待喷涂工件(6)的图像与步骤(b)所获取的所述参考图像保持相同;然后,利用图像匹配方式来计算得出反映所述参考图像与所述目标图像之间位姿关系的本质矩阵E;此外,通过分解所述本质矩阵E来获得反映所述虚拟摄像机(5)与所述真实摄像机(4)之间姿态关系的旋转矩阵R,由此获得所述真实摄像机(4)相对所述虚拟摄像机(5)的平移向量t;(d) a virtual camera (5) is set at a position adjacent to the workpiece (6) to be sprayed, and the image of the workpiece (6) to be sprayed acquired by the virtual camera (5) is consistent with the acquired image of the workpiece (6) in step (b) The above reference image remains the same; then, use the image matching method to calculate the essential matrix E reflecting the pose relationship between the reference image and the target image; in addition, obtain the reflection of the essential matrix E by decomposing the essential matrix E The rotation matrix R of the posture relationship between the virtual camera (5) and the real camera (4), thus obtaining the translation vector t of the real camera (4) relative to the virtual camera (5); (e)基于步骤(d)获取的所述真实摄像机(4)相对所述虚拟摄像机(5)的旋转矩阵R及平移向量t,对所述待喷涂工件(6)的喷涂轨迹进行校准。(e) Calibrate the spraying trajectory of the workpiece (6) to be sprayed based on the rotation matrix R and translation vector t of the real camera (4) relative to the virtual camera (5) obtained in step (d). 2.如权利要求1所述的基于视觉的机器人喷涂轨迹校准方法,其特征在于:所述真实摄像机(4)的内参数与所述虚拟摄像机(5)的内参数相同。2. The vision-based robot spraying trajectory calibration method according to claim 1, characterized in that: the internal parameters of the real camera (4) are identical to the internal parameters of the virtual camera (5). 3.如权利要求1所述的基于视觉的机器人喷涂轨迹校准方法,其特征在于:所述图像匹配算法为以下方法中的一种:SURF算法、SIFT算法。3. The vision-based robot spraying trajectory calibration method according to claim 1, characterized in that: the image matching algorithm is one of the following methods: SURF algorithm, SIFT algorithm. 4.如权利要求1所述的基于视觉的机器人喷涂轨迹校准方法,其特征在于:所述本质矩阵E由以下公式获得:4. vision-based robot spraying trajectory calibration method as claimed in claim 1, is characterized in that: described essential matrix E is obtained by following formula: E=KTFKE=K T FK 其中K为所述真实摄像机(4)的内参数矩阵,F为所述参考图像与目标图像之间的基础矩阵。Where K is the internal parameter matrix of the real camera (4), and F is the fundamental matrix between the reference image and the target image. 5.如权利要求4所述的基于视觉的机器人喷涂轨迹校准方法,其特征在于:所述本质矩阵E的分解过程采用奇异值方式进行分解,该奇异值分解的结果分别采用矩阵U、D和V来表示,然后通过以下公式计算旋转矩阵R的两个取值Ra和Rb5. the robot spraying track calibration method based on vision as claimed in claim 4, is characterized in that: the decomposition process of described essential matrix E adopts singular value mode to decompose, and the result of this singular value decomposition adopts matrix U, D and V, and then calculate the two values R a and R b of the rotation matrix R by the following formula: Ra=UWVT,Rb=UWTVT R a = UWV T , R b = UW T V T 其中矩阵U和矩阵V为分别表示对所述奇异值分解E=UDVT的分解结果, Wherein matrix U and matrix V represent respectively the decomposition result to described singular value decomposition E=UDV T , 6.如权利要求5所述的基于视觉的机器人喷涂轨迹校准方法,其特征在于:所述平移向量t通过以下公式计算:6. vision-based robot spraying trajectory calibration method as claimed in claim 5, is characterized in that: described translation vector t is calculated by following formula: ta1=K-1(KRaX1-λ′a1x1′)t a1 =K -1 (KR a X 1 -λ′ a1 x 1 ′) ta2=K-1(KRaX2-λ′a2x′2)t a2 =K -1 (KR a X 2 -λ′ a2 x′ 2 ) or tb1=K-1(KRbX1-λ′b1x1′)t b1 =K -1 (KR b X 1 -λ′ b1 x 1 ′) tb2=K-1(KRbX2-λ′b2x′2)t b2 =K -1 (KR b X 2 -λ′ b2 x′ 2 ) 其中x′1和x′2为所述待喷涂工件(6)上的两个第二特征点(7)在所述目标图像中的像素坐标,K为所述真实摄像机(4)的内参数矩阵,λ′a1、λ′a2、λ′b1、λ′b2、X1和X2分别表示中间参数值,它们可根据所述第一特征点(2)在世界坐标系下的相对位置Δ、Ra和Rb进行求解。Wherein x'1 and x'2 are the pixel coordinates of two second feature points (7) in the target image on the workpiece (6) to be sprayed, and K is the internal parameter of the real camera (4) matrix, λ′ a1 , λ′ a2 , λ′ b1 , λ′ b2 , X 1 and X 2 respectively represent intermediate parameter values, which can be based on the relative position Δ of the first feature point (2) in the world coordinate system , R a and R b to solve. 7.如权利要求1所述的基于视觉的机器人喷涂轨迹校准方法,其特征在于:对待喷涂工件(6)的喷涂轨迹进行校准可采用以下公式进行:7. the vision-based robot spraying track calibration method as claimed in claim 1, is characterized in that: the spraying track of workpiece (6) to be sprayed is calibrated and can adopt following formula to carry out: 其中P′为目标喷涂轨迹点,Rw和tw为所述手眼标定的结果,P为理想喷涂轨迹点。Where P′ is the target spraying trajectory point, R w and t w are the results of the hand-eye calibration, and P is the ideal spraying trajectory point. 8.如权利要求7所述的基于视觉的机器人喷涂轨迹校准方法,其特征在于:所述理想喷涂轨迹点是在所述标定工件(3)位于所述理想位置的情况下生成的,且所述理想喷涂轨迹点是在世界坐标系下描述的。8. The vision-based robot spraying trajectory calibration method as claimed in claim 7, characterized in that: the ideal spraying trajectory point is generated when the calibration workpiece (3) is located at the ideal position, and the The above ideal spraying trajectory points are described in the world coordinate system.
CN201610308946.3A 2016-05-11 2016-05-11 A kind of Control During Paint Spraying by Robot track calibration method of view-based access control model Active CN105976380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610308946.3A CN105976380B (en) 2016-05-11 2016-05-11 A kind of Control During Paint Spraying by Robot track calibration method of view-based access control model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610308946.3A CN105976380B (en) 2016-05-11 2016-05-11 A kind of Control During Paint Spraying by Robot track calibration method of view-based access control model

Publications (2)

Publication Number Publication Date
CN105976380A true CN105976380A (en) 2016-09-28
CN105976380B CN105976380B (en) 2018-12-14

Family

ID=56992919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610308946.3A Active CN105976380B (en) 2016-05-11 2016-05-11 A kind of Control During Paint Spraying by Robot track calibration method of view-based access control model

Country Status (1)

Country Link
CN (1) CN105976380B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107367269A (en) * 2017-08-29 2017-11-21 上汽大通汽车有限公司 Primary coat vehicle body position finding and detection method
CN108469821A (en) * 2018-03-23 2018-08-31 广东工业大学 Spray robot track correct method, apparatus, equipment and readable storage medium storing program for executing
CN109468934A (en) * 2018-09-30 2019-03-15 重庆市智翔铺道技术工程有限公司 A kind of road surface pattern spray equipment
CN109514557A (en) * 2018-12-13 2019-03-26 北京炎凌嘉业机电设备有限公司 A kind of 3D vision robot track correct system
CN110167721A (en) * 2018-06-11 2019-08-23 深圳蓝胖子机器人有限公司 Robot system and automatic calibrating method, storage device
CN112164018A (en) * 2020-09-27 2021-01-01 北华航天工业学院 A machine vision calibration system and its calibration method
CN113246145A (en) * 2021-07-02 2021-08-13 杭州景业智能科技股份有限公司 Pose compensation method and system for nuclear industry grabbing equipment and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6374158B1 (en) * 2000-02-15 2002-04-16 General Electric Company Robotic laser pointer
CN104331542A (en) * 2014-08-12 2015-02-04 清华大学 Painting robot position planning method for large-scale free-form surface

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6374158B1 (en) * 2000-02-15 2002-04-16 General Electric Company Robotic laser pointer
CN104331542A (en) * 2014-08-12 2015-02-04 清华大学 Painting robot position planning method for large-scale free-form surface

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JIAN SONG: "Electromagnetic Induction Sensor of Navigation System for Spraying Robot", 《PROCEEDINGS OF THE 2011 INTERNATIONAL CONFERENCE ON INFORMATICS,CYBERNETICS,AND COMPUTER ENGINEERING》 *
王欣等: "直臂高空作业车船体喷涂轨迹控制研究与仿真", 《系统仿真学报》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107367269A (en) * 2017-08-29 2017-11-21 上汽大通汽车有限公司 Primary coat vehicle body position finding and detection method
CN108469821A (en) * 2018-03-23 2018-08-31 广东工业大学 Spray robot track correct method, apparatus, equipment and readable storage medium storing program for executing
CN108469821B (en) * 2018-03-23 2021-03-30 广东工业大学 Spraying robot track correction method, device and equipment and readable storage medium
CN110167721A (en) * 2018-06-11 2019-08-23 深圳蓝胖子机器人有限公司 Robot system and automatic calibrating method, storage device
CN109468934A (en) * 2018-09-30 2019-03-15 重庆市智翔铺道技术工程有限公司 A kind of road surface pattern spray equipment
CN109468934B (en) * 2018-09-30 2020-09-04 重庆市智翔铺道技术工程有限公司 Pavement pattern spraying device
CN109514557A (en) * 2018-12-13 2019-03-26 北京炎凌嘉业机电设备有限公司 A kind of 3D vision robot track correct system
CN112164018A (en) * 2020-09-27 2021-01-01 北华航天工业学院 A machine vision calibration system and its calibration method
CN112164018B (en) * 2020-09-27 2024-02-27 北华航天工业学院 Machine vision calibration system and calibration method thereof
CN113246145A (en) * 2021-07-02 2021-08-13 杭州景业智能科技股份有限公司 Pose compensation method and system for nuclear industry grabbing equipment and electronic device

Also Published As

Publication number Publication date
CN105976380B (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN105976380A (en) Vision based calibration method for spraying track of robot
TWI672206B (en) Method and apparatus of non-contact tool center point calibration for a mechanical arm, and a mechanical arm system with said calibration function
EP3705239B1 (en) Calibration system and method for robotic cells
CN110193849B (en) Method and device for calibrating hands and eyes of robot
CN104596502B (en) Object posture measuring method based on CAD model and monocular vision
CN106767393B (en) Hand-eye calibration device and method for robot
CN114310880B (en) Mechanical arm calibration method and device
CN108994832B (en) Robot eye system based on RGB-D camera and self-calibration method thereof
CN110298854B (en) Co-localization method of flying snake-like arm based on online adaptation and monocular vision
CN107253190B (en) High-precision robot hand-eye camera automatic calibration device and use method thereof
CN115797461B (en) Flame space positioning system calibration and correction method based on binocular vision
US20190139255A1 (en) Posture positioning system for machine and the method thereof
CN101286235A (en) A Camera Calibration Method Based on Flexible Stereo Target
JP2011033497A (en) Environmental recognition system, environmental recognition method, and robot
CN111012506A (en) Robot-assisted puncture surgery end tool center calibration method based on stereo vision
CN103426168B (en) Based on the general calibration method of common, wide-angle, the flake stereo camera of one-dimension calibration bar
JP2009042162A (en) Calibration device and method therefor
CN109648605A (en) Robot system
CN109623822B (en) Robot hand-eye calibration method
CN113370217A (en) Method for recognizing and grabbing object posture based on deep learning for intelligent robot
CN114147728B (en) Universal robot eye on-hand calibration method and system
CN114833822B (en) Rapid hand-eye calibration method for robot
CN110722558A (en) Robot origin calibration method, device, controller and storage medium
CN104376553A (en) Single-axis rotation angle vision measurement method based on movable camera and double targets
CN105574884B (en) A kind of medical robot DH parameter calibration methods

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant