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 PDFInfo
- 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
Links
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Manipulator (AREA)
Abstract
Description
本發明為關於一種位置與姿態校正技術,特別是指一種利用校正工具輔助建立校正一運動裝置的校正空間,以對運動裝置進行位置精度調整之一種位置與姿態校正系統與方法。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
每一個校正體上具有至少一特徵點,在一實施例中,該特徵點可以為校正體之中心位置,或者是校正體上特定的標記等。本實施例中,藉由該支撐結構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
要說明的是,為了避免校正單元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
根據熱膨脹係數的公氏,如下式(1)所示:…(1)According to the Gong's coefficient of thermal expansion, as shown in the following formula (1): …(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
要說明的是,利用複數個校正單元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
此外,如圖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
請參閱圖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
在一實施例中,該位置資訊包括有每一校正單元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
在該運動裝置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
再回到圖3A所示,該影像擷取探頭31,其係具有用以產生結構光的光源,例如:特定條紋圖案的光場,以及擷取影像的影像擷取裝置 ,用以擷取運動裝置30所在位置與姿態下所看到的複數個校正單元20的狀態,進而擷取相應的至少一張影像。要說明的是,影像擷取探頭31裝設的位置係為運動裝置上要被追蹤與補償的位置。例如:如果運動裝置為機械手臂,那在機械手臂上末端的挾持刀具或加工工具的挾持結構,就是影像擷取探頭31裝設的位置。因此影像擷取探頭31設置的位置是根據需求而定,並無一定限制。Returning to FIG. 3A, the
此外,此處所謂擷取影像的數量並無一定的限制,可以根據後續解析影像中的物件在相對於量測座標系(以影像擷取鏡頭為原點的空間座標系)所需的方式,來決定影像的數量,例如:如果採用四歩相移法(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
請參閱圖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
要說明的是,雖然前述的實施例為影像擷取探頭31設置在運動裝置30的末端結構上的末端效應器302,而校正裝置2則是固定在運動裝置30之需進行空間校正的適當位置,可以滿足覆蓋運動裝置所需的工作校正範圍為準。在另一實施例中,也可以相反設置,亦即校正裝置設置2在運動裝置30的末端效應器302上,而該影像擷取探頭設置31則是設置在可以有效偵測校正裝置的適當位置,一般可以固定設置,或者是設置在圖3B的移載裝置7上,以隨時追蹤跟隨校正裝置的位置,使其影像擷取探頭能有校偵測校正裝置的空間位置與姿態,以利滿足覆蓋運動裝置的校正範圍。It should be noted that although the foregoing embodiment is the
請參閱圖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,
接著進行步驟41,建立每一個校正體202關於一世界座標系的中心位置。本步驟的一實施例中,可以使用三次元量床的探針對每一個校正單元202上的標準體進行精密量測(可包括接觸式探針量測或非接觸光學量測方式),通過三次元量床內建的程式得到校正體202中心的座標位置。以校正體202為球體為例,就是得到校正體202的球心位置。多次量測後將此座標位置取平均,並將平均值記錄下來,存入資料庫。因此每一個校正單元20與其上所具有校正體202的中心位置都會記錄在資料庫內。該世界座標系為世界座標系,也就是運動裝置30還有校正裝置所處的空間座標系。Then proceed to step 41 to establish the center position of each
步驟41所建立關於校正體資料庫的形式可表示如下式(2):
接著進行步驟42,於該運動裝置的一運動空間91中,定義複數個校正點TP,如圖4B所示。校正點TP的密度,可以根據運動裝置在進行運動所需的精度而定,校正點TP密度越高,後續進行移動位置補償控制的效果就越好。本實施例中,運動空間91為三維立方體的空間,但不以此為限制,例如:球體的空間也可以實施。每一個校正點TP就是將來末端效應器要到達的位置。Then, step 42 is performed to define a plurality of correction points TP in a
接著進行步驟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
步驟43之後,進行步驟44,控制該運動裝置30以一手臂校正位置與姿態將該末端效應器移動至第一個校正點,例如圖4B中的TP (1)。當末端效應器移動至該TP(1)之後,再進行步驟45,使影像擷取探頭31在對應當前的手臂校正位置與姿態下擷取關於該校正裝置的手臂校正影像,每一手臂校正影像內具有至少六個校正體的特徵點。要說明的是,本步驟中,對於每一個校正點TP而言,末端效應器移動到該校正點TP時,運動裝置30本身會具有對應該校正點TP的公稱位置Enominal
,其係包含各個運動軸的DH參數以及該末端效應器的位置與姿態,例如:各個運動軸306的不同方位的轉動參數與平移參數,以及運動裝置的末端效應器的位置與姿態。其中x,y,z代表三維座標系中的座標位置,而α,β與γ則代表末端效應器的三軸位置與姿態角度資訊。此公稱位置Enominal
是運動裝置控制系統本身認知末端效應器302理論上要移動到的位置。然而,在現實上,運動裝置30因為安裝的環境或者是本身的負載,亦或者是因為運動裝置長時間使用的磨損,實際上運動裝置將末端效應器302移動的位置和校正點之間一定會存在有誤差。如何找到這個誤差,並將其補償,使得末端效應器可以和公稱位置Enominal
(理論位置)的誤差達到最小,以下進行進一步說明。After
接著進行步驟46根據當前位於該校正點TP(1)所具有的手臂校正位置與姿態求出末端效應器在當前校正點TP(1)所具有的手臂校正轉換關係。具體而言,本步驟是根據在對應的校正點的位置與姿態以及每個運動軸的DH參數計算出該末端效應器302相對於該運動裝置30上之一特定位置之間的手臂校正轉換關係。在本步驟中,該特定位置係為該運動裝置的基座301,手臂校正轉換關係可以如下式(3)與(4)所示:
之後進行步驟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
再來,根據手臂校正影像內的每一校正體相對於該影像擷取探頭之量測座標系下校正體中心的位置以及相應於該世界座標系下校正體中心的位置,決定當前校正點下的量測與世界座標轉換關係。以下,進一步說明轉換關係的演算方式,利用前述量測得影像中解析出的每個校正體202的空間分佈點雲,並計算其中心位置,同時記錄下所量測的校正單元20其所代表的編號m。
每一個校正體202在量測後得到的位置資訊可表示如下式(5):
如此在該校正裝置2的空間內,具有經過三次元量床量測的校正單元20的參考空間座標Di
,亦有通過掃描量測得出的校正單元20的量測空間座標Mi
。此時,當編號m與n的值相同時,使Di
與Mi
互相配對,令(xDi
,yDi
,zDi
)與(xMi
,yMi
,zMi
)都是代表真實空間中同一個球心位置。找到代表相同球心位置的Di
與Mi
後,即可順利計算出這兩種不同座標體系的轉換矩陣。到實際量測時,套用此轉換矩陣就能將量測到的資訊轉換成世界座標系的位置資訊。此方法的優點在於方法簡單,校正單元可以使用同一種樣式,只需要知道編號就能夠辨識,但在編號完成後,此編號就不能再更動。一但需要改動校正裝置中校正單元的組合時,就必須重新做校正目標之量測與編號。Thus the space in the correcting
步驟47的另一實施例中,可以利用特徵法來進行建立校正體的量測空間座標Mi
。相較於編號式校正法,特徵式校正法主要是利用校正單元20本身的特徵來進行資料辨識。本實施例中,在設計校正體202時,令每一個校正體202的樣式都有不同的特徵,例如球體上可以有不同密度分佈的斑點或特定的圖案或記號。在此情況下,影像擷取探頭則可以採用如圖3D所示的架構,量測到的校正體202中心位置的空間分佈。此時,校正體202的數量不限,可以使用5顆、6顆所組成的不同空間分佈來建立不同的特徵,例如:5顆校正體的空間分佈型態作為特徵。在量測階段時,量測到的中心位置的空間分佈與資料庫中每個特徵做比對,利用點雲平均距離計算,尋找其中相互差異最小的特徵,則該特徵即是目前量測到的資訊所配對的中心位置。此方法的優點在於不需編號,其本身的特徵即可視為自帶的編號(實際上沒有編號)。但是相對的,因為要將量測到的資訊與資料庫中的每一個校正單元做特徵比對,計算量比起編號式校正法要來的更多。而且,由於每個校正體202的樣式均須不同且具有可辨識的特徵,設計成本會隨著校正單元20的數量的增加而提升,不利於使用於校正單元20數量過多的情況。In another embodiment of
由於前面的校正裝置量測階段,會將三次元量床量測到的每一個校正單元20與其校正體202空間於世界座標系下的位置記錄下來。為了能夠辨識出量測到校正體202所在的空間位置,需要有特定的資訊與資料庫中的空間座標資訊做比對,以得出量測與世界座標轉換關係。步驟47採用編號校正法,其只在步驟41時將校正單元與校正體的中心位置資訊存入資料庫時,會將校正單元作編號,並利用此編號來和步驟47所得的中心位置資訊進行演算。Due to the measurement phase of the previous calibration device, the spatial position of each
在步驟47的一實施例中,取得手臂校正影像中,相對於該影像擷取探頭之量測座標系下校正體中心的位置,其量測座標系為量測座標系{S}以及將在步驟41時,校正單元20以三次元量測所建立關於世界座標系,亦即世界座標系{W}的世界座標系下校正體中心的位置資訊與量測座標系{S}的量測座標系下校正體中心的位置資訊做比對,即能計算出當前校正點所具有的兩者的量測與世界座標轉換關係。從量測座標系{S}到世界座標系{W}的量測與世界座標轉換關係可表示為4乘4的齊次座標轉換矩陣,可以表示為下式(6):
…(6)或者簡化表示為下式(7):
…(7)
其中R可以表示為下式(8),是滾動(Roll)與俯仰角 (Pitch)以及偏轉角(Yaw)等三個物件位置與姿態參數之轉換矩陣的組合,稱之為旋轉矩陣。
在量測座標系{S}中的球形目標的球心位置為下式(10)所式:
步驟47求得當前校正點下的手臂校正轉換關係與量測與世界座標轉換關係之後,進形步驟47a確認是否已經完成所有的校正點。如果沒有,則進形步驟48控制該運動裝置以另一手臂校正位置與姿態將末端效應器移動至下一個校正點。接續前述的例子來說,當校正點TP(1)完成之後,就透過步驟48換到另一個校正點TP(2),然後再回到步驟45重新進行步驟45到步驟47,一直到計算出所有校正點TP所對應的手臂校正轉換關係與量測與世界座標轉換關係。要說明的是,改變位置與姿態時,要能夠涵蓋到每一個運動軸轉動角度的範圍,例如如果運動軸轉動角度的範圍為180度,如果總共取10個校正點,那每一次對於該軸的角度改變可以用18度作一個變化。同理,對於其他的運動軸也是以此概念。After
當完成所有的校正點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
而對於每一次的位置與姿態,例如圖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均已知,可利用下式: 並使用最小平方法計算出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: 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
之後進行步驟492,根據該手眼轉換關係(X)、轉換關係(Z)以及該每一校正點的手臂校正轉換關係E
TB
(Li
)計算出每一校正點的一公稱位置轉換關係S
TW,model
,如下式(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
要說明的是,前述計算手眼轉換關係X的Li
與Pi
是以圖4B所示的各個校正點TP所對應的Li
與Pi
來計算。實際上並不以校正點TP的Li
與Pi
為限制。在另一實施例中,可以利用有別於校正點的其他點來取得這些點的Li
與Pi
,例如圖4D所示,首先進行步驟490a,控制該運動裝置以一手眼校正位置與姿態移動到一手眼校正位置。然後進行步驟490b使該影像擷取探頭在該手眼校正位置與姿態下擷取關於該校正裝置的手眼校正影像,每一手眼校正影像內具有至少六個校正體特徵點。前述手眼校正位置,可以完全不和校正點TP相同,或者可以是局部重疊。然後進行步驟490c,根據該運動裝置的在當前的手眼校正位置與姿態下,決定出該末端效應器相對於該運動裝置之手臂校正轉換關係,亦即對應Li
。It 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,
接著以步驟490d,根據目前手眼校正位置下,所對應的手眼校正影像內的每一校正體相對於該影像擷取探頭之量測座標系下校正體中心的位置以及相應於該世界座標系下校正體中心的位置,決定目前手眼校正位置的量測與世界座標轉換關係,亦即對應Pi
。由於手眼轉換關係X需要有至少六個手眼校正位置所對應的至少六組手臂校正轉換關係與量測與世界座標轉換關係才可以解出,因此步驟490e用來判斷是否取得至少六個手眼校正位置所對應的至少六組手臂校正轉換關係與量測與世界座標轉換關係,如果沒有則到步驟490f控制該運動裝置改變手眼校正位置與姿態移動到另一個手眼校正位置,然後重複進行步驟490b~490e,一直到取得至少六個手眼校正位置的手臂校正轉換關係與量測與世界座標轉換關係。Then in
之後,再以步驟490g根據手臂校正轉換關係Li
以及量測與世界座標轉換關係Pi
,並計算出該末端效應器上之手眼轉換關係X。然後再以步驟490h根據該手臂校正轉換關係Li
、該手眼轉換關係X與該量測與世界座標轉換關係Pi
計算出運動裝置之基座與世界座標轉換關係Z。最後,再以步驟490i根據該手臂校正轉換關係Li
、基座與世界座標轉換關係Z以及手眼轉換關係X係計算出每一手眼校正位置的一公稱位置轉換關係S
TW,model
。透過步驟490a~495i同樣也可以計算出等同於前述步驟492所計算出的公稱位置轉換關係S
TW,model
。Thereafter, in
最後再回到圖4C,以步驟493根據該公稱位置轉換關係以及量測與世界座標轉換關係S
TW, measured
決定出該位置與姿態補償資訊。本步驟中,運動裝置的末端效應器位置與方向的位置與姿態誤差可由式(4)的一階導函數來表示,如式(16),將n組位置與姿態所計算出的n個ΔTi
表示為矩陣形式,則得式(17),將之簡化則得式(18)。其中,ΔTi
代表對應每一個校正點的S
TW,model
與S
TW, measured
的差異。Ji
為ΔTi
的雅可比矩陣,可通過手臂當前位置與姿態的DH參數以及運動學模型計算得出,而則代表4個DH參數誤差。
藉由上述步驟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
參數輸入手臂控制器,進而命令手臂移動至目標位置。
要說明的是,前述的誤差ΔTi代表對應每一個校正點的S TW,model 與S TW, measured 的差異,也就是以影像擷取探頭位置下來計算各運動軸的位置與姿態誤差資訊。在另一實施例中,誤差ΔTi 也可以用末端效應器的位置來表計算各運動軸的誤差,其可以表示如下式(21)所示:…(22) 中A為本實施例中的Li ,而B則為本實施例中的Pi 。而=BX-ZA可以進一步表示成如下式(22):(23) 其中,==== ==== ==== ==== =, 其中c 表示餘弦函數(cos),s表示正弦函數(sin)。=…(24)=…(25)=…(26)=…(27) 由上述方程式(23)~(27)即可以決定運動裝置每一個運動軸的補償參數=。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): ... (22) A L i of the present embodiment example, and B in this case was P i of FIG. and =BX-ZA can be further expressed as the following formula (22): (23) Among them, = = = = = = = = = = = = = = = = = , Where c represents the cosine function (cos) and s represents the sine function (sin). = …(twenty four) = …(25) = …(26) = …(27) According to the above equations (23)~(27), the compensation parameters of each motion axis of the motion device can be determined = .
以上所述,乃僅記載本發明為呈現解決問題所採用的技術手段之較佳實施方式或實施例而已,並非用來限定本發明專利實施之範圍。即凡與本發明專利申請範圍文義相符,或依本發明專利範圍所做的均等變化與修飾,皆為本發明專利範圍所涵蓋。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:
圖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)
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)
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)
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)
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 |
-
2019
- 2019-09-27 TW TW108135367A patent/TWI708667B/en active
Cited By (2)
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 |