TW202112514A - Method and device and system for calibrating position and orientation of a motion manipulator - Google Patents

Method and device and system for calibrating position and orientation of a motion manipulator Download PDF

Info

Publication number
TW202112514A
TW202112514A TW108135367A TW108135367A TW202112514A TW 202112514 A TW202112514 A TW 202112514A TW 108135367 A TW108135367 A TW 108135367A TW 108135367 A TW108135367 A TW 108135367A TW 202112514 A TW202112514 A TW 202112514A
Authority
TW
Taiwan
Prior art keywords
correction
calibration
conversion relationship
arm
measurement
Prior art date
Application number
TW108135367A
Other languages
Chinese (zh)
Other versions
TWI708667B (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 TW108135367A priority Critical patent/TWI708667B/en
Application granted granted Critical
Publication of TWI708667B publication Critical patent/TWI708667B/en
Publication of TW202112514A publication Critical patent/TW202112514A/en

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Manipulator (AREA)

Abstract

A position and gesture calibrating method comprises steps of providing a calibrating device having a plurality of calibrating bodies, each of which has at least one characteristic point, selectively arranging an image acquiring unit or the calibrating device on an end effecter on a motion manipulator with a base, capturing a plurality of images respectively corresponding to different position and gesture of the operation device in a calibration space, analyzing a transformation relation (Li) between the end effecter and the base at each position and gesture, analyzing an actual transformation relation (Pi), e.g.S TW, measured , between the measuring coordinate and an absolute coordinate of the characteristic points in each image, obtaining a hand-eye transformation relation (X) through (Li) and (Pi), calculating a transformation relation (Z) between the base and the absolute coordinate through (Li), (Pi), and (X), calculating an nominal transformation relation according to (Z), (Li) and (X), and determining a compensation information associated with arbitrary position and gesture of the motion manipulator in the calibration space according to the transformation relation Li, Pi, X, and Z.

Description

運動裝置之位置與姿態校正系統與方法Position and posture correction system and method of motion device

本發明為關於一種位置與姿態校正技術,特別是指一種利用校正工具輔助建立校正一運動裝置的校正空間,以對運動裝置進行位置精度調整之一種位置與姿態校正系統與方法。The present invention relates to a position and posture correction technology, in particular to a position and posture correction system and method that uses a correction tool to assist in establishing a correction space for correcting a motion device to adjust the position accuracy of the motion device.

隨著科技的進步,網路通訊與感測技術的結合,機械手臂或自動加工機具,在製造產業中的需求逐漸增加。由於機械手臂或自動加工機具可以減少人力、增加生產效率以及可以達到一般人力加工上無法達到的精度需求,因此近年來,其相關應用受大很大的重視。With the advancement of technology, the combination of network communication and sensing technology, the demand for robotic arms or automatic processing tools in the manufacturing industry has gradually increased. Because mechanical arms or automatic processing tools can reduce manpower, increase production efficiency, and can meet the accuracy requirements that cannot be achieved by ordinary manpower processing, in recent years, their related applications have received great attention.

然而高精度的機械手臂或自動加工機具的成本相當高昂,也非一般中小企業所能夠承擔。因此如何能夠在成本有效的控制之下,可以輔助與提升其加工精度,讓一般中低階的機械手臂也可以在不改變其系統的條件下提升其加工精度,是一個重要的研究課題。However, the cost of high-precision robotic arms or automatic processing tools is quite high, and it is not affordable for ordinary small and medium-sized enterprises. Therefore, how to assist and improve the machining accuracy under cost-effective control, so that the general middle and low-end robotic arms can also improve their machining accuracy without changing their systems, which is an important research topic.

習用技術中,例如:中華民國公開專利第201509617教導了一種機械手臂精度量測系統與方法,其包含有一基準平板、至少兩感測探頭及一球透鏡組,該基準平板可設於機械手臂之工作平台,而各該感測探頭係設於基準平板上,且感測探頭係由兩個雷射發射件與兩個四象限光位置檢知器以水平交錯方式設置所構成,又球透鏡組則係設於機械手臂末端,使球透鏡組可隨同機械手臂進行X軸、Y軸及Z軸的位移,藉此,機械手臂的移動過程中,可利用該球透鏡組於各該感測探頭間往復量測,供即時檢測機械手臂關節軸之組合誤差與單一關節軸之誤差,即時產生一補償參數,以供機械手臂進行補償動作。In conventional technologies, for example, the Republic of China Patent No. 201509617 teaches a robot arm accuracy measurement system and method, which includes a reference plate, at least two sensing probes, and a ball lens group. The reference plate can be set on the robot arm. The working platform, and each of the sensing probes is set on the reference plate, and the sensing probe is composed of two laser emitting elements and two four-quadrant light position detectors arranged in a horizontal staggered manner, and a spherical lens group It is set at the end of the robot arm, so that the ball lens group can move with the robot arm to move the X-axis, Y-axis and Z-axis, so that the ball lens group can be used in each sensing probe during the movement of the robot arm. The reciprocating measurement is used to detect the combined error of the joint axis of the robot and the error of a single joint axis in real time, and a compensation parameter is generated in real time for the robot to perform compensation actions.

另外在中華民國公告專利第468055號也教導了一種利用影像的方式來進行精度校正,其於進行操作對象物之移動或加工之機械手臂控制方法,其特徵為;依據記錄操作對象物之狀態及操作作業後之理想狀態之資料庫計算對於操作作業後之理想狀態之操作對象物由攝像裝置如何攝像,將由攝像裝置所攝像之實際畫像與由該計算之畫像重疊於同一面上加以顯示,控制機械手臂使顯示於該顯示裝置之該實際畫像與該計算畫像相符。In addition, the Republic of China Announcement Patent No. 468055 also teaches a method of using images to perform accuracy correction. It is a method for controlling the movement or processing of an operation object by a robot arm, which is characterized by: recording the state of the operation object and The database calculation of the ideal state after the operation is how the operation object in the ideal state after the operation is captured by the camera device, and the actual image captured by the camera device and the calculated image are superimposed on the same surface to display, and control The mechanical arm makes the actual image displayed on the display device match the calculated image.

本發明提供一種位置與姿態校正系統與方法,藉由設置於運動裝置上一特定部位 (例如:機械手臂末端效應器)上面的影像擷取探頭,在特定部位移動至相對於一世界座標系的各個不同公稱位置與姿態下,所取得到校正裝置的影像,並對該取得影像內的校正體特徵點進行演算,以得到在影像擷取探頭的量測座標系下,校正裝置上各個校正體的一相對位置。由於每一張影像內所對應的至少六個特徵點可以藉由其他精密儀器事先的量測而具有已知的絕對空間位置,因此透過絕對位置與對應的相對位置的轉換關係,以及利用手眼校正所得到的手眼轉換關係進行演算,可以得知運動裝置上該特定部位的實際位置與姿態。由於運動裝置上一特定部位,例如:末端效應器,其公稱位置與姿態為已知,因此可以透過經由校正所得該實際位置與姿態以及公稱位置與姿態的關係,進而獲得運動裝置上特定部位的運動誤差(含三軸位置與三軸轉動姿態六項參數的誤差),進而可以對該運動誤差進行補償。藉由此種方式,可以提升運動裝置的位置與姿態的精度,使得經過校正的運動裝置的位置與姿態控制精度超越其出廠的精度。The present invention provides a position and posture correction system and method. An image capture probe set on a specific part (for example, end effector of a robotic arm) on a motion device is moved to a position relative to a world coordinate system at the specific part. Under each different nominal position and posture, the image of the calibration device is obtained, and the feature points of the calibration body in the acquired image are calculated to obtain the calibration body on the calibration device under the measurement coordinate system of the image capture probe A relative position. Since the corresponding at least six feature points in each image can be measured in advance by other precision instruments to have a known absolute spatial position, the conversion relationship between the absolute position and the corresponding relative position and the use of hand-eye correction The obtained hand-eye conversion relationship is calculated, and the actual position and posture of the specific part on the sports device can be known. Since the nominal position and posture of a specific part of the exercise device, such as the end effector, are known, the relationship between the actual position and posture and the nominal position and posture can be obtained through calibration to obtain the specific position on the exercise device. The movement error (including the error of the six parameters of the three-axis position and the three-axis rotation attitude), and then the movement error can be compensated. In this way, the accuracy of the position and posture of the motion device can be improved, so that the position and posture control accuracy of the calibrated motion device surpasses the factory precision.

本發明提供一種位置與姿態校正系統與方法,其係於可以進行至少一維度運動的移載裝置上設置一附加裝置,例如:校正裝置或影像擷取探頭,來進行運動裝置的位置與姿態的校正,以用於移動範圍大的區域的運動裝置,藉由設置於運動裝置上一特定部位 (例如:機械手臂末端效應器)上面的影像擷取探頭或校正裝置,在運動裝置移動至相對於一世界座標系的各個不同操作位置下,所取得到校正裝置的影像,並對該取得影像內的校正體特徵點進行演算,以得到在影像擷取探頭的量測座標系下,校正裝置上各個校正體的一相對位置。由於運動裝置的運動空間通常比校正裝置的體積大得多,為了確保運動裝置各個公稱位置與姿態上都可以被校正裝置偵測與校正,減少校正裝置拼裝所產生的誤差,校正裝置可以透過該移載裝置 (譬如X-Y-Z三軸直角座標位移平台) 來改變位置,以利增加校正空間使其覆蓋整個運動裝置的運動空間。由於本發明的移載裝置各個運動維度相互正交,因此可以避免移動誤差相互疊加的問題,一般而言經過校正後移載裝置的位移精度,均可大幅高於機器手臂式運動裝置的運動精度,因此移載裝置可以提供精準的參考空間位置,擴大空間的範圍來校正運動裝置上特定部位的空間精確的位置與姿態。透過移載裝置上設置單一校正裝置,來對一加工環境中的運動裝置進行位置與姿態校正的話,由於不需要拼裝校正裝置,可以減少組裝時花費的時間,而且避免確保各個校正單元拼裝後保持固定所需的成本。The present invention provides a position and posture correction system and method. An additional device, such as a correction device or an image capturing probe, is provided on a transfer device capable of performing at least one-dimensional movement to perform the position and posture correction of the movement device. Calibration is used for motion devices in areas with a large range of movement. By means of an image capture probe or correction device set on a specific part of the motion device (for example, the end effector of a robotic arm), the motion device is moved relative to Under various operating positions of a world coordinate system, the image of the calibration device is obtained, and the feature points of the calibration body in the obtained image are calculated to obtain the measurement coordinate system of the image capture probe. A relative position of each calibration body. Since the movement space of the movement device is usually much larger than the volume of the correction device, in order to ensure that the nominal position and posture of the movement device can be detected and corrected by the correction device, and reduce the error caused by the assembly of the correction device, the correction device can pass the Transfer device (such as XYZ three-axis right-angle coordinate displacement platform) to change the position, so as to increase the correction space to cover the entire motion space of the motion device. Since the movement dimensions of the transfer device of the present invention are orthogonal to each other, the problem of mutual superimposition of movement errors can be avoided. Generally speaking, the displacement accuracy of the transfer device after correction can be much higher than that of the robotic arm motion device. Therefore, the transfer device can provide an accurate reference spatial position and expand the space to correct the precise spatial position and posture of a specific part on the sports device. By setting a single correction device on the transfer device to correct the position and posture of the motion device in a processing environment, as there is no need to assemble the correction device, it can reduce the time spent in assembly and avoid ensuring that each correction unit is assembled and maintained Fix the required cost.

在一實施例中,本發明提供一種位置與姿態校正方法,其係包括有下列步驟。首先,提供一運動裝置,具有一末端效應器。接著,建立關於該運動裝置之運動範圍的校正空間,其具有複數個校正點。然後,提供一校正裝置,其係包括有至少一支撐結構以及設置在該至少一支撐結構的複數個校正體,每一個校正體上具有至少一特徵點,該複數個校正體之特徵點至少具有四個不共平面。接著,於該末端效應器(end effector)上,選擇設置一校正裝置或一影像擷取探頭。然後,控制該運動裝置將該末端效應器移動至每一個校正點,使得在每一個校正點,運動裝置所具有的手臂校正位置與姿態不相同,並於每一個校正點使影像擷取探頭擷取關於該校正裝置的手臂校正影像,每一手臂校正影像內具有至少六個特徵點。再來,根據該運動裝置的每一個手臂校正位置與姿態決定出關於每一個校正點的該末端效應器相對於該運動裝置之一手臂校正轉換關係。接著,根據每一手臂校正影像內的每一特徵點相對於該影像擷取探頭之量測座標系下的一量測座標位置以及相應於該世界座標系下的一世界座標位置,決定關於每一校正點的一量測與世界座標轉換關係。最後,根據每一校正點的手臂校正轉換關係以及該量測與世界座標轉換關係,決定該運動裝置於被校正空間內任意位置與姿態的補償資訊。In one embodiment, the present invention provides a position and attitude correction method, which includes the following steps. First, provide a movement device with an end effector. Next, a correction space with respect to the motion range of the motion device is established, which has a plurality of correction points. Then, a calibration device is provided, which includes at least one supporting structure and a plurality of calibration bodies arranged on the at least one supporting structure, each calibration body has at least one feature point, and the feature points of the plurality of calibration bodies have at least The four are not coplanar. Then, on the end effector, choose to set up a calibration device or an image capture probe. Then, the motion device is controlled to move the end effector to each calibration point, so that at each calibration point, the arm calibration position and posture of the motion device are different, and at each calibration point, the image capture probe is used to capture Taking an arm-calibrated image related to the calibration device, each arm-calibrated image has at least six feature points. Furthermore, according to the correction position and posture of each arm of the motion device, a correction conversion relationship between the end effector and an arm of the motion device is determined for each correction point. Then, according to the position of each feature point in the calibration image of each arm relative to a measurement coordinate position in the measurement coordinate system of the image capture probe and a world coordinate position corresponding to the world coordinate system, it is determined about each The conversion relationship between a measurement of a calibration point and the world coordinate. Finally, according to the arm calibration conversion relationship of each calibration point and the conversion relationship between the measurement and the world coordinate, the compensation information of the motion device at any position and posture in the calibration space is determined.

在一實施例中,本發明提供一種位置與姿態校正系統,包括有一影像擷取探頭、一校正裝置、一運動裝置以及一運算處理裝置。該校正裝置,其係包括有至少一支撐結構以及設置在該至少一支撐結構的複數個校正體,每一個校正體上具有至少一特徵點,該複數個校正體之特徵點至少具有四個不共平面。該運動裝置,其上具有一末端效應器(end effector),其中該影像擷取探頭或該校正裝置之其中之一係設置於該末端效應器上,該運動裝置位於一校正空間內,該校正空間內具有複數個校正點。該運算處理裝置,其係與該運動裝置相耦接,該運算處理裝置控制該運動裝置將該末端效應器移動至每一個校正點,使得在每一個校正點,運動裝置所具有的手臂校正位置與姿態不相同,並於每一個校正點使影像擷取探頭擷取關於該校正裝置的手臂校正影像,每一手臂校正影像內具有至少六個特徵點,根據該運動裝置的每一個手臂校正位置與姿態決定出關於每一個校正點的該末端效應器相對於該運動裝置之一手臂校正轉換關係,根據每一手臂校正影像內的每一特徵點相對於該影像擷取探頭之量測座標系下的量測座標系位置以及相應於該世界座標系下的世界座標系位置,決定關於每一校正點的一量測與世界座標轉換關係,根據每一校正點的手臂校正轉換關係以及該量測與世界座標轉換關係,決定該運動裝置於被校正空間內任意位置與姿態的補償資訊。In one embodiment, the present invention provides a position and posture correction system, which includes an image capture probe, a correction device, a movement device, and an arithmetic processing device. The calibration device includes at least one supporting structure and a plurality of calibration bodies arranged on the at least one supporting structure, each calibration body has at least one characteristic point, and the plurality of calibration bodies has at least four characteristic points. Coplanar. The movement device has an end effector thereon, wherein one of the image capturing probe or the correction device is arranged on the end effector, the movement device is located in a correction space, and the correction device There are multiple correction points in the space. The arithmetic processing device is coupled with the motion device, and the arithmetic processing device controls the motion device to move the end effector to each correction point, so that at each correction point, the arm correction position of the motion device is It is not the same as the posture, and at each calibration point, the image capturing probe is used to capture the arm calibration image of the calibration device. Each arm calibration image has at least six feature points, and the position is calibrated according to each arm of the motion device. And the posture determines the calibration conversion relationship between the end-effector for each calibration point and an arm of the motion device, and the measurement coordinate system of each feature point in the calibration image with respect to the image capturing probe is based on each arm. The position of the measurement coordinate system below and the position of the world coordinate system corresponding to the world coordinate system determine the conversion relationship between a measurement and the world coordinate for each calibration point, and the conversion relationship between the arm calibration of each calibration point and the quantity The conversion relationship between measurement and world coordinates determines the compensation information of the motion device at any position and posture in the space to be calibrated.

在另一實施例中,本發明提供一種位置與姿態校正裝置,包括有一影像擷取探頭、一校正裝置、一移載裝置以及一運算處理裝置。該校正裝置,其係包括有至少一支撐結構以及設置在該至少一支撐結構的複數個校正體,每一個校正體上具有至少一特徵點,該複數個校正體之特徵點至少具有四個不共平面。該移載裝置,用以承載該影像擷取探頭或該校正裝置。該運算處理裝置,控制一運動裝置以複數個不同的校正位置與姿態將該運動裝置上之一末端效應器移動至運動裝置所處空間中的複數個校正點,使影像擷取探頭於每一個校正點擷取關於該校正裝置的手臂校正影像,每一手臂校正影像內具有至少六個特徵點,該運算處理裝置根據該運動裝置的每一個位置與姿態決定出關於每一個校正點的該末端效應器相對於該運動裝置之一手臂校正轉換關係,根據每一手臂校正影像內的每一特徵點相對於該影像擷取探頭之量測座標系下的量測座標系位置以及相應於該世界座標系下的世界座標系位置,決定每一校正點的一量測與世界座標轉換關係,以及根據每一校正點的手臂校正轉換關係以及該量測與世界座標轉換關係,決定該運動裝置於被校正空間內任意位置與姿態的補償資訊。In another embodiment, the present invention provides a position and posture correction device, which includes an image capturing probe, a correction device, a transfer device, and an arithmetic processing device. The calibration device includes at least one supporting structure and a plurality of calibration bodies arranged on the at least one supporting structure, each calibration body has at least one characteristic point, and the plurality of calibration bodies has at least four characteristic points. Coplanar. The transfer device is used to carry the image capturing probe or the calibration device. The arithmetic processing device controls a motion device to move one of the end effectors on the motion device to a plurality of correction points in the space where the motion device is located in a plurality of different correction positions and postures, so that the image capturing probe is placed on each The correction point captures the correction image of the arm of the correction device. Each arm correction image has at least six characteristic points. The arithmetic processing device determines the end of each correction point according to each position and posture of the motion device. The effector is calibrated and converted with respect to one of the arms of the motion device, and each feature point in the image is calibrated according to the position of the measurement coordinate system under the measurement coordinate system of the image capturing probe and corresponding to the world according to each arm. The position of the world coordinate system under the coordinate system determines the conversion relationship between a measurement of each calibration point and the world coordinate, and the conversion relationship between the arm calibration of each calibration point and the conversion relationship between the measurement and the world coordinate determine the movement device Compensation information for any position and posture in the corrected space.

在下文將參考隨附圖式,可更充分地描述各種例示性實施例,在隨附圖式中展示一些例示性實施例。然而,本發明概念可能以許多不同形式來體現,且不應解釋為限於本文中所闡述之例示性實施例。確切而言,提供此等例示性實施例使得本發明將為詳盡且完整,且將向熟習此項技術者充分傳達本發明概念的範疇。類似數字始終指示類似元件。以下將以多種實施例配合圖式來說明所述位置與姿態校正裝置及其位置與姿態校正系統與方法,然而,下述實施例並非用以限制本發明。Hereinafter, various exemplary embodiments may be more fully described with reference to the accompanying drawings, and some exemplary embodiments are shown in the accompanying drawings. However, the inventive concept may be embodied in many different forms, and should not be construed as being limited to the exemplary embodiments set forth herein. To be precise, the provision of these exemplary embodiments makes the present invention detailed and complete, and will fully convey the scope of the concept of the present invention to those skilled in the art. Similar numbers always indicate similar components. The position and posture correction device and the position and posture correction system and method thereof will be described below with various embodiments in conjunction with drawings. However, the following embodiments are not intended to limit the present invention.

請參閱圖1所示,該圖為本發明之一種位置與姿態校正裝置立體示意圖,該校正裝置2包括有複數個校正單元20,相互組合以使該複數個校正單元20構成一個校正空間90,用以校正一運動裝置。每一校正單元20包括有一板體200、複數個支撐結構201以及複數個校正體202。該複數個支撐結構201,其一端連接於該板體200上。本實施例中,該支撐結構201的數量為四個,但不以此為限制,其數量可以根據實際校正需求而定。該複數個校正體202,分別設置於該複數個支撐結構201上,每一個校正體202分別對應一個支撐結構201,並連接於相應的支撐結構201上,使得該至少四個校正體202之特徵點不共平面。每一支撐結構上不限一校正體。校正體202在本實施例中為空間上具有對稱性的結構體,例如:球體或其他以形心/重心為對稱中心的具有對稱性的幾何結構。Please refer to FIG. 1, which is a three-dimensional schematic diagram of a position and attitude correction device of the present invention. The correction device 2 includes a plurality of correction units 20, which are combined with each other so that the plurality of correction units 20 form a correction space 90. Used to calibrate a sports device. Each calibration unit 20 includes a plate body 200, a plurality of supporting structures 201 and a plurality of calibration bodies 202. One end of the plurality of supporting structures 201 is connected to the board 200. In this embodiment, the number of the support structure 201 is four, but it is not limited thereto, and the number can be determined according to actual calibration requirements. The plurality of calibration bodies 202 are respectively arranged on the plurality of supporting structures 201, and each calibration body 202 corresponds to a supporting structure 201, and is connected to the corresponding supporting structure 201, so that the characteristics of the at least four calibration bodies 202 The points are not coplanar. There is no limit to one correction body on each support structure. The correction body 202 in this embodiment is a spatially symmetrical structure, such as a sphere or other symmetrical geometric structure with a centroid/gravity center as the center of symmetry.

每一個校正體上具有至少一特徵點,在一實施例中,該特徵點可以為校正體之中心位置,或者是校正體上特定的標記等。本實施例中,藉由該支撐結構201的高低差,讓至少四個特徵點不共平面。由於三個不共線的點可以建立一平面,而四個不共面的點可以建立一立體空間,因此為了使之後組合校正組時,無論使用了多少個校正單元都能夠建立立體的空間座標為參考,因此校正單元上需要至少四個不共面的特徵點來建立一參考立體空間。同時,因校正裝置可能會同時使用多數的校正單元,為了使校正裝置得以簡化,校正單元上設置以可供建立立體的最少點的四個特徵點為基礎。此外,在另一實施例中,校正體202的大小可以相同,或者是各有差異。Each calibration body has at least one characteristic point. In an embodiment, the characteristic point may be the center position of the calibration body, or a specific mark on the calibration body. In this embodiment, by virtue of the height difference of the supporting structure 201, at least four characteristic points are not coplanar. Since three non-collinear points can create a plane, and four non-coplanar points can create a three-dimensional space, in order to later combine the correction group, no matter how many correction units are used, the three-dimensional spatial coordinates can be established. For reference, at least four non-coplanar feature points are required on the correction unit to establish a reference three-dimensional space. At the same time, because the correction device may use a large number of correction units at the same time, in order to simplify the correction device, the correction unit is set on the basis of four characteristic points that can be used to establish a minimum of three-dimensional points. In addition, in another embodiment, the size of the calibration body 202 may be the same or different.

要說明的是,為了避免校正單元20因為熱脹冷縮效果而影響了校正單元20的尺寸,因此校正單元20可以低膨脹係數的材料來製作,另一方面也可以在考慮材料是否容易加工的特性。在一實施例中,該板體200與該支撐結構201可以採用殷瓦合金(Invar 36),其具有低膨脹係數與容易加工的特性。殷瓦合金在20℃的時候,其膨脹係數是1.2~2.0 x 10-6 /K,確切的數值依合金本身的等級不同而有些微的改變。利用這種低膨脹係數的合金,可以確保校正單元20受到一定的外界溫度變化時,本身的膨脹變形量能降到不至於影響量測運動裝置空間座標位置的結果。It should be noted that, in order to prevent the correction unit 20 from affecting the size of the correction unit 20 due to thermal expansion and contraction effects, the correction unit 20 can be made of materials with a low coefficient of expansion. On the other hand, it can also be considered whether the material is easy to process. characteristic. In one embodiment, the plate body 200 and the supporting structure 201 can be made of Invar 36, which has the characteristics of low expansion coefficient and easy processing. When Invar alloy is at 20℃, its expansion coefficient is 1.2~2.0 x 10 -6 /K. The exact value varies slightly depending on the grade of the alloy itself. The use of such a low expansion coefficient alloy can ensure that when the correction unit 20 is subjected to a certain external temperature change, its own expansion deformation can be reduced to a level that does not affect the result of measuring the spatial coordinate position of the sports device.

根據熱膨脹係數的公氏,如下式(1)所示:

Figure 02_image001
…(1)According to the Gong's coefficient of thermal expansion, as shown in the following formula (1):
Figure 02_image001
…(1)

其中α為熱膨脹係數、L為材料的長度、ΔL為溫度變化之後增加的長度,而ΔT則為溫度變化。若將殷瓦合金使用於長度(寬度)為100 mm的校正單元,溫度變化為10度,其線性熱膨脹量為2 μm。也就是當校正單元處於10℃~30℃時,其線性膨脹的變化量最多僅為2 μm,此變化量遠低於探頭之量測精度,故不會對量測結果產生過多的影響。Among them, α is the thermal expansion coefficient, L is the length of the material, ΔL is the length increased after the temperature change, and ΔT is the temperature change. If the Invar alloy is used in a calibration unit with a length (width) of 100 mm, the temperature change is 10 degrees, and its linear thermal expansion is 2 μm. That is, when the calibration unit is at 10℃~30℃, the linear expansion change is only 2 μm at most. This change is much lower than the measurement accuracy of the probe, so it will not have too much influence on the measurement result.

至於校正單元20之間的連接元件203,會選用能夠確保校正單元20相接之後,其相互間距不會因外界因素,如溫度等,而產生巨大的變化,導致校正裝置之精度受到嚴重影響的材料。因此在一實施例中,校正單元之間的連接元件203,例如:連接桿,亦可以採用殷瓦合金來製作。As for the connecting elements 203 between the calibration units 20, they will be selected to ensure that after the calibration units 20 are connected, their mutual distance will not be greatly changed due to external factors, such as temperature, etc., which will seriously affect the accuracy of the calibration device. material. Therefore, in an embodiment, the connecting element 203 between the calibration units, such as the connecting rod, may also be made of Invar alloy.

要說明的是,利用複數個校正單元20所組合的校正空間90形狀並無一定限制,使用者可以根據校正區域的需求,利用校正單元20進行組合。在組合校正裝置2之前,會先利用三次元量測,對每一個校正單元20進行量測,得到校正體202精確的特徵點座標資訊,並對其設定代號以代表各個校正體202的位置。同時,為了方便分辨,也會對每一個校正單元20設定代號,如此只需知道代號,即可知曉任意一個校正單元20的任意校正體202的資訊。將多個校正單元20組合之後,通過事先設定好校正單元20的順序以及校正體202的位置,便可利用代號建立出整個校正裝置2中所有校正體202的特徵點位置模型,構建出一校正組空間。如圖2A與2B所示,其係為將多個校正單元20組合而成校正裝置2俯視示意圖。圖2A與圖2B顯示出將多個的校正單元連接起來,依據不同量測所需要的範圍,組合出符合量測需求的校正組空間。It should be noted that the shape of the correction space 90 combined by a plurality of correction units 20 is not limited, and the user can use the correction unit 20 to combine according to the needs of the correction area. Before assembling the calibration device 2, a three-dimensional measurement is used to measure each calibration unit 20 to obtain the accurate feature point coordinate information of the calibration body 202, and a code is set to represent the position of each calibration body 202. At the same time, in order to facilitate the discrimination, a code number is also set for each calibration unit 20, so that the information of any calibration body 202 of any calibration unit 20 can be known only by knowing the code. After combining multiple correction units 20, by pre-setting the sequence of the correction units 20 and the position of the correction body 202, the code can be used to establish the feature point position model of all the correction bodies 202 in the entire correction device 2 to construct a correction Group space. As shown in FIGS. 2A and 2B, it is a schematic top view of the calibration device 2 by combining a plurality of calibration units 20. 2A and 2B show that a plurality of calibration units are connected, and a calibration group space that meets the measurement requirements is combined according to the ranges required for different measurements.

此外,如圖2C與圖2D所示,在本實施例中,該校正裝置2a或2b為由複數個支撐結構201以及校正體202所構成。圖2C與圖2D與前述圖1或2A~2B的差異在於圖2C或圖2D並非由多個校正單元拼接而成,而是由多個支撐結構201與校正體202所組合而成的單一校正裝置。而圖2C和圖2D的差異在於校正裝置的幾何形狀並不相同。此外,要說明的是,校正體202在本實施例中為空間上具有對稱性的結構體,例如:球體或其他以形心/重心為對稱中心的具有對稱性的幾何結構。而在以下實施例中,校正體之特徵點係以校正體中心位置來做示例。此外,該校正體202上更可以具有識別的特徵,例如:圖案、文字等,但不以此為限制。In addition, as shown in FIGS. 2C and 2D, in this embodiment, the correction device 2a or 2b is composed of a plurality of support structures 201 and a correction body 202. The difference between Fig. 2C and Fig. 2D and the aforementioned Figs. 1 or 2A~2B is that Fig. 2C or Fig. 2D is not formed by stitching multiple correction units, but a single correction formed by a combination of multiple support structures 201 and correction bodies 202 Device. The difference between FIG. 2C and FIG. 2D is that the geometric shape of the correction device is not the same. In addition, it should be noted that the correction body 202 in this embodiment is a spatially symmetrical structure, such as a sphere or other geometrical structures with symmetry with the centroid/gravity center as the center of symmetry. In the following embodiments, the characteristic points of the calibration body are taken as an example of the center position of the calibration body. In addition, the calibration body 202 may further have recognizable features, such as patterns, characters, etc., but it is not limited thereto.

請參閱圖3A所示,該圖為本發明之校正系統實施例示意圖。在本實施例中,利用圖1所示的校正裝置2、運動裝置30、影像擷取探頭31、與運算處理裝置32構成了校正系統3。在一實施例中,該運動裝置30可以為機械手臂,或者是工具機中控制刀具三維位置與姿態,可進行空間運動包括多軸的移動或轉動的機構。本實施例運動裝置30為機械手臂,以下實施例的運動裝置係以機械手臂來說明。該運算處理裝置32可以為電腦、筆記型電腦、工作站、伺服器或者是雲端運算伺服器等。該運算處理裝置32具有儲存裝置,其內存有關於該校正裝置2的位置資訊的資料庫。在一實施例中,該資料庫可以透過網路設置在遠端的雲端儲存裝置內。Please refer to FIG. 3A, which is a schematic diagram of an embodiment of the calibration system of the present invention. In this embodiment, the calibration system 3 is constituted by the calibration device 2 shown in FIG. 1, the motion device 30, the image capturing probe 31, and the arithmetic processing device 32. In an embodiment, the movement device 30 may be a mechanical arm, or a mechanism that controls the three-dimensional position and posture of a tool in a machine tool, and can perform spatial movement including multi-axis movement or rotation. The motion device 30 in this embodiment is a robotic arm, and the motion device in the following embodiments is described as a robotic arm. The computing processing device 32 can be a computer, a notebook computer, a workstation, a server, or a cloud computing server. The arithmetic processing device 32 has a storage device, and a database of the position information of the calibration device 2 is stored in the storage device. In one embodiment, the database can be set in a remote cloud storage device via the network.

在一實施例中,該位置資訊包括有每一校正單元20的編號,每一校正單元20上的每一校正體202的中心座標資訊,並對其設定代號以代表各個校正體202的位置。例如在圖3A中,每一個校正單元都有一個編號A~L,其上的每一個校正體202也都具有相應的編號,以編號A的校正單元20為例,A1~A6代表其上每一個校正體202,每一個校正體202的中心位置可以透過事先的檢測得之。量測方式,在一實施例中,如前所述,可以透過經過校正之精密三次元量測床(Coordinate measuring machine, CMM)上進行量測,得到關於一世界座標系的校正體的中心位置的座標資訊。由於每一個校正單元20的編號都已經事先經過量測,因此複數個校正單元20組合而成的校正裝置2之後,就可以建立起校正裝置2關於世界座標系(W)的三維空間座標的位置關係。本實施例中,世界座標系(W)為以複數個校正單元所建構的校正空間所代表的座標系。In one embodiment, the position information includes the number of each calibration unit 20, the center coordinate information of each calibration body 202 on each calibration unit 20, and a code is assigned to it to represent the position of each calibration body 202. For example, in Figure 3A, each calibration unit has a number A~L, and each calibration body 202 on it also has a corresponding number. Taking the calibration unit 20 with number A as an example, A1~A6 represent each calibration unit above it. For a calibration body 202, the center position of each calibration body 202 can be obtained through prior detection. For the measurement method, in one embodiment, as mentioned above, the center position of the calibration body can be obtained by measuring on a calibrated Coordinate Measuring Machine (CMM). The coordinate information of. Since the serial number of each calibration unit 20 has been measured in advance, after the calibration device 2 formed by the combination of a plurality of calibration units 20, the position of the calibration device 2 with respect to the three-dimensional space coordinates of the world coordinate system (W) can be established relationship. In this embodiment, the world coordinate system (W) is a coordinate system represented by a correction space constructed by a plurality of correction units.

在該運動裝置30具有基座301,從基座301上耦接有複數個相互關連的運動軸306,使得該運動裝置30可體透過多軸運動的方式改變最後一運動軸上之一末端效應器(end effector)302的位置與姿態。本實施例中,末端效應器302用來設置影像擷取探頭31。末端效應器(end effector)其上可以設置有加工刀具、量測器具、影像擷取探頭等,但不以此為限制。在另一實施例中,如圖3B所示,該校正裝置2,可以不像圖3A的方式設置,該校正裝置2設置在一個可以進行至少三維運動(XYZ)的經過空間位移精度校正之移載裝置7上,以讓校正裝置2進行空間移動。透過圖3B的方式,可以減少校正裝置的設置空間。透過移載裝置7帶動校正裝置2移動,以確保影像擷取探頭31,在各個操作位置上都可以偵測到校正裝置2,進而可以增加校正空間的範圍。由於本發明的移載裝置各個運動維度具有相互正交之特性,因此可以避免移動誤差相互疊加的問題,因此只要移載裝置的空間位移精度大幅高於運動裝置的運動精度,則可以進一步精準地校正運動裝置上特定部位,例如:末端效應器,的實際位置。The movement device 30 has a base 301, and a plurality of mutually related movement shafts 306 are coupled from the base 301, so that the movement device 30 can change one end effect on the last movement axis through multi-axis movement. The position and posture of the end effector 302. In this embodiment, the end effector 302 is used to set the image capturing probe 31. The end effector can be provided with processing tools, measuring instruments, image capturing probes, etc., but it is not limited thereto. In another embodiment, as shown in FIG. 3B, the correction device 2 may not be arranged in a manner similar to that shown in FIG. 3A. The correction device 2 may be arranged in a displacement that can perform at least three-dimensional movement (XYZ) after spatial displacement accuracy correction. On the mounting device 7 to allow the calibration device 2 to move in space. Through the method of FIG. 3B, the installation space of the calibration device can be reduced. The transfer device 7 drives the calibration device 2 to move to ensure that the image capturing probe 31 can detect the calibration device 2 at each operating position, thereby increasing the scope of the calibration space. Since the movement dimensions of the transfer device of the present invention are orthogonal to each other, the problem of superimposing movement errors can be avoided. Therefore, as long as the spatial displacement accuracy of the transfer device is significantly higher than that of the motion device, it can be more precise Correct the actual position of a specific part of the exercise device, such as the end effector.

再回到圖3A所示,該影像擷取探頭31,其係具有用以產生結構光的光源,例如:特定條紋圖案的光場,以及擷取影像的影像擷取裝置 ,用以擷取運動裝置30所在位置與姿態下所看到的複數個校正單元20的狀態,進而擷取相應的至少一張影像。要說明的是,影像擷取探頭31裝設的位置係為運動裝置上要被追蹤與補償的位置。例如:如果運動裝置為機械手臂,那在機械手臂上末端的挾持刀具或加工工具的挾持結構,就是影像擷取探頭31裝設的位置。因此影像擷取探頭31設置的位置是根據需求而定,並無一定限制。Returning to FIG. 3A, the image capturing probe 31 has a light source for generating structured light, such as a light field with a specific stripe pattern, and an image capturing device for capturing images to capture motion The state of the plurality of correction units 20 as seen in the position and posture of the device 30, and then at least one corresponding image is captured. It should be noted that the position where the image capturing probe 31 is installed is the position to be tracked and compensated on the motion device. For example, if the moving device is a mechanical arm, the clamping structure of the cutting tool or processing tool at the end of the mechanical arm is the position where the image capturing probe 31 is installed. Therefore, the position of the image capturing probe 31 is determined according to requirements, and there is no certain limit.

此外,此處所謂擷取影像的數量並無一定的限制,可以根據後續解析影像中的物件在相對於量測座標系(以影像擷取鏡頭為原點的空間座標系)所需的方式,來決定影像的數量,例如:如果採用四歩相移法(Four-step Phase Shift Method)就擷取四張不同相位的影像、五歩相移法則擷取五張不同相位的影像、或者是單張(single exposure 或 one shot)相移法則擷取單張同時具有不同相位的影像等,不管是哪一種相移法其為本領域所屬技術之人所熟知,在此不作贅述。擷取影像的方式,在一實施例中,影像擷取探頭31投射出結構光,然後透過相位改變,擷取對應該相位改變的結構光所對應的影像或點雲(point cloud)。In addition, there is no limit to the number of captured images here, and it can be based on how the objects in the images can be analyzed later relative to the measurement coordinate system (the spatial coordinate system with the image capturing lens as the origin). To determine the number of images, for example, if the Four-step Phase Shift Method is used, four images with different phases are captured, the Five-Step Phase Shift method is used to capture five images with different phases, or a single The single exposure or one shot phase shift law captures a single image that has different phases at the same time. No matter which phase shift method is used, it is well known to those skilled in the art and will not be repeated here. In one embodiment, the image capturing probe 31 projects structured light, and then through the phase change, the image or point cloud corresponding to the structured light corresponding to the phase change is captured.

請參閱圖3C與圖3D所示,其係分別為本發明之影像擷取探頭不同實施例示意圖。在圖3C中,該影像擷取探頭包括有一光源310以及一影像擷取裝置311,該光源310用以投射出結構光,其係可以為編碼的結構光、亂數編碼的光斑或者是正弦波圖案(sinusoidal pattern)等。在另一實施例中,如圖3D所示,本實施例中具有兩個影像擷取裝置312,而在校正體20表面上則可以事先塗佈有光斑圖案313,例如:亂數分佈的光斑或散亂的光點影像。兩個影像擷取裝置312之間的中心線作為基線314,可以用來推算校正體和基線314的距離,進而得到校正體20在影像擷取裝置311的座標系下的位置。Please refer to FIG. 3C and FIG. 3D, which are schematic diagrams of different embodiments of the image capturing probe of the present invention. In FIG. 3C, the image capturing probe includes a light source 310 and an image capturing device 311. The light source 310 is used to project structured light, which can be coded structured light, random coded spot, or sine wave. Pattern (sinusoidal pattern) and so on. In another embodiment, as shown in FIG. 3D, there are two image capturing devices 312 in this embodiment, and the surface of the calibration body 20 may be pre-coated with a spot pattern 313, such as a random number of spots. Or scattered images of light spots. The center line between the two image capturing devices 312 is used as the baseline 314, which can be used to calculate the distance between the calibration body and the baseline 314 to obtain the position of the calibration body 20 in the coordinate system of the image capturing device 311.

要說明的是,雖然前述的實施例為影像擷取探頭31設置在運動裝置30的末端結構上的末端效應器302,而校正裝置2則是固定在運動裝置30之需進行空間校正的適當位置,可以滿足覆蓋運動裝置所需的工作校正範圍為準。在另一實施例中,也可以相反設置,亦即校正裝置設置2在運動裝置30的末端效應器302上,而該影像擷取探頭設置31則是設置在可以有效偵測校正裝置的適當位置,一般可以固定設置,或者是設置在圖3B的移載裝置7上,以隨時追蹤跟隨校正裝置的位置,使其影像擷取探頭能有校偵測校正裝置的空間位置與姿態,以利滿足覆蓋運動裝置的校正範圍。It should be noted that although the foregoing embodiment is the end effector 302 where the image capturing probe 31 is set on the end structure of the motion device 30, the correction device 2 is fixed at the appropriate position of the motion device 30 where the spatial correction is required. , Which can meet the required working correction range of the covering motion device shall prevail. In another embodiment, the opposite can also be set, that is, the calibration device setting 2 is set on the end effector 302 of the motion device 30, and the image capturing probe setting 31 is set at an appropriate position that can effectively detect the calibration device. , Generally can be fixed or set on the transfer device 7 of Fig. 3B to track the position of the correction device at any time, so that the image capturing probe can be calibrated to detect the spatial position and posture of the correction device to facilitate satisfaction Covers the correction range of the sports device.

請參閱圖4A所示,該圖為本發明之位置與姿態校正方法之一實施例流程示意圖。在本實施例中,該方法4包括有下列步驟:首先進行步驟40提供一校正裝置,其係包括有至少一支撐結構以及設置在該至少一支撐結構的複數個校正體,該複數個校正體之特徵點至少有四個不共平面。該校正裝置,可以如圖1、2A~2D所示的結構,本實施例係以圖1所示的校正裝置來作說明,所形成的校正系統3則為如圖3A所示的架構。Please refer to FIG. 4A, which is a schematic flowchart of an embodiment of the position and attitude correction method of the present invention. In this embodiment, the method 4 includes the following steps: first, step 40 is performed to provide a calibration device, which includes at least one supporting structure and a plurality of calibration bodies arranged on the at least one supporting structure, the plurality of calibration bodies There are at least four characteristic points that are not coplanar. The calibration device may have the structure shown in FIGS. 1 and 2A to 2D. This embodiment uses the calibration device shown in FIG. 1 for illustration, and the formed calibration system 3 has the structure shown in FIG. 3A.

接著進行步驟41,建立每一個校正體202關於一世界座標系的中心位置。本步驟的一實施例中,可以使用三次元量床的探針對每一個校正單元202上的標準體進行精密量測(可包括接觸式探針量測或非接觸光學量測方式),通過三次元量床內建的程式得到校正體202中心的座標位置。以校正體202為球體為例,就是得到校正體202的球心位置。多次量測後將此座標位置取平均,並將平均值記錄下來,存入資料庫。因此每一個校正單元20與其上所具有校正體202的中心位置都會記錄在資料庫內。該世界座標系為世界座標系,也就是運動裝置30還有校正裝置所處的空間座標系。Then proceed to step 41 to establish the center position of each calibration body 202 with respect to a world coordinate system. In an embodiment of this step, the probe of the three-dimensional measuring bed can be used to precisely measure the standard body on each calibration unit 202 (which may include contact probe measurement or non-contact optical measurement), and pass three times The built-in program of the Yuanliang bed obtains the coordinate position of the center of the calibration body 202. Taking the calibration body 202 as a sphere as an example, the position of the center of the sphere of the calibration body 202 is obtained. After several measurements, the coordinate position is averaged, and the average value is recorded and stored in the database. Therefore, the center position of each calibration unit 20 and the calibration body 202 on it will be recorded in the database. The world coordinate system is the world coordinate system, that is, the space coordinate system where the motion device 30 and the correction device are located.

步驟41所建立關於校正體資料庫的形式可表示如下式(2):

Figure 02_image004
…(2) 以圖3A為例,三次元量床從右上角的校正單元A開始量測,此時編號n為1,視為原點校正單元,存入資料庫D1 。以順時針的順序量測,對下一個校正單元進行量測後,編號n為2存入資料庫D2 。以此類推,直到量測完所有的校正單元,並對所有校正單元完成編號。每一個位置資訊Di 代表著世界座標系(也就是世界座標系W)下每一個校正體的中心位置資訊。The form of the calibration volume database established in step 41 can be expressed as the following formula (2):
Figure 02_image004
…(2) Taking Fig. 3A as an example, the three-dimensional measuring bed starts measurement from the correction unit A in the upper right corner, and the number n is 1, which is regarded as the origin correction unit and stored in the database D 1 . Measure in a clockwise order, and after the next calibration unit is measured, the number n is 2 and it is stored in the database D 2 . And so on, until all calibration units have been measured, and all calibration units have been numbered. Each position information Di represents the center position information of each calibration body in the world coordinate system (that is, the world coordinate system W).

接著進行步驟42,於該運動裝置的一運動空間91中,定義複數個校正點TP,如圖4B所示。校正點TP的密度,可以根據運動裝置在進行運動所需的精度而定,校正點TP密度越高,後續進行移動位置補償控制的效果就越好。本實施例中,運動空間91為三維立方體的空間,但不以此為限制,例如:球體的空間也可以實施。每一個校正點TP就是將來末端效應器要到達的位置。Then, step 42 is performed to define a plurality of correction points TP in a motion space 91 of the motion device, as shown in FIG. 4B. The density of the correction points TP may be determined according to the accuracy required by the motion device in the movement. The higher the density of the correction points TP, the better the effect of subsequent movement position compensation control. In this embodiment, the motion space 91 is a space of a three-dimensional cube, but it is not limited thereto. For example, the space of a sphere can also be implemented. Each calibration point TP is the position that the end effector will reach in the future.

接著進行步驟43,提供一影像擷取探頭31設置於具有多軸向維度運動能力的運動裝置30上。該運動裝置30,如圖3A所示,具有複數個相互關連的運動軸306。如圖3A所示,最後的運動軸306上具有末端效應器(end effector)302,因此影像擷取探頭31係可以設置在該末端效應器302上。所謂末端效應器係指運動裝置的最末端的運動軸306的端部,其係用來裝設各種不同目的的加工裝置、探測機具、或者是挾持工具等。本實施例中,每一運動軸306具有至少一運動自由度,例如不同軸向的轉動。該影像擷取探頭31在一實施例中,可以為圖3C的架構以投射出條紋結構光,以及對結構光所具有的條紋結構進行相移的調變(phase shift modulation)。此外,影像擷取探頭也可以如圖3D所示的架構。以圖3C的架構為例,影像擷取探頭31包括有影像擷取裝置311 ,可以擷取一張或多張影像,提供相移法演算所需要的影像。Next, proceed to step 43 to provide an image capturing probe 31 to be set on the exercise device 30 capable of multi-axial dimensional motion. The moving device 30, as shown in FIG. 3A, has a plurality of moving shafts 306 connected to each other. As shown in FIG. 3A, the final motion axis 306 has an end effector 302, so the image capturing probe 31 can be set on the end effector 302. The so-called end effector refers to the end of the movement shaft 306 at the very end of the movement device, which is used to install various processing devices, detection tools, or holding tools for different purposes. In this embodiment, each movement shaft 306 has at least one degree of freedom of movement, such as rotation in different axial directions. In an embodiment, the image capturing probe 31 may be of the structure of FIG. 3C to project fringe structured light and perform phase shift modulation on the fringe structure of the structured light. In addition, the image capturing probe can also be structured as shown in FIG. 3D. Taking the architecture of FIG. 3C as an example, the image capturing probe 31 includes an image capturing device 311, which can capture one or more images and provide the images required by the phase shift calculation.

步驟43之後,進行步驟44,控制該運動裝置30以一手臂校正位置與姿態將該末端效應器移動至第一個校正點,例如圖4B中的TP (1)。當末端效應器移動至該TP(1)之後,再進行步驟45,使影像擷取探頭31在對應當前的手臂校正位置與姿態下擷取關於該校正裝置的手臂校正影像,每一手臂校正影像內具有至少六個校正體的特徵點。要說明的是,本步驟中,對於每一個校正點TP而言,末端效應器移動到該校正點TP時,運動裝置30本身會具有對應該校正點TP的公稱位置Enominal ,其係包含各個運動軸的DH參數以及該末端效應器的位置與姿態,例如:各個運動軸306的不同方位的轉動參數與平移參數

Figure 02_image005
,以及運動裝置的末端效應器的位置與姿態
Figure 02_image007
。其中x,y,z代表三維座標系中的座標位置,而α,β與γ則代表末端效應器的三軸位置與姿態角度資訊。此公稱位置Enominal 是運動裝置控制系統本身認知末端效應器302理論上要移動到的位置。然而,在現實上,運動裝置30因為安裝的環境或者是本身的負載,亦或者是因為運動裝置長時間使用的磨損,實際上運動裝置將末端效應器302移動的位置和校正點之間一定會存在有誤差。如何找到這個誤差,並將其補償,使得末端效應器可以和公稱位置Enominal (理論位置)的誤差達到最小,以下進行進一步說明。After step 43, proceed to step 44 to control the movement device 30 to move the end effector to the first correction point with an arm correction position and posture, such as TP (1) in FIG. 4B. After the end effector moves to the TP(1), proceed to step 45 to enable the image capturing probe 31 to capture the arm calibration image of the calibration device corresponding to the current arm calibration position and posture, and each arm calibration image There are at least six characteristic points of the calibration body. It should be noted that in this step, for each calibration point TP, when the end effector moves to the calibration point TP, the motion device 30 itself will have a nominal position E nominal corresponding to the calibration point TP, which includes each The DH parameters of the motion axis and the position and posture of the end effector, for example: the rotation parameters and translation parameters of each motion axis 306 in different directions
Figure 02_image005
, And the position and posture of the end effector of the motion device
Figure 02_image007
. Among them, x, y, z represent the coordinate position in the three-dimensional coordinate system, and α, β and γ represent the three-axis position and attitude angle information of the end effector. The nominal position E nominal is the position to which the motion device control system recognizes the end effector 302 theoretically. However, in reality, due to the installation environment or the load of the exercise device 30, or because of the wear and tear of the exercise device for a long time, in fact, there must be a gap between the position where the exercise device moves the end effector 302 and the calibration point. There are errors. How to find this error and compensate it so that the end effector can minimize the error from the nominal position E nominal (theoretical position) is described further below.

接著進行步驟46根據當前位於該校正點TP(1)所具有的手臂校正位置與姿態求出末端效應器在當前校正點TP(1)所具有的手臂校正轉換關係。具體而言,本步驟是根據在對應的校正點的位置與姿態以及每個運動軸的DH參數計算出該末端效應器302相對於該運動裝置30上之一特定位置之間的手臂校正轉換關係。在本步驟中,該特定位置係為該運動裝置的基座301,手臂校正轉換關係可以如下式(3)與(4)所示:

Figure 02_image010
 ……………(3)
Figure 02_image012
……..( 4)
其中,本實施例以六軸的運動裝置來說明,0代表運動裝置的基座、1代表與基座相耦接的第一軸、2代表與第一軸相耦接的第二軸,然後以此類推,6代表與第五軸相接的末端效應器。式(3)表示運動裝置從基座到末端效應器之間的轉換關係,式(4)則代表第n-1運動軸到第n運動軸的轉換關係。任兩軸之間的轉換關係T可以由轉動參數與平移參數
Figure 02_image005
來表示。其中θn 代表相鄰運動軸間的轉動角度變化,而dn 、αn 與γn 則代表相鄰運動軸間的幾何關係,其中dn 與γn 為平移參數,αn 是旋轉參數,此三個參數為定值,不會隨著各種位置與姿態而有變化。因此運動裝置移動至某一校正點TP後,讀取運動裝置內部的控制器儲存對應該運動位置與姿態的公稱位置Enominal 所具有的各軸DH參數,再利用正向運動學,以及式(3)、(4),可以計算出當前位置與姿態{E}(末端效應器,第6軸)相對於{B}(基座,第0軸)的手臂校正轉換關係(E TB ),或稱為Li 。Next, step 46 is performed to obtain the arm correction conversion relationship of the end effector at the current correction point TP(1) according to the arm correction position and posture currently located at the correction point TP(1). Specifically, this step is to calculate the arm correction conversion relationship between the end effector 302 and a specific position on the motion device 30 according to the position and posture of the corresponding correction point and the DH parameter of each motion axis. . In this step, the specific position is the base 301 of the motion device, and the arm correction conversion relationship can be shown in the following equations (3) and (4):
Figure 02_image010
……………(3)
Figure 02_image012
……..( 4)
Among them, this embodiment is described with a six-axis motion device, 0 represents the base of the motion device, 1 represents the first axis coupled to the base, 2 represents the second axis coupled to the first axis, and then By analogy, 6 represents the end effector connected to the fifth axis. Equation (3) represents the conversion relationship between the motion device from the base to the end effector, and Equation (4) represents the conversion relationship from the n-1th axis of motion to the nth axis of motion. The conversion relationship T between any two axes can be determined by the rotation parameter and the translation parameter
Figure 02_image005
To represent. Wherein the rotation angle θ n between the adjacent representative of changes in movement of the shaft, and d n, α n and γ n represents the geometric relationship between the movement of the shaft adjacent to, and where d n γ n translation parameter, α n is a rotation parameter, These three parameters are fixed values and will not change with various positions and attitudes. Therefore, after the motion device moves to a certain calibration point TP, the controller inside the motion device stores the DH parameters of each axis of the nominal position E nominal corresponding to the motion position and posture, and then uses the forward kinematics, and the formula ( 3), (4), can calculate the current position and posture {E} (end effector, 6th axis) relative to {B} (base, 0th axis) arm correction conversion relationship ( E T B ), Or called Li .

之後進行步驟47,根據步驟45所取得的手臂校正影像內的每一校正體相對於該影像擷取探頭之量測座標系下校正體的中心位置以及相應於該校正體於該世界座標系下校正體中心的位置,決定關於當前校正點的量測與世界座標轉換關係。在本步驟中,首先,先根據對應當前校正點下運動裝置所具有的位置與姿態下該影像擷取探頭31所擷取之手臂校正影像,解析出影像中內部的至少六個校正體202關於一量測座標系的中心位置,該量測座標系,在一實施例中,為以該影像擷取探頭31之鏡頭為原點所建立的座標系。本步驟中,可以利用相移法解析手臂校正影像中每一校正體,以得到影像中內至少六個校正體202之中心位置相對於影像擷取探頭31所建立的量測座標系的位置關係。由於校正單元20都有編號,因此透過步驟46可以識別出每一個校正體,以及對每一個校正體202建立關於該量測座標系的中心位置。Then proceed to step 47, according to the center position of each calibration body in the arm calibration image obtained in step 45 relative to the calibration body in the measurement coordinate system of the image capturing probe and the calibration body in the world coordinate system corresponding to the calibration body The position of the center determines the conversion relationship between the measurement of the current calibration point and the world coordinate. In this step, first, according to the position and posture of the moving device under the corresponding current calibration point, the arm calibration image captured by the image capturing probe 31 is analyzed to parse out at least six calibration bodies 202 in the image. The center position of a measurement coordinate system. The measurement coordinate system, in one embodiment, is a coordinate system established with the lens of the image capturing probe 31 as the origin. In this step, the phase shift method can be used to analyze each calibration body in the arm calibration image to obtain the positional relationship between the center positions of at least six calibration bodies 202 in the image relative to the measurement coordinate system established by the image capturing probe 31 . Since the calibration unit 20 has a number, each calibration body can be identified through step 46, and the center position of the measurement coordinate system can be established for each calibration body 202.

再來,根據手臂校正影像內的每一校正體相對於該影像擷取探頭之量測座標系下校正體中心的位置以及相應於該世界座標系下校正體中心的位置,決定當前校正點下的量測與世界座標轉換關係。以下,進一步說明轉換關係的演算方式,利用前述量測得影像中解析出的每個校正體202的空間分佈點雲,並計算其中心位置,同時記錄下所量測的校正單元20其所代表的編號m。 每一個校正體202在量測後得到的位置資訊可表示如下式(5):

Figure 02_image015
…(5)Then, according to the position of each calibration body in the arm calibration image relative to the center of the calibration body in the measurement coordinate system of the image capture probe and the position corresponding to the center of the calibration body in the world coordinate system, the amount under the current calibration point is determined Measure the conversion relationship with world coordinates. Hereinafter, the calculation method of the conversion relationship is further explained. The spatial distribution point cloud of each calibration body 202 analyzed in the aforementioned measurement image is used to calculate its center position, and the measured calibration unit 20 is recorded at the same time. The number m. The position information obtained after the measurement of each calibration body 202 can be expressed as the following formula (5):
Figure 02_image015
…(5)

如此在該校正裝置2的空間內,具有經過三次元量床量測的校正單元20的參考空間座標Di ,亦有通過掃描量測得出的校正單元20的量測空間座標Mi 。此時,當編號m與n的值相同時,使Di 與Mi 互相配對,令(xDi ,yDi ,zDi )與(xMi ,yMi ,zMi )都是代表真實空間中同一個球心位置。找到代表相同球心位置的Di 與Mi 後,即可順利計算出這兩種不同座標體系的轉換矩陣。到實際量測時,套用此轉換矩陣就能將量測到的資訊轉換成世界座標系的位置資訊。此方法的優點在於方法簡單,校正單元可以使用同一種樣式,只需要知道編號就能夠辨識,但在編號完成後,此編號就不能再更動。一但需要改動校正裝置中校正單元的組合時,就必須重新做校正目標之量測與編號。Thus the space in the correcting means 2, a reference spatial coordinates through D i Coordinate Measuring Machine measurement correcting unit 20, the scanning unit also measured by the correction amount obtained spatial coordinates measured 20 M i. At this time, when the value of the number m and n are the same, so that M i D i and pair with each other, so that (x Di, y Di, z Di) and (x Mi, y Mi, z Mi) are representative of the real space The same ball center position. Find the center of the sphere representing the same location D i and M i, can successfully transform matrix calculated two different coordinate systems. When it comes to actual measurement, applying this conversion matrix can convert the measured information into position information in the world coordinate system. The advantage of this method is that the method is simple, the calibration unit can use the same style, only need to know the number to be able to identify, but after the number is completed, the number can not be changed. Once the combination of the calibration unit in the calibration device needs to be changed, the measurement and numbering of the calibration target must be redone.

步驟47的另一實施例中,可以利用特徵法來進行建立校正體的量測空間座標Mi 。相較於編號式校正法,特徵式校正法主要是利用校正單元20本身的特徵來進行資料辨識。本實施例中,在設計校正體202時,令每一個校正體202的樣式都有不同的特徵,例如球體上可以有不同密度分佈的斑點或特定的圖案或記號。在此情況下,影像擷取探頭則可以採用如圖3D所示的架構,量測到的校正體202中心位置的空間分佈。此時,校正體202的數量不限,可以使用5顆、6顆所組成的不同空間分佈來建立不同的特徵,例如:5顆校正體的空間分佈型態作為特徵。在量測階段時,量測到的中心位置的空間分佈與資料庫中每個特徵做比對,利用點雲平均距離計算,尋找其中相互差異最小的特徵,則該特徵即是目前量測到的資訊所配對的中心位置。此方法的優點在於不需編號,其本身的特徵即可視為自帶的編號(實際上沒有編號)。但是相對的,因為要將量測到的資訊與資料庫中的每一個校正單元做特徵比對,計算量比起編號式校正法要來的更多。而且,由於每個校正體202的樣式均須不同且具有可辨識的特徵,設計成本會隨著校正單元20的數量的增加而提升,不利於使用於校正單元20數量過多的情況。In another embodiment of step 47, the characteristic method may be used to establish the measurement spatial coordinates M i of the calibration volume. Compared with the numbered correction method, the characteristic correction method mainly uses the characteristics of the correction unit 20 itself for data identification. In this embodiment, when the calibration body 202 is designed, the style of each calibration body 202 has different characteristics. For example, there may be spots with different density distributions or specific patterns or marks on the sphere. In this case, the image capturing probe can adopt the architecture shown in FIG. 3D to measure the spatial distribution of the center position of the calibration body 202. At this time, the number of calibration bodies 202 is not limited, and different spatial distributions composed of 5 and 6 may be used to establish different features, for example, the spatial distribution pattern of 5 calibration bodies as the feature. In the measurement phase, the spatial distribution of the measured center position is compared with each feature in the database, and the average distance of the point cloud is used to find the feature with the smallest difference. Then the feature is the current measured feature The center of the paired information. The advantage of this method is that no serial number is required, and its own characteristics can be regarded as a serial number (actually no serial number). But on the contrary, because the measured information needs to be compared with each calibration unit in the database, the amount of calculation is more than the numbered calibration method. Moreover, since each calibration body 202 must have a different style and have recognizable features, the design cost will increase as the number of calibration units 20 increases, which is not conducive to the situation where there are too many calibration units 20.

由於前面的校正裝置量測階段,會將三次元量床量測到的每一個校正單元20與其校正體202空間於世界座標系下的位置記錄下來。為了能夠辨識出量測到校正體202所在的空間位置,需要有特定的資訊與資料庫中的空間座標資訊做比對,以得出量測與世界座標轉換關係。步驟47採用編號校正法,其只在步驟41時將校正單元與校正體的中心位置資訊存入資料庫時,會將校正單元作編號,並利用此編號來和步驟47所得的中心位置資訊進行演算。Due to the measurement phase of the previous calibration device, the spatial position of each calibration unit 20 and its calibration body 202 measured by the three-dimensional measuring bed in the world coordinate system will be recorded. In order to be able to identify the spatial position where the calibration body 202 is measured, it is necessary to compare specific information with the spatial coordinate information in the database to obtain the conversion relationship between the measurement and the world coordinate. Step 47 adopts the numbering correction method, which only stores the center position information of the calibration unit and the calibration body in the database in step 41, and the calibration unit is numbered, and this number is used to compare the center position information obtained in step 47. Calculus.

Figure 02_image017
在步驟47的一實施例中,取得手臂校正影像中,相對於該影像擷取探頭之量測座標系下校正體中心的位置,其量測座標系為量測座標系{S}以及將在步驟41時,校正單元20以三次元量測所建立關於世界座標系,亦即世界座標系{W}的世界座標系下校正體中心的位置資訊與量測座標系{S}的量測座標系下校正體中心的位置資訊做比對,即能計算出當前校正點所具有的兩者的量測與世界座標轉換關係。從量測座標系{S}到世界座標系{W}的量測與世界座標轉換關係可表示為4乘4的齊次座標轉換矩陣,可以表示為下式(6): …(6)
Figure 02_image019
或者簡化表示為下式(7): …(7) 其中R可以表示為下式(8),是滾動(Roll)與俯仰角 (Pitch)以及偏轉角(Yaw)等三個物件位置與姿態參數之轉換矩陣的組合,稱之為旋轉矩陣。
Figure 02_image021
…(8) 而矩陣P可以表示為下式(9)所示,其代表為平移向量。
Figure 02_image023
…(9) 校正的目的就是在於解出這個包含12個未知項的轉換矩陣W TS 。由於在旋轉矩陣R之中,每一行的三個參數互有關連,為非獨立參數,所以實際上僅需3組座標即可算出旋轉矩陣。因此量測與世界座標轉換關係W TS 最少僅需6組座標即可解出。
Figure 02_image017
In an embodiment of step 47, in obtaining the arm calibration image, relative to the position of the center of the calibration body under the measurement coordinate system of the image capturing probe, the measurement coordinate system is the measurement coordinate system {S} and will be in step At 41 o'clock, the calibration unit 20 uses the three-dimensional measurement to establish the world coordinate system, that is, the position information of the center of the calibration body under the world coordinate system of the world coordinate system {W} and the measurement coordinate system of the measurement coordinate system {S} is calibrated. By comparing the position information of the center of the body, the conversion relationship between the two measurements and the world coordinate of the current calibration point can be calculated. The conversion relationship between measurement and world coordinates from the measurement coordinate system {S} to the world coordinate system {W} can be expressed as a 4-by-4 homogeneous coordinate transformation matrix, which can be expressed as the following formula (6): …(6)
Figure 02_image019
Or simply expressed as the following equation (7): …(7) where R can be expressed as the following equation (8), which is the position and attitude parameters of three objects such as Roll, Pitch, and Yaw The combination of the conversion matrix is called the rotation matrix.
Figure 02_image021
…(8) The matrix P can be expressed as the following equation (9), which is represented by the translation vector.
Figure 02_image023
…(9) The purpose of the correction is to solve this conversion matrix W T S which contains 12 unknown items. In the rotation matrix R, the three parameters in each row are related to each other and are non-independent parameters, so in fact, only 3 sets of coordinates are needed to calculate the rotation matrix. Therefore, the conversion relationship between the measurement and the world coordinate W T S can be solved with at least 6 sets of coordinates.

在量測座標系{S}中的球形目標的球心位置為下式(10)所式:

Figure 02_image025
…(10) 而在世界座標系{W}中的球形目標的球心位置為下式(11)所式:
Figure 02_image027
…(11) 此時兩座標系下的空間位置Csi 與CWi 均代表真實空間中同一個球心位置。因此,這兩個空間位置的關係可表示為如下式(12)所示:
Figure 02_image029
…(12) 將式CSi 和CWi 代入上式,展開得到以下的方程式(13)組合:
Figure 02_image031
…(13) 將Csi 與CWi 代入其中即可算出校正用的旋轉矩陣中的12項參數。利用至少6組以上的Csi 與CWi 即可解出轉換矩陣的未知參數,而得到關於運動裝置的量測與世界座標轉換關係S TW, measured (Pi )。也就是說,量測與世界座標轉換關係S TW, measured (Pi )是通過將運動裝置在當前校正點所具有的位置與姿態下所偵測到的每一個校正體的位置CSi 與資料庫中對應校正體的位置CWi , 進行比較而計算出來的。The position of the center of the sphere of the spherical target in the measurement coordinate system {S} is given by the following formula (10):
Figure 02_image025
…(10) And the position of the center of the sphere of the spherical target in the world coordinate system {W} is given by the following formula (11):
Figure 02_image027
…(11) At this time, the spatial positions C si and C Wi in the two coordinate systems both represent the same sphere center position in real space. Therefore, the relationship between these two spatial positions can be expressed as the following formula (12):
Figure 02_image029
…(12) Substituting formulas C Si and C Wi into the above formula, expand to obtain the following combination of formula (13):
Figure 02_image031
…(13) By substituting C si and C Wi into them, the 12 parameters in the rotation matrix for correction can be calculated. At least 6 groups of C si and C Wi can be used to solve the unknown parameters of the conversion matrix, and the conversion relationship between the measurement of the motion device and the world coordinate S T W, measured (P i ) can be obtained. That is to say, the conversion relationship between measurement and world coordinates S T W, measured (P i ) is the position C Si of each calibration body detected by the motion device under the position and posture of the current calibration point. The position C Wi of the corresponding calibration body in the database is calculated by comparison.

步驟47求得當前校正點下的手臂校正轉換關係與量測與世界座標轉換關係之後,進形步驟47a確認是否已經完成所有的校正點。如果沒有,則進形步驟48控制該運動裝置以另一手臂校正位置與姿態將末端效應器移動至下一個校正點。接續前述的例子來說,當校正點TP(1)完成之後,就透過步驟48換到另一個校正點TP(2),然後再回到步驟45重新進行步驟45到步驟47,一直到計算出所有校正點TP所對應的手臂校正轉換關係與量測與世界座標轉換關係。要說明的是,改變位置與姿態時,要能夠涵蓋到每一個運動軸轉動角度的範圍,例如如果運動軸轉動角度的範圍為180度,如果總共取10個校正點,那每一次對於該軸的角度改變可以用18度作一個變化。同理,對於其他的運動軸也是以此概念。After step 47 obtains the arm calibration conversion relationship and the measurement and world coordinate conversion relationship under the current calibration point, the transformation step 47a confirms whether all the calibration points have been completed. If not, step 48 controls the motion device to move the end effector to the next correction point with another arm to correct the position and posture. Continuing the previous example, when the calibration point TP(1) is completed, change to another calibration point TP(2) through step 48, and then go back to step 45 and repeat steps 45 to 47 until the calculation The arm calibration conversion relationship and the conversion relationship between measurement and world coordinates corresponding to all calibration points TP. It should be noted that when changing the position and posture, it must be able to cover the range of the rotation angle of each motion axis. For example, if the range of the motion axis rotation angle is 180 degrees, if a total of 10 correction points are taken, then each time for the axis The angle can be changed by 18 degrees. The same is true for other motion axes.

當完成所有的校正點TP所對應的手臂校正轉換關係與量測與世界座標轉換關係之後,接著進行步驟49,根據每一校正點TP所對應的手臂校正轉換關係與量測與世界座標轉換關係,決定對應每一校正點的一位置與姿態補償資訊。在步驟49中,如圖4C所示,其係為本發明決定位置與姿態補償資訊之一實施例流程示意圖。在本實施例中,更進一步包括有步驟490,根據每一個手臂校正位置與姿態所對應的手臂校正轉換關係與量測與世界座標轉換關係計算出該末端效應器上之手眼轉換關係。在步驟490中,利用前述的對應多個不同校正點的不同的位置與姿態,每一個位置與姿態下都會對應(Pi )與(Li )來進行手眼校正。如圖5A所示,其係表示(Pi )與(Li )之間的轉換關係。在圖5A中,運動軸306表示運動裝置的最後一段,其上具有末端效應器,而運動軸306b和基座B耦接,而運動軸306a則分別和運動軸306和運動軸306b耦接在一起。相鄰運動軸耦接的關節之間具有轉換關係,其係如前述方程式(4)所示。After completing the arm calibration conversion relationship and the measurement-world coordinate conversion relationship corresponding to all the calibration points TP, proceed to step 49, according to the arm calibration conversion relationship and the measurement-world coordinate conversion relationship corresponding to each calibration point TP , Determine a position and posture compensation information corresponding to each calibration point. In step 49, as shown in FIG. 4C, it is a schematic flowchart of an embodiment of determining position and attitude compensation information according to the present invention. In this embodiment, the step 490 is further included to calculate the hand-eye conversion relationship on the end effector according to the arm correction conversion relationship corresponding to each arm correction position and posture and the measurement and world coordinate conversion relationship. In step 490, using the aforementioned different positions and postures corresponding to multiple different correction points, each position and posture will correspond to (P i ) and (L i ) to perform hand-eye correction. As shown in Fig. 5A, it represents the conversion relationship between (P i ) and (L i ). In FIG. 5A, the motion shaft 306 represents the last section of the motion device, which has an end effector, and the motion shaft 306b is coupled to the base B, and the motion shaft 306a is coupled to the motion shaft 306 and the motion shaft 306b, respectively. together. There is a conversion relationship between joints coupled with adjacent motion axes, which is shown in the aforementioned equation (4).

而對於每一次的位置與姿態,例如圖5A中(L1 , P1 )和(L2 , P2 )所構成的兩種位置與姿態,其間具有手眼轉換關係X。基於上述的概念,並根據手眼校正中的AX=XB演算方法,其中A為本實施例中的Li ,而B則為本實施例中的Pi ,利用多個校正點所得到多組的Pi 與Li ,可以計算出探頭{S}到手臂末端{E}的手眼轉換關係。理論上,有越多組Pi 、Li ,之後的校正計算結果越精準。在圖5A中的X為探頭{S}到手臂末端{E}的轉換關係,L、P、X均為表示位置與姿態轉換的4乘4矩陣,由於每一校正點TP的L與P均已知,可利用下式:

Figure 02_image033
並使用最小平方法計算出X,此未知項X即為手眼校正中所欲求得之手眼轉換關係,亦即量測座標系{S}與機械手臂安裝該影像擷取探頭之末端座標系{E}之間的手眼轉換關係S TE 。For each position and posture, for example , the two positions and postures formed by (L 1 , P 1 ) and (L 2 , P 2 ) in FIG. 5A have a hand-eye conversion relationship X between them. Based on the above concepts and calculation methods in accordance with AX = XB hand-eye correction, wherein A of the present embodiment of the embodiment of L i, in the embodiment B was P i of the present embodiment, a plurality of calibration points using a plurality of sets of the obtained P i and L i, the probe may be calculated to the end of the arm {S} {E} hand-eye conversion relationship. Theoretically, the more accurate the more sets there are P i, L i, the calculation result after correction. In Fig. 5A, X is the conversion relationship from the probe {S} to the end of the arm {E}, and L, P, and X are all 4-by-4 matrices representing the conversion of position and posture. Since the L and P of each calibration point TP are both It is known that the following formula can be used:
Figure 02_image033
And use the least square method to calculate X. This unknown item X is the hand-eye conversion relationship desired in the hand-eye calibration, that is, the measurement coordinate system {S} and the end coordinate system of the image capture probe installed by the robotic arm {E } The hand-eye conversion relationship S T E.

得到手眼轉換關係之後,進一步進行步驟491根據該手臂校正轉換關係、該手眼轉換關係與該量測與世界座標轉換關係計算出運動裝置上之特定位置相對於該世界座標系的座標轉換關係B TW 。本實施例中,特定位置為運動裝置之基座。本步驟中,主要是先利用該手眼轉換關係E TS (X)及手臂校正轉換關係(E TB ),或稱為Li與量測與世界座標轉換關係S TW, measured (Pi)決定出運動裝置上之特定位置相對於該世界座標系的轉換關係B TW ,(以下簡稱為Z)。因為該特定位置在本實施例中為基座的位置,因此B TW 為基座與世界座標轉換關係,也就是利用下式(14)求出轉換關係Z。 (Li)X=Z(Pi)……….(14) After obtaining the hand-eye conversion relationship, proceed to step 491 to calculate the coordinate conversion relationship B T of the specific position on the motion device relative to the world coordinate system according to the arm correction conversion relationship, the hand-eye conversion relationship, and the measurement and world coordinate conversion relationship. W. In this embodiment, the specific position is the base of the motion device. In this step, the hand-eye conversion relationship E T S (X) and the arm calibration conversion relationship ( E T B ), or the conversion relationship between Li and measurement and world coordinates S T W, measured (Pi), are mainly used first to determine The conversion relationship B T W of the specific position on the motion device relative to the world coordinate system (hereinafter referred to as Z). Because the specific position is the position of the base in this embodiment, B T W is the conversion relationship between the base and the world coordinate, that is, the conversion relationship Z is obtained using the following equation (14). (Li)X=Z(Pi)………….(14)

如圖5B所示,該圖為表示基座與世界座標轉換關係Z與手臂校正轉換關係、手眼轉換關係與量測與世界座標轉換關係示意圖。在圖5B中,同樣因為校正裝置20的各個校正體在第一座標係的位置為固定,因此經過Li 、X與Pi 所得到的校正裝置上各個校正體的位置會與運動裝置基座位置與姿態經過轉換關係Z所得到的各個校正體的位置相同,基於這個概念,因此可以推得上述方程式(14)。因為Li , X與Pi 都為已知,因此可以求出基座與世界座標轉換關係的矩陣Z。As shown in FIG. 5B, the figure is a schematic diagram showing the conversion relationship between the base and the world coordinate Z and the arm correction conversion relationship, the hand-eye conversion relationship and the measurement and the world coordinate conversion relationship. In FIG. 5B, also because the positions of the calibration bodies of the calibration device 20 are fixed in the first coordinate system, the positions of the calibration bodies on the calibration device obtained through Li , X, and P i will be the same as those of the motion device base. The position and posture of each correction body obtained through the conversion relationship Z are the same. Based on this concept, the above equation (14) can be derived. Because L i, X and P i are known, the base matrix can be determined with the World coordinate conversion relationship Z.

之後進行步驟492,根據該手眼轉換關係(X)、轉換關係(Z)以及該每一校正點的手臂校正轉換關係E TB (Li )計算出每一校正點的一公稱位置轉換關係S TW,model ,如下式(15)所示:  

Figure 02_image035
…………(15)     Then step 492 is performed to calculate a nominal position conversion relationship S of each correction point according to the hand-eye conversion relationship (X), conversion relationship (Z), and the arm correction conversion relationship E T B (L i) of each correction point T W,model is shown in the following formula (15):
Figure 02_image035
…………(15)

方程式(15)所代表的S TW,model 就是運動裝置系統本身對於每一次的位置與姿態所得到的公稱位置轉換關係。最後進行步驟493,根據方程式(15)的S TW,model 與前述的量測與世界座標轉換關係S TW, measured 的差異,即可以計算出實際達到的位置與姿態與應該達到的位置與姿態之間的差距∆T=B-ZAX,如圖5C所示。以運動裝置30為機械手臂的例子來說明,當運動裝置30上的夾持件300其由圖3A的R1位置移動到圖3A的R2位置時,對於運算處理裝置32而言,其所認知的R2位置為世界座標系下的R2位置,因此當夾持件300根據運算處理裝置32的控制移動到R2位置時,實際上夾持件300移動到的R2’位置和運算處理裝置所認知的R2位置之間會有因為機構或驅動裝置所產生的誤差,透過前述轉換關係可以建立出系統校正模型,進而可找到這個誤差,以利決定其位置與姿態的補償量。 S T W,model represented by equation (15) is the nominal position conversion relationship obtained by the motion device system itself for each position and posture. Finally, proceed to step 493. According to the difference between S T W,model of equation (15) and the aforementioned measurement and world coordinate conversion relationship S T W,measured , the actual position and attitude reached and the position and position that should be reached can be calculated. The gap between the attitudes ∆T=B-ZAX, as shown in Figure 5C. Taking the motion device 30 as an example of a robotic arm, when the clamping member 300 on the motion device 30 moves from the position R1 in FIG. 3A to the position R2 in FIG. The R2 position is the R2 position in the world coordinate system. Therefore, when the gripper 300 moves to the R2 position under the control of the arithmetic processing device 32, the actual R2' position that the gripper 300 moves to and the R2 recognized by the arithmetic processing device There will be errors between the positions due to the mechanism or the driving device. The system calibration model can be established through the aforementioned conversion relationship, and then this error can be found to facilitate the determination of the compensation amount of its position and posture.

要說明的是,前述計算手眼轉換關係X的Li 與Pi 是以圖4B所示的各個校正點TP所對應的Li 與Pi 來計算。實際上並不以校正點TP的Li 與Pi 為限制。在另一實施例中,可以利用有別於校正點的其他點來取得這些點的Li 與Pi ,例如圖4D所示,首先進行步驟490a,控制該運動裝置以一手眼校正位置與姿態移動到一手眼校正位置。然後進行步驟490b使該影像擷取探頭在該手眼校正位置與姿態下擷取關於該校正裝置的手眼校正影像,每一手眼校正影像內具有至少六個校正體特徵點。前述手眼校正位置,可以完全不和校正點TP相同,或者可以是局部重疊。然後進行步驟490c,根據該運動裝置的在當前的手眼校正位置與姿態下,決定出該末端效應器相對於該運動裝置之手臂校正轉換關係,亦即對應LiIt is noted that the foregoing relationship is calculated hand-eye conversion of X and P i L i is the respective correction points shown in FIG. 4B TP corresponding to P i L i is calculated. Not actually to correct point TP of L i and P i as limiting. In another embodiment, other points different from the correction points can be used to obtain the Li and P i of these points. For example, as shown in FIG. 4D, step 490a is first performed to control the motion device to correct the position and posture with one hand and eye Move to the one-handed eye correction position. Then, step 490b is performed to enable the image capturing probe to capture the hand-eye correction image of the correction device under the hand-eye correction position and posture, and each hand-eye correction image has at least six correction body feature points. The aforementioned hand-eye correction position may not be the same as the correction point TP at all, or may be partially overlapped. Then step 490c is performed to determine the arm correction conversion relationship of the end effector relative to the motion device according to the current hand-eye correction position and posture of the motion device, that is, corresponding to Li .

接著以步驟490d,根據目前手眼校正位置下,所對應的手眼校正影像內的每一校正體相對於該影像擷取探頭之量測座標系下校正體中心的位置以及相應於該世界座標系下校正體中心的位置,決定目前手眼校正位置的量測與世界座標轉換關係,亦即對應Pi 。由於手眼轉換關係X需要有至少六個手眼校正位置所對應的至少六組手臂校正轉換關係與量測與世界座標轉換關係才可以解出,因此步驟490e用來判斷是否取得至少六個手眼校正位置所對應的至少六組手臂校正轉換關係與量測與世界座標轉換關係,如果沒有則到步驟490f控制該運動裝置改變手眼校正位置與姿態移動到另一個手眼校正位置,然後重複進行步驟490b~490e,一直到取得至少六個手眼校正位置的手臂校正轉換關係與量測與世界座標轉換關係。Then in step 490d, according to the current hand-eye calibration position, the position of each calibration body in the corresponding hand-eye calibration image relative to the center of the calibration body in the measurement coordinate system of the image capturing probe and the calibration body corresponding to the world coordinate system The position of the center determines the conversion relationship between the measurement of the current hand-eye correction position and the world coordinate, which corresponds to P i . Since the hand-eye conversion relationship X requires at least six sets of arm correction conversion relationships and measurement and world coordinate conversion relationships corresponding to at least six hand-eye correction positions to be solved, step 490e is used to determine whether to obtain at least six hand-eye correction positions Corresponding at least six sets of arm correction conversion relations and measurement and world coordinate conversion relations, if not, go to step 490f to control the motion device to change the hand-eye correction position and posture to another hand-eye correction position, and then repeat steps 490b~490e , Until obtaining at least six hand-eye correction positions of the arm correction conversion relationship and the measurement and world coordinate conversion relationship.

之後,再以步驟490g根據手臂校正轉換關係Li 以及量測與世界座標轉換關係Pi ,並計算出該末端效應器上之手眼轉換關係X。然後再以步驟490h根據該手臂校正轉換關係Li 、該手眼轉換關係X與該量測與世界座標轉換關係Pi 計算出運動裝置之基座與世界座標轉換關係Z。最後,再以步驟490i根據該手臂校正轉換關係Li 、基座與世界座標轉換關係Z以及手眼轉換關係X係計算出每一手眼校正位置的一公稱位置轉換關係S TW,model 。透過步驟490a~495i同樣也可以計算出等同於前述步驟492所計算出的公稱位置轉換關係S TW,modelThereafter, in step 490g The arm then corrected conversion relationship L i and the measurement of the relationship between the world coordinate transformation P i, and calculates the hand-eye on the end effector of the conversion relation X. And then to step 490h conversion relation based on the correction arm L i, the hand-eye relationship X converting means calculates the movement of the base and the world coordinate conversion relation to the measurements and the relationship between the world coordinate transformation P i Z. Finally, in step 490i L i, the base and the Z world coordinate conversion relationship and hand-eye relationship X conversion system calculation based on the conversion relation arm out of a well-corrected for each position of the hand-eye correction of the position of said conversion relation S T W, model. Through steps 490a to 495i, it is also possible to calculate the nominal position conversion relationship S T W,model equivalent to that calculated in step 492.

最後再回到圖4C,以步驟493根據該公稱位置轉換關係以及量測與世界座標轉換關係S TW, measured 決定出該位置與姿態補償資訊。本步驟中,運動裝置的末端效應器位置與方向的位置與姿態誤差可由式(4)的一階導函數來表示,如式(16),將n組位置與姿態所計算出的n個ΔTi 表示為矩陣形式,則得式(17),將之簡化則得式(18)。其中,ΔTi 代表對應每一個校正點的S TW,modelS TW, measured 的差異。Ji 為ΔTi 的雅可比矩陣,可通過手臂當前位置與姿態的DH參數以及運動學模型計算得出,而

Figure 02_image037
則代表4個DH參數誤差
Figure 02_image039
Figure 02_image040
(16)
Figure 02_image042
(17)
Figure 02_image044
(18)
如圖5C所示,其表示每一個位置與姿態下,末端效應器的公稱位置Enominal 與實際到達的位置之間誤差ΔTi 。而在方程式(17)中,J1 ~Jn 分別是一個ΔTi 的雅可比矩陣,以基座加上六個運動軸來說,相鄰基座與運動軸,以及相鄰運動軸之間總共會有六個連接關節。因此對於每一個ΔTi ,表示成[Ji1 , Ji2 , Ji3 , Ji4 , Ji5 , Ji6 ]*[ Δd, Δθ, Δα, Δγ]Τ ,其表示每一個校正點TP上,每一個相鄰接運動軸的關節之間都會有對應的位置與姿態補償資訊[ Δd, Δθ, Δα, Δγ]。利用n個ΔTi 計算出
Figure 02_image037
後,每一個對應ΔTi
Figure 02_image037
為運動裝置相鄰接運動軸的關節所具有的位置與姿態補償資訊,如方程式(19)所示。補償原先的公稱DH參數,則式(4)變化為式(19),式(3)變化為式(20)。利用已校正之E TB,c 即可令機械手臂移動至接近公稱位置與姿態的校正後位置與姿態。
Figure 02_image046
(19)
Figure 02_image048
(20)
Finally, returning to FIG. 4C, step 493 determines the position and attitude compensation information according to the conversion relationship between the nominal position and the conversion relationship between the measurement and the world coordinate S T W, measured. In this step, the position and attitude error of the end effector position and direction of the motion device can be expressed by the first derivative function of equation (4), as in equation (16), n ΔT calculated by n sets of positions and attitudes If i is expressed in matrix form, then equation (17) can be obtained, and if it is simplified, equation (18) can be obtained. Where, ΔT i representative of a correction point corresponding to each S T W, model and S T W, the measured difference. J i is the Jacobian matrix of ΔT i , which can be calculated by the DH parameters of the current position and posture of the arm and the kinematic model, and
Figure 02_image037
It represents 4 DH parameter errors
Figure 02_image039
.
Figure 02_image040
(16)
Figure 02_image042
(17)
Figure 02_image044
(18)
As shown in Fig. 5C, it represents the error ΔT i between the nominal position E nominal of the end effector and the actually reached position in each position and attitude. In equation (17), J 1 ~J n are respectively a Jacobian matrix of ΔT i . In terms of the base plus six motion axes, the adjacent base and the motion axis, and the adjacent motion axis There will be six joints in total. Therefore, for each ΔT i , it is expressed as [J i1 , J i2 , J i3 , J i4 , J i5 , J i6 ]*[ Δd, Δθ, Δα, Δγ] Τ , which represents each correction point TP, every A joint adjacent to the motion axis will have corresponding position and attitude compensation information [Δd, Δθ, Δα, Δγ]. Calculate using n ΔT i
Figure 02_image037
After that, each corresponding to ΔT i
Figure 02_image037
It is the position and posture compensation information of the joints of the motion device adjacent to the motion axis, as shown in equation (19). To compensate the original nominal DH parameters, the equation (4) changes to equation (19), and the equation (3) changes to equation (20). The calibrated E T B,c can be used to move the robot arm to the corrected position and posture close to the nominal position and posture.
Figure 02_image046
(19)
Figure 02_image048
(20)

藉由上述步驟493演算的結果,可以得到每一個校正點TP下,運動裝置每一個關節的補償資訊n Tn-1,c 。因此,當真正在進行加工時,如果運動裝置的加工位置剛好是上述的任意TP位置時,就可將公稱位置Enominal 所具有的DH參數,如:dn 、θn , αn 與γn 加上對應該TP的各關節的補償資訊Δdn 、Δθn , Δαn 與Δγn 以得到如式(19)所示的位置與姿態。如果,運動裝置要移動的目標位置並非是TP位置時,。在目標公稱位置Enominal 所具有的DH參數上加上各軸補償資訊Δdn , Δαn 與Δγn ,得式(21),利用式(21)與目標位置作逆向運動學之迭代計算,得到各軸之θn 參數,再將這些θn 參數輸入手臂控制器,進而命令手臂移動至目標位置。

Figure 02_image051
(21) Based on the calculation result of the above step 493, the compensation information n T n-1,c of each joint of the motion device at each calibration point TP can be obtained. Therefore, when the processing is actually in progress, if the processing position of the motion device is just any of the above-mentioned TP positions, the DH parameters of the nominal position E nominal can be added, such as: d n , θ n , α n and γ n The compensation information Δd n , Δθ n , Δα n and Δγ n corresponding to the joints of TP above are used to obtain the position and posture shown in equation (19). If the target position of the moving device is not the TP position. Add the compensation information Δd n , Δα n and Δγ n of each axis to the DH parameter of the target nominal position E nominal to obtain the formula (21). Using the formula (21) and the target position for the iterative calculation of inverse kinematics, we get θ n parameters of each axis, then the input arm controller parameters θ n, and then moves the arm to the target position command.
Figure 02_image051
(twenty one)

要說明的是,前述的誤差ΔTi代表對應每一個校正點的S TW,modelS TW, measured 的差異,也就是以影像擷取探頭位置下來計算各運動軸的位置與姿態誤差資訊。在另一實施例中,誤差ΔTi 也可以用末端效應器的位置來表計算各運動軸的誤差,其可以表示如下式(21)所示:

Figure 02_image052
…(22) 中A為本實施例中的Li ,而B則為本實施例中的Pi 。而
Figure 02_image054
=BX-ZA可以進一步表示成如下式(22):
Figure 02_image056
(23) 其中,
Figure 02_image058
=
Figure 02_image060
=
Figure 02_image062
=
Figure 02_image064
=
Figure 02_image066
Figure 02_image068
=
Figure 02_image070
=
Figure 02_image072
=
Figure 02_image074
=
Figure 02_image076
Figure 02_image078
=
Figure 02_image080
=
Figure 02_image082
=
Figure 02_image084
=
Figure 02_image086
Figure 02_image088
=
Figure 02_image090
=
Figure 02_image092
=
Figure 02_image094
=
Figure 02_image096
Figure 02_image098
=
Figure 02_image100
, 其中c 表示餘弦函數(cos),s表示正弦函數(sin)。
Figure 02_image102
=
Figure 02_image104
…(24)
Figure 02_image106
=
Figure 02_image108
…(25)
Figure 02_image110
=
Figure 02_image112
…(26)
Figure 02_image114
=
Figure 02_image116
…(27) 由上述方程式(23)~(27)即可以決定運動裝置每一個運動軸的補償參數
Figure 02_image118
=
Figure 02_image120
。It is noted that, S T W, model and S T W, the difference of the measured error ΔTi representative of a correction point corresponding to each of the image capturing position of the probe is also calculated for each down movement of the shaft position and attitude error information. In another embodiment, the error ΔT i can also be calculated using the position of the end effector to calculate the error of each motion axis, which can be expressed as the following equation (21):
Figure 02_image052
... (22) A L i of the present embodiment example, and B in this case was P i of FIG. and
Figure 02_image054
=BX-ZA can be further expressed as the following formula (22):
Figure 02_image056
(23) Among them,
Figure 02_image058
=
Figure 02_image060
=
Figure 02_image062
=
Figure 02_image064
=
Figure 02_image066
Figure 02_image068
=
Figure 02_image070
=
Figure 02_image072
=
Figure 02_image074
=
Figure 02_image076
Figure 02_image078
=
Figure 02_image080
=
Figure 02_image082
=
Figure 02_image084
=
Figure 02_image086
Figure 02_image088
=
Figure 02_image090
=
Figure 02_image092
=
Figure 02_image094
=
Figure 02_image096
Figure 02_image098
=
Figure 02_image100
, Where c represents the cosine function (cos) and s represents the sine function (sin).
Figure 02_image102
=
Figure 02_image104
…(twenty four)
Figure 02_image106
=
Figure 02_image108
…(25)
Figure 02_image110
=
Figure 02_image112
…(26)
Figure 02_image114
=
Figure 02_image116
…(27) According to the above equations (23)~(27), the compensation parameters of each motion axis of the motion device can be determined
Figure 02_image118
=
Figure 02_image120
.

以上所述,乃僅記載本發明為呈現解決問題所採用的技術手段之較佳實施方式或實施例而已,並非用來限定本發明專利實施之範圍。即凡與本發明專利申請範圍文義相符,或依本發明專利範圍所做的均等變化與修飾,皆為本發明專利範圍所涵蓋。The above description only describes the preferred implementations or examples of the technical means adopted by the present invention in order to solve the problems, and is not used to limit the scope of implementation of the patent of the present invention. That is to say, all the equivalent changes and modifications made in accordance with the scope of the patent application of the present invention or made in accordance with the scope of the patent of the present invention are covered by the scope of the present patent.

2、2a:校正裝置 20:校正單元 200:板體 201:支撐結構 202:校正體 203:連接構件 3:校正系統 30:運動裝置 300:夾持件 301:基座 302:末端效應器 31:影像擷取探頭 310:光源 311、312:影像擷取裝置 313:光斑圖案 314:基線 32:運算處理裝置 4、4a:流程 40~47:步驟 470~473:步驟2, 2a: Correction device 20: Correction unit 200: Board body 201: Supporting structure 202: correction body 203: connecting member 3: Correction system 30: exercise device 300: Clamping parts 301: Pedestal 302: End Effector 31: Image capture probe 310: light source 311, 312: Image capture device 313: spot pattern 314: Baseline 32: arithmetic processing device 4.4a: Process 40~47: Step 470~473: Steps

圖1為本發明之一種位置與姿態校正裝置立體示意圖。 圖2A與2B其係分別為將多個校正單元組合而成不同之校正裝置俯視示意圖。 圖2C與圖2D所示,該圖為本發明之校正裝置的不同實施例示意圖。 圖3A為本發明之校正系統實施例示意圖。 圖3B為本發明之校正系統另一實施例示意圖。 圖3C與圖3D分別為本發明之影像擷取探頭不同實施例示意圖。 圖4A為本發明之位置與姿態校正方法之一實施例流程示意圖。 圖4B為本發明之校正空間與校正點的實施例示意圖。 圖4C為本發明決定位置與姿態補償資訊之一實施例流程示意圖。 圖4D為本發明計算公稱位置轉換關係之另一實施例示意圖。 圖5A為本發明之手眼位置轉換關係示意圖。 圖5B為本發明表示轉換關係Z與手臂校正轉換關係、手眼轉換關係與量測與世界座標轉換關係示意圖。 圖5C為本發明計算出實際達到的位置與姿態與應該達到的位置與姿態之間的差距示意圖。Fig. 1 is a three-dimensional schematic diagram of a position and posture correction device of the present invention. 2A and 2B are respectively a schematic top view of a different calibration device by combining a plurality of calibration units. Fig. 2C and Fig. 2D show schematic diagrams of different embodiments of the calibration device of the present invention. Fig. 3A is a schematic diagram of an embodiment of the calibration system of the present invention. FIG. 3B is a schematic diagram of another embodiment of the calibration system of the present invention. 3C and 3D are schematic diagrams of different embodiments of the image capturing probe of the present invention. 4A is a schematic flowchart of an embodiment of the position and attitude correction method of the present invention. 4B is a schematic diagram of an embodiment of the correction space and correction points of the present invention. FIG. 4C is a schematic flowchart of an embodiment of determining position and attitude compensation information according to the present invention. FIG. 4D is a schematic diagram of another embodiment of the invention for calculating the conversion relationship of the nominal position. 5A is a schematic diagram of the hand-eye position conversion relationship of the present invention. FIG. 5B is a schematic diagram showing the conversion relationship between the conversion relationship Z and the arm correction conversion relationship, the hand-eye conversion relationship and the measurement and the world coordinate conversion relationship according to the present invention. FIG. 5C is a schematic diagram of the gap between the actually reached position and posture calculated by the present invention and the position and posture that should be reached.

20:校正單元20: Correction unit

202:校正體202: correction body

31:影像擷取探頭31: Image capture probe

32:運算處理裝置32: arithmetic processing device

306、306a、306b:運動軸306, 306a, 306b: motion axis

L1、L2:手臂校正轉換關係L1, L2: Arm correction conversion relationship

P1、P2:量測與世界座標轉換關係P1, P2: Measurement and world coordinate conversion relationship

X:手眼轉換關係X: Hand-eye conversion relationship

{E}:(末端效應器,第6軸){E}: (end effector, 6th axis)

{B}:(基座,第0軸){B}: (Base, 0th axis)

{W}:世界座標系{W}: World Coordinate System

{S}:量測座標系{S}: Measurement coordinate system

Claims (15)

一種位置與姿態校正方法,其係包括有下列步驟: 提供一運動裝置,具有一末端效應器; 建立關於該運動裝置之運動範圍的校正空間,其具有複數個校正點; 提供一校正裝置,其係包括有至少一支撐結構以及設置在該至少一支撐結構的複數個校正體,每一個校正體上具有至少一特徵點,該複數個校正體之特徵點至少具有四個不共平面; 於該末端效應器(end effector)上,選擇設置一校正裝置或一影像擷取探頭; 控制該運動裝置將該末端效應器移動至每一個校正點,使得在每一個校正點,運動裝置所具有的手臂校正位置與姿態不相同,並於每一個校正點使影像擷取探頭擷取關於該校正裝置的手臂校正影像,每一手臂校正影像內具有至少六個特徵點; 根據該運動裝置的每一個手臂校正位置與姿態決定出關於每一個校正點的該末端效應器相對於該運動裝置之一手臂校正轉換關係; 根據每一手臂校正影像內的每一特徵點相對於該影像擷取探頭之量測座標系下的一量測座標位置以及相應於該世界座標系下的一世界座標位置,決定關於每一校正點的一量測與世界座標轉換關係;以及 根據每一校正點的手臂校正轉換關係以及該量測與世界座標轉換關係,決定該運動裝置於被校正空間內任意位置與姿態的補償資訊。A method for position and posture correction, which includes the following steps: Provide a movement device with an end effector; Establish a correction space regarding the range of motion of the exercise device, which has a plurality of correction points; A calibration device is provided, which includes at least one supporting structure and a plurality of calibration bodies arranged on the at least one supporting structure, each calibration body has at least one characteristic point, and the plurality of calibration bodies has at least four characteristic points Not coplanar On the end effector, choose to set up a calibration device or an image capture probe; Control the motion device to move the end effector to each calibration point, so that at each calibration point, the arm calibration position and posture of the motion device are different, and at each calibration point, the image capture probe captures the The arm of the correction device calibrates the image, and each arm has at least six feature points in the calibrated image; Determine the correction conversion relationship between the end-effector for each correction point and an arm of the motion device according to the correction position and posture of each arm of the motion device; According to the position of each feature point in the calibration image of each arm relative to a measurement coordinate position in the measurement coordinate system of the image capturing probe and a world coordinate position corresponding to the world coordinate system, it is determined about each calibration The conversion relationship between a measurement of a point and the world coordinate; and According to the arm calibration conversion relationship of each calibration point and the conversion relationship between the measurement and the world coordinate, the compensation information of the motion device at any position and posture in the calibrated space is determined. 如申請專利範圍第1項所述之位置與姿態校正方法,其中決定該位置與姿態補償資訊更包括有下列步驟: 根據每一個手臂校正位置與姿態所對應的手臂校正轉換關係以及該量測與世界座標轉換關係計算出該末端效應器上之手眼轉換關係; 根據該手臂校正轉換關係、該手眼轉換關係與該量測與世界座標轉換關係計算出一座標轉換關係;以及 根據該手眼轉換關係、該座標轉換關係、該每一校正點的手臂校正轉換關係以及該量測與世界座標轉換關係,決定出該位置與姿態補償資訊。For the position and posture correction method described in item 1 of the scope of patent application, determining the position and posture compensation information further includes the following steps: Calculate the hand-eye conversion relationship on the end effector according to the arm correction conversion relationship corresponding to each arm correction position and posture and the conversion relationship between the measurement and the world coordinate; Calculate a standard conversion relationship based on the arm correction conversion relationship, the hand-eye conversion relationship, and the measurement and world coordinate conversion relationship; and According to the hand-eye conversion relationship, the coordinate conversion relationship, the arm correction conversion relationship of each calibration point, and the measurement and world coordinate conversion relationship, the position and posture compensation information are determined. 如申請專利範圍第1項所述之位置與姿態校正方法其中決定該位置與姿態補償資訊更包括有下列步驟: 控制該運動裝置以複數個不同的校正位置與姿態分別移動到複數個不同的手眼校正位置,並使該影像擷取探頭於每一個校正點時擷取關於該校正裝置的手眼校正影像,每一手眼校正影像內具有至少六個特徵點; 根據該運動裝置的複數個不同校正位置與姿態決定出該末端效應器相對於該運動裝置之手臂校正轉換關係; 根據每一手眼校正位置所對應的手眼校正影像內的每一特徵點相對於該影像擷取探頭之量測座標系下的量測座標位置以及相應於該世界座標系下的世界座標位置,決定每一手眼校正位置的量測與世界座標轉換關係; 根據手臂校正轉換關係以及量測與世界座標轉換關係,並計算出該末端效應器上之手眼轉換關係; 根據該手臂校正轉換關係、該手眼轉換關係與該量測與世界座標轉換關係計算出一基座與世界座標轉換關係; 根據該手臂校正轉換關係、該基座與世界座標轉換關係、該手眼轉換關係以及該量測與世界座標轉換關係決定出該位置與姿態補償資訊。For example, the position and posture correction method described in item 1 of the scope of patent application includes the following steps to determine the position and posture compensation information: Control the movement device to move to a plurality of different hand-eye correction positions with a plurality of different correction positions and postures, and make the image capturing probe capture the hand-eye correction image of the correction device at each correction point, each hand There are at least six feature points in the eye-corrected image; Determine the correction conversion relationship of the end effector relative to the arm of the motion device according to a plurality of different correction positions and postures of the motion device; Determine the position of each feature point in the hand-eye correction image corresponding to each hand-eye correction position relative to the measurement coordinate position of the image capturing probe under the measurement coordinate system and the world coordinate position corresponding to the world coordinate system The conversion relationship between the measurement of the correction position of each hand and the world coordinate; According to the arm calibration conversion relationship and the conversion relationship between measurement and world coordinates, the hand-eye conversion relationship on the end effector is calculated; Calculate a base-world coordinate conversion relationship based on the arm correction conversion relationship, the hand-eye conversion relationship, and the measurement-world coordinate conversion relationship; The position and posture compensation information are determined according to the arm correction conversion relationship, the base and world coordinate conversion relationship, the hand-eye conversion relationship, and the measurement and world coordinate conversion relationship. 如申請專利範圍第1項所述之位置與姿態校正方法,其中該校正裝置包括有複數個校正單元,其係相互拼接以形成該校正裝置,每一個校正單元更具有: 一板體;以及 複數個支撐結構,其一端連接於該板體上,每一支撐結構具有至少一校正體。According to the position and posture correction method described in item 1 of the scope of patent application, the correction device includes a plurality of correction units which are connected to each other to form the correction device, and each correction unit further has: A board; and One end of a plurality of supporting structures is connected to the board, and each supporting structure has at least one correcting body. 如申請專利範圍第1項所述之位置與姿態校正方法,其中該影像擷取探頭設置於該末端效應器(end effector)上,該校正裝置設置於該移載裝置上,或者是該校正裝置設置於該末端效應器(end effector)上,該影像擷取探頭設置於該移載裝置上,該移載裝置可以進行至少一維度的位移運動。The position and posture correction method described in item 1 of the scope of patent application, wherein the image capturing probe is arranged on the end effector, the correction device is arranged on the transfer device, or the correction device It is arranged on the end effector, the image capturing probe is arranged on the transfer device, and the transfer device can perform displacement movement in at least one dimension. 如申請專利範圍第1項所述之位置與姿態校正方法,該校正裝置設置於該末端效應器(end effector)上,該影像擷取探頭設置於一移載裝置上,該移載裝置可以進行至少一維度的位移運動。For the position and posture correction method described in item 1 of the scope of patent application, the correction device is arranged on the end effector, and the image capturing probe is arranged on a transfer device, which can perform At least one-dimensional displacement movement. 如申請專利範圍第1項所述之位置與姿態校正方法,其中該運動裝置具有一基座以及複數個相互關連的運動軸,該末端效應器係設置在該其中之一運動軸上,每一運動軸具有至少一運動自由度。The position and posture correction method described in item 1 of the scope of patent application, wherein the motion device has a base and a plurality of mutually related motion axes, the end effector is arranged on one of the motion axes, each The motion axis has at least one degree of freedom of motion. 一種位置與姿態校正系統,包括: 一影像擷取探頭; 一校正裝置,其係包括有至少一支撐結構以及設置在該至少一支撐結構的複數個校正體,每一個校正體上具有至少一特徵點,該複數個校正體之特徵點至少具有四個不共平面; 一運動裝置,其上具有一末端效應器(end effector),其中該影像擷取探頭或該校正裝置之其中之一係設置於該末端效應器上,該運動裝置位於一校正空間內,該校正空間內具有複數個校正點;以及 一運算處理裝置,其係與該運動裝置相耦接,該運算處理裝置控制該運動裝置將該末端效應器移動至每一個校正點,使得在每一個校正點,運動裝置所具有的手臂校正位置與姿態不相同,並於每一個校正點使影像擷取探頭擷取關於該校正裝置的手臂校正影像,每一手臂校正影像內具有至少六個特徵點,根據該運動裝置的每一個手臂校正位置與姿態決定出關於每一個校正點的該末端效應器相對於該運動裝置之一手臂校正轉換關係,根據每一手臂校正影像內的每一特徵點相對於該影像擷取探頭之量測座標系下的量測座標系位置以及相應於該世界座標系下的世界座標系位置,決定關於每一校正點的一量測與世界座標轉換關係,根據每一校正點的手臂校正轉換關係以及該量測與世界座標轉換關係,決定該運動裝置於被校正空間內任意位置與姿態的補償資訊。A position and attitude correction system, including: An image capture probe; A calibration device includes at least one supporting structure and a plurality of calibration bodies arranged on the at least one supporting structure, each calibration body has at least one characteristic point, and the plurality of calibration bodies has at least four characteristic points. Coplanar A motion device having an end effector thereon, wherein one of the image capturing probe or the calibration device is disposed on the end effector, the motion device is located in a calibration space, and the calibration device There are multiple calibration points in the space; and An arithmetic processing device, which is coupled with the motion device, the arithmetic processing device controls the motion device to move the end effector to each calibration point, so that at each calibration point, the arm correction position of the motion device It is not the same as the posture, and at each calibration point, the image capturing probe is used to capture the arm calibration image of the calibration device. Each arm calibration image has at least six feature points, and the position is calibrated according to each arm of the motion device. And the posture determines the calibration conversion relationship between the end-effector for each calibration point and an arm of the motion device, and the measurement coordinate system of each feature point in the calibration image with respect to the image capturing probe is based on each arm. The position of the measurement coordinate system below and the position of the world coordinate system corresponding to the world coordinate system determine the conversion relationship between a measurement and the world coordinate for each calibration point, and the conversion relationship between the arm calibration of each calibration point and the quantity The conversion relationship between measurement and world coordinates determines the compensation information of the motion device at any position and posture in the space to be calibrated. 如申請專利範圍第8項所述之位置與姿態校正系統,其中該運算處理裝置根據每一個手臂校正位置與姿態所對應的手臂校正轉換關係以及該量測與世界座標轉換關係計算出該末端效應器上之手眼轉換關係,根據該手臂校正轉換關係、該手眼轉換關係與該量測與世界座標轉換關係計算出一座標轉換關係,根據該手眼轉換關係、該座標轉換關係、該每一校正點的手臂校正轉換關係以及該量測與世界座標轉換關係,決定出該位置與姿態補償資訊。The position and posture correction system described in item 8 of the scope of patent application, wherein the arithmetic processing device calculates the end effect according to the arm correction conversion relationship corresponding to each arm correction position and posture and the conversion relationship between the measurement and the world coordinate The hand-eye conversion relationship on the device is calculated based on the arm correction conversion relationship, the hand-eye conversion relationship, and the measurement and world coordinate conversion relationship. According to the hand-eye conversion relationship, the coordinate conversion relationship, and each calibration point The arm calibration conversion relationship and the conversion relationship between the measurement and the world coordinate determine the position and posture compensation information. 如申請專利範圍第8項所述之位置與姿態校正系統,其中該運算處理裝置控制該運動裝置以複數個不同之位置與姿態分別移動到複數個不同的手眼校正位置,並使該影像擷取探頭擷取關於該校正裝置的手眼校正影像,每一手眼校正影像內具有至少六個特徵點,根據該運動裝置的複數個不同之位置與姿態決定出該末端效應器相對於該運動裝置之手臂校正轉換關係,根據每一手眼校正位置所對應的手眼校正影像內的每一特徵點相對於該影像擷取探頭之量測座標系下的量測座標系位置以及相應於該世界座標系下的世界座標系位置,決定每一手眼校正位置的量測與世界座標轉換關係,根據手臂校正轉換關係以及量測與世界座標轉換關係,並計算出該末端效應器上之手眼轉換關係,根據該手臂校正轉換關係、該手眼轉換關係與該量測與世界座標轉換關係計算出一基座與世界座標轉換關係,根據該手臂校正轉換關係、該基座與世界座標轉換關係、該手眼轉換關係以及該量測與世界座標轉換關係決定出該位置與姿態補償資訊。For example, the position and posture correction system described in item 8 of the scope of patent application, wherein the arithmetic processing device controls the movement device to move to a plurality of different hand-eye correction positions in a plurality of different positions and postures, and make the image capture The probe captures the hand-eye correction image of the correction device, and each hand-eye correction image has at least six feature points. According to a plurality of different positions and postures of the movement device, the end effector relative to the arm of the movement device is determined The calibration conversion relationship is based on the position of each feature point in the hand-eye calibration image corresponding to each hand-eye calibration position relative to the measurement coordinate system position of the image capturing probe under the measurement coordinate system and corresponding to the world coordinate system The world coordinate system position determines the conversion relationship between the measurement of each hand-eye correction position and the world coordinate, and calculates the hand-eye conversion relationship on the end effector according to the arm correction conversion relationship and the conversion relationship between the measurement and the world coordinate. Correction conversion relationship, the hand-eye conversion relationship and the measurement and world coordinate conversion relationship calculate a base-world coordinate conversion relationship, according to the arm correction conversion relationship, the base-world coordinate conversion relationship, the hand-eye conversion relationship, and the The conversion relationship between measurement and world coordinates determines the position and attitude compensation information. 如申請專利範圍第8項所述之位置與姿態校正系統,其中該校正裝置包括有複數個校正單元,其係相互拼接以形成該校正裝置,每一個校正單元更具有: 一板體;以及 複數個支撐結構,其一端連接於該板體上,每一支撐結構上具有至少一校正體。The position and posture correction system described in item 8 of the scope of patent application, wherein the correction device includes a plurality of correction units which are connected to each other to form the correction device, and each correction unit further has: A board; and One end of a plurality of supporting structures is connected to the board, and each supporting structure is provided with at least one correction body. 申請專利範圍第8項所述之位置與姿態校正系統,其中該影像擷取探頭設置於該末端效應器(end effector)上,該校正裝置設置於一移載裝置上,該移載裝置可以進行至少一維度的位移運動。The position and attitude correction system described in item 8 of the scope of patent application, wherein the image capturing probe is set on the end effector, and the correction device is set on a transfer device, which can perform At least one-dimensional displacement movement. 如申請專利範圍第9項所述之位置與姿態校正系統,該校正裝置設置於該末端效應器(end effector)上,該影像擷取探頭設置於一移載裝置上,該移載裝置可以進行至少一維度的位移運動。For the position and posture correction system described in item 9 of the scope of patent application, the correction device is arranged on the end effector, and the image capturing probe is arranged on a transfer device, which can perform At least one-dimensional displacement movement. 如申請專利範圍第8項所述之位置與姿態校正系統,其中該運動裝置具有一基座以及複數個相互關連的運動軸,該末端效應器係設置在該其中之一運動軸上,每一運動軸具有至少一運動自由度。The position and attitude correction system described in item 8 of the scope of patent application, wherein the motion device has a base and a plurality of mutually related motion axes, the end effector is arranged on one of the motion axes, each The motion axis has at least one degree of freedom of motion. 一種位置與姿態校正裝置,包括: 一影像擷取探頭; 一校正裝置,其係包括有至少一支撐結構以及設置在該至少一支撐結構的複數個校正體,每一個校正體上具有至少一特徵點,該複數個校正體之特徵點至少具有四個不共平面; 一移載裝置,用以承載該影像擷取探頭或該校正裝置;以及 一運算處理裝置,控制一運動裝置以複數個不同的校正位置與姿態將該運動裝置上之一末端效應器移動至運動裝置所處空間中的複數個校正點,使影像擷取探頭於每一個校正點擷取關於該校正裝置的手臂校正影像,每一手臂校正影像內具有至少六個特徵點,該運算處理裝置根據該運動裝置的每一個位置與姿態決定出關於每一個校正點的該末端效應器相對於該運動裝置之一手臂校正轉換關係,根據每一手臂校正影像內的每一特徵點相對於該影像擷取探頭之量測座標系下的量測座標系位置以及相應於該世界座標系下的世界座標系位置,決定每一校正點的一量測與世界座標轉換關係,以及根據每一校正點的手臂校正轉換關係以及該量測與世界座標轉換關係,決定該運動裝置於被校正空間內任意位置與姿態的補償資訊。A position and posture correction device, including: An image capture probe; A calibration device includes at least one supporting structure and a plurality of calibration bodies arranged on the at least one supporting structure, each calibration body has at least one characteristic point, and the plurality of calibration bodies has at least four characteristic points. Coplanar A transfer device for carrying the image capturing probe or the calibration device; and An arithmetic processing device that controls a motion device to move an end effector on the motion device to a plurality of correction points in the space where the motion device is located in a plurality of different calibration positions and postures, so that the image capture probe is placed on each The correction point captures the correction image of the arm of the correction device. Each arm correction image has at least six characteristic points. The arithmetic processing device determines the end of each correction point according to each position and posture of the motion device. The effector is calibrated and converted with respect to one of the arms of the motion device, and each feature point in the image is calibrated according to the position of the measurement coordinate system under the measurement coordinate system of the image capturing probe and corresponding to the world according to each arm. The position of the world coordinate system under the coordinate system determines the conversion relationship between a measurement of each calibration point and the world coordinate, and the conversion relationship between the arm calibration of each calibration point and the conversion relationship between the measurement and the world coordinate determine the movement device Compensation information for any position and posture in the corrected space.
TW108135367A 2019-09-27 2019-09-27 Method and device and system for calibrating position and orientation of a motion manipulator TWI708667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108135367A TWI708667B (en) 2019-09-27 2019-09-27 Method and device and system for calibrating position and orientation of a motion manipulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108135367A TWI708667B (en) 2019-09-27 2019-09-27 Method and device and system for calibrating position and orientation of a motion manipulator

Publications (2)

Publication Number Publication Date
TWI708667B TWI708667B (en) 2020-11-01
TW202112514A true TW202112514A (en) 2021-04-01

Family

ID=74202183

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108135367A TWI708667B (en) 2019-09-27 2019-09-27 Method and device and system for calibrating position and orientation of a motion manipulator

Country Status (1)

Country Link
TW (1) TWI708667B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI812393B (en) * 2022-08-09 2023-08-11 陳傑 Calibration system of multi-axis robot arm and definition method of machining coordinates
TWI821041B (en) * 2022-11-23 2023-11-01 林勝男 Inspection methods and devices for industrial robots

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI818586B (en) * 2022-06-13 2023-10-11 中華學校財團法人中華科技大學 Robotic arm catching system using continuous adaptive mean shift algorithm

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9393694B2 (en) * 2010-05-14 2016-07-19 Cognex Corporation System and method for robust calibration between a machine vision system and a robot
TWI408037B (en) * 2010-12-03 2013-09-11 Ind Tech Res Inst A position method and a calibrating method for the robot arm
CN107073719B (en) * 2014-11-21 2020-07-28 精工爱普生株式会社 Robot and robot system
TWI693990B (en) * 2017-07-13 2020-05-21 達明機器人股份有限公司 Device and method for calibrating end-effector of robot arm

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI812393B (en) * 2022-08-09 2023-08-11 陳傑 Calibration system of multi-axis robot arm and definition method of machining coordinates
TWI821041B (en) * 2022-11-23 2023-11-01 林勝男 Inspection methods and devices for industrial robots

Also Published As

Publication number Publication date
TWI708667B (en) 2020-11-01

Similar Documents

Publication Publication Date Title
CN107042528B (en) A kind of Kinematic Calibration system and method for industrial robot
CN106247932B (en) A kind of online error-compensating apparatus of robot based on camera chain and method
TWI708667B (en) Method and device and system for calibrating position and orientation of a motion manipulator
CN113386136B (en) Robot posture correction method and system based on standard spherical array target estimation
Lembono et al. SCALAR: Simultaneous calibration of 2-D laser and robot kinematic parameters using planarity and distance constraints
JP3768688B2 (en) 3D shape measuring apparatus and 3D shape measuring method
WO2018196232A1 (en) Method for automatically calibrating robot and end effector, and system
US20200262080A1 (en) Comprehensive model-based method for gantry robot calibration via a dual camera vision system
JP6855491B2 (en) Robot system, robot system control device, and robot system control method
JP7180783B2 (en) CALIBRATION METHOD FOR COMPUTER VISION SYSTEM AND 3D REFERENCE OBJECT USED FOR CALIBRATION METHOD
CN111872922A (en) Three-degree-of-freedom parallel robot hand-eye calibration method based on 3D vision sensor
Mu et al. Calibration of a flexible measurement system based on industrial articulated robot and structured light sensor
Traslosheros et al. One camera in hand for kinematic calibration of a parallel robot
Selami et al. Precise robot calibration method-based 3-D positioning and posture sensor
Fontana et al. Unconventional calibration strategies for micromanipulation work-cells
Chiwande et al. Comparative need analysis of industrial robot calibration methodologies
Traslosheros et al. A method for kinematic calibration of a parallel robot by using one camera in hand and a spherical object
CN113878586B (en) Robot kinematics calibration device, method and system
Tiboni et al. Full pose measurement system for industrial robots kinematic calibration based on a sensorized spatial linkage mechanism
CN113276115A (en) Hand-eye calibration method and device without robot movement
Motta Robot Calibration: Modeling, Measurement and Applications
Peng et al. A visual kinematics calibration method for manipulator based on nonlinear optimization
Yan et al. On the Measuring System for the Position of Industrial Robots' End-Effectors based on Monocular Vision
WO2023223410A1 (en) Robot device and method for controlling same
Shi et al. Calibration of robotic area sensing system for dimensional measurement of automotive part surfaces