[go: up one dir, main page]

TWI706843B - Alignment method for robot tool and alignment system for using the same - Google Patents

Alignment method for robot tool and alignment system for using the same Download PDF

Info

Publication number
TWI706843B
TWI706843B TW109100016A TW109100016A TWI706843B TW I706843 B TWI706843 B TW I706843B TW 109100016 A TW109100016 A TW 109100016A TW 109100016 A TW109100016 A TW 109100016A TW I706843 B TWI706843 B TW I706843B
Authority
TW
Taiwan
Prior art keywords
coordinate system
tool
imaging device
axis
flange surface
Prior art date
Application number
TW109100016A
Other languages
Chinese (zh)
Other versions
TW202126449A (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 TW109100016A priority Critical patent/TWI706843B/en
Application granted granted Critical
Publication of TWI706843B publication Critical patent/TWI706843B/en
Publication of TW202126449A publication Critical patent/TW202126449A/en

Links

Images

Landscapes

  • Manipulator (AREA)

Abstract

An alignment system for robot tool including a robotic arm adopting a first coordinate system, a tool arranged on a flange of the robotic arm, and an image device adopting a second coordinate system is disclosed, wherein an image sensing area is established by the image device. An alignment method is also disclosed and includes following steps of: controlling the robotic arm to move for leading a tool working point (TWP) of the tool enters the image sensing area; recording a current gesture of the robotic arm as well as a specific coordinate of the TWP currently upon the second coordinate system; obtaining a transformation matrix previously built for describing a relationship between the first and the second coordinate systems; and importing the specific coordinate and the current gesture to the transformation matrix for calculating an absolute position of the TWP upon the first coordinate system.

Description

機器人工具的校正方法與校正系統 Correction method and correction system of robot tool

本發明涉及機器人的校正方法與校正系統,尤其涉及對機器人上配置的工具進行校正的校正方法與校正系統。 The present invention relates to a calibration method and a calibration system of a robot, in particular to a calibration method and a calibration system for calibrating a tool configured on the robot.

目前機器手臂已經廣泛地應用於自動化生產程序中。具體而言,產線人員通常會將各種類型的工具(例如夾具、連接工具、焊接工具等)安裝在機器手臂的法蘭面(Flange)上,藉此機器手臂可藉由這些工具來實現產線自動化流程。 At present, robotic arms have been widely used in automated production procedures. Specifically, production line personnel usually install various types of tools (such as fixtures, connection tools, welding tools, etc.) on the flange surface of the robot arm, so that the robot arm can use these tools to achieve production. Line automation process.

由於機器手臂本身只知道法蘭面的位置,但是不知道工具上的工具工作點(Tool Working Point,TWP)的實際位置,因此在安裝或更換了工具後,必須要先進行校正,以令機器手臂的控制器獲得所述工具工作點的位置資訊。 Since the robot arm itself only knows the position of the flange surface, but does not know the actual position of the Tool Working Point (TWP) on the tool, after installing or replacing the tool, it must be calibrated first to make the machine The controller of the arm obtains the position information of the working point of the tool.

工具工作點的位置精度會影響自動化流程的精準度,例如,若工具工作點的位置有誤,則在機器手臂的作動過程中可能會造成產品的損傷,嚴重者甚至可能造成產線停滯。因此,要如何對工具進行有效的校正,即為相關領域中非常重要的課題。 The position accuracy of the tool working point will affect the accuracy of the automated process. For example, if the position of the tool working point is wrong, the product may be damaged during the operation of the robot arm, and the production line may even stop in severe cases. Therefore, how to effectively calibrate tools is a very important topic in related fields.

由於工具在生產製造時可能會有加工公差,而將工具安裝至機器手臂上時也可能出現幾何偏差。再者,若長時間使用所述工具,亦可能會導致工具磨損而產生間隙或變形。上述原因都可能影響工具工作點的位置精度。 Since tools may have machining tolerances during manufacturing, geometric deviations may also occur when the tools are installed on the robot arm. Moreover, if the tool is used for a long time, it may also cause the tool to wear and cause gaps or deformation. The above reasons may affect the position accuracy of the tool working point.

為了解決上述問題,目前市面上主要可見下列幾種校正方式:(1)人工教導方式:以人工方式操作機器手臂,令機器手臂以數種不同姿態到達空間中的同一位置,藉此進行工具工作點的位置記錄;(2)接觸式校正方式:令機器手臂帶動工具移動,並使工具工作點依序碰觸校正裝置中各個軸向的方塊並取得方向偏移量,藉此依據方向偏移量對工具進行校正;以及(3)非接觸式校正方式:令機器手臂帶動工具於光遮斷校正裝置構成的空間內移動,使得工具工作點以數種不同姿態到達光線交叉點,藉此建立工具的樣本並產生對應的偏差量,再依據樣本及偏差量來對工具進行校正。 In order to solve the above problems, the following correction methods are currently available on the market: (1) Manual teaching method: Manually operate the robot arm, so that the robot arm reaches the same position in the space in several different postures, thereby performing tool work Point position recording; (2) Contact correction method: the robot arm drives the tool to move, and the tool working point sequentially touches the squares of each axis in the correction device and obtains the direction offset, thereby offsetting according to the direction (3) Non-contact correction method: the robot arm drives the tool to move in the space formed by the light blocking correction device, so that the tool working point reaches the intersection of light in several different postures, thereby establishing The sample of the tool and the corresponding deviation are generated, and then the tool is corrected according to the sample and the deviation.

然而,上述人工教導方式是完全依靠人眼以不可量化的方式進行教導(即,基於人眼以及人為經驗判斷機器手臂是否到達所需位置),其精準度完全受操作者的經驗和技術影響,因而相當不準確。上述接觸式校正方式需要讓工具工作點碰觸各個方塊,因此可能會在校正過程中導致工具磨損,且越是高精度的工具影響越大。 However, the above-mentioned manual teaching methods rely entirely on human eyes to teach in an unquantifiable manner (that is, judging whether the robot arm reaches the desired position based on human eyes and human experience), and its accuracy is completely affected by the operator’s experience and technology. So it is quite inaccurate. The above-mentioned contact-type calibration method requires that the working point of the tool touch each block, so the tool may be worn during the calibration process, and the more high-precision tool, the greater the impact.

上述非接觸式校正方式雖然不會有工具磨損的問題,但此種方式只能獲得工具工作點和機器手臂法蘭面間的偏差量,而無法得到工具工作點在機器手臂座標系上的絕對位置。並且,當工具更換時就需要重新建立樣本並重新取得偏差量,對產線人員來說相當麻煩。 Although the above non-contact correction method does not have the problem of tool wear, this method can only obtain the deviation between the tool working point and the flange surface of the robot arm, and cannot obtain the absolute value of the tool working point on the robot arm coordinate system. position. Moreover, when the tool is changed, it is necessary to recreate the sample and obtain the deviation again, which is quite troublesome for the production line personnel.

本發明的主要目的,在於提供一種機器人工具的校正方法與校正系統,可以有效對機器手臂上配置的工具進行校正,以消除工具生產製造時存在的公差、組裝時產生的偏差、或是工具因使用磨損而產生誤差。 The main purpose of the present invention is to provide a calibration method and system for robot tools, which can effectively calibrate the tools configured on the robot arm, so as to eliminate the tolerances that exist in the production and manufacture of the tools, the deviations generated during assembly, or the tool factors. Use wear and produce errors.

為了達成上述目的,本發明的校正系統主要包括使用第一座標系的一機器手臂、設置於該機器手臂的一法蘭面的一工具、以及使用第二座標系的一影像裝置,其中該影像裝置建立一個影像感測區。本發明的校正方法包括下列步驟:控制該機器手臂移動,使得該工具的一工作點進入該影像感測區內;記錄機器手臂的當前姿態以及該工作點在該第二座標系上的一特定座標;取得記錄了該第一座標系與該第二座標系間的對應關係的一轉換矩陣;及,將該特定座標及該當前姿態套入該轉換矩陣,以獲得該工作點在該第一座標系上的一絕對位置。 In order to achieve the above object, the calibration system of the present invention mainly includes a robotic arm using a first coordinate system, a tool arranged on a flange surface of the robotic arm, and an imaging device using a second coordinate system, wherein the image The device creates an image sensing area. The calibration method of the present invention includes the following steps: controlling the movement of the robotic arm so that a working point of the tool enters the image sensing area; recording the current posture of the robotic arm and a specific position of the working point on the second coordinate system Coordinates; obtain a conversion matrix that records the correspondence between the first coordinate system and the second coordinate system; and nest the specific coordinates and the current posture into the conversion matrix to obtain the working point in the first An absolute position on the coordinate system.

對照先前相關技術,本發明的校正系統與校正方法不需以人力進行機器手臂的教導,並且使用的是非接觸式的光感測手段,可以提供更高精度的校正結果,同時不會因為校正程序而導致工具本身的磨損。 In contrast to the prior related art, the calibration system and calibration method of the present invention do not require manual teaching of the robotic arm, and use non-contact light sensing means, which can provide higher-precision calibration results without being affected by calibration procedures. This leads to wear of the tool itself.

另,藉由本發明的校正系統與校正方法,可直接獲得工具上的一或多個工作點於機器手臂座標系上的絕對位置。相較於先前相關技術中的非接觸式校正方法,可不需建立工具的樣本,並且比起先前相關技術使用的偏差值,可更進一步提高校正精度。 In addition, with the calibration system and the calibration method of the present invention, the absolute position of one or more working points on the tool in the coordinate system of the robot arm can be directly obtained. Compared with the non-contact correction method in the prior related art, there is no need to create a sample of the tool, and compared with the deviation value used in the prior related art, the correction accuracy can be further improved.

1:校正系統 1: Calibration system

2:機器手臂 2: robotic arm

20:控制器 20: Controller

21:法蘭面 21: Flange surface

22:工具 22: Tools

221:工具工作點 221: Tool work point

3:影像裝置 3: Imaging device

30:影像處理單元 30: image processing unit

31:光源裝置 31: Light source device

32:感光裝置 32: photosensitive device

33:影像感測區 33: Image sensing area

4:工具工作點二維影像 4: Two-dimensional image of tool working point

41、42、4n:工具二維影像 41, 42, 4n: Tool two-dimensional image

5:法蘭面二維影像 5: Two-dimensional image of flange surface

S10~S16:校正步驟 S10~S16: Calibration steps

S20~S32:絕對位置取得步驟 S20~S32: Steps to obtain absolute position

S40~S50:轉換矩陣建立步驟 S40~S50: Steps to build transformation matrix

S60~S82:影像裝置座標系構成步驟 S60~S82: Steps to construct the coordinate system of the imaging device

S90~S98:三維影像建立步驟 S90~S98: 3D image creation steps

A:第一位置 A: First position

B:第二位置 B: second position

C:第三位置 C: third position

TI B:轉換矩陣 T I B : Conversion matrix

{B}:機器手臂座標系 {B}: Robotic arm coordinate system

{I}:影像裝置座標系 {I}: Coordinate system of image device

圖1 為本發明的校正系統的示意圖的第一具體實施例。 Fig. 1 is a first specific embodiment of the schematic diagram of the correction system of the present invention.

圖2 為本發明的校正方法的流程圖的第一具體實施例。 Fig. 2 is a first specific embodiment of a flowchart of the correction method of the present invention.

圖3 為本發明的校正方法的流程圖的第二具體實施例。 FIG. 3 is a second specific embodiment of the flowchart of the calibration method of the present invention.

圖4 為本發明的校正示意圖的第一具體實施例。 Fig. 4 is a first specific embodiment of the correction diagram of the present invention.

圖5 為本發明的建立流程圖的第一具體實施例。 Fig. 5 is a first specific embodiment of the establishment flow chart of the present invention.

圖6 為本發明的影像裝置座標系建立示意圖的第一具體實施例。 FIG. 6 is a first specific embodiment of the schematic diagram of establishing the coordinate system of the imaging device of the present invention.

圖7 為本發明的建立流程圖的第二具體實施例。 Fig. 7 is a second specific embodiment of the establishment flow chart of the present invention.

圖8 為本發明的轉換矩陣示意圖的第一具體實施例。 Fig. 8 is a first specific embodiment of a schematic diagram of a conversion matrix of the present invention.

圖9 為本發明的影像資訊示意圖的第一具體實施例。 FIG. 9 is a first embodiment of the image information schematic diagram of the present invention.

圖10 為本發明的影像資訊示意圖的第二具體實施例。 FIG. 10 is a second embodiment of the image information schematic diagram of the present invention.

圖11 為本發明的三維影像建立流程圖的第一具體實施例。 FIG. 11 is a first specific embodiment of the flow chart of creating a three-dimensional image of the present invention.

茲就本發明之一較佳實施例,配合圖式,詳細說明如後。 For a preferred embodiment of the present invention, with the drawings, the detailed description is as follows.

首請參閱圖1,為本發明的校正系統的示意圖的第一具體實施例。圖1揭露了本發明的機器人工具的校正系統(下面將於說明書中簡稱為校正系統1),如圖1所示,本發明的校正系統1主要包括了控制器20、機器手臂2、工具22及影像裝置3。 First, please refer to FIG. 1, which is a first specific embodiment of a schematic diagram of the calibration system of the present invention. Figure 1 discloses the calibration system of the robot tool of the present invention (hereinafter referred to as the calibration system 1 in the specification). As shown in Figure 1, the calibration system 1 of the present invention mainly includes a controller 20, a robot arm 2, a tool 22 And imaging device 3.

機器手臂2的一端固定設置於機台平面上,另一端朝外延伸並且具有法蘭面(Flange)21。所述法蘭面21為機器人領域的公知技術,於此不再贅述。本發明中,所述機器手臂2使用獨立的機器手臂座標系。於圖1的實施例中,所述機器手臂座標系以{B}表示,並且機器手臂座標系{B}的三軸座標分別以XB、YB、ZB來表示。 One end of the robotic arm 2 is fixedly arranged on the plane of the machine platform, and the other end extends outward and has a flange 21. The flange surface 21 is a well-known technology in the robotics field, and will not be repeated here. In the present invention, the robot arm 2 uses an independent robot arm coordinate system. In the embodiment of FIG. 1, the robot arm coordinate system is represented by {B}, and the three-axis coordinates of the robot arm coordinate system {B} are represented by X B , Y B , and Z B respectively .

所述工具22設置於機器手臂2的法蘭面21,並且基於工具22的使用方式,可於其上設定一個工具工作點(Tool Working Point,TWP)221。具體而言,所述工具工作點221指的是工具22上主要用來執行作業的特定點(例如焊接工具的焊接點、夾具的夾持點等),並且可由機器手臂2的使用者來自行設定。為便於理解,下面將於說明書中以單一個工具工作點221為例,進行說明,但一個工具22上並不以單一個工具工作點221為限。 The tool 22 is arranged on the flange surface 21 of the robotic arm 2 and based on the usage of the tool 22, a Tool Working Point (TWP) 221 can be set thereon. Specifically, the tool working point 221 refers to a specific point on the tool 22 that is mainly used to perform operations (such as the welding point of the welding tool, the clamping point of the fixture, etc.), and can be freely controlled by the user of the robot arm 2 set up. For ease of understanding, a single tool working point 221 will be taken as an example in the description below, but a single tool working point 221 is not limited to a single tool 22.

本發明的其中一個主要目的,在於當機器手臂2更換了新的工具22,或是工具22使用了一段時間而有精準度下降的現象時,藉由校正程序來重新尋找工具22上的工具工作點221在所述機器手臂座標系{B}上的絕對位置。當機器手臂2的控制器20得到工具22的工具工作點221的正確位置後,即可有效消除工具22生產製造時存在的公差、將工具22組裝至法蘭面21上時產生的偏差、或是工具22因使用磨損而產生誤差。 One of the main purposes of the present invention is to find the tool work on the tool 22 through the calibration procedure when the robot arm 2 is replaced with a new tool 22, or when the tool 22 has been used for a period of time and the accuracy has decreased. The absolute position of point 221 on the robot arm coordinate system {B}. After the controller 20 of the robotic arm 2 obtains the correct position of the tool working point 221 of the tool 22, it can effectively eliminate the tolerances in the production and manufacture of the tool 22, the deviation generated when the tool 22 is assembled to the flange surface 21, or The tool 22 has errors due to wear.

所述控制器20電性連接機器手臂2,用以控制機器手臂2的各項運動,例如位移、旋轉等。並且,當機器手臂2上設置有工具22時,控制器20可同時對工具22進行控制,以實現如焊接、夾持等作業。 The controller 20 is electrically connected to the robotic arm 2 for controlling various motions of the robotic arm 2, such as displacement and rotation. Moreover, when a tool 22 is provided on the robotic arm 2, the controller 20 can control the tool 22 at the same time to implement operations such as welding and clamping.

所述影像裝置3設置於機器手臂2旁,並且於機器手臂2的移動範圍內建立一個影像感測區33。本發明中,影像裝置3使用一個影像裝置座標系。於圖1的實施例中,所述影像裝置座標系以{I}表示,並且影像裝置座標系{I}的三軸座標分別以XI、YI、ZI來表示。 The imaging device 3 is arranged beside the robotic arm 2 and an image sensing area 33 is established within the moving range of the robotic arm 2. In the present invention, the imaging device 3 uses one imaging device coordinate system. In the embodiment of FIG. 1, the coordinate system of the imaging device is represented by {I}, and the three-axis coordinates of the coordinate system {I} of the imaging device are represented by X I , Y I , and Z I respectively .

值得一提的是,所述機器手臂座標系{B}是於機器手臂2製造完成後即可確定的,而影像裝置座標系{I}則是於機器手臂2及影像裝置3皆設置完成後,再將機器手臂座標系{B}做為基礎座標系來進行轉換所建立的(將於後 面段落進行詳述)。本發明的其中一個技術特徵在於,可以藉由已經確定的機器手臂座標系{B}以及影像裝置座標系{I}定義出一個記錄了機器手臂座標系{B}與影像裝置座標系{I}之間的對應關係的轉換矩陣。藉此,在工具22的校正程序中,控制器20可藉由轉換矩陣來推算所述工具工作點221在機器手臂座標系{B}上的絕對位置。於一實施例中,工具工作點221在機器手臂座標系上的絕對位置可以座標(Xt B,Yt B,Zt B)來表示。 It is worth mentioning that the robot arm coordinate system {B} can be determined after the robot arm 2 is manufactured, and the imaging device coordinate system {I} is after the robot arm 2 and the imaging device 3 are set up. , And then use the robot arm coordinate system {B} as the basic coordinate system to convert the established one (will be detailed in the following paragraphs). One of the technical features of the present invention is that a robot arm coordinate system {B} and imaging device coordinate system {I} can be defined by the determined robot arm coordinate system {B} and imaging device coordinate system {I} The conversion matrix of the correspondence between. Therefore, in the calibration procedure of the tool 22, the controller 20 can use the transformation matrix to calculate the absolute position of the tool working point 221 on the robot arm coordinate system {B}. In an embodiment, the absolute position of the tool working point 221 on the robot arm coordinate system can be represented by coordinates (X t B , Y t B , Z t B ).

如圖1所示,所述影像裝置3主要包括平行設置的光源裝置31與感光裝置32,以及電性連接感光裝置32的影像處理單元30。所述光源裝置31朝向感光裝置32發射光源,所述感光裝置32擷取光源裝置31所發射的光源,藉此,影像裝置3可以藉由光源來建立所述影像感測區33。於一實施例中,所述感光裝置32可例如為相機,於此並不加以限定。 As shown in FIG. 1, the imaging device 3 mainly includes a light source device 31 and a photosensitive device 32 arranged in parallel, and an image processing unit 30 electrically connected to the photosensitive device 32. The light source device 31 emits a light source toward the photosensitive device 32, and the photosensitive device 32 captures the light source emitted by the light source device 31, so that the imaging device 3 can establish the image sensing area 33 by the light source. In an embodiment, the photosensitive device 32 may be, for example, a camera, which is not limited herein.

本發明中,當機器手臂2上的工具22的工具工作點221進入影像感測區33時,感光裝置32感測到的部分光源會被工具工作點221截斷,藉此,影像處理單元30可以藉由截斷資訊判斷工具工作點221目前的位置,並且取得這個位置在影像裝置座標系{I}中的座標資訊。例如,工具工作點221在影像裝置座標系上的當前位置可以座標(

Figure 109100016-A0305-02-0008-15
,
Figure 109100016-A0305-02-0008-12
,
Figure 109100016-A0305-02-0008-17
)來表示。 In the present invention, when the tool working point 221 of the tool 22 on the robot arm 2 enters the image sensing area 33, part of the light source sensed by the photosensitive device 32 will be cut off by the tool working point 221, whereby the image processing unit 30 can The current position of the tool working point 221 is determined by truncating the information, and the coordinate information of this position in the image device coordinate system {I} is obtained. For example, the current position of the tool working point 221 in the coordinate system of the imaging device can be coordinate (
Figure 109100016-A0305-02-0008-15
,
Figure 109100016-A0305-02-0008-12
,
Figure 109100016-A0305-02-0008-17
)To represent.

於一實施例中,所述光源裝置31可以對外發射可見光或不可見光,例如X光、雷射、紅外線、紫外光等,於此並不加以限定。值得一提的是,只要令校正系統1中的各個裝置分別具備足夠的安全等級(例如足夠的防水等級),並且對所述光源在不同介質下的折射現象進行排除,則本發明的校正系統1及校正方法亦可以被運用在除了空氣以外的其他介質(例如水、油或其他溶液)中。 In one embodiment, the light source device 31 can emit visible light or invisible light, such as X-ray, laser, infrared light, ultraviolet light, etc., which is not limited herein. It is worth mentioning that, as long as each device in the correction system 1 has a sufficient security level (for example, a sufficient waterproof level), and the refraction phenomenon of the light source under different media is eliminated, the correction system of the present invention 1 and the calibration method can also be used in other media (such as water, oil or other solutions) besides air.

本發明的校正系統1是在安裝不同類型的工具22、更換同一類型的工具22、或是當既有工具22因長時間使用而有變形磨損情形時,由控制器20控制機器手臂2來執行相關的校正程序。 In the calibration system 1 of the present invention, when different types of tools 22 are installed, the same type of tools 22 are replaced, or the existing tools 22 are deformed and worn due to long-term use, the controller 20 controls the robot arm 2 to execute Related calibration procedures.

具體而言,當工具22被安裝至機器手臂2的法蘭面21上時,控制器20係控制機器手臂2移動,以令工具22的工具工作點221進入影像裝置3建立的影像感測區33中。當工具工作點221位於影像感測區33內時,控制器20記錄機器手臂2的當前姿態,並且記錄工具工作點221的當前位置對應至影像裝置座標系{I}上的一個特定座標。本實施例中,所述當前姿態可例如包括法蘭面21當前相對於機器手臂座標系的原點(圖未標示)的位移資訊(例如X軸位移量、Y軸位移量及Z軸位移量)與旋轉資訊(例如X軸旋轉量、Y軸旋轉量及Z軸旋轉量),於此並不加以限定。 Specifically, when the tool 22 is installed on the flange surface 21 of the robotic arm 2, the controller 20 controls the movement of the robotic arm 2 so that the tool working point 221 of the tool 22 enters the image sensing area established by the imaging device 3 33 in. When the tool working point 221 is located in the image sensing area 33, the controller 20 records the current posture of the robot arm 2 and records that the current position of the tool working point 221 corresponds to a specific coordinate on the coordinate system {I} of the imaging device. In this embodiment, the current posture may include, for example, the current displacement information (such as X-axis displacement, Y-axis displacement, and Z-axis displacement) of the flange surface 21 relative to the origin of the robot arm coordinate system (not shown in the figure). ) And rotation information (such as X-axis rotation, Y-axis rotation, and Z-axis rotation) are not limited here.

接著,控制器20可將所述當前姿態與特定座標匯入預先建立完成的轉換矩陣,以經由轉換而獲得工具工作點221在機器手臂座標系{B}上的絕對位置。如前文所述,所述轉換矩陣係記錄了所述機器手臂座標系{B}與所述影像裝置座標系{I}間的對應關係。於一實施例中,所述轉換矩陣為齊次轉換矩陣(Homogeneous transformation matrix),於此並不加以限定。 Then, the controller 20 can integrate the current posture and the specific coordinates into a pre-built conversion matrix to obtain the absolute position of the tool working point 221 on the robot arm coordinate system {B} through conversion. As mentioned above, the conversion matrix records the correspondence between the robot arm coordinate system {B} and the imaging device coordinate system {I}. In one embodiment, the transformation matrix is a homogeneous transformation matrix (Homogeneous transformation matrix), which is not limited herein.

總言之,藉由本發明的校正系統1,可以在確定了機器手臂座標系{B}和影像裝置座標系{I}後,預先推得所述轉換矩陣。如此一來,當要對機器手臂2上的工具22進行校正時,即可藉由工具工作點221在影像裝置座標系{I}中的座標、機器手臂2的姿態以及轉換矩陣來求得工具工作點221在機器手臂座標系{B}上的絕對位置。藉此,可有效提高機器手臂2在操作上的精準度。 In short, with the calibration system 1 of the present invention, the conversion matrix can be derived in advance after the robot arm coordinate system {B} and the imaging device coordinate system {I} are determined. In this way, when the tool 22 on the robotic arm 2 is to be calibrated, the tool can be obtained by the coordinates of the tool working point 221 in the imaging device coordinate system {I}, the posture of the robotic arm 2 and the conversion matrix The absolute position of the working point 221 on the robot arm coordinate system {B}. In this way, the operation accuracy of the robotic arm 2 can be effectively improved.

續請參閱圖2,為本發明的校正方法的流程圖的第一具體實施例。首先,由使用者確定校正系統1中機器手臂2/影像裝置3是否重新安裝或更換(步驟S10)。若校正系統1為第一次安裝,或是機器手臂2及影像裝置3的其中之一被更換時,即需先建立機器手臂座標系{B}與影像裝置座標系{I}之間的轉換關係(步驟S12),即,建立所述轉換矩陣。 Please continue to refer to FIG. 2, which is a first specific embodiment of the flow chart of the calibration method of the present invention. First, the user determines whether the robot arm 2 / imaging device 3 in the calibration system 1 is reinstalled or replaced (step S10). If the calibration system 1 is installed for the first time, or when one of the robotic arm 2 and the imaging device 3 is replaced, the conversion between the robotic arm coordinate system {B} and the imaging device coordinate system {I} needs to be established first The relationship (step S12), that is, the conversion matrix is established.

接著,使用者或校正系統1的控制器20需確定機器手臂2的法蘭面21上設置的工具22是否需要校正(步驟S14),即,判斷機器手臂2上的工具22是否更換(相同類型或不同類型),或是工具22是否因長時間使用而有精準度下降的現象。 Next, the user or the controller 20 of the calibration system 1 needs to determine whether the tool 22 set on the flange surface 21 of the robot arm 2 needs to be calibrated (step S14), that is, it is determined whether the tool 22 on the robot arm 2 is replaced (the same type Or different types), or whether the accuracy of the tool 22 is reduced due to long-term use.

若經判斷後認為工具22需要校正,則校正系統1經由控制器20控制機器手臂2進行移動/轉動,以經由上述校正程序來取得工具22上的一個工具工作點221在機器手臂座標系{B}上的絕對位置(步驟S16)。在取得了工具工作點221在機器手臂座標系{B}上的絕對位置後,控制器20即可精準地掌握工具22的所在位置,進而提高機器手臂2的精準度。 If it is determined that the tool 22 needs to be calibrated, the calibration system 1 controls the robot arm 2 to move/rotate via the controller 20 to obtain a tool working point 221 on the tool 22 in the robot arm coordinate system through the above calibration procedure. } On the absolute position (step S16). After obtaining the absolute position of the tool working point 221 on the robot arm coordinate system {B}, the controller 20 can accurately grasp the position of the tool 22, thereby improving the accuracy of the robot arm 2.

續請同時參閱圖3及圖4,圖3為本發明的校正方法的流程圖的第二具體實施例,圖4為本發明的校正示意圖的第一具體實施例。圖3揭露了本發明的機器人工具的校正方法(下面將於說明書中簡稱為校正方法),並且所述校正方法係應用於如圖1所示的校正系統1。 Please refer to FIG. 3 and FIG. 4 at the same time. FIG. 3 is a second specific embodiment of the flowchart of the calibration method of the present invention, and FIG. 4 is the first specific embodiment of the calibration schematic diagram of the present invention. FIG. 3 discloses the calibration method of the robot tool of the present invention (hereinafter referred to as the calibration method in the specification), and the calibration method is applied to the calibration system 1 shown in FIG. 1.

如圖3所示,首先,由機器手臂2的使用者以人工方式或由機器手臂2的控制器20以自動方式判斷機器手臂2上的工具22是否需要進行校正(步驟S20)。於一實施例中,使用者/控制器20主要是於工具22被更換、工具 22的使用時間超過第一門檻值、或是工具22的精準度小於第二門檻值時,判斷工具22需要進行校正。 As shown in FIG. 3, first, the user of the robot arm 2 manually or the controller 20 of the robot arm 2 determines whether the tool 22 on the robot arm 2 needs to be corrected (step S20). In one embodiment, the user/controller 20 is mainly when the tool 22 is replaced and the tool When the use time of 22 exceeds the first threshold, or the accuracy of the tool 22 is less than the second threshold, it is determined that the tool 22 needs to be corrected.

接著,於工具22(新工具或是需要校正的舊工具)被設置在機器手臂2的法蘭面21上時,由控制器20控制機器手臂2移動,以令工具22的工具工作點221進入影像裝置3所建立的影像感測區33中(步驟S22)。如前文所述,影像裝置3主要是通過光源裝置31發射光源,通過感光裝置32擷取光源裝置31所發射的光源,藉此由所述光源在機器手臂2的移動範圍內建立影像感測區33。 Then, when the tool 22 (a new tool or an old tool that needs to be calibrated) is set on the flange surface 21 of the robot arm 2, the controller 20 controls the robot arm 2 to move so that the tool working point 221 of the tool 22 enters In the image sensing area 33 created by the image device 3 (step S22). As mentioned above, the imaging device 3 mainly emits a light source through the light source device 31, and captures the light source emitted by the light source device 31 through the photosensitive device 32, whereby the light source creates an image sensing area within the moving range of the robotic arm 2 33.

如圖4所示,當工具工作點221位於影像感測區33中時,影像裝置3可藉由感光裝置32擷取到的截斷資訊判斷工具工作點221的當前位置,進而取得工具工作點221目前在影像裝置座標系{I}上的特定座標。於圖4的實施例中,所述特定座標以(Xt I,Yt I,Zt I)來表示,其中I代表影像裝置座標系{I},t代表工具工作點221。並且,本發明中的影像裝置座標系{I}是以機器手臂座標系{B}做為參考座標系統所描繪出來的座標系(容後詳述)。當工具工作點221位於影像感測區33中時,機器手臂2的控制器20亦可得知工具工作點221的上述特定座標。 As shown in FIG. 4, when the tool working point 221 is located in the image sensing area 33, the imaging device 3 can determine the current position of the tool working point 221 by using the truncated information captured by the photosensitive device 32 to obtain the tool working point 221 The current specific coordinates on the coordinate system of the imaging device {I}. In the embodiment of FIG. 4, the specific coordinates are represented by (X t I , Y t I , Z t I ), where I represents the image device coordinate system {I}, and t represents the tool operating point 221. Moreover, the image device coordinate system {I} in the present invention is a coordinate system drawn by the robot arm coordinate system {B} as the reference coordinate system (detailed later). When the tool working point 221 is located in the image sensing area 33, the controller 20 of the robotic arm 2 can also know the specific coordinates of the tool working point 221.

值得一提的是,隨著機器手臂2移動時的方向、角度的不同,機器手臂2還會具有不同的姿態。於一實施例中,所述姿態可例如為法蘭面21相對於機器手臂座標系的原點的位移資訊與旋轉資訊,於此並不加以限定。 It is worth mentioning that as the direction and angle of the robot arm 2 move, the robot arm 2 will also have different postures. In an embodiment, the posture may be, for example, displacement information and rotation information of the flange surface 21 relative to the origin of the robot arm coordinate system, which is not limited herein.

回到圖3。當工具工作點221位於影像感測區33中時,控制器20記錄機器手臂2的當前姿態(步驟S24),並且同時記錄工具工作點221當前於影像裝置座標系{I}上的特定座標(步驟S26)。接著,控制器20進一步取得預先建 立的轉換矩陣(步驟S28),並將所述當前姿態與特定座標匯入轉換矩陣,以經由轉換而獲得工具工作點221於機器手臂座標系{B}上的絕對位置(步驟S30)。於實施例中,工具工作點221在機器手臂座標系{B}上的絕對位置可以下列公式表示:Pt B=TI BPt I,其中,Pt B為工具工作點221在機器手臂座標系{B}上的一個點,TI B為記錄了機器手臂座標系{B}與影像裝置座標系{I}的對應關係的轉換矩陣,Pt I為工具工作點221在影像裝置座標系{I}中的一個點。 Go back to Figure 3. When the tool working point 221 is located in the image sensing area 33, the controller 20 records the current posture of the robot arm 2 (step S24), and at the same time records the specific coordinate (I) of the tool working point 221 currently on the image device coordinate system {I} Step S26). Then, the controller 20 further obtains the pre-established conversion matrix (step S28), and imports the current posture and specific coordinates into the conversion matrix to obtain the tool operating point 221 on the robot arm coordinate system {B} through conversion. Absolute position (step S30). In the embodiment, the absolute position of the tool working point 221 in the robot arm coordinate system {B} can be expressed by the following formula: P t B =T I B P t I , where P t B is the tool working point 221 in the robot arm A point on the coordinate system {B}, T I B is a conversion matrix that records the correspondence between the robot arm coordinate system {B} and the imaging device coordinate system {I}, P t I is the tool working point 221 in the imaging device coordinate Is a point in {I}.

值得一提的是,在獲得了工具工作點221在機器手臂座標系{B}上的絕對位置後,控制器20還可進一步控制影像裝置3擷取工具工作點221的二維影像(步驟S32)。通過二維影像的擷取,影像處理單元30可以建立法蘭面21的中心點至工具工作點221的向量關係,或是直接建立工具22的完整三維影像(容後詳述)。如此一來,機器手臂2的使用者可以更清楚地瞭解目前設置的工具22的態樣,進而決定如何設定工具工作點221,或是如何操作機器手臂2。 It is worth mentioning that after obtaining the absolute position of the tool working point 221 in the robot arm coordinate system {B}, the controller 20 can further control the imaging device 3 to capture a two-dimensional image of the tool working point 221 (step S32 ). By capturing two-dimensional images, the image processing unit 30 can establish a vector relationship from the center point of the flange surface 21 to the tool working point 221, or directly create a complete three-dimensional image of the tool 22 (detailed later). In this way, the user of the robotic arm 2 can more clearly understand the state of the tool 22 currently set, and then decide how to set the tool working point 221 or how to operate the robotic arm 2.

續請參閱圖5,為本發明的建立流程圖的第一具體實施例。如前文所述,要準確獲得工具工作點221在機器手臂座標系{B}上的絕對位置,必須先建立所述影像裝置座標系{I}及所述轉換矩陣。因此,機器手臂2的使用者首先係安裝或更換校正系統1中的機器手臂2及/或影像裝置3(步驟S40),於機器手臂2及/或影像裝置3首次安裝或被更換時,才需要執行圖5所示的各步驟,以重新建立所述影像裝置座標系{I}及所述轉換矩陣。此時,所述工具22尚未被設置到機器手臂2上。 Please continue to refer to FIG. 5, which is a first specific embodiment of the establishment flowchart of the present invention. As mentioned above, to accurately obtain the absolute position of the tool working point 221 on the robot arm coordinate system {B}, the imaging device coordinate system {I} and the conversion matrix must be established first. Therefore, the user of the robotic arm 2 first installs or replaces the robotic arm 2 and/or the imaging device 3 in the calibration system 1 (step S40), and only when the robotic arm 2 and/or the imaging device 3 is installed or replaced for the first time Each step shown in FIG. 5 needs to be performed to re-establish the image device coordinate system {I} and the conversion matrix. At this time, the tool 22 has not been set on the robot arm 2 yet.

於步驟S40後,控制器20在機器手臂2上沒有設置工具22的情況下控制機器手臂2移動,以令機器手臂2上的法蘭面21進入影像裝置3所建 立的影像感測區33中(步驟S42)。接著,機器手臂2基於控制器20的控制進行移動,以令法蘭面21於影像感測區33中移動,並且由控制器20在法蘭面21的移動過程中記錄機器手臂2的多筆姿態資訊(步驟S44)。 After step S40, the controller 20 controls the movement of the robot arm 2 without the tool 22 on the robot arm 2, so that the flange surface 21 on the robot arm 2 enters the imaging device 3 In the standing image sensing area 33 (step S42). Next, the robot arm 2 moves based on the control of the controller 20 to make the flange surface 21 move in the image sensing area 33, and the controller 20 records the multiple pens of the robot arm 2 during the movement of the flange surface 21. Posture information (step S44).

於一實施例中,所述姿態資訊包括法蘭面21位於影像感測區33中的多個位置上時,在機器手臂座標系{B}上的座標資訊。於另一實施例中,所述姿態資訊還包括法蘭面21位於所述多個位置上時,機器手臂2本身的X軸旋轉量、Y軸旋轉量以及Z軸旋轉量。惟,上述僅為本發明的主要實施例,但並不以此為限。 In one embodiment, the posture information includes coordinate information on the robot arm coordinate system {B} when the flange surface 21 is located at a plurality of positions in the image sensing area 33. In another embodiment, the posture information further includes the X-axis rotation, Y-axis rotation, and Z-axis rotation of the robot arm 2 when the flange surface 21 is located at the multiple positions. However, the above are only the main embodiments of the present invention, but not limited thereto.

當法蘭面21在影像感測區33中移動時,影像裝置3可藉由光源裝置31與感光裝置32來判斷法蘭面21在影像感測區33中的位置,而控制器20可直接讀取法蘭面21移動時在機器手臂座標系{B}上的多筆座標資訊,藉此,控制器20可以基於多筆座標資訊來為影像裝置3建立所述影像裝置座標系{I}(步驟S46)。 When the flange surface 21 moves in the image sensing area 33, the image device 3 can use the light source device 31 and the photosensitive device 32 to determine the position of the flange surface 21 in the image sensing area 33, and the controller 20 can directly Read the multi-pen coordinate information on the robot arm coordinate system {B} when the flange surface 21 moves, and thereby, the controller 20 can establish the imaging device coordinate system {I} for the imaging device 3 based on the multiple pen coordinate information (Step S46).

並且,除了上述多筆座標資訊之外,控制器20所記錄的姿態資訊還包含了機器手臂2在移動時的多筆旋轉量,藉此,控制器20可以依據已知的機器手臂座標系{B}、重新建立的影像裝置座標系{I}、以及所記錄的姿態資訊來建立所述轉換矩陣(步驟S48)。於步驟S48後,校正系統1已經具備了對機器手臂2上設置的各種工具22進行絕對位置的校正的所需參數。 Moreover, in addition to the above-mentioned multiple coordinate information, the posture information recorded by the controller 20 also includes the amount of rotation of the robot arm 2 during the movement, so that the controller 20 can follow the known coordinate system of the robot arm { B}. The reconstructed image device coordinate system {I} and the recorded posture information are used to establish the conversion matrix (step S48). After step S48, the calibration system 1 already has the required parameters for the absolute position calibration of various tools 22 set on the robotic arm 2.

值得一提的是,在建立了影像裝置座標系{I}以及轉換矩陣後,控制器20還可進一步控制影像裝置3擷取法蘭面21的二維影像(步驟S50)。當校正系統1於前述圖3的步驟S32中取得工具工作點221的二維影像後,影像處理單元30就可以藉由法蘭面21的二維影像以及工具工作點221的二維影像 來建立法蘭面21的中心點至工具工作點221的向量關係,或是直接建立工具22的完整三維影像(容後詳述)。 It is worth mentioning that, after the imaging device coordinate system {I} and the conversion matrix are established, the controller 20 can further control the imaging device 3 to capture a two-dimensional image of the flange surface 21 (step S50). After the calibration system 1 obtains the two-dimensional image of the tool working point 221 in step S32 of FIG. 3, the image processing unit 30 can use the two-dimensional image of the flange surface 21 and the two-dimensional image of the tool working point 221 To establish a vector relationship from the center point of the flange surface 21 to the tool working point 221, or directly create a complete three-dimensional image of the tool 22 (detailed later).

續請同時參閱圖6及圖7,其中圖6為本發明的影像裝置座標系建立示意圖的第一具體實施例,圖7為本發明的建立流程圖的第二具體實施例。圖7用以結合圖6詳細地說明在圖5的流程圖中,如何依據各項資訊建立影像裝置座標系{I}與轉換矩陣。 Please refer to FIG. 6 and FIG. 7 at the same time. FIG. 6 is a first specific embodiment of a schematic diagram of establishing a coordinate system of an imaging device of the present invention, and FIG. 7 is a second specific embodiment of a flowchart of establishing a coordinate system of the present invention. FIG. 7 is used to describe in detail in the flowchart of FIG. 5 in conjunction with FIG. 6, how to create the image device coordinate system {I} and the conversion matrix according to various information.

首先,控制器20在需要建立影像裝置座標系{I}及/或轉換矩陣時,先控制機器手臂2移動以令法蘭面21進入影像裝置3的影像感測區33內(步驟S60)。 First, when the controller 20 needs to establish the image device coordinate system {I} and/or the conversion matrix, it first controls the robot arm 2 to move so that the flange surface 21 enters the image sensing area 33 of the image device 3 (step S60).

值得一提的是,在步驟S60中,控制器20主要是令法蘭面21的Z軸方向垂直於影像感測區33的平面,即,令法蘭面21平行於要建立的影像裝置座標系{I}的座標平面。藉此,後續於影像裝置座標系{I}的建立程序中,控制器20可以將影像裝置3第一次偵測到法蘭面21時的機器手臂2的Z軸高度設定為影像裝置座標系{I}上Z軸為0的高度。 It is worth mentioning that in step S60, the controller 20 mainly makes the Z-axis direction of the flange surface 21 perpendicular to the plane of the image sensing area 33, that is, makes the flange surface 21 parallel to the coordinate of the image device to be established. It is the coordinate plane of {I}. Thus, in the subsequent creation process of the imaging device coordinate system {I}, the controller 20 can set the Z-axis height of the robotic arm 2 when the imaging device 3 first detects the flange surface 21 as the imaging device coordinate system {I}The height of the upper Z axis is 0.

於法蘭面21進入影像裝置3的影像感測區33後,控制器20接著控制法蘭面21移動至影像感測區33中的第一位置,同時記錄機器手臂2的姿態資訊(步驟S62)。所述姿態資訊至少包括法蘭面21在機器手臂座標系{B}上的座標資訊。基於所述姿態資訊,控制器20將法蘭面21位於第一位置時在機器手臂座標系{B}上的座標資訊定義為影像裝置座標系{I}的基本定位點(步驟S64)。 After the flange surface 21 enters the image sensing area 33 of the imaging device 3, the controller 20 then controls the flange surface 21 to move to the first position in the image sensing area 33, while recording the posture information of the robot arm 2 (step S62 ). The posture information includes at least the coordinate information of the flange surface 21 on the robot arm coordinate system {B}. Based on the posture information, the controller 20 defines the coordinate information on the robot arm coordinate system {B} when the flange surface 21 is at the first position as the basic positioning point of the imaging device coordinate system {I} (step S64).

於圖6的實施例中,所述第一位置是以座標A(X1 B,Y1 B,Z1 B)來表示,其中,X1 B代表法蘭面21位於第一位置時,在機器手臂座標系{B}上的X軸座標,Y1 B代表法蘭面21位於第一位置時,在機器手臂座標系{B}上的Y軸座標,而Z1 B 代表法蘭面21位於第一位置時,在機器手臂座標系{B}上的Z軸座標。於步驟S64中,控制器20主要是將上述座標資訊定義為影像裝置座標系的基本定位點,即,以座標A(X1 B,Y1 B,Z1 B)做為影像裝置座標系{I}的原點座標。 In the embodiment of FIG. 6, the first position is represented by coordinates A (X 1 B , Y 1 B , Z 1 B ), where X 1 B represents when the flange surface 21 is located at the first position, The X axis coordinate on the robot arm coordinate system {B}, Y 1 B represents the Y axis coordinate on the robot arm coordinate system {B} when the flange surface 21 is in the first position, and Z 1 B represents the flange surface 21 When in the first position, the Z-axis coordinate on the robot arm coordinate system {B}. In step S64, the controller 20 mainly defines the above-mentioned coordinate information as the basic positioning point of the image device coordinate system, that is, the coordinate A (X 1 B , Y 1 B , Z 1 B ) is used as the image device coordinate system { I}'s origin coordinates.

接著,控制器20進一步控制法蘭面21在不改變Z軸高度的情況下移動至影像感測區33中的第二位置,同時記錄機器手臂2的姿態資訊(步驟S66)。所述姿態資訊至少包括法蘭面21在機器手臂座標系{B}上的座標資訊。基於所述姿態資訊,控制器20可依據第一位置及第二位置的相對關係來定義影像裝置座標系{I}的X軸或Y軸(步驟S68)。 Then, the controller 20 further controls the flange surface 21 to move to the second position in the image sensing area 33 without changing the height of the Z axis, and simultaneously records the posture information of the robot arm 2 (step S66). The posture information includes at least the coordinate information of the flange surface 21 on the robot arm coordinate system {B}. Based on the posture information, the controller 20 can define the X-axis or Y-axis of the coordinate system {I} of the imaging device according to the relative relationship between the first position and the second position (step S68).

於圖6的實施例中,所述第二位置是以座標B(X2 B,Y2 B,Z2 B)來表示,其中,X2 B代表法蘭面21位於第二位置時,在機器手臂座標系{B}上的X軸座標,Y2 B代表法蘭面21位於第二位置時,在機器手臂座標系{B}上的Y軸座標,而Z2 B代表法蘭面21位於第二位置時,在機器手臂座標系{B}上的Z軸座標。於此實施例中,控制器20基於第一位置與第二位置來建立一條虛擬直線,並將虛擬直線的方向定義為影像裝置座標系{I}的Y軸方向YIIn the embodiment of FIG. 6, the second position is represented by coordinates B (X 2 B , Y 2 B , Z 2 B ), where X 2 B represents that when the flange surface 21 is at the second position, The X axis coordinate on the robot arm coordinate system {B}, Y 2 B represents the Y axis coordinate on the robot arm coordinate system {B} when the flange surface 21 is in the second position, and Z 2 B represents the flange surface 21 When in the second position, the Z-axis coordinate on the robot arm coordinate system {B}. In this embodiment, the controller 20 establishes a virtual straight line based on the first position and the second position, and defines the direction of the virtual straight line as the Y-axis direction Y I of the coordinate system {I} of the imaging device.

接著,控制器20進一步控制法蘭面21在不改變Z軸高度的情況下移動至影像感測區33中的第三位置,同時記錄機器手臂2的姿態資訊(步驟S70)。所述姿態資訊至少包括法蘭面21在機器手臂座標系{B}上的座標資訊。基於所述姿態資訊,控制器20可依據第一位置、第二位置及第三位置的相對關係來定義影像裝置座標系{I}的座標平面(步驟S72)。所述座標平面指的是由X軸-Y軸所構成的一個平面。 Then, the controller 20 further controls the flange surface 21 to move to the third position in the image sensing area 33 without changing the height of the Z axis, and simultaneously records the posture information of the robot arm 2 (step S70). The posture information includes at least the coordinate information of the flange surface 21 on the robot arm coordinate system {B}. Based on the posture information, the controller 20 can define the coordinate plane of the image device coordinate system {I} according to the relative relationship between the first position, the second position, and the third position (step S72). The coordinate plane refers to a plane formed by the X axis and the Y axis.

於圖6的實施例中,所述第三位置是以座標C(X3 B,Y3 B,Z3 B)來表示,其中,X3 B代表法蘭面21位於第三位置時,在機器手臂座標系{B}上的X軸座標, Y3 B代表法蘭面21位於第三位置時,在機器手臂座標系{B}上的Y軸座標,而Z3 B代表法蘭面21位於第三位置時,在機器手臂座標系{B}上的Z軸座標。於此實施例中,控制器20基於第一位置與第三位置來建立一條虛擬直線,並且將虛擬直線的方向定義為影像裝置座標系{I}的X軸方向XI。藉此,控制器20即可進一步依據所述X軸方向XI與Y軸方向YI來構成一個座標平面。 In the embodiment of FIG. 6, the third position is represented by coordinates C (X 3 B , Y 3 B , Z 3 B ), where X 3 B represents that when the flange surface 21 is located at the third position, The X axis coordinate on the robot arm coordinate system {B}, Y 3 B represents the Y axis coordinate on the robot arm coordinate system {B} when the flange surface 21 is in the third position, and Z 3 B represents the flange surface 21 When in the third position, it is the Z axis coordinate on the robot arm coordinate system {B}. In this embodiment, the controller 20 establishes a virtual straight line based on the first position and the third position, and defines the direction of the virtual straight line as the X-axis direction X I of the coordinate system {I} of the imaging device. Thereby, the controller 20 can further form a coordinate plane according to the X-axis direction X I and the Y-axis direction Y I.

如前文所述,控制器20可以在影像裝置3第一次偵測到法蘭面21時即對影像裝置座標系{I}的Z軸進行定義,因此在步驟S72後,控制器20即可基於所述座標平面以及與座標平面垂直的Z軸方向ZI建立所述影像裝置座標系{I}(步驟S74)。 As mentioned above, the controller 20 can define the Z axis of the imaging device coordinate system {I} when the imaging device 3 detects the flange surface 21 for the first time. Therefore, after step S72, the controller 20 can The imaging device coordinate system {I} is established based on the coordinate plane and the Z-axis direction Z I perpendicular to the coordinate plane (step S74).

值得一提的是,本發明的控制器20在設定了所述基本定位點後,可以先定義所述X軸方向XI,也可先定義所述Y軸方向YI,意即,所述步驟S66與步驟S70並沒有執行上的順序關係,而不應以圖7所示者為限。 It is worth mentioning that after setting the basic positioning point, the controller 20 of the present invention may first define the X-axis direction X I , or first define the Y-axis direction Y I , which means that the Step S66 and step S70 have no execution sequence relationship, and should not be limited to those shown in FIG. 7.

於一實施例中,控制器20採用的轉換矩陣為齊次轉換矩陣(Homogeneous transformation matrix)。所述轉換矩陣例如以下所示:

Figure 109100016-A0305-02-0016-1
;其中,TI B為記錄了機器手臂座標系{B}與影像裝置座標系{I}的對應關係的轉換矩陣,轉換矩陣中的元素R3*3、O3*1、O1*3及11*1分別指出機器手臂座標系{B}與影像裝置座標系{I}之間的旋轉、平移、透視和放大關係。在不存在透視和放大關係的情況下,控制器20只要計算出旋轉矩陣和平移矩陣,就可以成功建立所述轉換矩陣。 In one embodiment, the transformation matrix adopted by the controller 20 is a homogeneous transformation matrix (Homogeneous transformation matrix). The conversion matrix is for example as follows:
Figure 109100016-A0305-02-0016-1
; Among them, T I B is a conversion matrix that records the correspondence between the robot arm coordinate system {B} and the imaging device coordinate system {I}. The elements in the conversion matrix are R 3*3 , O 3*1 , O 1*3 And 1 1*1 respectively indicate the rotation, translation, perspective and magnification relationship between the robot arm coordinate system {B} and the imaging device coordinate system {I}. In the absence of a perspective and magnification relationship, as long as the controller 20 calculates the rotation matrix and the translation matrix, the conversion matrix can be successfully established.

具體而言,控制器20在前述步驟S62、步驟S66與步驟S70所記錄的姿態資訊中,除了記錄法蘭面21在機器手臂座標系{B}上的座標資訊以 外,還會同時記錄機器手臂2在移動時產生的各項旋轉資訊,例如X軸旋轉量、Y軸旋轉量及Z旋轉量等。因此,控制器20還可依據所記錄的姿態資訊來建立所述轉換矩陣。如圖7所示,控制器20由所記錄的姿態資訊中取出X軸旋轉量、Y軸旋轉量及Z軸旋轉量,並且基於X軸旋轉量、Y軸旋轉量及Z軸旋轉量計算所述旋轉矩陣(步驟S76)。 Specifically, in the posture information recorded by the controller 20 in the aforementioned steps S62, S66, and S70, in addition to recording the coordinate information of the flange surface 21 on the robot arm coordinate system {B} In addition, it also records various rotation information generated by the robot arm 2 when it is moving, such as X-axis rotation, Y-axis rotation, and Z rotation. Therefore, the controller 20 can also establish the conversion matrix according to the recorded posture information. As shown in FIG. 7, the controller 20 extracts the X-axis rotation, Y-axis rotation, and Z-axis rotation from the recorded posture information, and calculates the amount of rotation based on the X-axis rotation, Y-axis rotation, and Z-axis rotation. The rotation matrix is described (step S76).

於一實施例中,所述旋轉矩陣(R3*3)是三次連續基本旋轉矩陣的合成,並且可以歐拉角(Euler Angle)、RPY角(Roll Pitch Yaw)或標準旋轉角來實現。 In an embodiment, the rotation matrix (R 3*3 ) is a combination of three consecutive basic rotation matrices, and can be implemented by Euler angle, RPY angle (Roll Pitch Yaw) or standard rotation angle.

具體而言,所述歐拉角所描述的旋轉方式是先繞Z軸旋轉,再繞Y軸旋轉,最後再一次繞Z軸旋轉,藉此,可得出所述旋轉矩陣(R3*3)=Rzyz=Rz,θ zRy,θ yRz,θ z。所述RPY角所描述的旋轉方式是先繞Z軸旋轉,再繞Y軸旋轉,最後再繞X軸旋轉,藉此,可得出所述旋轉矩陣(R3*3)=Rzyx=Rz,θ zRy,θ yRx,θ x。所述標準旋轉角所描述的旋轉方式是先繞X軸旋轉,再繞Y軸旋轉,最後再繞Z軸旋轉,藉此,可得出所述旋轉矩陣(R3*3)=Rxyz=Rx,θ xRy,θ yRz,θ zSpecifically, the rotation mode described by the Euler angles is to first rotate around the Z axis, then rotate around the Y axis, and finally rotate around the Z axis again, by which the rotation matrix (R 3*3 )=R zyz =R z,θ z R y,θ y R z,θ z . The rotation mode described by the RPY angle is to first rotate around the Z axis, then rotate around the Y axis, and finally rotate around the X axis, by which the rotation matrix (R 3*3 )=R zyx =R z,θ z R y,θ y R x,θ x . The rotation mode described by the standard rotation angle is to first rotate around the X axis, then rotate around the Y axis, and finally rotate around the Z axis, whereby the rotation matrix (R 3*3 )=R xyz = R x,θ x R y,θ y R z,θ z .

並且,控制器20進一步取得機器手臂座標系{B}的原點(例如(0,0,0))與影像裝置座標系{I}的所述基本定位點(例如座標A(X1 B,Y1 B,Z1 B))間的平移量(步驟S78),並且基於所述平移量來計算所述平移矩陣(O3*1)(步驟S80)。其中,所述平移量至少包括機器手臂座標系{B}的原點與影像裝置座標系{I}的基本定位點間的X軸平移量、Y軸平移量及Z軸平移量。 In addition, the controller 20 further obtains the origin of the robot arm coordinate system {B} (for example (0,0,0)) and the basic positioning point of the imaging device coordinate system {I} (for example, the coordinate A(X 1 B , Y 1 B , Z 1 B )) and calculate the translation matrix (O 3*1 ) based on the translation (step S78) (step S80). Wherein, the translation amount includes at least an X-axis translation amount, a Y-axis translation amount, and a Z-axis translation amount between the origin of the robot arm coordinate system {B} and the basic positioning point of the imaging device coordinate system {I}.

步驟S80後,控制器20即可依據計算所得的旋轉矩陣與平移矩陣來計算所述轉換矩陣(步驟S82)。於步驟S82後,控制器20即完成了要對機器手臂2的法蘭面21上所設置的任意工具22進行校正(即,尋找工具工作點 221在機器手臂座標系{B}上的絕對位置)的準備程序。據此,控制器20可以隨時執行如圖3所示的各步驟,以對機器手臂2上設置/更換的工具進行校正程序。 After step S80, the controller 20 can calculate the conversion matrix according to the calculated rotation matrix and translation matrix (step S82). After step S82, the controller 20 has completed to calibrate any tool 22 set on the flange surface 21 of the robot arm 2 (ie, find the tool working point 221 in the robot arm coordinate system {B} absolute position) preparation program. Accordingly, the controller 20 can execute the steps shown in FIG. 3 at any time to perform a calibration procedure on the tools set/replaced on the robot arm 2.

請同時參閱圖8,為本發明的轉換矩陣示意圖的第一具體實施例。如圖8所示,在校正系統1安裝完成前,控制器20即已知機器手臂座標系{B}。於圖8的實施例中,機器手臂座標系{B}係由X軸方向XB、Y軸方向YB及Z軸方向ZB構成。 Please also refer to FIG. 8, which is a first specific embodiment of the schematic diagram of the conversion matrix of the present invention. As shown in Fig. 8, before the installation of the calibration system 1 is completed, the controller 20 already knows the robot arm coordinate system {B}. In the embodiment of FIG. 8, the robot arm coordinate system {B} is composed of the X axis direction X B , the Y axis direction Y B and the Z axis direction Z B.

接著,經由令機器手臂2的法蘭面21移動至影像感測區33中的第一位置(具有座標A(X1 B,Y1 B,Z1 B))、第二位置(具有座標B(X2 B,Y2 B,Z2 B))及第三位置(具有座標C(X3 B,Y3 B,Z3 B)),控制器20可以基於所述機器手臂座標系{B}來建立影像裝置3所使用的影像裝置座標系{I}。於圖8的實施例中,影像裝置座標系{I}係由X軸方向XI、Y軸方向YI及Z軸方向ZI構成。 Then, move the flange surface 21 of the robot arm 2 to the first position (with coordinates A (X 1 B , Y 1 B , Z 1 B )) and the second position (with coordinates B) in the image sensing area 33 (X 2 B , Y 2 B , Z 2 B )) and the third position (with coordinates C (X 3 B , Y 3 B , Z 3 B )), the controller 20 can be based on the robot arm coordinate system {B } To create the image device coordinate system {I} used by the image device 3. In the embodiment of FIG. 8, the image device coordinate system {I} is composed of the X-axis direction X I , the Y-axis direction Y I, and the Z-axis direction Z I.

最後,基於已知的機器手臂座標系{B}、所建立的影像裝置座標系{I}、以及在機器手臂2的移動過程所記錄的姿態資訊,控制器20可以建立一個能夠將座標在機器手臂座標系{B}與影像裝置座標系{I}之間進行轉換的轉換矩陣TI BFinally, based on the known coordinate system of the robotic arm {B}, the established coordinate system of the imaging device {I}, and the posture information recorded during the movement of the robotic arm 2, the controller 20 can establish a The conversion matrix T I B for converting between the arm coordinate system {B} and the imaging device coordinate system {I}.

當機器手臂2在X軸上的平移量為x時,轉換矩陣表示為:

Figure 109100016-A0305-02-0018-2
When the translation amount of the robot arm 2 on the X axis is x, the conversion matrix is expressed as:
Figure 109100016-A0305-02-0018-2

當機器手臂2在Y軸上的平移量為y時,轉換矩陣表示為:

Figure 109100016-A0305-02-0018-3
When the translation amount of robot arm 2 on the Y axis is y, the conversion matrix is expressed as:
Figure 109100016-A0305-02-0018-3

當機器手臂2在Z軸上的平移量為z時,轉換矩陣表示為:

Figure 109100016-A0305-02-0019-4
When the translation amount of the robot arm 2 on the Z axis is z, the conversion matrix is expressed as:
Figure 109100016-A0305-02-0019-4

當機器手臂2在X軸上的旋轉量為θ x 時,轉換矩陣表示為:

Figure 109100016-A0305-02-0019-5
When the rotation of the robot arm 2 on the X axis is θ x , the conversion matrix is expressed as:
Figure 109100016-A0305-02-0019-5

當機器手臂2在Y軸上的旋轉量為θ y 時,轉換矩陣表示為:

Figure 109100016-A0305-02-0019-6
When the rotation of the robot arm 2 on the Y axis is θ y , the conversion matrix is expressed as:
Figure 109100016-A0305-02-0019-6

當機器手臂2在Z軸上的旋轉量為θ z 時,轉換矩陣表示為:

Figure 109100016-A0305-02-0019-7
When the rotation of the robot arm 2 on the Z axis is θ z , the conversion matrix is expressed as:
Figure 109100016-A0305-02-0019-7

藉由上述轉換矩陣的換算,當工具22已校正完成且跟著機器手臂2移動時,控制器20可以直接得知工具22上的工具工作點221在機器手臂座標系{B}上的位置資訊,藉此更精確地對機器手臂2(及其上的工具22)進行控制。 Through the conversion of the above conversion matrix, when the tool 22 has been calibrated and moved with the robot arm 2, the controller 20 can directly know the position information of the tool working point 221 on the tool 22 on the robot arm coordinate system {B}. In this way, the robot arm 2 (and the tool 22 thereon) can be controlled more accurately.

續請參閱圖9,為本發明的二維影像示意圖的第一具體實施例。於前述圖5的步驟S50中,影像裝置3通過感光裝置32擷取了機器手臂2的法蘭面21的法蘭面二維影像5。而於圖3的步驟S32中,影像裝置3通過感光裝置32擷取了工具22的工具工作點221的二維影像4。通過所述二維影像4、5,控制器20可以進一步建立機器手臂2的法蘭面21的中心點(圖未標示)至工 具22的工具工作點221的向量關係。如此一來,可更有利於機器手臂2的使用者瞭解當前使用的工具22的型態。 Please continue to refer to FIG. 9, which is a first specific embodiment of the two-dimensional image diagram of the present invention. In the aforementioned step S50 of FIG. 5, the imaging device 3 captures the two-dimensional image 5 of the flange surface of the flange surface 21 of the robotic arm 2 through the photosensitive device 32. In step S32 of FIG. 3, the imaging device 3 captures the two-dimensional image 4 of the tool working point 221 of the tool 22 through the photosensitive device 32. Through the two-dimensional images 4 and 5, the controller 20 can further establish the center point (not shown in the figure) of the flange surface 21 of the robot arm 2 to the work With 22 tool work points 221 vector relationship. In this way, it is more beneficial for the user of the robotic arm 2 to understand the type of the tool 22 currently used.

具體而言,於圖5的步驟S50中,機器手臂2係受控制器20的控制而進行旋轉,並且由感光裝置32擷取對應至不同旋轉角度的法蘭面21的複數一維影像。於一實施例中,所述旋轉角度可例如為一固定角度(例如1度、5度等)、半圈或一圈等,於此並不加以限定。接著,影像裝置3通過影像處理單元30接收感光裝置32擷取的複數一維影像,並且通過演算法對複數一維影像進行處理,以產生一張法蘭面21的二維影像。 Specifically, in step S50 in FIG. 5, the robot arm 2 is controlled by the controller 20 to rotate, and the photosensitive device 32 captures a plurality of one-dimensional images corresponding to the flange surface 21 with different rotation angles. In an embodiment, the rotation angle may be, for example, a fixed angle (for example, 1 degree, 5 degrees, etc.), a half circle or a circle, etc., which is not limited herein. Then, the imaging device 3 receives the multiple one-dimensional images captured by the photosensitive device 32 through the image processing unit 30, and processes the multiple one-dimensional images through an algorithm to generate a two-dimensional image of the flange surface 21.

相似地,於圖3的步驟S32中,機器手臂2係受控制器20的控制而進行旋轉,並且由感光裝置32擷取對應至不同旋轉角度的工具工作點221的複數一維影像。接著,影像裝置3的影像處理單元30通過演算法對複數一維影像進行處理,藉此產生一張工具工作點221的二維影像。 Similarly, in step S32 in FIG. 3, the robot arm 2 is controlled by the controller 20 to rotate, and the photosensitive device 32 captures a plurality of one-dimensional images corresponding to the tool working points 221 with different rotation angles. Then, the image processing unit 30 of the imaging device 3 processes the plural one-dimensional images through an algorithm, thereby generating a two-dimensional image of the tool working point 221.

於圖9的實施例中,影像裝置3僅產生工具工作點221的一張二維影像,因此校正系統1僅能通過控制器20來計算法蘭面21的中心點至工具22的工具工作點221的向量關係。於其他實施例中,影像裝置3可受控制而產生工具22的多張二維影像,藉此,校正系統1可通過影像處理單元30直接建立工具22的完整三維影像(如下所述)。 In the embodiment of FIG. 9, the imaging device 3 only generates a two-dimensional image of the tool working point 221, so the calibration system 1 can only use the controller 20 to calculate the distance from the center point of the flange surface 21 to the tool working point 221 of the tool 22 Vector relationship. In other embodiments, the imaging device 3 can be controlled to generate multiple two-dimensional images of the tool 22, whereby the calibration system 1 can directly create a complete three-dimensional image of the tool 22 through the image processing unit 30 (as described below).

請同時參閱圖10,為本發明的二維影像示意圖的第二具體實施例。 Please also refer to FIG. 10, which is a second specific embodiment of the two-dimensional image diagram of the present invention.

如圖10所示,在影像擷取程序中,機器手臂2可受控制器20的控制而持續旋轉,並且改變其Z軸高度。同時,影像裝置3亦受控制器20的控制而在機器手臂2位於第一高度Z1時擷取一張二維影像(例如為法蘭面二維影像5)、在機器手臂2位於第二高度Z2時擷取一張二維影像(例如工具二維影 像41)、在機器手臂2位於第三高度Z3時擷取一張二維影像(例如工具二維影像42)、……、並且在機器手臂2位於第n高度Zn時擷取一張二維影像(例如工具二維影像4n)。其中,工具二維影像4n為影像裝置3所擷取的最後一張二維影像,並且為用以描述工具工作點221的二維影像。 As shown in FIG. 10, in the image capturing process, the robot arm 2 can be controlled by the controller 20 to continuously rotate and change its Z-axis height. At the same time, the imaging device 3 is also controlled by the controller 20 to capture a two-dimensional image (for example, the flange surface two-dimensional image 5) when the robot arm 2 is at the first height Z1, and when the robot arm 2 is at the second height Z2 Capture a two-dimensional image (e.g. tool two-dimensional image Like 41), when the robot arm 2 is at the third height Z3, capture a two-dimensional image (for example, the tool two-dimensional image 42), ..., and when the robot arm 2 is at the nth height Zn, capture a two-dimensional image (for example, the tool Two-dimensional image 4n). Among them, the tool two-dimensional image 4n is the last two-dimensional image captured by the imaging device 3, and is a two-dimensional image used to describe the working point 221 of the tool.

本實施例中,影像裝置3係通過影像處理單元30接收所述法蘭面二維影像5以及複數的工具二維影像41-4n,並且經由演算法對這些二維影像41-4n、5進行處理,以建立機器手臂2上目前設置的工具22的三維影像。藉此,使用者可以通過三維影像獲得工具22的具體外觀形狀、尺寸特徵等資訊。 In this embodiment, the imaging device 3 receives the flange surface two-dimensional image 5 and the plural tool two-dimensional images 41-4n through the image processing unit 30, and performs algorithms on these two-dimensional images 41-4n and 5 Processing to create a three-dimensional image of the tool 22 currently set on the robotic arm 2. In this way, the user can obtain information such as the specific appearance shape and size characteristics of the tool 22 through the three-dimensional image.

請同時參閱圖11,為本發明的三維影像建立流程圖的第一具體實施例。於圖11的實施例中,控制器20係控制機器手臂2移動以令其上的工具22進入影像感測區33中。接著,控制器20控制機器手臂2進行旋轉,並控制影像裝置3取得對應不同旋轉角度的多張一維影像(步驟S90)。接著,影像處理單元30經由演算法對多張一維影像進行處理,以建立對應至一個具體高度的一張二維影像(步驟S92)。 Please also refer to FIG. 11, which is a first specific embodiment of the 3D image creation flowchart of the present invention. In the embodiment of FIG. 11, the controller 20 controls the movement of the robotic arm 2 so that the tool 22 thereon enters the image sensing area 33. Next, the controller 20 controls the robot arm 2 to rotate, and controls the imaging device 3 to obtain multiple one-dimensional images corresponding to different rotation angles (step S90). Then, the image processing unit 30 processes the multiple one-dimensional images through an algorithm to create a two-dimensional image corresponding to a specific height (step S92).

接著,控制器20判斷影像擷取程序是否完成(步驟S94),即,判斷是否已經獲得法蘭面21的二維影像以及工具工作點221的二維影像。若控制器20判斷影像擷取程序尚未完成,則控制機器手臂2移動以改變Z軸高度(步驟S96),並且基於改變後的Z軸高度再次執行步驟S90與步驟S92,以獲得下一張二維影像。 Next, the controller 20 determines whether the image capturing process is completed (step S94), that is, whether the two-dimensional image of the flange surface 21 and the two-dimensional image of the tool working point 221 have been obtained. If the controller 20 determines that the image capturing process has not been completed, it controls the robot arm 2 to move to change the Z-axis height (step S96), and executes steps S90 and S92 again based on the changed Z-axis height to obtain the next two-dimensional image .

於一實施例中,控制器20可調整感光裝置32的掃描高度以令影像裝置3先擷取法蘭面21的二維影像,並且於所述步驟S96中,控制機器手臂 2上升以增加Z軸高度。於另一實施例中,控制器20可調整感光裝置32的掃描高度以令影像裝置3先擷取工具工作點221的二維影像,並且於所述步驟S96中,控制機器手臂2下降以減少Z軸高度。 In one embodiment, the controller 20 can adjust the scanning height of the photosensitive device 32 so that the imaging device 3 first captures a two-dimensional image of the flange surface 21, and in the step S96, controls the robotic arm 2Raise to increase the height of the Z axis. In another embodiment, the controller 20 can adjust the scanning height of the photosensitive device 32 so that the imaging device 3 first captures the two-dimensional image of the tool working point 221, and in the step S96, the robot arm 2 is controlled to descend to reduce Z axis height.

若控制器20於步驟S94中判斷影像擷取程序完成,表示影像處理單元30已經獲得了包含法蘭面二維影像5以及工具工作點的二維影像4在內的多張二維影像,因此影像處理單元30可經由演算法對多張二維影像進行處理,以建立用來描繪工具22的整體外觀、形狀的三維影像(步驟S98)。通過影像處理單元30所建立的三維影像,機器手臂2的使用者可以更清楚地得知當前使用的工具22的相關資訊,進而對機器手臂2進行更準確的設定或控制。 If the controller 20 determines in step S94 that the image capturing process is completed, it means that the image processing unit 30 has obtained multiple two-dimensional images including the two-dimensional image 5 of the flange surface and the two-dimensional image 4 of the tool working point. Therefore, the image processing The unit 30 can process multiple two-dimensional images through an algorithm to create a three-dimensional image for describing the overall appearance and shape of the tool 22 (step S98). Through the three-dimensional images created by the image processing unit 30, the user of the robotic arm 2 can more clearly know the relevant information of the currently used tool 22, and then the robotic arm 2 can be more accurately set or controlled.

對照先前相關技術,本發明的校正系統與校正方法不需以人力進行機器手臂的教導,並且使用的是非接觸式的光感測手段,可以提供更高精度的校正結果,同時不會因為校正程序而導致工具本身的磨損。 In contrast to the prior related art, the calibration system and calibration method of the present invention do not require manual teaching of the robotic arm, and use non-contact light sensing means, which can provide higher-precision calibration results without being affected by calibration procedures. This leads to wear of the tool itself.

通過本發明的校正系統與校正方法,係可有效取得當前配置的工具上的一或多個的工具工作點在機器手臂座標系上的絕對位置,藉此令機器手臂可對工具進行更準確地控制,以消除工具生產製造時的公差、組裝時的偏差、或是工具使用磨損後產生誤差。相較於先前相關技術中的非接觸式校正方法,可不需建立工具的樣本,並且比起先前相關技術使用的偏差值,可更進一步提高校正精度。 Through the calibration system and calibration method of the present invention, the absolute position of one or more tool working points on the currently configured tool in the coordinate system of the robot arm can be effectively obtained, so that the robot arm can perform the tool more accurate Control to eliminate tolerances during tool manufacturing, deviations during assembly, or errors caused by tool wear. Compared with the non-contact correction method in the prior related art, there is no need to create a sample of the tool, and compared with the deviation value used in the prior related art, the correction accuracy can be further improved.

以上所述僅為本發明之較佳具體實例,非因此即侷限本發明之專利範圍,故舉凡運用本發明內容所為之等效變化,均同理皆包含於本發明之範圍內,合予陳明。 The above are only preferred specific examples of the present invention, and are not limited to the scope of the patent of the present invention. Therefore, all equivalent changes made by using the content of the present invention are included in the scope of the present invention in the same way. Bright.

S20~S32:絕對位置取得步驟 S20~S32: Steps to obtain absolute position

Claims (18)

一種機器人工具的校正方法,應用於具有一機器手臂、一影像裝置及一工具的一校正系統,其中影像裝置於該機器手臂的一移動範圍內建立一影像感測區,該工具設置於該機器手臂的一法蘭面(Flange)上並且具有一工具工作點(Tool Working Point,TWP),其中該校正方法包括下列步驟:a01)在該機器手臂上未設置該工具時,控制該機器手臂移動以令該法蘭面進入該影像感測區中,其中該機器手臂使用一機器手臂座標系;a02)控制該法蘭面於該影像感測區中移動,同時記錄該機器手臂的姿態資訊,其中該姿態資訊至少包括該法蘭面位於該影像感測區中的多個位置上時在該機器手臂座標系上的座標資訊,以及該法蘭面位於各該位置上時該機器手臂的一X軸旋轉量、一Y軸旋轉量及一Z軸旋轉量;a03)基於該些座標資訊建立該影像裝置使用的一影像裝置座標系;a04)依據該機器手臂座標系、該影像裝置座標系及該姿態資訊建立該轉換矩陣;a)在該機器手臂上設置了該工具時,控制該機器手臂移動以令該工具工作點進入該影像感測區中;b)記錄該機器手臂的一當前姿態,以及該工具工作點於該影像裝置座標系上的一特定座標;c)取得該轉換矩陣,其中該轉換矩陣記錄該機器手臂座標系與該影像裝置座標系之間的對應關係;及d)將該當前姿態及該特定座標匯入該轉換矩陣,以經由轉換而獲得該工具工作點於該機器手臂座標系上的一絕對位置。 A method for calibrating a robot tool is applied to a calibration system having a robotic arm, an imaging device and a tool, wherein the imaging device creates an image sensing area within a movement range of the robotic arm, and the tool is set on the machine On a flange surface (Flange) of the arm and having a Tool Working Point (TWP), the correction method includes the following steps: a01) When the tool is not set on the robot arm, control the robot arm to move So that the flange surface enters the image sensing area, where the robot arm uses a robot arm coordinate system; a02) controls the flange surface to move in the image sensing area, and records the posture information of the robot arm at the same time, Wherein the posture information includes at least coordinate information on the robot arm coordinate system when the flange surface is located at a plurality of positions in the image sensing area, and a coordinate information of the robot arm when the flange surface is located at each position X-axis rotation, Y-axis rotation, and Z-axis rotation; a03) based on the coordinate information to establish an imaging device coordinate system used by the imaging device; a04) based on the robot arm coordinate system and the imaging device coordinate system And the posture information to establish the conversion matrix; a) when the tool is set on the robotic arm, control the movement of the robotic arm so that the tool working point enters the image sensing area; b) record a current of the robotic arm Posture, and a specific coordinate of the tool operating point on the imaging device coordinate system; c) obtaining the conversion matrix, wherein the conversion matrix records the correspondence between the robotic arm coordinate system and the imaging device coordinate system; and d ) Import the current posture and the specific coordinates into the conversion matrix to obtain an absolute position of the tool operating point on the robot arm coordinate system through conversion. 如請求項1所述的機器人工具的校正方法,其中該影像裝置包括彼此平行設置的一光源裝置及一感光裝置,該光源裝置朝向該感光裝置發射光源,該感光裝置擷取該光源裝置發射的光源,該影像裝置藉由該光源建立該影像感測區。 The method for calibrating a robot tool according to claim 1, wherein the imaging device includes a light source device and a photosensitive device arranged in parallel to each other, the light source device emits a light source toward the photosensitive device, and the photosensitive device captures the light emitted by the light source device A light source, the imaging device uses the light source to establish the image sensing area. 如請求項2所述的機器人工具的校正方法,其中該步驟a02包括下列步驟:a021)控制該法蘭面移動至該影像感測區中的一第一位置,並將該法蘭面位於該第一位置時在該機器手臂座標系上的座標資訊定義為該影像裝置座標系的一基本定位點;a022)控制該法蘭面在不改變Z軸高度的情況下移動至該影像感測區中的一第二位置,並依據該第一位置及該第二位置的相對關係定義該影像裝置座標系的一X軸方向或一Y軸方向;a023)控制該法蘭面在不改變Z軸高度的情況下移動至該影像感測區中的一第三位置,並依據該第一位置、該第二位置及該第三位置的相對關係定義該影像裝置座標系的一座標平面;其中,該步驟a03是依據該座標平面及與該座標平面垂直的一Z軸方向建立該影像裝置座標系。 The method for calibrating a robot tool according to claim 2, wherein the step a02 includes the following steps: a021) controlling the flange surface to move to a first position in the image sensing area, and placing the flange surface at the The coordinate information on the coordinate system of the robot arm at the first position is defined as a basic positioning point of the coordinate system of the imaging device; a022) Control the flange surface to move to the image sensing area without changing the height of the Z axis And define an X-axis direction or a Y-axis direction of the coordinate system of the imaging device according to the relative relationship between the first position and the second position; a023) Control the flange surface without changing the Z-axis In the case of height, move to a third position in the image sensing area, and define a plane of the image device coordinate system according to the relative relationship between the first position, the second position, and the third position; wherein, The step a03 is to establish the coordinate system of the imaging device according to the coordinate plane and a Z-axis direction perpendicular to the coordinate plane. 如請求項3所述的機器人工具的校正方法,其中在該步驟a01中,該法蘭面係平行於該影像裝置座標系的該座標平面,並且該機器手臂將該影像裝置第一次偵測到該法蘭面時的Z軸高度設定為該影像裝置座標系上Z軸為0的高度。 The method for calibrating a robot tool according to claim 3, wherein in the step a01, the flange surface is parallel to the coordinate plane of the coordinate system of the imaging device, and the robot arm detects the imaging device for the first time The height of the Z-axis when reaching the flange surface is set to the height where the Z-axis of the coordinate system of the imaging device is 0. 如請求項3所述的機器人工具的校正方法,其中該步驟a04包括下列步驟:a041)依據該姿態資訊中的該X軸旋轉量、該Y軸旋轉量及該Z軸旋轉量計算一旋轉矩陣;a042)取得該機器手臂座標系的一原點與該影像裝置座標系的該基本定位點間的一x軸平移量、一y軸平移量及一z軸平移量;a043)依據該x軸平移量、該y軸平移量及該z軸平移量計算一平移矩陣;及a044)依據該旋轉矩陣及該平移矩陣計算該轉換矩陣。 The method for calibrating a robot tool according to claim 3, wherein the step a04 includes the following steps: a041) calculating a rotation matrix based on the X-axis rotation, the Y-axis rotation and the Z-axis rotation in the attitude information A042) Obtain an x-axis translation amount, a y-axis translation amount and a z-axis translation amount between an origin of the robot arm coordinate system and the basic positioning point of the imaging device coordinate system; a043) according to the x-axis The translation amount, the y-axis translation amount, and the z-axis translation amount calculate a translation matrix; and a044) calculate the conversion matrix according to the rotation matrix and the translation matrix. 如請求項2所述的機器人工具的校正方法,其中該轉換矩陣為齊次轉換矩陣(Homogeneous transformation matrix)。 The method for correcting a robot tool according to claim 2, wherein the transformation matrix is a homogeneous transformation matrix (Homogeneous transformation matrix). 如請求項2所述的機器人工具的校正方法,其中該步驟a04後更包括一步驟a05):由該影像裝置取得該法蘭面的一二維影像。 The method for calibrating a robot tool according to claim 2, wherein after step a04, it further includes a step a05): obtaining a two-dimensional image of the flange surface from the imaging device. 如請求項7所述的機器人工具的校正方法,其中更包括下列步驟:e)通過該影像裝置取得該工具工作點的一二維影像;及f)依據該法蘭面的該二維影像及該工具工作點的該二維影像建立該法蘭面的一中心點至該工具工作點的向量關係。 The method for calibrating a robot tool according to claim 7, which further includes the following steps: e) obtaining a two-dimensional image of the working point of the tool through the imaging device; and f) according to the two-dimensional image of the flange surface and The two-dimensional image of the working point of the tool establishes a vector relationship from a center point of the flange surface to the working point of the tool. 如請求項7所述的機器人工具的校正方法,其中更包括下列步驟:g)通過該影像裝置取得該工具的一二維影像;h)判斷一影像擷取程序是否完成; i)於該影像擷取程序完成前改變該機器手臂的Z軸高度,並再次執行該步驟g;及j)於該影像擷取程序完成後,依據該法蘭面的該二維影像及該工具的複數該二維影像建立該工具的一三維影像。 The method for calibrating a robot tool according to claim 7, which further includes the following steps: g) obtaining a two-dimensional image of the tool through the imaging device; h) determining whether an image capturing process is completed; i) Change the Z-axis height of the robotic arm before the image capture process is completed, and perform step g again; and j) After the image capture process is completed, based on the two-dimensional image of the flange surface and the The plural of the two-dimensional images of the tool create a three-dimensional image of the tool. 一種機器人工具的校正系統,包括:一機器手臂,具有一法蘭面(Flange),並且使用一機器手臂座標系;一工具,設置於該法蘭面上,並且具有一工具工作點(Tool Working Point,TWP);一影像裝置,於該機器手臂的一移動範圍內建立一影像感測區,並且使用一影像裝置座標系;及一控制器,電性連接該機器手臂;其中,在該機器手臂上未設置該工具時,該控制器控制該機器手臂移動以令該法蘭面於該影像感測區中移動同時記錄該機器手臂的姿態資訊,其中該姿態資訊至少包括該法蘭面位於該影像感測區中的多個位置上時在該機器手臂座標系上的座標資訊,以及該法蘭面位於各該位置上時該機器手臂的一X軸旋轉量、一Y軸旋轉量及一Z軸旋轉量,並且該控制器基於該些座標資訊建立該影像裝置座標系,並依據該機器手臂座標系、該影像裝置座標系及該姿態資訊建立一轉換矩陣;其中,在該機器手臂上設置了該工具時,該控制器控制該機器手臂移動以令該工具工作點進入該影像感測區中,並且記錄該機器手臂的一當前姿態以及該工具工作點於該影像裝置座標系上的一特定座標; 其中,該控制器將該當前姿態及該特定座標匯入該轉換矩陣,以經由轉換獲得該工具工作點於該機器手臂座標系上的一絕對位置,其中該轉換矩陣記錄該機器手臂座標系與該影像裝置座標系之間的對應關係。 A calibration system for a robot tool includes: a robot arm having a flange surface (Flange) and using a robot arm coordinate system; a tool arranged on the flange surface and having a tool working point (Tool Working Point) Point, TWP); an imaging device that creates an image sensing area within a moving range of the robotic arm, and uses an imaging device coordinate system; and a controller, which is electrically connected to the robotic arm; wherein, in the machine When the tool is not set on the arm, the controller controls the movement of the robotic arm so that the flange surface moves in the image sensing area while recording the posture information of the robotic arm, wherein the posture information includes at least the flange surface is located at The coordinate information on the coordinate system of the robot arm at multiple positions in the image sensing area, and an X-axis rotation amount, a Y-axis rotation amount of the robot arm when the flange surface is located at each of the positions, and A Z-axis rotation amount, and the controller establishes the imaging device coordinate system based on the coordinate information, and establishes a conversion matrix according to the robot arm coordinate system, the imaging device coordinate system, and the posture information; wherein, in the robot arm When the tool is installed, the controller controls the movement of the robotic arm so that the tool operating point enters the image sensing area, and records a current posture of the robotic arm and the tool operating point on the image device coordinate system At a specific coordinate; Wherein, the controller imports the current posture and the specific coordinates into the conversion matrix to obtain an absolute position of the tool operating point on the robot arm coordinate system through conversion, wherein the conversion matrix records the robot arm coordinate system and Correspondence between the coordinate systems of the image device. 如請求項10所述的機器人工具的校正系統,其中該影像裝置包括:一光源裝置,朝外發射光源;及一感光裝置,與該光源裝置平行設置,擷取該光源裝置發射的光源,以藉由該光源建立該影像感測區。 The calibration system for a robot tool according to claim 10, wherein the imaging device includes: a light source device that emits a light source outward; and a photosensitive device that is arranged in parallel with the light source device to capture the light source emitted by the light source device to The image sensing area is established by the light source. 如請求項11所述的機器人工具的校正系統,其中於建立該影像裝置座標系時,該控制器先控制該法蘭面移動至該影像感測區中的一第一位置,並將該法蘭面位於該第一位置上時在該機器手臂座標系上的座標資訊定義為該影像裝置座標系的一基本定位點;接著,該控制器控制該法蘭面在不改變Z軸高度的情況下移動至該影像感測區中的一第二位置,並依據該第一位置及該第二位置的相對關係定義該影像裝置座標系的一X軸方向或一Y軸方向;接著,該控制器控制該法蘭面在不改變Z軸高度的情況下移動至該影像感測區中的一第三位置,並依據該第一位置、該第二位置及該第三位置的相對關係定義該影像裝置座標系的一座標平面;接著,該控制器基於該座標平面及與該座標平面垂直的一Z軸方向建立該影像裝置座標系。 The calibration system of the robot tool according to claim 11, wherein when the coordinate system of the imaging device is established, the controller first controls the flange surface to move to a first position in the image sensing area, and the method When the blue surface is at the first position, the coordinate information on the coordinate system of the robot arm is defined as a basic positioning point of the coordinate system of the imaging device; then, the controller controls the flange surface without changing the height of the Z axis Move down to a second position in the image sensing area, and define an X-axis direction or a Y-axis direction of the image device coordinate system according to the relative relationship between the first position and the second position; then, the control The device controls the flange surface to move to a third position in the image sensing area without changing the height of the Z axis, and defines the flange surface according to the relative relationship between the first position, the second position and the third position A coordinate plane of the image device coordinate system; then, the controller establishes the image device coordinate system based on the coordinate plane and a Z-axis direction perpendicular to the coordinate plane. 如請求項12所述的機器人工具的校正系統,其中於建立該影像裝置座標系時,該控制器是令該法蘭面平行於該影像裝置座標系的該座標平 面,並且將該影像裝置第一次偵測到該法蘭面時該機器手臂座標系的Z軸高度設定為該影像裝置座標系上Z軸為0的高度。 The calibration system of the robot tool according to claim 12, wherein when the coordinate system of the imaging device is established, the controller makes the flange surface parallel to the coordinate level of the coordinate system of the imaging device When the imaging device detects the flange surface for the first time, the Z-axis height of the robotic arm coordinate system is set to the height of the Z-axis of the imaging device coordinate system as 0. 如請求項12所述的機器人工具的校正系統,其中於建立該轉換矩陣時,該控制器是依據該姿態資訊中的該X軸旋轉量、該Y軸旋轉量及該Z軸旋轉量計算一旋轉矩陣,接著取得該機器手臂座標系的一原點與該影像裝置座標系的該基本定位點間的一x軸平移量、一y軸平移量及一z軸平移量,依據該x軸平移量、該y軸平移量及該z軸平移量計算一平移矩陣,再依據該旋轉矩陣及該平移矩陣計算該轉換矩陣。 The calibration system of the robot tool according to claim 12, wherein when the conversion matrix is established, the controller calculates a rotation amount of the X axis, the rotation amount of the Y axis, and the amount of the Z axis in the attitude information Rotation matrix, and then obtain an x-axis translation amount, a y-axis translation amount and a z-axis translation amount between an origin of the coordinate system of the robot arm and the basic positioning point of the coordinate system of the imaging device, according to the x-axis translation Calculate a translation matrix based on the amount, the y-axis translation amount, and the z-axis translation amount, and then calculate the conversion matrix according to the rotation matrix and the translation matrix. 如請求項11所述的機器人工具的校正系統,其中該轉換矩陣為齊式轉換矩陣(Homogeneous transformation matrix)。 The correction system of the robot tool according to claim 11, wherein the transformation matrix is a homogeneous transformation matrix (Homogeneous transformation matrix). 如請求項11所述的機器人工具的校正系統,其中該影像裝置於建立影像裝置座標系時取得該法蘭面的一二維影像。 The calibration system of the robot tool according to claim 11, wherein the imaging device obtains a two-dimensional image of the flange surface when the imaging device coordinate system is established. 如請求項16所述的機器人工具的校正系統,其中該影像裝置取得該工具工作點的一二維影像,並且該影像裝置還包括電性連接該感光裝置的一影像處理單元,該影像處理單元依據該法蘭面的該二維影像及該工具工作點的該二維影像建立該法蘭面的一中心點至該工具工作點的向量關係。 The calibration system of the robot tool according to claim 16, wherein the imaging device obtains a two-dimensional image of the working point of the tool, and the imaging device further includes an image processing unit electrically connected to the photosensitive device, the image processing unit According to the two-dimensional image of the flange surface and the two-dimensional image of the tool operating point, a vector relationship from a center point of the flange surface to the tool operating point is established. 如請求項16所述的機器人工具的校正系統,其中該影像裝置取得對應該工具工作點的不同Z軸高度的複數二維影像,並且該影像裝置還包括電性連接該感光裝置的一影像處理單元,該影像處理單元依據該法蘭面的該二維影像及該工具的複數該二維影像建立該工具的一三維影像。 The calibration system for a robot tool according to claim 16, wherein the imaging device obtains a plurality of two-dimensional images corresponding to different Z-axis heights of the working point of the tool, and the imaging device further includes an image electrically connected to the photosensitive device A processing unit, the image processing unit creates a three-dimensional image of the tool according to the two-dimensional image of the flange surface and the plurality of two-dimensional images of the tool.
TW109100016A 2020-01-02 2020-01-02 Alignment method for robot tool and alignment system for using the same TWI706843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109100016A TWI706843B (en) 2020-01-02 2020-01-02 Alignment method for robot tool and alignment system for using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109100016A TWI706843B (en) 2020-01-02 2020-01-02 Alignment method for robot tool and alignment system for using the same

Publications (2)

Publication Number Publication Date
TWI706843B true TWI706843B (en) 2020-10-11
TW202126449A TW202126449A (en) 2021-07-16

Family

ID=74091691

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109100016A TWI706843B (en) 2020-01-02 2020-01-02 Alignment method for robot tool and alignment system for using the same

Country Status (1)

Country Link
TW (1) TWI706843B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209809A (en) * 2010-05-14 2013-07-17 康耐视公司 System and method for robust calibration between a machine vision system and a robot
JP2015147280A (en) * 2014-02-07 2015-08-20 キヤノン株式会社 Robot calibration method
CN110325329A (en) * 2016-12-20 2019-10-11 库卡德国有限公司 The method that the executor for diagnosing and/or treating effector system is calibrated

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209809A (en) * 2010-05-14 2013-07-17 康耐视公司 System and method for robust calibration between a machine vision system and a robot
JP2015147280A (en) * 2014-02-07 2015-08-20 キヤノン株式会社 Robot calibration method
CN110325329A (en) * 2016-12-20 2019-10-11 库卡德国有限公司 The method that the executor for diagnosing and/or treating effector system is calibrated

Also Published As

Publication number Publication date
TW202126449A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN111331592B (en) Mechanical arm tool center point correcting device and method and mechanical arm system
KR102458415B1 (en) System and method for automatic hand-eye calibration of vision system for robot motion
US11338441B2 (en) Calibration system for robot tool and calibration method for the same
JP7207851B2 (en) Control method, robot system, article manufacturing method, program and recording medium
TWI670153B (en) Robot and robot system
CN109940605B (en) Compliant assembly system and method integrating three-dimensional vision and contact force analysis
CN114310868B (en) Coordinate system correction device and method for robot arm
JP6429473B2 (en) Robot system, robot system calibration method, program, and computer-readable recording medium
CN115446847B (en) System and method for improving 3D eye-hand coordination accuracy of robotic systems
JPWO2018043525A1 (en) Robot system, robot system control apparatus, and robot system control method
TWI724977B (en) Calibration apparatus and calibration method for coordinate system of robotic arm
JP6565175B2 (en) Robot and robot system
CN115091456A (en) Robot hand-eye calibration method based on matrix solution
JP2006110705A (en) Robot calibration method
US20180222055A1 (en) Calibration article for a 3d vision robotic system
CN115972192A (en) 3D computer vision system with variable spatial resolution
JP7414850B2 (en) robot system
TWI748626B (en) Calibration method of tool center point, teaching method for mechanical arm and robot arm system using the same
CN113059559B (en) Robot tool correction method and system
TWI706843B (en) Alignment method for robot tool and alignment system for using the same
JP6507792B2 (en) Robot and robot system
CN116398065B (en) Vision-based positioning method for automatic loading and unloading of drill rods by tunnel drilling robots in coal mines
US12420424B2 (en) Coordinate system setting system and position/orientation measurement system
CN117011384A (en) Visual positioning method and system for improving assembly precision of body-in-white top cover assembly
CN111683797B (en) Calibration method and calibration device