TWI438396B - Programming system and method of three-dimensional measuring machine - Google Patents
Programming system and method of three-dimensional measuring machine Download PDFInfo
- Publication number
- TWI438396B TWI438396B TW98116249A TW98116249A TWI438396B TW I438396 B TWI438396 B TW I438396B TW 98116249 A TW98116249 A TW 98116249A TW 98116249 A TW98116249 A TW 98116249A TW I438396 B TWI438396 B TW I438396B
- Authority
- TW
- Taiwan
- Prior art keywords
- workpiece
- measurement
- coordinate
- measuring
- measuring machine
- Prior art date
Links
Landscapes
- Length Measuring Devices With Unspecified Measuring Means (AREA)
- A Measuring Device Byusing Mechanical Method (AREA)
Description
本發明涉及一種編程系統及方法,尤其關於一種三座標測量機編程系統及方法。 The present invention relates to a programming system and method, and more particularly to a three coordinate measuring machine programming system and method.
產品檢測是生產流程中的重要環節。隨著產品製造業的發展,產品生產從大批量製造變成小批量多樣化製造,產品檢測從抽樣檢測發展成全檢,多樣化的檢驗需求迫切要求企業能夠快速地對不同產品實施檢測。 Product testing is an important part of the production process. With the development of product manufacturing, product production has changed from high-volume manufacturing to small-volume diversification. Product testing has evolved from sampling inspection to full inspection. Diversified inspection requirements urgently require enterprises to quickly test different products.
三座標測量機是一種高精度、高效率的尺寸量測設備。三座標測量機可以按照事先編制的量測程式實現自動量測,而且可測量具有複雜曲面零件的形狀精度。制約三座標測量機量測速度的瓶頸是三座標測量機的編程速度。習知的一種編程方法是在三座標測量機所配備的用戶端電腦上直接運用三座標測量機對產品進行編程。這種編程方法編程速度慢且佔用機台。另外一種編程方法是用產品的三維設計圖檔直接編程。這種編程方法有可能由於三維設計圖檔和實物不符而造成安全事故。 The three-coordinate measuring machine is a high-precision, high-efficiency size measuring device. The three-coordinate measuring machine can automatically measure according to a pre-programmed measuring program, and can measure the shape accuracy of parts with complex curved surfaces. The bottleneck that restricts the measurement speed of the three-coordinate measuring machine is the programming speed of the three-coordinate measuring machine. One of the conventional programming methods is to directly program the product using a three-coordinate measuring machine on a user-side computer equipped with a three-coordinate measuring machine. This programming method is slow to program and occupies the machine. Another programming method is to program directly with the 3D design file of the product. This kind of programming method may cause a security accident due to the inconsistency between the 3D design file and the actual object.
鑒於以上內容,有必要提供一種三座標測量機編程系統及方法,能夠快速且安全可靠地對三座標測量機進行編程。 In view of the above, it is necessary to provide a three-coordinate measuring machine programming system and method for quickly, safely and reliably programming a three-coordinate measuring machine.
一種三座標測量機編程系統,該系統包括:點雲接收模組,用於接收工件的點雲資料;點雲處理模組,用於對工件的點雲資料進行預處理及三角網格化,獲得工件的三角網格模型;量測元素擬合模組,用於根據工件的三角網格模型擬合不同的量測元素;元素關係運算模組,用於對量測元素進行關係運算,得到關係運算元素;座標系建立模組,用於根據工件的三角網格模型建立工件座標系;仿真量測模組,用於生成對各個量測元素進行量測的量測路徑,根據生成的量測路徑對工件進行仿真量測,並根據仿真量測結果修改生成的量測路徑;及輸出模組,用於將量測元素、關係運算元素、工件座標系及量測路徑輸出給三座標測量機以生成工件的量測程式。 A three-coordinate measuring machine programming system, the system comprising: a point cloud receiving module for receiving point cloud data of a workpiece; and a point cloud processing module for preprocessing and triangulating the point cloud data of the workpiece, Obtaining a triangular mesh model of the workpiece; measuring an element fitting module for fitting different measuring elements according to a triangular mesh model of the workpiece; an element relation computing module for performing a relational operation on the measuring elements, A relational operation element; a coordinate system establishing a module for establishing a workpiece coordinate system according to a triangular mesh model of the workpiece; and a simulation measurement module for generating a measurement path for measuring each measurement element, according to the generated amount The measurement path performs simulation measurement on the workpiece, and the generated measurement path is modified according to the simulation measurement result; and the output module is used to output the measurement element, the relational operation element, the workpiece coordinate system and the measurement path to the three coordinate measurement Machine to generate a measurement program for the workpiece.
一種三座標測量機編程方法,該方法包括步驟:接收工件的點雲資料;對工件的點雲資料進行預處理及三角網格化,獲得工件的三角網格模型;根據工件的三角網格模型擬合不同的量測元素;對量測元素進行關係運算,得到關係運算元素;根據工件的三角網格模型建立工件座標系;生成對各個量測元素進行量測的量測路徑,根據生成的量測路徑對工件進行仿真量測,並根據仿真量測結果修改生成的量測路徑;及將量測元素、關係運算元素、工件座標系及量測路徑輸出給三座標測量機以生成工件的量測程式。 A three-coordinate measuring machine programming method, the method comprises the steps of: receiving point cloud data of a workpiece; pre-processing and triangulating the point cloud data of the workpiece to obtain a triangular mesh model of the workpiece; and a triangular mesh model according to the workpiece Fitting different measurement elements; performing relational operations on the measurement elements to obtain relational operation elements; establishing a workpiece coordinate system according to the triangular mesh model of the workpiece; generating a measurement path for measuring each measurement element, according to the generated The measuring path simulates the workpiece, and modifies the generated measuring path according to the simulation measurement result; and outputs the measuring element, the relational operation element, the workpiece coordinate system and the measuring path to the three coordinate measuring machine to generate the workpiece Measurement program.
本發明利用工件的點雲資料構建工件的三角網格模型,根據工件的三角網格模型獲得工件的量測元素資訊及關係運算元素,以及獲得三座標測量機進行自動量測所需的量測元素、關係運算元素、工件座標系及量測路徑。並且,獲得的量測路徑經過仿真量測 ,避免了量測過程發生碰撞的可能。 The invention constructs a triangular mesh model of the workpiece by using the point cloud data of the workpiece, obtains the measurement element information and the relational operation element of the workpiece according to the triangular mesh model of the workpiece, and obtains the measurement required for the automatic measurement by the three coordinate measuring machine. Elements, relational operation elements, workpiece coordinate systems, and measurement paths. And the obtained measurement path is subjected to simulation measurement , to avoid the possibility of collision in the measurement process.
10‧‧‧三座標測量機編程系統 10‧‧‧Three coordinate measuring machine programming system
11‧‧‧掃描裝置 11‧‧‧Scanner
12‧‧‧電腦 12‧‧‧ computer
13‧‧‧三座標測量機 13‧‧‧Three coordinate measuring machine
14‧‧‧工件 14‧‧‧Workpiece
200‧‧‧點雲接收模組 200‧‧‧ point cloud receiving module
210‧‧‧點雲處理模組 210‧‧‧ point cloud processing module
220‧‧‧量測元素擬合模組 220‧‧‧Measurement element fitting module
230‧‧‧元素關係運算模組 230‧‧‧Elemental Relational Computing Module
240‧‧‧座標系建立模組 240‧‧‧ coordinate system building module
250‧‧‧仿真量測模組 250‧‧‧Simulation measurement module
260‧‧‧輸出模組 260‧‧‧Output module
S301‧‧‧接收工件的點雲資料 S301‧‧‧ Point cloud data for receiving workpieces
S302‧‧‧點雲資料預處理及三角網格化 S302‧‧‧ Point cloud data preprocessing and triangle meshing
S303‧‧‧擬合量測元素 S303‧‧‧Fitting measurement elements
S304‧‧‧量測元素關係運算 S304‧‧‧Measurement element relational operation
S305‧‧‧建立工件座標系 S305‧‧‧Create workpiece coordinate system
S306‧‧‧生成量測路徑 S306‧‧‧Generation measurement path
S307‧‧‧仿真量測過程中是否發生碰撞 S307‧‧‧Is there a collision during the simulation measurement?
S308‧‧‧修改量測路徑 S308‧‧‧Modification measurement path
S309‧‧‧結果輸出 S309‧‧‧ Results output
圖1係本發明三座標測量機編程系統的實施環境示意圖。 1 is a schematic diagram of an implementation environment of a three-coordinate measuring machine programming system of the present invention.
圖2係本發明三座標測量機編程系統的功能模組圖。 2 is a functional block diagram of a three-coordinate measuring machine programming system of the present invention.
圖3係本發明三座標測量機編程系統的方法流程圖。 3 is a flow chart of a method for programming a three-coordinate measuring machine of the present invention.
參閱圖1所示,係本發明三座標測量機編程系統的實施環境示意圖。 Referring to FIG. 1, it is a schematic diagram of an implementation environment of a three-coordinate measuring machine programming system of the present invention.
所述實施環境主要包括掃描裝置11、電腦12及三座標測量機13。電腦12分別與掃描裝置11及三座標測量機13相連。所述掃描裝置11掃描工件14以獲得工件14的點雲資料。所述掃描裝置11可以是接觸式掃描器,例如探針式掃描器,還可以是非接觸式掃描器,例如光學鏡頭(CCD)掃描器、三維鐳射掃描器。在本實施例中,採用三維鐳射掃描器快速獲取工件14的點雲資料。所述三座標測量機編程系統10運行於電腦12中,三座標測量機編程系統10根據從掃描裝置11接收的工件14的點雲資料建立工件14的三角網格模型,根據建立的三角網格模型獲得工件14的量測元素資訊及關係運算元素,以及獲得三座標測量機13進行自動量測所需的量測元素、關係運算元素、工件座標系及量測路徑。三座標測量機13根據所述量測元素、關係運算元素、工件座標系及量測路徑,對工件14的同種工件進行測量。 The implementation environment mainly includes a scanning device 11, a computer 12, and a three-coordinate measuring machine 13. The computer 12 is connected to the scanning device 11 and the three-coordinate measuring machine 13, respectively. The scanning device 11 scans the workpiece 14 to obtain point cloud data for the workpiece 14. The scanning device 11 may be a contact scanner, such as a probe scanner, or may be a non-contact scanner such as an optical lens (CCD) scanner or a three-dimensional laser scanner. In the present embodiment, the point cloud data of the workpiece 14 is quickly acquired using a three-dimensional laser scanner. The three-coordinate measuring machine programming system 10 operates in a computer 12 that establishes a triangular mesh model of the workpiece 14 based on point cloud data of the workpiece 14 received from the scanning device 11, based on the established triangular mesh The model obtains the measurement element information and the relational operation element of the workpiece 14, and the measurement elements, the relational operation elements, the workpiece coordinate system, and the measurement path required for the automatic measurement by the three-coordinate measuring machine 13. The three-coordinate measuring machine 13 measures the same type of workpiece of the workpiece 14 based on the measurement element, the relational operation element, the workpiece coordinate system, and the measurement path.
參閱圖2所示,係三座標測量機編程系統的功能模組圖。 Referring to Figure 2, it is a functional module diagram of the three-coordinate measuring machine programming system.
所述三座標測量機編程系統10包括點雲接收模組200、點雲處理 模組210、量測元素擬合模組220、元素關係運算模組230、座標系建立模組240、仿真量測模組250及輸出模組260。 The three-coordinate measuring machine programming system 10 includes a point cloud receiving module 200 and a point cloud processing The module 210, the measurement element fitting module 220, the element relationship calculation module 230, the coordinate system establishment module 240, the simulation measurement module 250, and the output module 260.
所述點雲接收模組200用於從掃描裝置11接收工件14的點雲資料。 The point cloud receiving module 200 is configured to receive point cloud data of the workpiece 14 from the scanning device 11.
所述點雲處理模組210用於對工件14的點雲資料進行預處理及三角網格化,獲得工件14的三角網格模型。所述預處理包括去除點雲資料中的重疊點、雜訊點,以及對點雲資料進行精簡。所述雜訊點是指偏離正常位置的幅度較大的點。點雲資料的精簡包括曲率過濾、均值過濾等。預處理的目的是要獲得資料量較少、不失真且較均勻的點雲,以提高三角網格化的速度和準確度。所述三角網格化就是構造一系列的三角形,組成一個三角網格模型來逼近原來的模型。每個三角形用其三個頂點座標和一個法向量來描述。三角網格化常用的方法包括迭代法、迪式(Delaunay)演算法。 The point cloud processing module 210 is configured to preprocess and triangulate the point cloud data of the workpiece 14 to obtain a triangular mesh model of the workpiece 14. The pre-processing includes removing overlapping points, noise points, and streamlining point cloud data in the point cloud data. The noise point refers to a point that is larger than the normal position. The streamlining of point cloud data includes curvature filtering, mean filtering, and the like. The purpose of preprocessing is to obtain a point cloud with less data, no distortion, and more uniformity to improve the speed and accuracy of triangular meshing. The triangular meshing is to construct a series of triangles to form a triangular mesh model to approximate the original model. Each triangle is described by its three vertex coordinates and a normal vector. Common methods for triangular meshing include iterative methods and Delaunay algorithms.
所述量測元素擬合模組220用於根據工件14的三角網格模型擬合不同的量測元素,並獲取工件14的量測元素資訊。所述量測元素包括線、面、圓、球、圓柱、圓錐、圓環等。在本實施例中,量測元素擬合模組220根據最小二乘原理用擬牛頓迭代方法擬合不同的量測元素。所述量測元素資訊用以描述對應的量測元素。例如,線的資訊包括線的起始點、結束點及線的法向;面的資訊包括面的中心點和麵的法向;圓的資訊包括圓心、圓的半徑和圓的法向;圓柱的資訊包括圓柱的中心點、半徑、高度及圓柱的法向;球的資訊包括球心和球的半徑;圓錐的資訊包括圓錐的大小半徑及圓錐的法向;圓環的資訊包括圓環的長短軸及圓環的法向。 The measurement element fitting module 220 is configured to fit different measurement elements according to the triangular mesh model of the workpiece 14 and acquire measurement element information of the workpiece 14 . The measuring elements include lines, faces, circles, balls, cylinders, cones, rings, and the like. In the present embodiment, the measurement element fitting module 220 fits the different measurement elements by the quasi-Newton iteration method according to the least squares principle. The measurement element information is used to describe a corresponding measurement element. For example, the information of the line includes the starting point, the ending point, and the normal of the line; the information of the surface includes the center point of the surface and the normal of the surface; the information of the circle includes the center of the circle, the radius of the circle, and the normal of the circle; The information includes the center point, radius, height of the cylinder and the normal direction of the cylinder; the information of the sphere includes the radius of the sphere and the sphere; the information of the cone includes the radius of the cone and the normal of the cone; the information of the ring includes the ring The normal axis of the long and short axes and the ring.
所述元素關係運算模組230用於對量測元素進行關係運算,得到關係運算元素,並獲取工件14的關係運算元素資訊。所述關係運算包括對量測元素進行擬合、計算量測元素的中間元素以及計算量測元素的相交元素。所述關係運算元素包括點、線、面、圓、球、圓柱、圓錐、圓環等。舉例來說,對量測元素進行擬合包括將多個圓擬合為一個圓錐,計算量測元素的中間元素包括計算兩條線的中線,計算量測元素的相交元素包括計算兩個面的交線。在本實施例中,根據最小二乘原理用擬牛頓迭代方法對量測元素進行擬合。與上述量測元素資訊相類似,所述關係運算元素資訊用以描述對應的關係運算元素。 The element relationship operation module 230 is configured to perform a relational operation on the measurement elements, obtain a relational operation element, and acquire relationship operation element information of the workpiece 14. The relational operations include fitting the measurement elements, calculating intermediate elements of the measurement elements, and calculating intersection elements of the measurement elements. The relational operation elements include points, lines, faces, circles, spheres, cylinders, cones, rings, and the like. For example, fitting a measurement element includes fitting a plurality of circles to a cone, and calculating an intermediate element of the measurement element includes calculating a center line of the two lines, and calculating an intersection element of the measurement element includes calculating two sides. The intersection. In this embodiment, the quasi-Newton iterative method is used to fit the measurement elements according to the least squares principle. Similar to the above-described measurement element information, the relationship operation element information is used to describe the corresponding relational operation element.
所述座標系建立模組240用於根據工件14的三角網格模型建立工件座標系。可以採用如下方法建立工件座標系:根據工件14的三角網格模型擬合一個面,旋轉機械座標系使機械座標系Z軸法向和該面法向重合,從而確定第一個座標軸(即確定基準面);根據工件14的三角網格模型擬合一條線,旋轉機械座標系使得機械座標系Z軸法向和該線法向重合,從而確定第二個座標軸;按右手法則將第一個座標軸叉乘第二個座標軸得到第三個座標軸;測量工件14的三角網格模型的一個點作為工件座標系的原點。 The coordinate system establishing module 240 is configured to establish a workpiece coordinate system according to the triangular mesh model of the workpiece 14. The workpiece coordinate system can be established by fitting a face according to the triangular mesh model of the workpiece 14, and rotating the mechanical coordinate system so that the Z coordinate normal of the mechanical coordinate system coincides with the normal direction of the surface, thereby determining the first coordinate axis (ie, determining Base plane; fit a line according to the triangular mesh model of the workpiece 14, rotate the mechanical coordinate system so that the Z coordinate normal of the mechanical coordinate system coincides with the line normal to determine the second coordinate axis; the first rule is the right hand rule The coordinate axis fork is multiplied by the second coordinate axis to obtain a third coordinate axis; a point of the triangular mesh model of the workpiece 14 is measured as the origin of the workpiece coordinate system.
所述仿真量測模組250用於生成各個量測元素的量測點、安全面控制點、接近距離點及回彈距離點,根據量測元素的量測點、安全面控制點、接近距離點及回彈距離點生成量測路徑。所述量測元素的量測點用於確定相對應的量測元素資訊。所述量測點、安全面控制點、接近距離點及回彈距離點確定了三座標測量機13的運動路徑。舉例來說,當量測元素為線時,量測點包括線的起始 點與結束點。 The simulation measurement module 250 is configured to generate a measurement point, a safety surface control point, a proximity distance point, and a rebound distance point of each measurement element, according to the measurement point, the safety surface control point, and the proximity distance of the measurement element. The point and the rebound distance point generate a measurement path. The measurement points of the measurement elements are used to determine corresponding measurement element information. The measurement point, the safety surface control point, the proximity distance point, and the rebound distance point determine the motion path of the three-coordinate measuring machine 13. For example, when the equivalent element is a line, the measurement point includes the start of the line. Point and end point.
所述仿真量測模組250還用於根據生成的量測路徑對工件14進行仿真量測,若仿真量測過程中發生碰撞,則在工件14的三角網格模型中標示發生碰撞的三角形,並根據標示的發生碰撞的三角形修改量測路徑。仿真量測的方法如下:導入三座標測量機13的三維模型,若三座標測量機13的三維模型不是三角網格模型,則將三座標測量機13的三維模型轉化為三角網格模型;根據生成的量測路徑移動三座標測量機13的三角網格模型與/或工件14的三角網格模型,判斷移動過程中工件14與三座標測量機13是否發生碰撞,並在工件14的三角網格模型中標示發生碰撞的三角形。 The simulation measurement module 250 is further configured to perform simulation measurement on the workpiece 14 according to the generated measurement path. If a collision occurs during the simulation measurement, the triangle in which the collision occurs is marked in the triangular mesh model of the workpiece 14. The measurement path is modified according to the marked collision triangle. The simulation measurement method is as follows: the three-dimensional model of the three-coordinate measuring machine 13 is introduced, and if the three-dimensional model of the three-coordinate measuring machine 13 is not a triangular mesh model, the three-dimensional model of the three-coordinate measuring machine 13 is converted into a triangular mesh model; The generated measurement path moves the triangular mesh model of the three-coordinate measuring machine 13 and/or the triangular mesh model of the workpiece 14, and determines whether the workpiece 14 collides with the three-coordinate measuring machine 13 during the movement, and is in the triangulation of the workpiece 14. The triangle in which the collision occurs is indicated in the grid model.
判斷工件14與三座標測量機13是否發生碰撞,並在工件14的三角網格模型中標示發生碰撞的三角形的方法如下:根據三座標測量機13及工件14的三角網格模型分別對三座標測量機13的各個部件和工件14構造包圍盒,判斷工件14的包圍盒與三座標測量機13的各個部件的包圍盒是否相交;如果相交,則將相交的三座標測量機13的部件的包圍盒和工件14的包圍盒分割為大小相等的子包圍盒,根據分割的子包圍盒搜索工件14的三角網格模型中到相交的三座標測量機13的部件的最小距離等於0的三角形,搜索到的三角形為發生碰撞的三角形。三座標測量機13包括測針、X軸部件、Y軸部件、Z軸部件等部件。 The method of judging whether the workpiece 14 collides with the three-coordinate measuring machine 13 and marking the collided triangle in the triangular mesh model of the workpiece 14 is as follows: according to the triangular coordinate model of the three-coordinate measuring machine 13 and the workpiece 14, respectively, the three coordinates The various components of the measuring machine 13 and the workpiece 14 construct a bounding box, determining whether the bounding box of the workpiece 14 intersects the bounding box of the various components of the three-coordinate measuring machine 13; if intersected, the surrounding of the intersecting three-coordinate measuring machine 13 The bounding box of the box and the workpiece 14 is divided into sub-bundles of equal size, and the triangle of the triangular mesh model of the workpiece 14 in the triangular mesh model of the workpiece 14 is searched according to the divided sub-bundle, and the minimum distance of the components of the intersecting three-coordinate measuring machine 13 is equal to 0, search The triangle that is reached is the triangle that collided. The three-coordinate measuring machine 13 includes components such as a stylus, an X-axis member, a Y-axis member, and a Z-axis member.
所述輸出模組260用於輸出工件14的量測元素資訊及關係運算元素資訊,以及將量測元素、關係運算元素、工件座標系及量測路徑輸出給三座標測量機13。工件14的量測元素資訊及關係運算元素資訊可以以文本格式、資料庫格式或者圖形格式輸出。量測元 素、關係運算元素、工件座標系及量測路徑可以以尺寸測量介面標準(Dimensional Measurement Interface Specification,DMIS)的格式輸出。 The output module 260 is configured to output the measurement element information and the relational operation element information of the workpiece 14 , and output the measurement element, the relational operation element, the workpiece coordinate system, and the measurement path to the three coordinate measuring machine 13 . The measurement element information and the relational operation element information of the workpiece 14 can be output in a text format, a database format, or a graphic format. Measuring element The element, the relational operation element, the workpiece coordinate system, and the measurement path can be output in the format of the Dimensional Measurement Interface Specification (DMIS).
參閱圖3所示,係本發明三座標測量機編程方法的主流程圖。 Referring to Figure 3, it is the main flow chart of the programming method of the three-coordinate measuring machine of the present invention.
步驟S301,點雲接收模組200從掃描裝置11接收工件14的點雲資料。 In step S301, the point cloud receiving module 200 receives the point cloud data of the workpiece 14 from the scanning device 11.
步驟302,點雲處理模組210對工件14的點雲資料進行預處理及三角網格化,獲得工件14的三角網格模型。所述預處理包括去除點雲資料中的重疊點、雜訊點,以及對點雲資料進行精簡。點雲資料的精簡包括曲率過濾、均值過濾等。預處理的目的是要獲得資料量較少、不失真且較均勻的點雲,以提高三角網格化的速度和準確度。所述三角網格化就是構造一系列的三角形,組成一個三角網格模型來逼近原來的模型。每個三角形用其三個頂點座標和一個法向量來描述。三角網格化常用的方法包括迭代法、迪式(Delaunay)演算法。 Step 302: The point cloud processing module 210 performs pre-processing and triangulation on the point cloud data of the workpiece 14 to obtain a triangular mesh model of the workpiece 14. The pre-processing includes removing overlapping points, noise points, and streamlining point cloud data in the point cloud data. The streamlining of point cloud data includes curvature filtering, mean filtering, and the like. The purpose of preprocessing is to obtain a point cloud with less data, no distortion, and more uniformity to improve the speed and accuracy of triangular meshing. The triangular meshing is to construct a series of triangles to form a triangular mesh model to approximate the original model. Each triangle is described by its three vertex coordinates and a normal vector. Common methods for triangular meshing include iterative methods and Delaunay algorithms.
步驟S303,量測元素擬合模組220根據工件14的三角網格模型擬合不同的量測元素,並獲取工件14的量測元素資訊。所述量測元素包括線、面、圓、球、圓柱、圓錐、圓環等。在本實施例中,量測元素擬合模組220根據最小二乘原理用擬牛頓迭代方法擬合不同的量測元素。所述量測元素資訊用以描述對應的量測元素。例如,線的資訊包括線的起始點、結束點及線的法向;面的資訊包括面的中心點和麵的法向;圓的資訊包括圓心、圓的半徑和圓的法向;圓柱的資訊包括圓柱的中心點、半徑、高度及圓柱的法向;球的資訊包括球心和球的半徑;圓錐的資訊包括圓錐的大小 半徑及圓錐的法向;圓環的資訊包括圓環的長短軸及圓環的法向。 In step S303, the measurement element fitting module 220 fits different measurement elements according to the triangular mesh model of the workpiece 14, and acquires the measurement element information of the workpiece 14. The measuring elements include lines, faces, circles, balls, cylinders, cones, rings, and the like. In the present embodiment, the measurement element fitting module 220 fits the different measurement elements by the quasi-Newton iteration method according to the least squares principle. The measurement element information is used to describe a corresponding measurement element. For example, the information of the line includes the starting point, the ending point, and the normal of the line; the information of the surface includes the center point of the surface and the normal of the surface; the information of the circle includes the center of the circle, the radius of the circle, and the normal of the circle; The information includes the center point, radius, height and normal direction of the cylinder; the information of the ball includes the radius of the sphere and the sphere; the information of the cone includes the size of the cone. The radius and the normal of the cone; the information of the ring includes the length and length of the ring and the normal of the ring.
步驟S304,元素關係運算模組230對量測元素進行關係運算,得到關係運算元素,並獲取工件14的關係運算元素資訊。所述關係運算包括對量測元素進行擬合、計算量測元素的中間元素以及計算量測元素的相交元素。所述關係運算元素包括點、線、面、圓、球、圓柱、圓錐、圓環等。舉例來說,對量測元素進行擬合包括將多個圓擬合為一個圓錐,計算量測元素的中間元素包括計算兩條線的中線,計算量測元素的相交元素包括計算兩個面的交線。在本實施例中,根據最小二乘原理用擬牛頓迭代方法對量測元素進行擬合。與上述量測元素資訊相類似,所述關係運算元素資訊用以描述對應的關係運算元素。 In step S304, the element relationship operation module 230 performs a relational operation on the measurement elements to obtain a relational operation element, and acquires the relational operation element information of the workpiece 14. The relational operations include fitting the measurement elements, calculating intermediate elements of the measurement elements, and calculating intersection elements of the measurement elements. The relational operation elements include points, lines, faces, circles, spheres, cylinders, cones, rings, and the like. For example, fitting a measurement element includes fitting a plurality of circles to a cone, and calculating an intermediate element of the measurement element includes calculating a center line of the two lines, and calculating an intersection element of the measurement element includes calculating two sides. The intersection. In this embodiment, the quasi-Newton iterative method is used to fit the measurement elements according to the least squares principle. Similar to the above-described measurement element information, the relationship operation element information is used to describe the corresponding relational operation element.
步驟S305,座標系建立模組240根據工件14的三角網格模型建立工件座標系。可以採用如下方法建立工件座標系:根據工件14的三角網格模型擬合一個面,旋轉機械座標系使機械座標系Z軸法向和該面法向重合,從而確定第一個座標軸(即確定基準面);根據工件14的三角網格模型擬合一條線,旋轉機械座標系使得機械座標系Z軸法向和該線法向重合,從而確定第二個座標軸,按右手法則將第一個座標軸叉乘第二個座標軸得到第三個座標軸;測量工件14的三角網格模型的一個點作為工件座標系的原點。 In step S305, the coordinate system establishing module 240 establishes a workpiece coordinate system according to the triangular mesh model of the workpiece 14. The workpiece coordinate system can be established by fitting a face according to the triangular mesh model of the workpiece 14, and rotating the mechanical coordinate system so that the Z coordinate normal of the mechanical coordinate system coincides with the normal direction of the surface, thereby determining the first coordinate axis (ie, determining Base plane; fit a line according to the triangular mesh model of the workpiece 14, rotate the mechanical coordinate system so that the Z coordinate normal of the mechanical coordinate system coincides with the line normal to determine the second coordinate axis, and the first rule according to the right hand rule The coordinate axis fork is multiplied by the second coordinate axis to obtain a third coordinate axis; a point of the triangular mesh model of the workpiece 14 is measured as the origin of the workpiece coordinate system.
步驟S306,仿真量測模組250生成各個量測元素的量測點、安全面控制點、接近距離點及回彈距離點,根據量測元素的量測點、安全面控制點、接近距離點及回彈距離點生成量測路徑。所述量測元素的量測點用於確定相對應的量測元素資訊。所述量測點、 安全面控制點、接近距離點及回彈距離點確定了三座標測量機13的運動路徑。舉例來說,當量測元素為線時,量測點包括線的起始點與結束點。 Step S306, the simulation measurement module 250 generates a measurement point, a safety surface control point, a proximity distance point, and a rebound distance point of each measurement element, according to the measurement point, the safety surface control point, and the proximity distance point of the measurement element. And the rebound distance point generates a measurement path. The measurement points of the measurement elements are used to determine corresponding measurement element information. The measuring point, The safety surface control point, the approach distance point, and the rebound distance point determine the motion path of the three coordinate measuring machine 13. For example, when the equivalent element is a line, the measurement point includes the start and end points of the line.
步驟S307,仿真量測模組250根據生成的量測路徑對工件14進行仿真量測,若仿真量測過程中發生碰撞,則在工件14的三角網格模型中標示發生碰撞的三角形。否則,若不發生碰撞,則執行步驟S309。仿真量測的方法如下:導入三座標測量機13的三維模型,若三座標測量機13的三維模型不是三角網格模型,則將三座標測量機13的三維模型轉化為三角網格模型;根據生成的量測路徑移動三座標測量機13的三角網格模型與/或工件14的三角網格模型,判斷移動過程中工件14與三座標測量機13是否發生碰撞,並在工件14的三角網格模型中標示發生碰撞的三角形。 In step S307, the simulation measurement module 250 performs simulation measurement on the workpiece 14 according to the generated measurement path. If a collision occurs during the simulation measurement, the triangle in which the collision occurs is indicated in the triangular mesh model of the workpiece 14. Otherwise, if no collision occurs, step S309 is performed. The simulation measurement method is as follows: the three-dimensional model of the three-coordinate measuring machine 13 is introduced, and if the three-dimensional model of the three-coordinate measuring machine 13 is not a triangular mesh model, the three-dimensional model of the three-coordinate measuring machine 13 is converted into a triangular mesh model; The generated measurement path moves the triangular mesh model of the three-coordinate measuring machine 13 and/or the triangular mesh model of the workpiece 14, and determines whether the workpiece 14 collides with the three-coordinate measuring machine 13 during the movement, and is in the triangulation of the workpiece 14. The triangle in which the collision occurs is indicated in the grid model.
判斷工件14與三座標測量機13是否發生碰撞,並在工件14的三角網格模型中標示發生碰撞的三角形的方法如下:根據三座標測量機13及工件14的三角網格模型分別對三座標測量機13的各個部件和工件14構造包圍盒,判斷工件14的包圍盒與三座標測量機13的各個部件的包圍盒是否相交;如果相交,則將相交的三座標測量機13的部件的包圍盒和工件14的包圍盒分割為大小相等的子包圍盒,根據分割的子包圍盒搜索工件14的三角網格模型中到相交的三座標測量機13的部件的最小距離等於0的三角形,搜索到的三角形為發生碰撞的三角形。三座標測量機13包括測針、X軸部件、Y軸部件、Z軸部件等部件。 The method of judging whether the workpiece 14 collides with the three-coordinate measuring machine 13 and marking the collided triangle in the triangular mesh model of the workpiece 14 is as follows: according to the triangular coordinate model of the three-coordinate measuring machine 13 and the workpiece 14, respectively, the three coordinates The various components of the measuring machine 13 and the workpiece 14 construct a bounding box, determining whether the bounding box of the workpiece 14 intersects the bounding box of the various components of the three-coordinate measuring machine 13; if intersected, the surrounding of the intersecting three-coordinate measuring machine 13 The bounding box of the box and the workpiece 14 is divided into sub-bundles of equal size, and the triangle of the triangular mesh model of the workpiece 14 in the triangular mesh model of the workpiece 14 is searched according to the divided sub-bundle, and the minimum distance of the components of the intersecting three-coordinate measuring machine 13 is equal to 0, search The triangle that is reached is the triangle that collided. The three-coordinate measuring machine 13 includes components such as a stylus, an X-axis member, a Y-axis member, and a Z-axis member.
步驟S308,仿真量測模組250根據標示的發生碰撞的三角形修改量測路徑,然後返回步驟S307,根據修改後的量測路徑重新對工 件14進行仿真量測。 Step S308, the simulation measurement module 250 modifies the measurement path according to the marked triangle in which the collision occurs, and then returns to step S307 to re-work according to the modified measurement path. Piece 14 performs simulation measurements.
步驟S309,輸出模組260輸出工件14的量測元素資訊及關係運算元素資訊,以及將量測元素、關係運算元素、工件座標系及量測路徑輸出給三座標測量機13。工件14的量測元素資訊及關係運算元素資訊可以以文本格式、資料庫格式或者圖形格式輸出。量測元素、關係運算元素、工件座標系及量測路徑可以以尺寸測量介面標準(Dimensional Measurement Interface Specification,DMIS)的格式輸出。 In step S309, the output module 260 outputs the measurement element information and the relational operation element information of the workpiece 14, and outputs the measurement element, the relational operation element, the workpiece coordinate system, and the measurement path to the three-coordinate measuring machine 13. The measurement element information and the relational operation element information of the workpiece 14 can be output in a text format, a database format, or a graphic format. The measurement elements, the relational operation elements, the workpiece coordinate system, and the measurement path can be output in the format of a Dimensional Measurement Interface Specification (DMIS).
綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,本發明之範圍並不以上述實施例為限,舉凡熟悉本案技藝之人士援依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。 In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application.
S301‧‧‧接收工件的點雲資料 S301‧‧‧ Point cloud data for receiving workpieces
S302‧‧‧點雲資料預處理及三角網格化 S302‧‧‧ Point cloud data preprocessing and triangle meshing
S303‧‧‧擬合量測元素 S303‧‧‧Fitting measurement elements
S304‧‧‧量測元素關係運算 S304‧‧‧Measurement element relational operation
S305‧‧‧建立工件座標系 S305‧‧‧Create workpiece coordinate system
S306‧‧‧生成量測路徑 S306‧‧‧Generation measurement path
S307‧‧‧仿真量測過程中是否發生碰撞 S307‧‧‧Is there a collision during the simulation measurement?
S308‧‧‧修改量測路徑 S308‧‧‧Modification measurement path
S309‧‧‧結果輸出 S309‧‧‧ Results output
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98116249A TWI438396B (en) | 2009-05-15 | 2009-05-15 | Programming system and method of three-dimensional measuring machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98116249A TWI438396B (en) | 2009-05-15 | 2009-05-15 | Programming system and method of three-dimensional measuring machine |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201040490A TW201040490A (en) | 2010-11-16 |
TWI438396B true TWI438396B (en) | 2014-05-21 |
Family
ID=44995944
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW98116249A TWI438396B (en) | 2009-05-15 | 2009-05-15 | Programming system and method of three-dimensional measuring machine |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI438396B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10540779B2 (en) | 2017-11-03 | 2020-01-21 | Industrial Technology Research Institute | Posture positioning system for machine and the method thereof |
US11162787B2 (en) | 2018-12-20 | 2021-11-02 | Industrial Technology Research Institute | Measuring program compiling device and measuring program compiling method |
US11644296B1 (en) | 2021-12-17 | 2023-05-09 | Industrial Technology Research Institute | 3D measuring equipment and 3D measuring method |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102759788B (en) | 2011-04-26 | 2015-10-14 | 鸿富锦精密工业(深圳)有限公司 | Surface multi-spot system and method |
CN102810058B (en) * | 2011-05-31 | 2016-02-03 | 鸿富锦精密工业(深圳)有限公司 | Measure programming coordinates system updating system and method |
-
2009
- 2009-05-15 TW TW98116249A patent/TWI438396B/en not_active IP Right Cessation
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10540779B2 (en) | 2017-11-03 | 2020-01-21 | Industrial Technology Research Institute | Posture positioning system for machine and the method thereof |
US11162787B2 (en) | 2018-12-20 | 2021-11-02 | Industrial Technology Research Institute | Measuring program compiling device and measuring program compiling method |
US11644296B1 (en) | 2021-12-17 | 2023-05-09 | Industrial Technology Research Institute | 3D measuring equipment and 3D measuring method |
Also Published As
Publication number | Publication date |
---|---|
TW201040490A (en) | 2010-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8255184B2 (en) | Programming system for a coordinate measuring machine and method thereof | |
Yu et al. | Adaptive sampling method for inspection planning on CMM for free-form surfaces | |
Son et al. | Automated laser scanning system for reverse engineering and inspection | |
Sładek et al. | The hybrid contact–optical coordinate measuring system | |
CN102622479B (en) | Reverse engineering computer-aided design (CAD) modeling method based on three-dimensional sketch | |
TWI438396B (en) | Programming system and method of three-dimensional measuring machine | |
McCarthy et al. | NPL freeform artefact for verification of non-contact measuring systems | |
Contri et al. | Quality of 3D digitised points obtained with non-contact optical sensors | |
Mikalai et al. | Human body measurement with the iPhone 12 Pro LiDAR scanner | |
Turley et al. | Evaluation of a multi-sensor horizontal dual arm Coordinate Measuring Machine for automotive dimensional inspection | |
Rak et al. | The use of low density high accuracy (LDHA) data for correction of high density low accuracy (HDLA) point cloud | |
Wójcik et al. | Assessment of free-form surfaces’ reconstruction accuracy | |
TWI492080B (en) | System and method for establishing three-dimension safety level | |
Allard et al. | Differentiation of 3D scanners and their positioning method when applied to pipeline integrity | |
KR100994742B1 (en) | The method of collision detection and passpoint generation for moving path in 3 dimensional coordinate measuring machine | |
Watanabe et al. | Feasibility study of performance assessment gauge for freeform measurement | |
Mian et al. | Multi-sensor integrated system for reverse engineering | |
Chen et al. | CMM probing accessibility in a single slot | |
Tomasiak | Rapid technology in industrial fitting | |
Jaworski et al. | Research on accuracy of automatic system for casting measuring | |
Hughes et al. | Implementation of a 3D scanning system for quality inspection in manufacturing | |
Tang et al. | 3-step-calibration of 3D vision measurement system based-on structured light | |
Germani et al. | Automation of 3D view acquisition for geometric tolerances verification | |
Ferreira et al. | Performance of articulated arm CMM using virtual spheres gauge and geometry deviation analysis | |
CN115876108A (en) | Inner diameter measuring method, inner diameter measuring device and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |