TW201603979A - Calibration device and method for robot arm - Google Patents

Calibration device and method for robot arm Download PDF

Info

Publication number
TW201603979A
TW201603979A TW103125784A TW103125784A TW201603979A TW 201603979 A TW201603979 A TW 201603979A TW 103125784 A TW103125784 A TW 103125784A TW 103125784 A TW103125784 A TW 103125784A TW 201603979 A TW201603979 A TW 201603979A
Authority
TW
Taiwan
Prior art keywords
robot arm
coordinate
camera
correction
code
Prior art date
Application number
TW103125784A
Other languages
Chinese (zh)
Other versions
TWI532575B (en
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 TW103125784A priority Critical patent/TWI532575B/en
Publication of TW201603979A publication Critical patent/TW201603979A/en
Application granted granted Critical
Publication of TWI532575B publication Critical patent/TWI532575B/en

Links

Landscapes

  • Manipulator (AREA)

Abstract

A calibration device and method is disclosed for a robot arm. An encoded calibrating plate is fixed in the working environment of the robot arm and the encoded calibrating plate has chessboard pattern with the coordinate encoding. The coordinate encoding indicates the position of the encoded calibration plate. The visual system of the robot arm catch the image of the encoded calibrating plate and calculate the coordinate encoding to position the visual system and the positioning error of the robot arm and the visual system can be calibrated.

Description

機器手臂的校正裝置及方法 Correction device and method for robot arm

本發明有關一種機器手臂之校正裝置及方法,尤其關於機器手臂利用視覺系統及編碼校正板,校正機器手臂移動誤差的裝置及方法。 The invention relates to a device and a method for correcting a robot arm, in particular to a device and a method for correcting a movement error of a robot arm by using a vision system and a code correction plate.

隨著工業生產技術的快速發展,為了追求大量生產的速度、產品品質的穩定及降低人工成本,工廠的生產線紛紛以機器手臂(Robot Arm)取代勞動人力,進行工件的抓取、排列或組裝。自動化的機器手臂進一步利用視覺系統定位工件之位置和姿態,引導機器手臂自動精準地抓取工件,進行組裝製造。而如何減少視覺系統定位的誤差,校正機器手臂移動精確度,成為機器手臂的重要課題。 With the rapid development of industrial production technology, in order to pursue the speed of mass production, the stability of product quality and the reduction of labor costs, the factory production line has replaced the labor force with the robot arm to carry out the workpiece picking, arranging or assembling. The automated robotic arm further uses the vision system to position the workpiece and position it, guiding the robotic arm to automatically and accurately grasp the workpiece for assembly and manufacturing. How to reduce the error of the positioning of the vision system and correct the accuracy of the movement of the robot arm has become an important issue for the robot arm.

請參考圖1,為先前技術機器手臂的標準校正板10,其中標準校正板10為矩形的格狀棋盤,由黑色格子11與白色格子12相互間隔構成。標準校正板10校正機器手臂時,主要透過機器手臂的視覺系統(圖未示),視覺系統包含設在機器手臂上稱為EIH(Eye in Hand,簡稱EIH)攝影機,用以引導機器手臂夾取工件,以及設在機器手臂外部稱為ETH(Eye to Hand,簡稱ETH)攝影機,用以監視機器手臂的工作環境。以裝設在機器手臂上的EIH攝影機進行校正為例,利用移動機器手臂帶動EIH攝影機接近標準校正板10,聚焦取得EIH攝影機中擷取的標準校正板10的影像,根據擷取 的標準校正板10的影像,計算機器手臂與標準校正板10的相對位置關係,以完成對機器手臂的校正。 Please refer to FIG. 1 , which is a standard calibration plate 10 of the prior art robot arm, wherein the standard calibration plate 10 is a rectangular lattice plate, and the black lattice 11 and the white lattice 12 are spaced apart from each other. When the standard calibration plate 10 corrects the robot arm, it mainly passes through the vision system of the robot arm (not shown). The vision system includes an EIH (Eye in Hand, EIH) camera on the robot arm to guide the robot arm to grasp. The workpiece, as well as an ETH (Eye to Hand, ETH) camera outside the robot arm, is used to monitor the working environment of the robot arm. Taking the EIH camera mounted on the robot arm as an example, the mobile robot arm is used to drive the EIH camera to approach the standard calibration plate 10, and focus on the image of the standard calibration plate 10 captured in the EIH camera, according to the capture. The image of the standard calibration plate 10, the relative positional relationship between the computing robot arm and the standard calibration plate 10, completes the correction of the robot arm.

參考標準校正板有多種校正的方式,例如先前技術美國專利案US6985175,利用兩攝影機擷取標準校正板格狀棋盤的扭曲影像狀況,進行影像比對以校正攝影機。另外中國專利案CN102927908,利用雷射裝置投射條狀光線在標準校正板對角,藉設在機器手臂上的攝影機擷取條狀光線的影像,再移動雷射裝置與機器手臂擷取條狀光線投射標準校正板另一對角位置的影像,由兩對角位置條狀光線的交叉,校正機器手臂三維空間的定位。 The reference standard calibration plate has a variety of correction methods, such as the prior art U.S. Patent No. 6,985,175, which utilizes two cameras to capture the distorted image condition of the standard calibration plate, and performs image comparison to correct the camera. In addition, the Chinese patent case CN102927908 uses a laser device to project strip light on the opposite side of the standard calibration plate. The camera on the robot arm captures the image of the strip light, and then moves the laser device and the robot arm to pick up the strip light. The image of the other diagonal position of the projection standard calibration plate is corrected by the intersection of the strip rays at two diagonal positions to correct the positioning of the three-dimensional space of the robot arm.

然而,前述先前技術使用的標準校正板有一定的尺寸且為黑白相間的相同格狀,如機器手臂設置的空間有限,機器手臂與標準校正板相對距離不夠時,裝設在機器手臂上的視覺系統,不能取得標準校正板的全部完整的影像,難於由擷取標準校正板的部分影像判斷相對的方向及位置,以致無法判讀機器手臂上的視覺系統與標準校正板正確相對座標進行校正。因此,機器手臂在校正裝置及方法上,仍有問題亟待解決。 However, the standard calibration plate used in the foregoing prior art has a certain size and is in the same lattice shape of black and white. For example, when the space provided by the robot arm is limited, and the relative distance between the robot arm and the standard calibration plate is insufficient, the vision mounted on the robot arm is The system cannot obtain all the complete images of the standard calibration plate. It is difficult to determine the relative direction and position of the partial image of the standard calibration plate, so that the visual system on the robot arm and the standard calibration plate cannot be correctly corrected for relative coordinates. Therefore, the robot arm still has problems to be solved in the calibration device and method.

本發明之目的在提供一種機器手臂的校正裝置,藉由在編碼校正板上設置複數個座標編碼,座標編碼具有預設的座標,使機器手臂的視覺系統可擷取局部編碼校正板的座標編碼快速獲得定位校正,以提高機器手臂設置空間的彈性。 The object of the present invention is to provide a robot arm correcting device, which is provided with a plurality of coordinate codes on a code correction plate, and the coordinate code has a preset coordinate, so that the robotic vision system can capture the coordinate code of the local code correction plate. Quickly obtain position correction to increase the flexibility of the robot arm setting space.

本發明另一目的在提供一種機器手臂的校正方法,利用機器手臂的視覺系統聚焦擷取編碼校正板座標編碼之影像,計算座標編碼的預 設座標,進行視覺系統的定位,以校正機器手臂。 Another object of the present invention is to provide a method for correcting a robot arm, which utilizes a vision system of a robot arm to focus on an image of a coding correction plate coordinate code, and calculates a coordinate of the coordinate code. Set the coordinates to position the vision system to correct the robot arm.

本發明再一目的在提供一種機器手臂的校正方法,利用機器手臂移動視覺系統,多方位聚焦擷取編碼校正板座標編碼之影像,平均視覺系統的定位誤差,以提高機器手臂校正的精確度。 Still another object of the present invention is to provide a method for correcting a robot arm, which utilizes a robotic arm movement vision system, multi-faceted focusing to capture an image of a coding correction plate coordinate code, and an average visual system positioning error to improve the accuracy of the robot arm correction.

本發明又一目的在提供一種機器手臂的校正方法,利用編碼校正板先後定位機器手臂的ETH攝影機及EIH攝影機,以校正機器手臂。 Another object of the present invention is to provide a method for correcting a robot arm, which uses an encoder calibration plate to sequentially position an ETH camera and an EIH camera of a robot arm to correct the robot arm.

為了達到前述發明的目的,本發明機器手臂的校正裝置,將機器手臂的一端固定設在基座,另一端設活動端,其上固定視覺系統的EIH攝影機。編碼校正板利用支撐架固定在機器手臂的工作環境,與機器手臂具有固定的相對座標,編碼校正板為棋盤格狀,格子內標示座標編碼,表示相對編碼校正板的方向及位置,控制裝置利用接收視覺系統擷取的影像,控制機器手臂的活動端上的EIH攝影機移動擷取編碼校正板的座標編碼,以校正機器手臂與EIH攝影機的定位誤差。視覺系統另包含ETH攝影機,ETH攝影機固定在機器手臂的外部,與機器手臂具有固定的相對座標,控制裝置移動機器手臂的活動端至編碼校正板上複數個預定座標編碼的位置,以校正機器手臂與ETH攝影機的定位誤差。 In order to achieve the object of the foregoing invention, the correcting device for the robot arm of the present invention has one end of the robot arm fixed to the base and the other end provided with a movable end on which the EIH camera of the vision system is fixed. The code correction plate is fixed in the working environment of the robot arm by the support frame, and has a fixed relative coordinate with the robot arm. The code correction plate is a checkerboard pattern, and the coordinate code is marked in the grid to indicate the direction and position of the code correction plate, and the control device utilizes Receiving the image captured by the vision system, controlling the EIH camera on the active end of the robot arm to capture the coordinate code of the code correction plate to correct the positioning error of the robot arm and the EIH camera. The vision system additionally includes an ETH camera. The ETH camera is fixed to the outside of the robot arm and has a fixed relative coordinate with the robot arm. The control device moves the movable end of the robot arm to a position of a plurality of predetermined coordinate codes on the code correction plate to correct the robot arm. Positioning error with ETH camera.

本發明的編碼校正板的格子為黑色格子與白色格子相互間隔組成,在每一黑色格子內的上方左角,標示方向圓的方向座標編碼,以表示相對編碼校正板校正座標原點的方向。白色格子內設置空心圓及實心圓的編碼圓排列組合而成位置座標編碼,以表示相對編碼校正板校正座標原點的位置。白色格子內的編碼圓,排成兩行,第一行代表X軸以及第二行代表Y軸,每行各具有第一列A、第二列B及第三列C的編碼圓,位置由下至 上表示為2的0至2次方,該白色格子的座標式為:X=A*20+B*21+C*22 The lattice of the code correction plate of the present invention is composed of a black grid and a white grid spaced apart from each other. In the upper left corner of each black grid, the direction circle of the direction circle is coded to indicate the direction of the coordinate origin of the coordinate correction plate. The coding circle of the hollow circle and the solid circle is arranged in the white grid to form a position coordinate code to indicate the position of the coordinate origin of the coordinate correction plate. The coded circle in the white grid is arranged in two rows, the first row represents the X axis and the second row represents the Y axis, and each row has a coding circle of the first column A, the second column B, and the third column C, the position is determined by The bottom to top is represented as 0 to the 2nd power of 2, and the coordinate formula of the white lattice is: X=A*2 0 +B*2 1 +C*2 2

Y=A*20+B*21+C*22 Y=A*2 0 +B*2 1 +C*2 2

本發明機器手臂的校正方法,將編碼校正板以預設座標固定在機器手臂的視覺系統的攝影範圍內;利用機器手臂的視覺系統聚焦擷取的編碼校正板影像;根據擷取的編碼校正板影像及焦距,計算編碼校正板座標編碼,定位視覺系統;比較視覺系統的定位與校正前座標;校正機器手臂的移動誤差。 The method for correcting the robot arm of the present invention fixes the code correction plate with a preset coordinate in the photographing range of the robotic vision system; uses the robotic vision system to focus the captured code correction plate image; and according to the captured code correction plate Image and focal length, calculate the coordinate code of the coding correction plate, locate the vision system; compare the positioning of the vision system and correct the front coordinates; correct the movement error of the robot arm.

本發明機器手臂校正方法的視覺系統包含ETH攝影機及EIH攝影機,分別依序完成ETH攝影機及EIH攝影機的定位校正。EIH攝影機校正後檢查預定校正的次數不足,移動機器手臂擷取編碼校正板不同的座標編碼,繼續校正。校正的次數足夠時,平均移動誤差,完成機器手臂的校正。 The vision system of the robot arm correction method of the present invention comprises an ETH camera and an EIH camera, and respectively performs positioning correction of the ETH camera and the EIH camera. After the EIH camera is calibrated, the number of predetermined corrections is insufficient. The mobile robot arm captures the different coordinate codes of the code correction plate and continues to correct. When the number of corrections is sufficient, the average movement error is corrected for the robot arm.

20‧‧‧編碼校正板 20‧‧‧Code Correction Board

21‧‧‧黑色格子 21‧‧‧Black plaid

22‧‧‧白色格子 22‧‧‧White plaid

23‧‧‧方向圓 23‧‧‧ Directional circle

24‧‧‧空心圓 24‧‧‧ hollow circle

25‧‧‧實心圓 25‧‧‧ Solid circle

26‧‧‧局部影像 26‧‧‧Partial imagery

30‧‧‧校正裝置 30‧‧‧ calibration device

31‧‧‧機器手臂 31‧‧‧Machine arm

32‧‧‧控制裝置 32‧‧‧Control device

33‧‧‧活動端 33‧‧‧ active end

34‧‧‧EIH攝影機 34‧‧‧EIH camera

35‧‧‧基座 35‧‧‧Base

36‧‧‧支撐架 36‧‧‧Support frame

37‧‧‧夾取機構 37‧‧‧Clamping mechanism

40‧‧‧ETH攝影機 40‧‧‧ETH camera

圖1 為先前技術標準校正板之示意圖。 Figure 1 is a schematic diagram of a prior art standard calibration plate.

圖2 為本發明編碼校正板之示意圖。 2 is a schematic diagram of a code correction plate of the present invention.

圖3 為本發明機器手臂的校正方法的示意圖。 3 is a schematic view of a method of correcting a robot arm of the present invention.

圖4 為本發明機器手臂的校正方法的流程圖。 4 is a flow chart of a method of correcting a robot arm of the present invention.

圖5 為本發明機器手臂對視覺系統的校正方法的示意圖。 FIG. 5 is a schematic diagram of a method for correcting a vision system by a robot arm of the present invention.

圖6 為本發明機器手臂對視覺系統的校正方法的流程圖。 6 is a flow chart of a method for correcting a vision system by a robot arm of the present invention.

有關本發明為達成上述目的,所採用之技術手段及其功效,茲舉較佳實施例,並配合圖式加以說明如下。 The technical means and the efficacies of the present invention for achieving the above objects are as follows, and the preferred embodiments are described below with reference to the drawings.

請參閱圖2,圖2為本發明機器手臂校正裝置的編碼校正板。編碼校正板20為矩形的格狀棋盤,由黑色格子21與白色格子22相互間隔組成。在每一黑色格子21內的上方左角,標示方向圓23的方向座標編碼,以標示編碼校正板20的上下左右方向,也就是編碼校正板20的校正座標原點O的方向。另在編碼校正板20內部的白色格子22內設置空心圓24及實心圓25排列組合的位置座標編碼,以標示各白色格子22與編碼校正板20校正座標原點O的相對位置。以本實施利為例,位置座標編碼在白色格子22內設置包含空心圓24及實心圓25的編碼圓,編碼圓排成兩行,左邊開始第一行代表X軸以及第二行代表Y軸,每行各具有第一列A、第二列B及第三列C等三列編碼圓,位置由下至上表示為2的0至2次方,而空心圓代表數值為0以及實心圓代表數值為1,以構成白色格子22的座標(X,Y) Please refer to FIG. 2. FIG. 2 is a code correction plate of the robot arm correcting device of the present invention. The code correction plate 20 is a rectangular lattice plate composed of a black lattice 21 and a white lattice 22 spaced apart from each other. In the upper left corner of each black grid 21, the direction of the direction circle 23 is coordinately coded to indicate the up, down, left and right direction of the code correction plate 20, that is, the direction of the calibration coordinate origin O of the code correction plate 20. Further, a position coordinate code in which the hollow circle 24 and the solid circle 25 are arranged in combination is provided in the white lattice 22 inside the code correction plate 20 to indicate the relative positions of the respective white lattices 22 and the code correction plate 20 for correcting the coordinate origin O. Taking the implementation as an example, the position coordinate code sets a coding circle including a hollow circle 24 and a solid circle 25 in the white lattice 22, and the coding circle is arranged in two rows, the first row on the left side represents the X axis and the second row represents the Y axis. Each row has three columns of coding circles, such as the first column A, the second column B, and the third column C, and the position is represented by the bottom to the top of the 0 to 2 power of 2, and the open circle represents the value of 0 and the solid circle represents The value is 1 to form the coordinates (X, Y) of the white lattice 22

X=A*20+B*21+C*22 X=A*2 0 +B*2 1 +C*2 2

Y=A*20+B*21+C*22 Y=A*2 0 +B*2 1 +C*2 2

舉例說明,如圖2中標示的白色格子22,左起第一行X軸的第一列A為空心圓24,數值為0,即A=0,第二列B及第三列C為實心圓25,數值為1,即B=1及C=1。左起第二行Y軸的第一列A為實心圓25,數值為1,即A=1,第二位置及第三位置為空心圓24,數值為0,即B=0及C=0,將前述數值帶入前式則白色格子22的座標的計算方式如下:X=0*20+1*21+1*22=6 For example, as shown in the white grid 22 in FIG. 2, the first column A of the X-axis of the first row from the left is a hollow circle 24, the value is 0, that is, A=0, and the second column B and the third column C are solid. Circle 25, the value is 1, that is, B=1 and C=1. The first column A of the Y-axis of the second row from the left is a solid circle 25, the value is 1, that is, A=1, the second position and the third position are hollow circles 24, and the value is 0, that is, B=0 and C=0. The coordinates of the white lattice 22 are calculated as follows: X=0*2 0 +1*2 1 +1*2 2 =6

Y=1*20+0*21+0*22=1得到座標(6,1)。因此,就可根據空心圓24及實心圓25的排列組合計算出座標,獲得白色格子22與編碼校正板20校正座標原點O預設的相對位置。 Y=1*2 0 +0*2 1 +0*2 2 =1 Get the coordinates (6,1). Therefore, the coordinates can be calculated according to the arrangement of the hollow circle 24 and the solid circle 25, and the relative position of the white grid 22 and the code correction plate 20 for correcting the coordinates origin O is obtained.

如圖3所示,為本發明機器手臂的校正裝置30的示意圖。本發明機器手臂校正裝置30包含視覺系統、機器手臂31、控制裝置32及編碼校正板20。其中,視覺系統包含設在機器手臂31上的EIH攝影機34。機器手臂31一端固定設在基座35上,具有特定的手臂參考座標M,在機器手臂31另一端的活動端33固定EIH攝影機34,在手臂參考座標M具有校正前的座標。由於多關節的機器手臂31移動誤差,使視覺系統存在定位誤差,為了操控機器手臂31精確移位,機器手臂31須與視覺系統的EIH攝影機34進行定位校正。本發明校正裝置30在準備校正時,將編碼校正板20利用支撐架36固定在機器手臂31及EIH攝影機34的工作環境,並具有特定的校正參考座標N,因此編碼校正板20上的校正參考座標原點相對校正參考座標N的位置為已知。編碼校正板20內各白色格子22,經由位置座標編碼,相對校正參考座標N的位置亦為已知。因機器手臂31的手臂參考座標M及編碼校正板20的校正參考座標N,彼此距離固定,具有相對固定的座標關係,所以能進行座標轉換。 As shown in FIG. 3, it is a schematic diagram of the correcting device 30 of the robot arm of the present invention. The robot arm correcting device 30 of the present invention includes a vision system, a robot arm 31, a control device 32, and a code correction plate 20. Among them, the vision system includes an EIH camera 34 disposed on the robot arm 31. One end of the robot arm 31 is fixedly disposed on the base 35, has a specific arm reference coordinate M, and the movable end 33 at the other end of the robot arm 31 fixes the EIH camera 34, and the arm reference coordinate M has a coordinate before correction. Due to the movement error of the multi-joint robotic arm 31, there is a positioning error in the vision system. In order to manipulate the precise displacement of the robot arm 31, the robot arm 31 must be positioned and corrected with the EIH camera 34 of the vision system. When the correction device 30 of the present invention prepares the correction, the code correction plate 20 is fixed to the working environment of the robot arm 31 and the EIH camera 34 by the support frame 36, and has a specific correction reference coordinate N, so the correction reference on the code correction plate 20 is used. The position of the coordinate origin relative to the corrected reference coordinate N is known. The respective white grids 22 in the code correction plate 20 are encoded via position coordinates, and the position of the relative reference coordinate N is also known. Since the arm reference coordinate M of the robot arm 31 and the correction reference coordinate N of the code correction plate 20 are fixed to each other and have a relatively fixed coordinate relationship, coordinate conversion can be performed.

本發明校正裝置30進行校正時,利用控制裝置32移動機器手臂31,帶動EIH攝影機34接近編碼校正板20,調整EIH攝影機34的焦距並擷取清晰的編碼校正板20的局部影像26,並由焦距F獲得與白色格子22的距離。再根據局部影像26中的白色格子22及方向圓23的方向座標編碼,藉由白色格子22的位置座標編碼,取得白色格子22相對校正參考座標N的預定座標,因此由焦距F及白色格子22的預定座標,即可獲得EIH攝影機34相對校正參考座標N的座標。再利用校正參考座標N對手臂參考座標M座標轉換,就可判斷出EIH攝影機34在手臂參考座標M的正確座標,與EIH攝影機 34在手臂參考座標M的校正前座標比較,就可校正機器手臂31移動誤差。 When the calibration device 30 of the present invention performs the correction, the control device 32 moves the robot arm 31 to drive the EIH camera 34 to approach the code correction plate 20, adjust the focal length of the EIH camera 34, and capture a clear partial image 26 of the code correction plate 20, and The focal length F obtains the distance from the white lattice 22. Then, according to the direction coordinate coding of the white grid 22 and the direction circle 23 in the partial image 26, the predetermined coordinates of the white lattice 22 relative to the corrected reference coordinate N are obtained by the position coordinate coding of the white lattice 22, and thus the focal length F and the white lattice 22 are obtained. The coordinates of the EIH camera 34 relative to the corrected reference coordinate N are obtained by the predetermined coordinates. By using the corrected reference coordinate N to convert the arm reference coordinate M coordinate, the correct coordinates of the EIH camera 34 at the arm reference coordinate M can be determined, and the EIH camera 34 The robot arm 31 movement error can be corrected by comparing the corrected front coordinates of the arm reference coordinate M.

本發明機器手臂的校正裝置30,雖可如前述,控制機器手臂移動EIH攝影機34至編碼校正板20前的任一位置完成校正。但由於一般機器手臂受組裝誤差及本身重力的影響,移動誤差並不均勻。因此,本發明機器手臂的校正裝置30,基於利用編碼校正板20不需太大空間移動機器手臂31的特性,可預設多個不同位置,擷取局部編碼校正板的影像,多次進行校正,平均或適應不均勻移動誤差,以達到提升機器手臂31的移動精確度的目的。 The correcting device 30 of the robot arm of the present invention can perform the correction at any position before the robot arm moves the EIH camera 34 to the encoding correction plate 20 as described above. However, due to the assembly error of the general robot arm and its own gravity, the movement error is not uniform. Therefore, the correcting device 30 of the robot arm of the present invention can preset a plurality of different positions based on the characteristics of the robot correcting plate 20 without using too much space to move the robot arm 31, capture the image of the local encoding correcting plate, and perform correction multiple times. , averaging or adapting to uneven movement errors to achieve the purpose of improving the movement accuracy of the robot arm 31.

如圖4所示,為本發明機器手臂的校正方法的流程圖。本發明機器手臂的校正方法的詳細步驟說明如下:首先在步驟R1,將編碼校正板以預設座標設在機器手臂的視覺系統的攝影範圍內。進入步驟R2,調整視覺系統的焦距,擷取編碼校正板影像。在步驟R3,根據擷取的編碼校正板影像,計算編碼校正板中座標編碼的定位,由座標編碼定位及焦距,進行視覺系統定位。在步驟R4,比較視覺系統的定位與在手臂參考座標的校正前座標,以校正機器手臂的移動誤差。接著在步驟R5,檢查是否進行預定校正次數,如否則進入步驟R7移動機器手臂至編碼校正板另一預設座標編碼後,回到步驟R2繼續校正不同位置,如已進行足夠的校正次數,則進入步驟R6,適應不均勻移動誤差,以完成機器手臂的校正。 As shown in FIG. 4, it is a flowchart of a method for correcting a robot arm of the present invention. The detailed steps of the method of correcting the robot arm of the present invention are as follows: First, in step R1, the code correction plate is set in a predetermined range in the photographing range of the vision system of the robot arm. Go to step R2, adjust the focal length of the vision system, and capture the image of the code correction plate. In step R3, according to the captured code correction plate image, the positioning of the coordinate code in the coding correction plate is calculated, and the coordinate system positioning is performed by coordinate coding positioning and focal length. At step R4, the positioning of the vision system and the corrected front coordinates at the arm reference coordinates are compared to correct the movement error of the robot arm. Next, in step R5, it is checked whether a predetermined number of corrections is performed. If the process proceeds to step R7 to move the robot arm to another predetermined coordinate code of the code correction plate, return to step R2 to continue to correct the different positions. If sufficient correction times have been performed, Proceed to step R6 to adapt to the uneven movement error to complete the correction of the robot arm.

因此,本發明機器手臂的校正裝置,就可利用編碼校正板由空心圓及實心圓排列組合的位置座標編碼,藉由機器手臂的視覺系統,擷取編碼校正板的任一位置座標編碼,使機器手臂不須擷取整個編碼校正板的活動空間,以達到提高機器手臂設置空間的彈性的目的。並可進行多次 校正,適應不均勻移動誤差,達到提升機器手臂的移動精確度。 Therefore, the correcting device for the robot arm of the present invention can use the coding correction plate to encode the position coordinates of the combination of the hollow circle and the solid circle, and the coordinate system of the robot arm can capture the coordinate code of any position of the coding correction plate, so that The robot arm does not need to capture the active space of the entire code correction plate to achieve the purpose of improving the flexibility of the robot arm setting space. And can be done multiple times Correction, adapt to uneven movement error, to improve the movement accuracy of the robot arm.

如圖5所示,為本發明機器手臂的校正裝置30定位視覺系統的示意圖。本發明的機器手臂31視覺系統可包含固定在機器手臂31外部的ETH攝影機40,具有相對手臂參考座標M固定的校正前座標。ETH攝影機40用以擷取機器手臂31外部工作環境的影像,以監視機器手臂31的工作環境,以及引導機器手臂31的活動端33固定EIH攝影機34接近工件。接著利用EIH攝影機34擷取工件影像,經由控制裝置32進行工件定位,使控制裝置32根據手臂參考座標M,控制機器手臂31,移動活動端33設置地夾取機構37夾取及組裝工件。由於機器手臂31與視覺系統存在定位誤差,為了精確夾取及組裝工件,機器手臂31須分別與視覺系統的EIH攝影機34及ETH攝影機40進行定位校正,但無先後順序。 As shown in FIG. 5, a schematic diagram of positioning the vision system of the correction device 30 of the robot arm of the present invention is shown. The robotic arm 31 vision system of the present invention can include an ETH camera 40 that is external to the robotic arm 31 and has a fixed front coordinate that is fixed relative to the arm reference coordinate M. The ETH camera 40 is used to capture an image of the external working environment of the robot arm 31 to monitor the working environment of the robot arm 31, and to guide the movable end 33 of the robot arm 31 to fix the EIH camera 34 to approach the workpiece. Next, the workpiece image is captured by the EIH camera 34, and the workpiece is positioned by the control device 32, so that the control device 32 controls the robot arm 31 according to the arm reference coordinate M, and the gripping mechanism 37 is provided by the movable end 33 to grip and assemble the workpiece. Due to the positioning error of the robot arm 31 and the vision system, in order to accurately grip and assemble the workpiece, the robot arm 31 must perform positioning correction with the EIH camera 34 and the ETH camera 40 of the vision system, respectively, without prioritization.

本發明前已完成機器手臂31與EIH攝影機34的校正,接著進行機器手臂31與ETH攝影機40的校正。校正前先將機器手臂31的活動端33移離編碼校正板20。將編碼校正板20利用支撐架38固定在ETH攝影機40的攝影範圍,並具有特定的校正參考座標N,因此編碼校正板20上校正參考座標原點相對校正參考座標N的位置為已知。編碼校正板20內各白色格子22,經由位置座標編碼的定位,相對校正參考座標N的位置亦為已知。因機器手臂31的手臂參考座標M及編碼校正板20的校正參考座標N,彼此距離固定,具有相對固定的座標關係,所以能進行座標轉換。 Correction of the robot arm 31 and the EIH camera 34 has been completed prior to the present invention, followed by correction of the robot arm 31 and the ETH camera 40. The movable end 33 of the robot arm 31 is moved away from the code correction plate 20 before correction. The code correction plate 20 is fixed to the photographing range of the ETH camera 40 by the support frame 38, and has a specific correction reference coordinate N, so that the position of the corrected reference coordinate origin on the code correction plate 20 with respect to the correction reference coordinate N is known. The position of the respective white lattice 22 in the code correction plate 20 via the position coordinate encoding is also known relative to the position of the corrected reference coordinate N. Since the arm reference coordinate M of the robot arm 31 and the correction reference coordinate N of the code correction plate 20 are fixed to each other and have a relatively fixed coordinate relationship, coordinate conversion can be performed.

本發明校正時,由ETH攝影機40聚焦擷取清晰的編碼校正板20的影像,如果距離足夠,ETH攝影機40可擷取編碼校正板20的完整影像,比照先前技術進行ETH攝影機40的定位。假如距離不足夠,ETH攝影機40 僅能擷取編碼校正板20的局部影像26,藉由聚焦的焦距F及局部影像26中的位置座標編碼,獲得校正參考座標N的定位,再由固定距離的手臂參考座標M轉換,獲得ETH攝影機40在手臂參考座標M的座標,以完成ETH攝影機40的定位,再與ETH攝影機40校正前座標比較,校正ETH攝影機40與機器手臂31的誤差。使機器手臂31與EIH攝影機34、ETH攝影機40無控制誤差,以精確引導機器手臂31移動。 When the invention is calibrated, the image of the clear code correction plate 20 is captured by the ETH camera 40. If the distance is sufficient, the ETH camera 40 can capture the complete image of the code correction plate 20 and perform the positioning of the ETH camera 40 in accordance with the prior art. If the distance is not enough, ETH camera 40 Only the partial image 26 of the code correction plate 20 can be captured, and the position of the corrected reference coordinate N is obtained by the focal length F of the focus and the position coordinate code in the partial image 26, and then converted by the arm reference coordinate M of the fixed distance to obtain ETH. The camera 40 is at the coordinates of the arm reference coordinate M to complete the positioning of the ETH camera 40, and then compared with the ETH camera 40 to correct the front coordinates to correct the error between the ETH camera 40 and the robot arm 31. The robot arm 31 has no control error with the EIH camera 34 and the ETH camera 40 to accurately guide the movement of the robot arm 31.

如圖6所示,為本發明機器手臂對視覺系統校正方法的流程圖。本發明機器手臂的校正方法的詳細步驟說明如下:首先在步驟S1,將編碼校正板上預設座標固定在機器手臂、EIH攝影機及ETH攝影機的工作環境內。進入步驟S2,移動機器手臂至編碼校正板。在步驟S3,根據EIH攝影機擷取的編碼校正板影像,計算座標編碼,完成EIH攝影機的定位,以校正機器手臂。在步驟S4,移動機器手臂離開ETH攝影機的攝影範圍。接著在步驟S5,根據ETH攝影機擷取的編碼校正板影像,計算座標編碼定位ETH攝影機,以校正機器手臂。最後在步驟S6,完成校正機器手臂與ETH攝影機、EIH攝影機的定位誤差。 FIG. 6 is a flow chart of a method for correcting a vision system of a robot arm according to the present invention. The detailed steps of the method for correcting the robot arm of the present invention are as follows: First, in step S1, the preset coordinates on the code correction plate are fixed in the working environment of the robot arm, the EIH camera, and the ETH camera. Proceeding to step S2, the robot arm is moved to the code correction plate. In step S3, the coordinate code is calculated according to the code correction plate image captured by the EIH camera, and the positioning of the EIH camera is completed to correct the robot arm. At step S4, the mobile robot arm leaves the photographic range of the ETH camera. Next, in step S5, the coordinate coded position ETH camera is calculated based on the code correction plate image captured by the ETH camera to correct the robot arm. Finally, in step S6, the positioning error of the correction robot arm with the ETH camera and the EIH camera is completed.

因此,本發明的機器手臂的校正方法,就可利用編碼校正板,分別定位機器手臂的ETH攝影機及EIH攝影機,校正機器手臂的移動誤差,達到精確控制機器手臂移動的目的。 Therefore, in the method for correcting the robot arm of the present invention, the encoder correction plate can be used to respectively position the ETH camera and the EIH camera of the robot arm to correct the movement error of the robot arm, so as to accurately control the movement of the robot arm.

以上所述者,僅為用以方便說明本發明之較佳實施例,本發明之範圍不限於該等較佳實施例,凡依本發明所做的任何變更,於不脫離本發明之精神下,皆屬本發明申請專利之範圍。 The above is only a preferred embodiment for facilitating the description of the present invention, and the scope of the present invention is not limited to the preferred embodiments, and any changes made in accordance with the present invention may be made without departing from the spirit of the present invention. All of them are within the scope of the patent application of the present invention.

20‧‧‧編碼校正板 20‧‧‧Code Correction Board

21‧‧‧黑色格子 21‧‧‧Black plaid

22‧‧‧白色格子 22‧‧‧White plaid

23‧‧‧方向圓 23‧‧‧ Directional circle

24‧‧‧空心圓 24‧‧‧ hollow circle

25‧‧‧實心圓 25‧‧‧ Solid circle

Claims (12)

一種機器手臂的校正裝置,包含:一機器手臂,一端固定設在基座,另一端設活動端;一視覺系統,與機器手臂具有相對的座標,擷取機器手臂的工作環境影像;一控制裝置,利用視覺系統擷取的影像,控制機器手臂的活動端移動;一編碼校正板,固定在機器手臂的工作環境,與機器手臂具有固定的相對座標,編碼校正板為棋盤格狀,格子內標示座標編碼,表示相對編碼校正板的方向及位置;其中,視覺系統聚焦擷取編碼校正板的座標編碼影像,定位視覺系統,以校正機器手臂的移動誤差。 A robot arm correcting device comprises: a robot arm, one end is fixedly disposed on the base and the other end is provided with a movable end; a visual system has an opposite coordinate with the robot arm, and captures a working environment image of the robot arm; a control device The image captured by the vision system is used to control the movement of the movable end of the robot arm; a code correction plate is fixed in the working environment of the robot arm, and has a fixed relative coordinate with the robot arm, and the code correction plate is a checkerboard shape, and the inside of the grid is marked. The coordinate code indicates the direction and position of the relative calibration plate; wherein the vision system focuses on the coordinate coded image of the code correction plate and positions the vision system to correct the movement error of the robot arm. 如申請專利範圍第1項所述之機器手臂的校正裝置,其中該視覺系統包含ETH攝影機與EIH攝影機,ETH攝影機固定在機器手臂的外部,EIH攝影機固定在機器手臂的活動端。 The robot arm correction device according to claim 1, wherein the vision system comprises an ETH camera and an EIH camera, the ETH camera is fixed on the outside of the robot arm, and the EIH camera is fixed on the movable end of the robot arm. 如申請專利範圍第1項所述之機器手臂的校正裝置,其中該編碼校正板棋盤的格子為黑色格子與白色格子相互間隔組成,在每一黑色格子內標示方向座標編碼,以表示相對編碼校正板的方向,白色格子內標示位置座標編碼,以表示相對編碼校正板的位置。 The apparatus for correcting a robot arm according to claim 1, wherein the grid of the code correction board is composed of a black grid and a white grid, and a direction coordinate code is indicated in each black grid to indicate relative coding correction. The direction of the board, the position coordinate code is indicated in the white grid to indicate the position of the relative code correction board. 如申請專利範圍第3項所述之機器手臂的校正裝置,其中該方向座標編碼在黑色格子內的上方左角,標示方向圓,以表示編碼校正板校正座標原點的方向。 The apparatus for correcting a robot arm according to claim 3, wherein the direction coordinate is encoded in an upper left corner in the black grid, and a direction circle is indicated to indicate a direction in which the encoder calibration plate corrects the origin of the coordinates. 如申請專利範圍第3項所述之機器手臂的校正裝置,其中該位置座標編碼在白色格子內設置空心圓及實心圓的編碼圓排列組合而成,以表示白色格 子相對編碼校正板校正座標原點的位置。 The apparatus for correcting a robot arm according to claim 3, wherein the position coordinate code is formed by combining a circular circle and a solid circle in a white grid to represent a white grid. The sub-correction code correction plate corrects the position of the coordinate origin. 如申請專利範圍第5項所述之機器手臂的校正裝置,其中該白色格子內的編碼圓,排成兩行,第一行代表X軸以及第二行代表Y軸,每行各具有第一列A、第二列B及第三列C的編碼圓,位置由下至上表示為2的0至2次方,該白色格子的座標式為:X=A*20+B*21+C*22 Y=A*20+B*21+C*22 The apparatus for correcting a robot arm according to claim 5, wherein the coding circle in the white grid is arranged in two rows, the first row represents the X axis and the second row represents the Y axis, and each row has the first The coding circle of column A, the second column B, and the third column C, the position is represented by the bottom to the top of the 0 to 2 power of 2, the coordinate formula of the white lattice is: X = A * 2 0 + B * 2 1 + C*2 2 Y=A*2 0 +B*2 1 +C*2 2 一種機器手臂的校正方法,其步驟包含:將編碼校正板以預設座標固定在機器手臂的視覺系統的攝影範圍內;利用機器手臂的視覺系統聚焦擷取的編碼校正板影像;根據擷取的編碼校正板影像及焦距,計算編碼校正板座標編碼,定位視覺系統;比較視覺系統的定位與校正前座標;校正機器手臂的移動誤差。 A method for correcting a robot arm, the method comprising: fixing a code correction plate to a photographing range of a vision system of a robot arm with a preset coordinate; and focusing the captured code correction plate image by using a vision system of the robot arm; Encode the calibration plate image and focal length, calculate the coding calibration plate coordinate code, locate the vision system; compare the positioning of the vision system and correct the front coordinates; correct the movement error of the robot arm. 如申請專利範圍第7項所述之機器手臂的校正方法,其中視覺系統為固定在機器手臂外部的ETH攝影機。 The method of correcting a robot arm according to claim 7, wherein the vision system is an ETH camera fixed to the outside of the robot arm. 如申請專利範圍第7項所述之機器手臂的校正方法,其中視覺系統為固定在機器手臂上的EIH攝影機。 The method for correcting a robot arm according to claim 7, wherein the vision system is an EIH camera fixed to the robot arm. 如申請專利範圍第7項所述之機器手臂的校正方法,其中視覺系統包含ETH攝影機及EIH攝影機,分別依序完成ETH攝影機及EIH攝影機的定位校正。 The method for correcting a robot arm according to claim 7, wherein the vision system comprises an ETH camera and an EIH camera, and the positioning correction of the ETH camera and the EIH camera are respectively performed in sequence. 如申請專利範圍第8項所述之機器手臂的校正方法,其中校正後檢查預定校正的次數不足,移動機器手臂擷取編碼校正板不同的座標編碼,繼續 校正。 The method for correcting a robot arm according to claim 8, wherein the number of times the predetermined correction is corrected after the correction is insufficient, and the mobile robot arm captures different coordinate codes of the code correction plate, and continues. Correction. 如申請專利範圍第11項所述之機器手臂的校正方法,其中檢查進行預定校正的次數足夠時,平均移動誤差,完成機器手臂的校正。 The method for correcting a robot arm according to claim 11, wherein the number of times the predetermined correction is performed is sufficient, the average movement error is performed, and the correction of the robot arm is completed.
TW103125784A 2014-07-28 2014-07-28 Calibration device and method for robot arm TWI532575B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103125784A TWI532575B (en) 2014-07-28 2014-07-28 Calibration device and method for robot arm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103125784A TWI532575B (en) 2014-07-28 2014-07-28 Calibration device and method for robot arm

Publications (2)

Publication Number Publication Date
TW201603979A true TW201603979A (en) 2016-02-01
TWI532575B TWI532575B (en) 2016-05-11

Family

ID=55809472

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103125784A TWI532575B (en) 2014-07-28 2014-07-28 Calibration device and method for robot arm

Country Status (1)

Country Link
TW (1) TWI532575B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI617995B (en) * 2016-11-04 2018-03-11 廣明光電股份有限公司 Method for checking the vision position of a robot
US10737387B2 (en) 2017-12-05 2020-08-11 Industrial Technology Research Institute Robot arm calibration device and method thereof
TWI832770B (en) * 2023-05-31 2024-02-11 台達電子工業股份有限公司 Calibration method and system for mechanical arm based on image processing

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI750310B (en) * 2018-01-29 2021-12-21 達明機器人股份有限公司 Method for copying process points of robot arm
TWI696529B (en) 2018-11-30 2020-06-21 財團法人金屬工業研究發展中心 Automatic positioning method and automatic control apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI617995B (en) * 2016-11-04 2018-03-11 廣明光電股份有限公司 Method for checking the vision position of a robot
US10737387B2 (en) 2017-12-05 2020-08-11 Industrial Technology Research Institute Robot arm calibration device and method thereof
TWI832770B (en) * 2023-05-31 2024-02-11 台達電子工業股份有限公司 Calibration method and system for mechanical arm based on image processing

Also Published As

Publication number Publication date
TWI532575B (en) 2016-05-11

Similar Documents

Publication Publication Date Title
TWI532575B (en) Calibration device and method for robot arm
US9193073B1 (en) Robot calibration apparatus for calibrating a robot arm
CN105279775B (en) The means for correcting and method of robotic arm
TWI670153B (en) Robot and robot system
KR102081743B1 (en) Auto calibration method for robotic systems
WO2021012122A1 (en) Robot hand-eye calibration method and apparatus, computing device, medium and product
JP2015182144A (en) Robot system and calibration method of robot system
JP2017505240A (en) Automatic calibration method for robotic systems using visual sensors
TW202023767A (en) Method and apparatus of non-contact tool center point calibration for a mechanical arm, and a mechanical arm system with said calibration function
JP2015174191A (en) Robot system, calibration method of robot system and position correction method of robot system
JP6576655B2 (en) Stage mechanism
CN114643578B (en) Calibration device and method for improving robot vision guiding precision
CN109483531A (en) It is a kind of to pinpoint the NI Vision Builder for Automated Inspection and method for picking and placing FPC plate for manipulator
US10210607B1 (en) Digital projection system and method for workpiece assembly
TW201947078A (en) Method and System for Automatic Calibration of Needle Position
CN104552341A (en) Single-point multi-view meter-hanging posture error detecting method of mobile industrial robot
CN110815201B (en) Method for correcting coordinates of robot arm
WO2017220030A1 (en) Method for calibrating beam spot
CN111482964A (en) Novel robot hand-eye calibration method
TWI617995B (en) Method for checking the vision position of a robot
CN109541626B (en) Target plane normal vector detection device and detection method
CN111376254B (en) Plane ranging method and system and plane adjusting method and system for mechanical arm
TW201900358A (en) Method for calibrating coordinator of robot arm
JP6582405B2 (en) Assembly apparatus, robot hand position correcting method, and robot hand position correcting program
CN110861076A (en) Hand eye calibration device of mechanical arm