CN114782315A - Method, device, equipment and storage medium for detecting the accuracy of position and orientation of shaft hole assembly - Google Patents
Method, device, equipment and storage medium for detecting the accuracy of position and orientation of shaft hole assembly Download PDFInfo
- Publication number
- CN114782315A CN114782315A CN202210266335.2A CN202210266335A CN114782315A CN 114782315 A CN114782315 A CN 114782315A CN 202210266335 A CN202210266335 A CN 202210266335A CN 114782315 A CN114782315 A CN 114782315A
- Authority
- CN
- China
- Prior art keywords
- axis
- hole
- shaft
- section
- projection
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
- G06T2207/10012—Stereo images
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Length Measuring Devices With Unspecified Measuring Means (AREA)
Abstract
Description
技术领域technical field
本申请涉及精度检测技术领域,特别涉及一种轴孔装配位姿精度的检测方法、装置、电子设备及存储介质。The present application relates to the technical field of precision detection, and in particular, to a method, device, electronic device and storage medium for detecting the accuracy of the position and orientation of a shaft hole assembly.
背景技术Background technique
轴孔装配是工业产品中最为常见的一种装配形式。对于高精度轴孔装配任务而言,在装配过程中,需要严格保证轴和孔间的轴线同轴度、轴线倾斜度。Shaft hole assembly is the most common form of assembly in industrial products. For high-precision shaft-hole assembly tasks, in the assembly process, it is necessary to strictly ensure the axis coaxiality and axis inclination between the shaft and the hole.
相关技术中,接触式体式检测方法(探针式三坐标测量机)可以准确检测物体外表面型数据,但无法检测装配完成后的配合面型数据;非接触式体式检测方法(如工业CT,超声),不能准确检测紧密配合(间隙量<5微米)的配合面型数据,亟待解决。In the related art, the contact type detection method (probe type CMM) can accurately detect the external surface type data of the object, but cannot detect the mating surface type data after the assembly is completed; the non-contact type detection method (such as industrial CT, Ultrasound), cannot accurately detect the mating surface data of tight fit (gap <5 microns), which needs to be solved urgently.
发明内容SUMMARY OF THE INVENTION
本申请提供一种轴孔装配位姿精度的检测方法、装置、电子设备及存储介质,以解决轴孔装配精度检测等问题。The present application provides a method, device, electronic device and storage medium for detecting the position and orientation accuracy of shaft hole assembly, so as to solve the problems of shaft hole assembly accuracy detection and the like.
本申请第一方面实施例提供一种轴孔装配位姿精度的检测方法,包括以下步骤:利用预先采集的轴孔装配的孔内侧壁面形点云数据与轴外侧壁面形点云数据构建孔和轴的空间三维外形,对所述孔和轴的空间三维外形进行轴线拟合得到第一轴线;根据所述孔和轴的空间三维外形截取所述轴孔装配后的一个剖切面得到第一轴孔截面,通过数据对准分别确定所述孔和轴的空间三维外形中与所述第一轴孔截面相似度最高的第一孔截面和第一轴截面;通过所述第一轴线的坐标关系分别得到所述第一孔截面对应的第二轴线的坐标和所述第一轴截面对应的第三轴线的坐标,根据所述第二轴线的坐标和第三轴线的坐标计算所述第二轴线和所述第三轴线间倾斜度与同轴度,以确定所述轴孔装配的轴孔装配位姿精度。An embodiment of the first aspect of the present application provides a method for detecting the position and orientation accuracy of a shaft hole assembly, comprising the following steps: constructing a hole and The spatial three-dimensional shape of the shaft is obtained by performing axis fitting on the spatial three-dimensional shape of the hole and the shaft to obtain the first axis; according to the spatial three-dimensional shape of the hole and the shaft, a section plane after the assembly of the shaft hole is cut to obtain the first shaft. The hole section, the first hole section and the first shaft section with the highest similarity to the first shaft hole section in the spatial three-dimensional shape of the hole and the shaft are determined respectively through data alignment; through the coordinate relationship of the first axis The coordinates of the second axis corresponding to the first hole section and the coordinates of the third axis corresponding to the first shaft section are obtained respectively, and the second axis is calculated according to the coordinates of the second axis and the coordinates of the third axis The inclination and coaxiality between the third axis and the third axis are used to determine the position and orientation accuracy of the shaft hole assembly of the shaft hole assembly.
可选地,在本申请的一个实施例中,所述对所述孔和轴的空间三维外形进行轴线拟合得到第一轴线,包括:在所述轴孔装配的孔或轴的侧壁为圆柱面时,根据所述孔内侧壁面形点云数据与所述轴外侧壁面形点云数据构建出圆柱形的空间三维外形,以所述圆柱形的轴线作为所述第一轴线;在所述轴孔装配的孔或轴的部分侧壁为圆柱面时,在所述孔内侧壁面形点云数据与所述轴外侧壁面形点云数据中筛选所述侧壁为圆柱面的点云数据,根据筛选出的点云数据构建出圆柱形的空间三维外形,以所述圆柱形的轴线作为所述第一轴线。Optionally, in an embodiment of the present application, the first axis is obtained by performing axis fitting on the spatial three-dimensional shape of the hole and the shaft, including: the side wall of the hole or shaft assembled in the shaft hole is: In the case of a cylindrical surface, a cylindrical spatial three-dimensional shape is constructed according to the surface point cloud data of the inner side wall of the hole and the surface point cloud data of the outer side wall of the shaft, and the axis of the cylinder is used as the first axis; When part of the side wall of the hole or shaft assembled by the shaft hole is a cylindrical surface, the point cloud data of the side wall being a cylindrical surface are selected from the surface point cloud data of the inner side wall of the hole and the surface point cloud data of the outer side wall of the shaft. A cylindrical spatial three-dimensional shape is constructed according to the filtered point cloud data, and the cylindrical axis is used as the first axis.
可选地,在本申请的一个实施例中,所述对所述孔和轴的空间三维外形进行轴线拟合得到第一轴线之后,还包括:在轴孔装配坐标系中构建所述第一轴线的初始方程,根据拟合过程确定所述初始方程的初始参数;构建所述初始方程的误差方程,利用线性化最小二乘法求解所述误差方程,得到线性化的误差方程;将所述孔内侧壁面形点云数据带入所述线性化的误差方程,得到所述初始方程的参数调整量,根据所述参数调整量调整所述初始参数,并更新所述初始方程;迭代多次,直至满足迭代结束条件,输出当前初始方程,得到所述第一轴线的坐标关系。Optionally, in an embodiment of the present application, after the first axis is obtained by performing axis fitting on the spatial three-dimensional shape of the hole and the shaft, the method further includes: constructing the first axis in a shaft hole assembly coordinate system The initial equation of the axis, the initial parameters of the initial equation are determined according to the fitting process; the error equation of the initial equation is constructed, and the linearized least squares method is used to solve the error equation to obtain a linearized error equation; The inner side wall surface point cloud data is brought into the linearized error equation to obtain the parameter adjustment amount of the initial equation, the initial parameter is adjusted according to the parameter adjustment amount, and the initial equation is updated; When the iteration end condition is satisfied, the current initial equation is output, and the coordinate relationship of the first axis is obtained.
可选地,在本申请的一个实施例中,所述通过数据对准分别确定所述孔和轴的空间三维外形中与所述第一轴孔截面相似度最高的第一孔截面和第一轴截面,包括:对于所述空间三维外形中的任一截面,基于动态时间归整的方法分别确定所述任一截面左右两侧的孔与轴的曲线与所述第一轴孔截面中的孔和轴曲线的边界距离;分别选取左右的所述边界距离和最小的截面作为所述第一孔截面和所述第一轴截面。Optionally, in an embodiment of the present application, the first hole section and the first hole section with the highest similarity to the first shaft hole section in the spatial three-dimensional shapes of the hole and the shaft are respectively determined through data alignment. Axial section, including: for any section in the three-dimensional shape of the space, the curve of the hole and the axis on the left and right sides of the any section and the curve of the hole in the first axis hole section are respectively determined based on the method of dynamic time normalization. The boundary distance between the hole and the shaft curve; the left and right boundary distances and the smallest section are respectively selected as the first hole section and the first shaft section.
可选地,在本申请的一个实施例中,所述通过所述第一轴线的坐标关系分别得到所述第一孔截面对应的第二轴线的坐标和所述第一轴截面对应的第三轴线的坐标,根据所述第二轴线的坐标和第三轴线的坐标计算所述第二轴线和所述第三轴线间倾斜度与同轴度,包括:根据所述第一轴线的坐标关系得到所述第二轴线的孔轴线投影和孔上点投影;根据所述第一轴线的坐标关系得到所述第三轴线的轴轴线投影和轴上点投影;根据所述孔上点投影和所述轴上点投影利用夹角计算公式计算所述第二轴线和所述第三轴线间的夹角,根据所述夹角得到所述第二轴线和所述第三轴线间倾斜度;根据所述孔轴线投影、所述轴轴线投影、所述孔上点投影和所述轴上点投影利用轴线间距计算公式计算所述第二轴线和所述第三轴线间的轴厚度中心的轴线间距,根据所述轴厚度中心的轴线间距得到所述第二轴线和所述第三轴线间同轴度。Optionally, in an embodiment of the present application, the coordinates of the second axis corresponding to the first hole section and the third axis corresponding to the first axis section are obtained respectively through the coordinate relationship of the first axis. Coordinates of the axis, calculating the inclination and coaxiality between the second axis and the third axis according to the coordinates of the second axis and the third axis, including: obtaining according to the coordinate relationship of the first axis The hole axis projection and the point projection on the hole of the second axis; according to the coordinate relationship of the first axis, the axis axis projection and the point projection on the axis of the third axis are obtained; according to the point projection on the hole and the point projection The on-axis point projection uses the angle calculation formula to calculate the angle between the second axis and the third axis, and obtains the inclination between the second axis and the third axis according to the angle; The projection of the hole axis, the projection of the shaft axis, the projection of the point on the hole and the projection of the point on the shaft are used to calculate the axis distance of the shaft thickness center between the second axis and the third axis by using the axis distance calculation formula, according to The axis spacing of the center of the shaft thickness results in the coaxiality between the second axis and the third axis.
本申请第二方面实施例提供一种轴孔装配位姿精度的检测装置,包括:拟合模块,用于利用预先采集的轴孔装配的孔内侧壁面形点云数据与轴外侧壁面形点云数据构建孔和轴的空间三维外形,对所述孔和轴的空间三维外形进行轴线拟合得到第一轴线;截取模块,用于根据所述孔和轴的空间三维外形截取所述轴孔装配后的一个剖切面得到第一轴孔截面,通过数据对准分别确定所述孔和轴的空间三维外形中与所述第一轴孔截面相似度最高的第一孔截面和第一轴截面;精度检测模块,用于通过所述第一轴线的坐标关系分别得到所述第一孔截面对应的第二轴线的坐标和所述第一轴截面对应的第三轴线的坐标,根据所述第二轴线的坐标和第三轴线的坐标计算所述第二轴线和所述第三轴线间倾斜度与同轴度,以确定所述轴孔装配的轴孔装配位姿精度。The embodiment of the second aspect of the present application provides a detection device for the position and orientation accuracy of the shaft hole assembly, including: a fitting module for using the pre-collected surface point cloud data of the inner side wall of the hole and the surface point cloud of the outer side wall of the shaft hole assembly. The data constructs the spatial three-dimensional shape of the hole and the shaft, and performs axis fitting on the spatial three-dimensional shape of the hole and the shaft to obtain the first axis; the interception module is used to intercept the shaft hole assembly according to the spatial three-dimensional shape of the hole and the shaft. The first shaft hole section is obtained from the last section, and the first hole section and the first shaft section with the highest similarity to the first shaft hole section in the spatial three-dimensional shapes of the hole and the shaft are determined through data alignment; An accuracy detection module, configured to obtain the coordinates of the second axis corresponding to the first hole section and the coordinates of the third axis corresponding to the first axis section through the coordinate relationship of the first axis, respectively, according to the second axis The coordinates of the axis and the coordinates of the third axis are used to calculate the inclination and coaxiality between the second axis and the third axis, so as to determine the accuracy of the shaft hole assembly position and orientation of the shaft hole assembly.
可选地,在本申请的一个实施例中,所述拟合模块,包括:构建单元,用于在所述轴孔装配的孔或轴的侧壁为圆柱面时,根据所述孔内侧壁面形点云数据与所述轴外侧壁面形点云数据构建出圆柱形的空间三维外形,以所述圆柱形的轴线作为所述第一轴线;筛选单元,用于在所述轴孔装配的孔或轴的部分侧壁为圆柱面时,在所述孔内侧壁面形点云数据与所述轴外侧壁面形点云数据中筛选所述侧壁为圆柱面的点云数据,根据筛选出的点云数据构建出圆柱形的空间三维外形,以所述圆柱形的轴线作为所述第一轴线。Optionally, in an embodiment of the present application, the fitting module includes: a construction unit for, when the side wall of the hole or the shaft to which the shaft hole is assembled is a cylindrical surface, according to the inner side wall surface of the hole The shape point cloud data and the surface shape point cloud data of the outer side wall of the shaft construct a cylindrical three-dimensional shape in space, and the axis of the cylinder is used as the first axis; the screening unit is used for the hole assembled in the shaft hole Or when part of the side wall of the shaft is a cylindrical surface, the point cloud data whose side wall is a cylindrical surface are filtered from the surface point cloud data of the inner side wall of the hole and the surface point cloud data of the outer side wall of the shaft, and the point cloud data of which the side wall is a cylindrical surface are selected according to the selected points. The cloud data constructs a cylindrical three-dimensional shape in space, and the cylindrical axis is used as the first axis.
可选地,在本申请的一个实施例中,所述对所述孔和轴的空间三维外形进行轴线拟合得到第一轴线之后,还包括:参数确定模块,用于对所述孔和轴的空间三维外形进行轴线拟合得到第一轴线之后,在轴孔装配坐标系中构建所述第一轴线的初始方程,根据拟合过程确定所述初始方程的初始参数;求解模块,用于构建所述初始方程的误差方程,利用线性化最小二乘法求解所述误差方程,得到线性化的误差方程;调整模块,用于将所述孔内侧壁面形点云数据带入所述线性化的误差方程,得到所述初始方程的参数调整量,根据所述参数调整量调整所述初始参数,并更新所述初始方程;迭代模块,用于迭代多次,直至满足迭代结束条件,输出当前初始方程,得到所述第一轴线的坐标关系。Optionally, in an embodiment of the present application, after the first axis is obtained by performing axis fitting on the spatial three-dimensional contours of the hole and the shaft, the method further includes: a parameter determination module, used for adjusting the hole and the shaft. After the first axis is obtained by the axis fitting of the three-dimensional shape of the space, the initial equation of the first axis is constructed in the shaft hole assembly coordinate system, and the initial parameters of the initial equation are determined according to the fitting process; For the error equation of the initial equation, the linearized least squares method is used to solve the error equation to obtain a linearized error equation; an adjustment module is used to bring the surface point cloud data of the inner side wall of the hole into the linearized error equation, the parameter adjustment amount of the initial equation is obtained, the initial parameter is adjusted according to the parameter adjustment amount, and the initial equation is updated; the iterative module is used to iterate multiple times until the iteration end condition is met, and output the current initial equation , to obtain the coordinate relationship of the first axis.
可选地,在本申请的一个实施例中,所述截取模块,包括:距离确定单元,用于对于所述空间三维外形中的任一截面,基于动态时间归整的方法分别确定所述任一截面左右两侧的孔与轴的曲线与所述第一轴孔截面中的孔和轴曲线的边界距离;选取单元,用于分别选取左右的所述边界距离和最小的截面作为所述第一孔截面和所述第一轴截面。Optionally, in an embodiment of the present application, the interception module includes: a distance determination unit, configured to determine, for any section in the three-dimensional shape of the space, respectively, based on a dynamic time normalization method. The boundary distance between the curve of the hole and the shaft on the left and right sides of a section and the curve of the hole and the shaft in the first shaft hole section; the selection unit is used to select the boundary distance and the smallest section on the left and right as the first A bore section and the first shaft section.
可选地,在本申请的一个实施例中,所述精度检测模块,包括:第一投影单元,用于根据所述第一轴线的坐标关系得到所述第二轴线的孔轴线投影和孔上点投影;第二投影单元,用于根据所述第一轴线的坐标关系得到所述第三轴线的轴轴线投影和轴上点投影;第一计算单元,用于根据所述孔上点投影和所述轴上点投影利用夹角计算公式计算所述第二轴线和所述第三轴线间的夹角,根据所述夹角得到所述第二轴线和所述第三轴线间倾斜度;第二计算单元,用于根据所述孔轴线投影、所述轴轴线投影、所述孔上点投影和所述轴上点投影利用轴线间距计算公式计算所述第二轴线和所述第三轴线间的轴厚度中心的轴线间距,根据所述轴厚度中心的轴线间距得到所述第二轴线和所述第三轴线间同轴度。Optionally, in an embodiment of the present application, the precision detection module includes: a first projection unit, configured to obtain the hole axis projection of the second axis and the hole on the hole according to the coordinate relationship of the first axis point projection; a second projection unit for obtaining the axis axis projection and on-axis point projection of the third axis according to the coordinate relationship of the first axis; a first calculation unit for obtaining the point projection and on-axis point projection of the third axis according to the The on-axis point projection calculates the angle between the second axis and the third axis by using the angle calculation formula, and obtains the inclination between the second axis and the third axis according to the angle; 2. A calculation unit, configured to calculate the distance between the second axis and the third axis according to the hole axis projection, the axis axis projection, the point projection on the hole and the point projection on the axis by using the axis distance calculation formula The axial spacing of the center of the thickness of the shaft is obtained, and the coaxiality between the second axis and the third axis is obtained according to the axial spacing of the center of the thickness of the shaft.
本申请第三方面实施例提供一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序,以执行如上述实施例所述的轴孔装配位姿精度的检测方法。An embodiment of a third aspect of the present application provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to execute The method for detecting the accuracy of the assembly position and orientation of the shaft hole as described in the above embodiments.
本申请第四方面实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行,以执行如上述实施例所述的轴孔装配位姿精度的检测方法。Embodiments of the fourth aspect of the present application provide a computer-readable storage medium on which a computer program is stored, and the program is executed by a processor to execute the method for detecting the position and orientation accuracy of an assembly of a shaft hole as described in the foregoing embodiments.
由此,本申请至少具有如下有益效果:Therefore, the present application at least has the following beneficial effects:
本申请通过利用预先采集的轴孔装配的孔内侧壁面形点云数据与轴外侧壁面形点云数据构建孔和轴的空间三维外形,对孔和轴的空间三维外形进行轴线拟合得到第一轴线;根据孔和轴的空间三维外形截取轴孔装配后的一个剖切面得到第一轴孔截面,通过数据对准分别确定孔和轴的空间三维外形中与第一轴孔截面相似度最高的第一孔截面和第一轴截面;通过第一轴线的坐标关系分别得到第一孔截面对应的第二轴线的坐标和第一轴截面对应的第三轴线的坐标,根据第二轴线的坐标和第三轴线的坐标计算第二轴线和所述第三轴线间倾斜度与同轴度,以确定轴孔装配的轴孔装配位姿精度。从而,准确检测紧密配合的配合面型数据。由此,解决了轴孔装配精度检测等问题。In this application, the spatial three-dimensional shape of the hole and the shaft is constructed by using the surface shape point cloud data of the inner side wall of the hole and the surface shape point cloud data of the outer side wall of the shaft assembled in advance, and the first three-dimensional shape of the hole and the shaft is obtained by axis fitting. Axis; according to the spatial three-dimensional shape of the hole and the shaft, take a section plane after the shaft hole is assembled to obtain the first shaft hole section, and determine the one with the highest similarity to the first shaft hole section in the spatial three-dimensional shape of the hole and the shaft through data alignment. The first hole section and the first shaft section; the coordinates of the second axis corresponding to the first hole section and the coordinates of the third axis corresponding to the first shaft section are obtained respectively through the coordinate relationship of the first axis, according to the coordinates of the second axis and The coordinates of the third axis are calculated by calculating the inclination and coaxiality between the second axis and the third axis, so as to determine the accuracy of the shaft hole assembly pose of the shaft hole assembly. Thereby, the closely fitting mating surface profile data can be accurately detected. As a result, problems such as detection of the assembly accuracy of the shaft hole are solved.
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be set forth, in part, in the following description, and in part will be apparent from the following description, or learned by practice of the present application.
附图说明Description of drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1为根据本申请实施例提供的一种轴孔装配位姿精度的检测方法的流程图;FIG. 1 is a flowchart of a method for detecting the position and orientation accuracy of a shaft hole assembly provided according to an embodiment of the present application;
图2为根据本申请一个实施例提供的一种接触式三坐标测量设备测量空间面形点云数据示意图;FIG. 2 is a schematic diagram of measuring spatial surface point cloud data provided by a contact type three-coordinate measuring device according to an embodiment of the present application;
图3为根据本申请一个实施例提供的一种从整体点云中筛选圆柱面区域的示意图;3 is a schematic diagram of screening a cylindrical surface area from an overall point cloud according to an embodiment of the present application;
图4为根据本申请一个实施例提供的一种空间圆柱面拟合示意图;4 is a schematic diagram of fitting a space cylindrical surface provided according to an embodiment of the present application;
图5为根据本申请一个实施例提供的一种基于非线性最小二乘方法拟合空间圆柱流程图;5 is a flowchart of fitting a space cylinder based on a nonlinear least squares method provided according to an embodiment of the present application;
图6为根据本申请一个实施例提供的一种轴孔装配位姿精度的检测方法的执行逻辑示意图;6 is a schematic diagram of execution logic of a method for detecting the accuracy of a shaft hole assembly pose and orientation provided according to an embodiment of the present application;
图7为根据本申请实施例的轴孔装配位姿精度的检测装置的示例图;FIG. 7 is an exemplary diagram of a detection device for the accuracy of the assembly position and orientation of a shaft hole according to an embodiment of the present application;
图8为申请实施例提供的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
附图标记说明:拟合模块-100、截取模块-200、精度检测模块-300、存储器-801、处理器-802、通信接口-803。Reference numeral description: fitting module-100, interception module-200, precision detection module-300, memory-801, processor-802, communication interface-803.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The following describes in detail the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to be used to explain the present application, but should not be construed as a limitation to the present application.
下面参考附图描述本申请实施例的轴孔装配位姿精度的检测方法、装置、电子设备及存储介质。针对上述背景技术中提到的问题,本申请提供了一种轴孔装配位姿精度的检测方法,在该方法中,面向紧密配合(间隙量<5微米)的配合面型数据的检测问题,本申请采用局部平面式检测方法。通过将装配好的对象彼此固定后,沿特定截面剖开,进而间接测量装配误差。具体地,利用预先采集的轴孔装配的孔内侧壁面形点云数据与轴外侧壁面形点云数据构建孔和轴的空间三维外形,对孔和轴的空间三维外形进行轴线拟合得到第一轴线;根据孔和轴的空间三维外形截取轴孔装配后的一个剖切面得到第一轴孔截面,通过数据对准分别确定孔和轴的空间三维外形中与第一轴孔截面相似度最高的第一孔截面和第一轴截面;通过第一轴线的坐标关系分别得到第一孔截面对应的第二轴线的坐标和第一轴截面对应的第三轴线的坐标,根据第二轴线的坐标和第三轴线的坐标计算第二轴线和第三轴线间倾斜度与同轴度,以确定轴孔装配的轴孔装配位姿精度。从而准确检测紧密配合的配合面型数据。由此,解决了轴孔装配精度检测等问题。The following describes the method, device, electronic device, and storage medium for detecting the position and orientation accuracy of the shaft hole assembly according to the embodiments of the present application with reference to the accompanying drawings. In view of the problems mentioned in the above-mentioned background art, the present application provides a method for detecting the position and orientation accuracy of shaft hole assembly. The present application adopts the partial plane detection method. By fixing the assembled objects to each other and cutting them along a specific section, the assembly error is indirectly measured. Specifically, the spatial three-dimensional shape of the hole and the shaft is constructed by using the surface shape point cloud data of the inner side wall of the hole and the surface shape point cloud data of the outer side wall of the shaft assembled in advance, and the axis fitting is performed on the spatial three-dimensional shape of the hole and the shaft to obtain the first Axis; according to the spatial three-dimensional shape of the hole and the shaft, take a section plane after the shaft hole is assembled to obtain the first shaft hole section, and determine the one with the highest similarity to the first shaft hole section in the spatial three-dimensional shape of the hole and the shaft through data alignment. The first hole section and the first shaft section; the coordinates of the second axis corresponding to the first hole section and the coordinates of the third axis corresponding to the first shaft section are obtained respectively through the coordinate relationship of the first axis, according to the coordinates of the second axis and The coordinates of the third axis calculate the inclination and coaxiality between the second axis and the third axis, so as to determine the accuracy of the shaft hole assembly position and orientation of the shaft hole assembly. So as to accurately detect the closely matched mating surface data. As a result, problems such as detection of the assembly accuracy of the shaft hole are solved.
具体而言,图1为本申请实施例所提供的一种轴孔装配位姿精度的检测方法的流程图。Specifically, FIG. 1 is a flowchart of a method for detecting the accuracy of an assembly position and orientation of a shaft hole provided by an embodiment of the present application.
如图1所示,该轴孔装配位姿精度的检测方法包括以下步骤:As shown in Figure 1, the method for detecting the position and orientation accuracy of the shaft hole assembly includes the following steps:
在步骤S101中,利用预先采集的轴孔装配的孔内侧壁面形点云数据与轴外侧壁面形点云数据构建孔和轴的空间三维外形,对孔和轴的空间三维外形进行轴线拟合得到第一轴线。In step S101, using the pre-collected surface point cloud data of the hole inner side wall and the surface point cloud data of the outer side wall of the shaft, the spatial three-dimensional shape of the hole and the shaft is constructed, and the spatial three-dimensional shape of the hole and the shaft is obtained by axis fitting. first axis.
可以理解的是,装配精度的定义依赖于孔与轴的轴线。对于检测任务而言,需要准确的找到孔与轴的轴线。在生产过程中,实际的孔与轴的轴线是无法直接测量的,因此需要依据对象的外形估计对象的轴线。由于制造误差的存在,孔和轴的实际外形与对应数模的理论外形存在一定的差异。而这种制造误差往往是随机。依赖孔与轴的单一截面的外形,估计的轴线并不准确。It will be appreciated that the definition of assembly accuracy depends on the axis of the hole and the shaft. For inspection tasks, it is necessary to accurately find the axis of the hole and the shaft. In the production process, the actual axis of the hole and the shaft cannot be directly measured, so it is necessary to estimate the axis of the object according to the shape of the object. Due to the existence of manufacturing errors, there is a certain difference between the actual shape of the hole and the shaft and the theoretical shape of the corresponding digital model. And this manufacturing error is often random. Relying on the shape of a single cross-section of the bore and shaft, the estimated axis is not accurate.
因此,本申请的实施例采用接触式三测量机检测孔和轴的完整的空间三维外形,依赖孔和轴的完整的空间三维外形拟合对象的轴线,从而对孔与轴的轴线估计更为准确。Therefore, in the embodiments of the present application, the contact three-dimensional measuring machine is used to detect the complete spatial three-dimensional shape of the hole and the shaft, and the axis of the object is fitted by relying on the complete spatial three-dimensional shape of the hole and the shaft, so as to estimate the axis of the hole and the shaft more efficiently. precise.
需要注意的是,本申请的实施例以孔与成组轴中单个轴组装为例,对上述轴孔装配位姿精度的检测方法进行详细说明。It should be noted that the embodiments of the present application take the assembly of a hole and a single shaft in a group of shafts as an example to describe in detail the above-mentioned method for detecting the assembly position and orientation accuracy of the shaft hole.
可选地,在本申请的一个实施例中,对孔和轴的空间三维外形进行轴线拟合得到第一轴线,包括:在轴孔装配的孔或轴的侧壁为圆柱面时,根据孔内侧壁面形点云数据与轴外侧壁面形点云数据构建出圆柱形的空间三维外形,以圆柱形的轴线作为第一轴线;在轴孔装配的孔或轴的部分侧壁为圆柱面时,在孔内侧壁面形点云数据与轴外侧壁面形点云数据中筛选侧壁为圆柱面的点云数据,根据筛选出的点云数据构建出圆柱形的空间三维外形,以圆柱形的轴线作为第一轴线。Optionally, in an embodiment of the present application, the first axis is obtained by performing axis fitting on the spatial three-dimensional shape of the hole and the shaft, including: when the hole in which the shaft hole is assembled or the side wall of the shaft is a cylindrical surface, according to the hole The surface point cloud data of the inner side wall and the surface point cloud data of the outer side wall of the shaft construct a cylindrical three-dimensional shape in space, and the cylindrical axis is used as the first axis; when the hole of the shaft hole assembly or part of the side wall of the shaft is a cylindrical surface, From the point cloud data of the surface shape of the inner side wall of the hole and the surface shape point cloud data of the outer side wall of the shaft, the point cloud data whose side wall is a cylindrical surface are screened, and the cylindrical three-dimensional shape of the space is constructed according to the screened point cloud data, and the axis of the cylinder is used as the first axis.
具体地,在检测到外表面型点云的基础上,将测量数据进一步拟合为一个空间圆柱,获得圆柱的轴线即认为是孔或轴的轴线。如图2所示,首先使用接触式三坐标测量设备,获得孔内侧壁面形点云数据与轴外侧壁面形点云数据。孔内侧壁面形点云数据记为Specifically, on the basis of detecting the point cloud of the outer surface, the measurement data is further fitted into a space cylinder, and the axis of the cylinder obtained is regarded as the axis of the hole or the shaft. As shown in Figure 2, first use the contact type three-coordinate measuring equipment to obtain the surface point cloud data of the inner side wall of the hole and the surface point cloud data of the outer side wall of the shaft. The surface point cloud data of the inner side wall of the hole is recorded as
C={ci|ci=(xc,i,yc,i,zc,i),i=1,2,K,m}C={c i | ci =(x c,i ,y c,i ,z c,i ),i=1,2,K,m}
轴外侧壁面形点云数据记为The surface point cloud data of the outer side wall of the shaft is recorded as
G={gi|gi=(xg,i,yg,i,zg,i),i=1,2,K,n}G={g i |g i =(x g,i ,y g,i ,z g,i ),i=1,2,K,n}
然后,依据所测量的结果,参照孔轴的理论数模,拟合孔与轴的实际轴线。Then, according to the measured results, referring to the theoretical digital model of the hole shaft, fit the actual axis of the hole and the shaft.
针对侧壁为圆柱面的孔或轴,无需对点云数据进行筛选,使用完整的点云数据即可直接拟合出圆柱轴线;针对主体部分为圆柱面,小部分区域为非圆柱面的孔或轴,需要筛选出圆柱面区域对应的点云数据,然后使用圆柱面区域对应的点云数据拟合出圆柱轴线。For holes or shafts whose side walls are cylindrical surfaces, there is no need to filter the point cloud data, and the cylindrical axis can be directly fitted by using the complete point cloud data; for holes whose main part is a cylindrical surface and a small area is a non-cylindrical surface Or axis, you need to filter out the point cloud data corresponding to the cylindrical surface area, and then use the point cloud data corresponding to the cylindrical surface area to fit the cylindrical axis.
进一步地,在本申请的实施例中,上述从整体点云中筛选圆柱面区域的具体实施方式如下:Further, in the embodiment of the present application, the specific implementation of the above-mentioned screening of the cylindrical surface area from the overall point cloud is as follows:
以孔为例,如图3所示,对点云数据C中每一个点ci依次求若干近邻点,以这些近邻点拟合成为一个平面并求平面法线nc,i。依上述方法获得的点云数据中每个点对应的法线彼此之间是近似共面。这些所有法线所在的近似平面的法线nc,ax是孔轴线的一个近似结果。沿法线nc,ax将所有点云投影至底面。底面内,投影后的点记为pci。所有投影后的点云,大部分以圆形分布,少部分以直线分布。将投影至底面后的所有点云,拟合为圆。拟合误差最大的区域出现在以直线分布的点云处,对应的拟合误差最大点记为pcmax。以pcmax为中心,向两侧求若干近邻点拟合为直线,判断所有投影后的点pci与直线间的距离di,设定阈值dlim判断直线区域边界,从而筛选出所有以圆形分布的点pci,进而筛选出所有以圆柱分布的点ci。Taking a hole as an example, as shown in Figure 3, several neighboring points are sequentially obtained for each point c i in the point cloud data C, and these neighboring points are fitted into a plane and the plane normal n c,i is obtained. The normals corresponding to each point in the point cloud data obtained by the above method are approximately coplanar with each other. The normal n c,ax of the approximate plane in which all these normals lie is an approximation of the hole axis. Project all point clouds to the base along the normal n c,ax . Inside the base, the projected point is denoted pc i . Most of the projected point clouds are distributed in circles, and a few are distributed in straight lines. Fits all point clouds after projecting to the base as a circle. The area with the largest fitting error appears at the point cloud distributed in a straight line, and the corresponding point with the largest fitting error is recorded as pc max . Taking pc max as the center, find several nearby points on both sides to fit into a straight line, judge the distance d i between all projected points pc i and the straight line, set the threshold d lim to judge the boundary of the straight line area, and filter out all the circles. point pc i distributed in a shape, and then filter out all points c i distributed in a cylindrical shape.
可选地,在本申请的一个实施例中,对孔和轴的空间三维外形进行轴线拟合得到第一轴线之后,还包括:在轴孔装配坐标系中构建第一轴线的初始方程,根据拟合过程确定初始方程的初始参数;构建初始方程的误差方程,利用线性化最小二乘法求解误差方程,得到线性化的误差方程;将孔内侧壁面形点云数据带入线性化的误差方程,得到初始方程的参数调整量,根据参数调整量调整初始参数,并更新初始方程;迭代多次,直至满足迭代结束条件,输出当前初始方程,得到第一轴线的坐标关系。Optionally, in an embodiment of the present application, after the first axis is obtained by performing axis fitting on the spatial three-dimensional shape of the hole and the shaft, the method further includes: constructing an initial equation of the first axis in the shaft hole assembly coordinate system, according to The fitting process determines the initial parameters of the initial equation; constructs the error equation of the initial equation, solves the error equation by the linearized least squares method, and obtains the linearized error equation; brings the surface point cloud data of the inner side wall of the hole into the linearized error equation, Obtain the parameter adjustment amount of the initial equation, adjust the initial parameter according to the parameter adjustment amount, and update the initial equation; iterate multiple times until the iteration end condition is satisfied, output the current initial equation, and obtain the coordinate relationship of the first axis.
具体地,在本申请的实施例中,上述从圆柱面区域拟合轴线的方式如下:如图4所示,Specifically, in the embodiment of the present application, the above method of fitting the axis from the cylindrical surface area is as follows: as shown in FIG. 4 ,
空间圆柱以x0,y0,z0,r,l,m,n为参数的方程表征:The space cylinder is characterized by an equation with x 0 , y 0 , z 0 , r,l,m,n as parameters:
(x-x0)2+(y-y0)2+(z-z0)2-r2=[l(x-x0)+m(y-y0)+n(z-z0)]2 (xx 0 ) 2 +(yy 0 ) 2 +(zz 0 ) 2 -r 2 =[l(xx 0 )+m(yy 0 )+n(zz 0 )] 2
其中,x0,y0,z0为圆柱轴心上与底面相交点,r为圆柱截面半径,(l,m,n),||(l,m,n)||2=1为与圆柱轴线平行的单位法向量。Among them, x 0 , y 0 , z 0 are the intersection points on the axis of the cylinder and the bottom surface, r is the radius of the cylinder section, (l,m,n), ||(l,m,n)|| 2 =1 is the Unit normal vector parallel to the cylinder axis.
求取参数x0,y0,z0,r,l,m,n的一种具体实施方法是非线性最小二乘法。以孔为例,首先,结合点云筛选过程获得近似轴线nc,ax,确定参数l,m,n的初值选取点云筛选过程获得的底面与近似轴线nc,ax的交点作为参数x0,y0,z0的初值选取点云筛选过程获得的所有投影至底面的点拟合圆的半径作为参数r的初值 A specific implementation method for obtaining the parameters x 0 , y 0 , z 0 , r,l,m,n is the nonlinear least squares method. Taking the hole as an example, first, the approximate axis n c,ax is obtained in combination with the point cloud screening process, and the initial values of the parameters l,m,n are determined Select the intersection of the bottom surface obtained by the point cloud screening process and the approximate axis n c,ax as the initial values of the parameters x 0 , y 0 , z 0 Select the radius of the fitting circle of all points projected to the bottom obtained by the point cloud screening process as the initial value of the parameter r
构造误差方程如下:The error equation is constructed as follows:
e(x,y,z)=(x-x0)2+(y-y0)2+(z-z0)2-r2-[l(x-x0)+m(y-y0)+n(z-z0)]2 e(x,y,z)=(xx 0 ) 2 +(yy 0 ) 2 +(zz 0 ) 2 -r 2 -[l(xx 0 )+m(yy 0 )+n(zz 0 )] 2
对于最小二乘拟合而言,期望所有点ci=(xc,i,yc,i,zc,i)的拟合残差最小。由于误差方程对参数x0,y0,z0,r,l,m,n而言,呈现非线性的结构形式,因此采用一种迭代进行的线性化最小二乘进行求解最优参数。如图5所示,记:For a least squares fit, all points ci = (x c,i , y c,i ,z c,i ) are expected to have the smallest fit residuals. Since the error equation has a nonlinear structure for the parameters x 0 , y 0 , z 0 , r, l, m, n, an iterative linearized least squares method is used to solve the optimal parameters. As shown in Figure 5, note:
误差方程线性化后记作:The error equation is linearized and written as:
式中,偏导项分别针对参数x0,y0,z0,r,l,m,n进行展开。至此,问题已转变为线性最小二乘问题。将点集C中所有筛选后的点,一次带入线性化后的误差方程,可以求取参数调整量Δx0,Δy0,Δz0,Δr,Δl,Δm,Δn。将参数调整量Δx0,Δy0,Δz0,Δr,Δl,Δm,Δn叠加至参数初值获得更新后的参数。In the formula, the partial derivatives are expanded for the parameters x 0 , y 0 , z 0 , r, l, m, and n respectively. At this point, the problem has been transformed into a linear least squares problem. All the filtered points in the point set C are brought into the linearized error equation at one time, and the parameter adjustment amounts Δx 0 , Δy 0 , Δz 0 , Δr, Δl, Δm, Δn can be obtained. Add the parameter adjustment amounts Δx 0 , Δy 0 , Δz 0 , Δr, Δl, Δm, Δn to the initial value of the parameter Get the updated parameters.
继续以更新后的参数作为初值,重复上述线性化与最小二乘的过程,直至参数调整量Δx0,Δy0,Δz0,Δr,Δl,Δm,Δn小于一定阈值,认为参数x0,y0,z0,r,l,m,n收敛。Continue to use the updated parameters as the initial values, and repeat the above-mentioned process of linearization and least squares until the parameter adjustment amounts Δx 0 , Δy 0 , Δz 0 , Δr, Δl, Δm, Δn are less than a certain threshold, it is considered that the parameter x 0 , y 0 , z 0 , r,l,m,n converge.
在步骤S102中,根据孔和轴的空间三维外形截取轴孔装配后的一个剖切面得到第一轴孔截面,通过数据对准分别确定孔和轴的空间三维外形中与第一轴孔截面相似度最高的第一孔截面和第一轴截面。In step S102, according to the spatial three-dimensional shape of the hole and the shaft, a section plane after the shaft hole is assembled is taken to obtain the first shaft hole section, and the spatial three-dimensional shapes of the hole and the shaft are respectively determined by data alignment to be similar to the first shaft hole section. The highest degree of the first hole section and the first shaft section.
可以理解的是,通过检测到外表面型点云,将测量数据拟合为一个空间圆柱,从而获得孔或轴的拟合轴线后。然而由于装配误差的定义依赖于孔与轴的轴线的相对位置关系,因此还需要分别检测到孔与轴的外形。It can be understood that after detecting the outer surface type point cloud and fitting the measurement data to a space cylinder, the fitting axis of the hole or shaft is obtained. However, since the definition of the assembly error depends on the relative positional relationship between the hole and the axis of the shaft, it is also necessary to detect the outer shape of the hole and the shaft respectively.
由于孔与轴处于装配完成状态且彼此之间处于接触或微小间隙状态(微米级别),一般的非接触式体式测量方法(工业CT、超声检测等)无法准确获得所需孔与轴的外形数据。因此,在本申请的实施例中采用更为准确的检测方式,即将装配好的轴孔通过光敏树脂填充、固化后剖开,通过高倍显微镜(1000倍)对剖面内孔与轴的平面二维外形进行测量。Since the hole and the shaft are in the assembled state and are in contact with each other or a small gap (micron level), the general non-contact measurement methods (industrial CT, ultrasonic testing, etc.) cannot accurately obtain the required shape data of the hole and the shaft . Therefore, in the embodiments of the present application, a more accurate detection method is adopted, that is, the assembled shaft hole is filled with photosensitive resin and then cut open after curing. The shape is measured.
需要注意的是,在装配前,将孔与轴表面预先涂覆光固化树脂。执行装配后,通过紫外光线照射,使树脂固化,保证孔与轴固定连接。参照孔与轴空间三维外形检测结果,选取特定截面作为剖切面,将装配后的轴孔沿所选剖切面铣削出一个截面。由此得到上述第一轴孔截面和第一轴截面。It should be noted that the holes and shaft surfaces are pre-coated with light-curing resin before assembly. After the assembly is performed, the resin is cured by irradiation with UV light and the holes are securely connected to the shaft. Referring to the three-dimensional shape detection results of the hole and shaft space, a specific section is selected as the cutting plane, and a section is milled from the assembled shaft hole along the selected cutting plane. Thus, the above-mentioned first shaft hole section and first shaft section are obtained.
可选地,在本申请的一个实施例中,通过数据对准分别确定孔和轴的空间三维外形中与第一轴孔截面相似度最高的第一孔截面和第一轴截面,包括:对于空间三维外形中的任一截面,基于动态时间归整的方法分别确定任一截面左右两侧的孔与轴的曲线与第一轴孔截面中的孔和轴曲线的边界距离;分别选取左右的边界距离和最小的截面作为第一孔截面和第一轴截面。Optionally, in an embodiment of the present application, the first hole section and the first shaft section with the highest similarity to the first shaft hole section in the spatial three-dimensional shapes of the hole and the shaft are respectively determined by data alignment, including: for For any section in the three-dimensional shape of space, the boundary distance between the curve of the hole and the shaft on the left and right sides of any section and the curve of the hole and the shaft in the first shaft hole section is determined based on the method of dynamic time normalization; The boundary distance and the smallest section are taken as the first hole section and the first axis section.
由于装配完成后,在显微镜检测画面下,可以同时检测到孔与轴的边界。由于显微镜视野限制,视野范围内往往难于同时间距左右两侧边界。因此孔与轴在剖面内左右两侧的边界将分别测量。After the assembly is completed, under the microscope inspection screen, the boundary of the hole and the shaft can be detected at the same time. Due to the limited field of view of the microscope, it is often difficult to space the left and right borders within the field of view at the same time. Therefore, the boundaries of the hole and the shaft on the left and right sides of the section will be measured separately.
在一侧的坐标系内,定义出孔与轴的边界。此时孔与轴的边界是二维点云形式的。左右两侧的孔内侧壁面形点云数据记为:In the coordinate system of one side, define the boundary of the hole and the shaft. At this time, the boundary between the hole and the shaft is in the form of a two-dimensional point cloud. The surface point cloud data of the inner side wall of the hole on the left and right sides are recorded as:
左右两侧的轴外侧壁面形点云数据记为:The surface point cloud data of the left and right sides of the shaft outer wall are recorded as:
值得注意的一点是,左右两侧的点云数据是相互独立。上述的点云数据相对位置关系未知,上述的点云数据相对位置关系同样未知。但处于同一个坐标系内,具备已知的相互位置关系,处于同一个坐标系内,具备已知的相互位置关系。It is worth noting that the point cloud data on the left and right sides are independent of each other. The above point cloud data The relative position relationship is unknown, the above point cloud data The relative positional relationship is also unknown. but are in the same coordinate system and have a known mutual positional relationship, They are in the same coordinate system and have a known mutual positional relationship.
由于实际剖切面与上述选取的理论剖切面存在偏差,直接使用理论剖切面与实际剖切面进行数据对准,估计实际剖切面内的孔与轴轴线是不准确的。因此,需要通过一定的搜索算法,搜索空间三维外形中与实际剖面对应的平面二维外形最相似的截面。Due to the deviation between the actual section plane and the theoretical section plane selected above, it is inaccurate to estimate the hole and shaft axis in the actual section plane by directly using the theoretical section plane and the actual section plane for data alignment. Therefore, a certain search algorithm is required to search for the section with the most similar plane two-dimensional shape corresponding to the actual section in the three-dimensional shape of the space.
具体地,在本申请的实施例中,数据对齐的一种具体实施方法如下:Specifically, in the embodiments of the present application, a specific implementation method of data alignment is as follows:
以孔为例,在三维点云数据C中,以初始理论剖切面为中心,在一定的角度范围与位移范围内,搜索与实际剖切面最为相似的截面。Taking the hole as an example, in the 3D point cloud data C, with the initial theoretical section as the center, within a certain angle range and displacement range, search for the section that is most similar to the actual section.
进一步地,一种相似性判断的具体实施方法实基于动态时间归整(Dynamic TimeWarping,DTW)方法。某一空间三维外形中的截面cf中,左右两侧的孔内侧壁面形点云数据记为:Further, a specific implementation method of similarity judgment is based on a dynamic time warping (Dynamic Time Warping, DTW) method. In the section cf in the three-dimensional shape of a certain space, the surface point cloud data of the inner and side walls of the hole on the left and right sides are recorded as:
Cl={cl i|cl i=(xl c,i,zl c,i),i=1,2,K,p}C l ={c l i |c l i =(x l c,i ,z l c,i ),i=1,2,K,p}
Cr={cr i|cr i=(xr c,i,zr c,i),i=1,2,K,q}C r ={c r i |c r i =(x rc ,i ,z rc ,i ),i=1,2,K,q}
同一截面中,左右两侧的轴外侧壁面形点云数据记为:In the same section, the surface point cloud data of the left and right sides of the shaft outer wall are recorded as:
Gl={gl i|gl i=(xl g,i,zl g,i),i=1,2,K,r}G l ={g l i |g l i =(x l g,i ,z l g,i ),i=1,2,K,r}
Gr={gr i|gr i=(xr g,i,zr g,i),i=1,2,K,s}G r ={g r i |g r i =(x r g,i ,z r g,i ),i=1,2,K,s}
值得注意的一点是,孔与轴的点云数据是相互独立。上述的点云数据Cl,Gl相对位置关系未知,上述的点云数据Cr,Gr相对位置关系同样未知。但Cl,Cr处于同一个坐标系内,具备已知的相互位置关系,Gl,Gr处于同一个坐标系内,具备已知的相互位置关系。It is worth noting that the point cloud data of holes and shafts are independent of each other. The relative positional relationship between the above-mentioned point cloud data C l , G l is unknown, and the relative positional relationship between the above-mentioned point cloud data C r , G r is also unknown. However, C l and C r are in the same coordinate system and have a known mutual positional relationship , while Gl and Gr are in the same coordinate system and have a known mutual positional relationship.
需要说明的是,已检测量包括装配前的孔和轴的空间三维外形,装配后的孔和轴的平面二维外形。通过人工控制剖开截面,能够大致确定剖面内的平面二维外形与孔和轴的空间三维外形的对应关系,但并不准确。因此,更准确的数据对齐方法是,以人工控制剖面为搜索中心,在一定角度、位移变化范围内,搜索空间三维外形中与实际剖面对应的平面二维外形最相似的截面。It should be noted that the detected quantity includes the spatial three-dimensional shape of the hole and shaft before assembly, and the plane two-dimensional shape of the hole and shaft after assembly. By manually controlling the cut section, the corresponding relationship between the plane two-dimensional shape in the section and the spatial three-dimensional shape of the hole and the shaft can be roughly determined, but it is not accurate. Therefore, a more accurate data alignment method is to take the artificial control section as the search center, and within a certain angle and displacement variation range, search for the section that is most similar to the plane two-dimensional shape corresponding to the actual section in the three-dimensional shape of the space.
孔和轴的数据对齐过程分别进行。在孔或轴的空间三维外形的搜索范围中,选取一个截面。分别计算截面左右两侧孔或轴边界与实际剖面对应的左右两侧孔或轴边界的相似性。取左右两侧总相似性最高的一个截面,作为与实际剖面对应的平面二维外形最相似的截面。The data alignment process for holes and shafts is performed separately. Select a section in the search range for the spatial 3D profile of a hole or shaft. Calculate the similarity between the left and right holes or shaft boundaries of the section and the left and right holes or shaft boundaries corresponding to the actual section respectively. The section with the highest total similarity on the left and right sides is taken as the section with the most similar plane two-dimensional shape corresponding to the actual section.
具体地,以孔的数据对齐为例,需找到孔空间三维外形C中的一个最合适的截面cf*,使得与左右两侧的点云数据Cl,Cr,分别与左右两侧实测数据最为相似。使用DTW方式判断两条曲线的距离,左右两侧的边界的距离分别记作:Specifically, taking the data alignment of holes as an example, it is necessary to find a most suitable section cf* in the three-dimensional shape C of the hole space, so that the point cloud data C l and C r on the left and right sides are respectively the same as the measured data on the left and right sides. most similar. Use the DTW method to judge the distance of the two curves, and the distance between the left and right sides of the boundary is recorded as:
所求的孔空间三维外形C中的一个最合适的截面cf*满足:One of the most suitable cross-sections cf* in the three-dimensional shape C of the hole space satisfies:
对应地,截面cf*内左右两侧的孔内侧壁面形点云数据记为此平面内,孔轴线(l,m,n)投影为孔上点(x0,y0,z0)投影为 Correspondingly, the surface point cloud data of the inner side wall of the hole on the left and right sides of the section cf* is recorded as In this plane, the projection of the hole axis (l,m,n) is The point on the hole (x 0 , y 0 , z 0 ) is projected as
同样地,使用相似的方法,可以在轴的空间三维外形G中找到一个最合适的截面gf*。对应地,截面gf*内左右两侧的轴外侧壁面形点云数据记为此平面内,轴轴线(l,m,n)投影为轴上点(x0,y0,z0)投影为 Likewise, using a similar method, a most suitable section gf* can be found in the spatial three-dimensional shape G of the shaft. Correspondingly, the surface point cloud data of the left and right sides of the axis outside the section gf* are recorded as In this plane, the shaft axis (l,m,n) is projected as The point on the axis (x 0 , y 0 , z 0 ) is projected as
在步骤S103中,通过第一轴线的坐标关系分别得到第一孔截面对应的第二轴线的坐标和第一轴截面对应的第三轴线的坐标,根据第二轴线的坐标和第三轴线的坐标计算第二轴线和第三轴线间倾斜度与同轴度,以确定轴孔装配的轴孔装配位姿精度。In step S103, the coordinates of the second axis corresponding to the cross section of the first hole and the coordinates of the third axis corresponding to the cross section of the first axis are obtained through the coordinate relationship of the first axis, respectively. According to the coordinates of the second axis and the coordinates of the third axis Calculate the inclination and coaxiality between the second axis and the third axis to determine the accuracy of the shaft hole assembly pose of the shaft hole assembly.
在获取上述第一孔截面和第一轴截面后,由于高倍放大状态下视野有限,将剖面内孔与轴左右两侧数据分别测量,测量结果分别位于两个独立的坐标系内,左右两侧数据相互关系是未知的。然而装配精度的定义依赖于孔与轴的轴线。在一个平面剖面内,体现为孔与轴的轴线间的倾斜度与同轴度。所以还需将上述两个独立的坐标系进行转换以装配位姿的精度进行检测。After obtaining the above-mentioned first hole section and first shaft section, due to the limited field of view under the high magnification state, the data of the inner hole in the section and the left and right sides of the shaft were measured respectively, and the measurement results were located in two independent coordinate systems. Data interrelationships are unknown. However, the definition of assembly accuracy depends on the axis of the hole and the shaft. In a plane section, it is reflected as the inclination and coaxiality between the axis of the hole and the shaft. Therefore, it is necessary to convert the above two independent coordinate systems to detect with the accuracy of the assembly pose.
可以理解的是,针对孔和轴,分别将上述搜索获得的平面二维外形最佳匹配到实测剖面的平面二维外形。此时,孔和轴从各自空间三维外形中搜索获得的平面二维外形的轴线,即为已装配的孔和轴的轴线。进而计算两条轴线的倾斜误差与同轴误差。It can be understood that, for the hole and the shaft, respectively, the two-dimensional plane shape obtained by the above search is optimally matched to the plane two-dimensional shape of the measured section. At this time, the axis of the plane two-dimensional shape obtained by searching the three-dimensional shape of the respective space for the hole and the shaft is the axis of the assembled hole and the shaft. Then, the tilt error and coaxial error of the two axes are calculated.
可选地,在本申请的一个实施例中,通过第一轴线的坐标关系分别得到第一孔截面对应的第二轴线的坐标和第一轴截面对应的第三轴线的坐标,根据第二轴线的坐标和第三轴线的坐标计算第二轴线和第三轴线间倾斜度与同轴度,包括:根据第一轴线的坐标关系得到第二轴线的孔轴线投影和孔上点投影;根据第一轴线的坐标关系得到第三轴线的轴轴线投影和轴上点投影;根据孔上点投影和轴上点投影利用夹角计算公式计算第二轴线和第三轴线间的夹角,根据夹角得到第二轴线和第三轴线间倾斜度;根据孔轴线投影、轴轴线投影、孔上点投影和轴上点投影利用轴线间距计算公式计算第二轴线和第三轴线间的轴厚度中心的轴线间距,根据轴厚度中心的轴线间距得到第二轴线和第三轴线间同轴度。Optionally, in an embodiment of the present application, the coordinates of the second axis corresponding to the cross section of the first hole and the coordinates of the third axis corresponding to the cross section of the first axis are obtained respectively through the coordinate relationship of the first axis. Calculate the inclination and coaxiality between the second axis and the third axis, including: obtaining the hole axis projection and the point projection on the hole of the second axis according to the coordinate relationship of the first axis; The coordinate relationship of the axes obtains the axis projection of the third axis and the projection of the point on the axis; according to the projection of the point on the hole and the projection of the point on the axis, the angle between the second axis and the third axis is calculated by the angle calculation formula, and the angle is obtained according to the angle. The inclination between the second axis and the third axis; according to the projection of the hole axis, the projection of the axis of the shaft, the projection of the point on the hole and the projection of the point on the shaft, the axis distance between the second axis and the third axis of the shaft thickness center is calculated using the axis distance calculation formula , the coaxiality between the second axis and the third axis is obtained according to the axis spacing of the center of the thickness of the shaft.
具体地,在本申请的实施例中,定义了两个平面点云数据所处于的坐标系的相互位置为:Specifically, in the embodiments of this application, the mutual positions of the coordinate systems where the two plane point cloud data are located are defined as:
式中,P,Q为两个平面点云数据,dx,dz,θy为两坐标系的平移和旋转关系。In the formula, P and Q are two plane point cloud data, d x , d z , θ y are the translation and rotation relationship of the two coordinate systems.
在上述步骤中,是已知的,为恢复轴线,因此需要确定或二者是一样的,即 从而确定孔与轴拟合圆柱面在同一个坐标系下的相对关系,进而确定孔与轴轴线的相对关系。In the above steps, is known, in order to restore the axis, it is necessary to determine or Both are the same, namely Thereby, the relative relationship between the hole and the shaft fitting cylindrical surface in the same coordinate system is determined, and then the relative relationship between the hole and the shaft axis is determined.
设Assume
式中dx 1,dz 1,θy 1,dx 2,dz 2,θy 2,dx 3,dz 3,θy 3为待确定的各点云间的相对位置关系。where d x 1 , d z 1 , θ y 1 , d x 2 , d z 2 , θ y 2 , d x 3 , d z 3 , θ y 3 are the relative positional relationships between the point clouds to be determined.
将所点云通过已知的各点云间的相对位置关系 以及待确定的各点云间的相对位置关系 转化至所在的坐标系。具体转换方法为:point cloud Through the known relative positional relationship between each point cloud and the relative positional relationship between the point clouds to be determined convert to the coordinate system in which it is located. The specific conversion method is:
式中,函数P为点云的平移旋转函数,其第一个参数为原始数据,第二个参数为所用的点云间的相对位置关系。In the formula, the function P is the translation and rotation function of the point cloud, the first parameter is the original data, and the second parameter is the relative positional relationship between the used point clouds.
所有点云转换至所在的坐标系后,构建优化问题,求解待确定的dx 1,dz 1,θy 1,dx 2,dz 2,θy 2,dx 3,dz 3,θy 3。优化目标为:Convert all point clouds to After the coordinate system is located, the optimization problem is constructed to solve the d x 1 , d z 1 , θ y 1 , d x 2 , d z 2 , θ y 2 , d x 3 , d z 3 , θ y 3 to be determined. The optimization objective is:
由于是显微镜的测量结果,是坐标机检测结果,的点数小于的点数。因此式中使用最近点搜索函数c,用于依次搜索中与各点的欧氏距离最近点。because is the measurement result of the microscope, is the coordinate machine detection result, points less than of points. Therefore, the nearest point search function c is used in the formula to search sequentially neutral The Euclidean distance of each point is the closest point.
通过非线性优化后,即可获得参数dx 1,dz 1,θy 1,dx 2,dz 2,θy 2,dx 3,dz 3,θy 3。对应地,装配后,孔与轴的左右两侧的平面二维数已经与空间三维数据完成配准。此时,可以认为是装配后孔与轴左右两侧边界。上述平面sf*中孔轴线投影与孔上点投影平面gf*中轴轴线投影与轴上点投影一同转换至所在的坐标系。转换后的孔的轴线记为孔点投影记为转换后的轴的轴线记为轴点投影记为 After nonlinear optimization, parameters d x 1 , d z 1 , θ y 1 , d x 2 , d z 2 , θ y 2 , d x 3 , d z 3 , θ y 3 can be obtained. Correspondingly, after assembly, the plane two-dimensional numbers on the left and right sides of the hole and the shaft have been registered with the spatial three-dimensional data. at this time, It can be considered as the boundary between the hole and the left and right sides of the shaft after assembly. Projection of the hole axis in the above plane sf* Point projection with hole Plane gf* central axis projection Projected with on-axis point convert to the coordinate system in which it is located. The axis of the converted hole is recorded as The hole point projection is recorded as The axis of the transformed shaft is denoted as The axis point projection is recorded as
本申请中装配误差可以依据进行定义,具体地实施方法如下:Assembly errors in this application can be based on The definition is carried out, and the specific implementation method is as follows:
轴线倾斜误差定义为两条轴线的夹角:Axis tilt error is defined as the angle between two axes:
轴线倾斜同轴误差定义为轴厚度中心的轴线间距:Axis tilt on-axis error is defined as the axis spacing from the center of the shaft thickness:
式中,l为轴的厚度。where l is the thickness of the shaft.
下面将结合附图对轴孔装配位姿精度的检测方法进行阐述。图6为根据本申请实施例提供的一种轴孔装配位姿精度的检测方法的执行逻辑示意图。其具体执行逻辑如下所示:The method for detecting the position and orientation accuracy of the shaft hole assembly will be described below with reference to the accompanying drawings. FIG. 6 is a schematic diagram of execution logic of a method for detecting the accuracy of an assembly position and orientation of a shaft hole according to an embodiment of the present application. Its specific execution logic is as follows:
S1:孔与轴空间三维外形检测及轴心拟合:S1: Hole and shaft space 3D shape detection and shaft center fitting:
通过接触式三测量机检测孔和轴的完整的空间三维外形,依赖孔和轴的完整的空间三维外形拟合对象的轴线。在检测到外表面型点云的基础上,将测量数据进一步拟合为一个空间圆柱,获得圆柱的轴线即认为是孔或轴的轴线。The complete space three-dimensional shape of the hole and the shaft is detected by the contact three-dimensional measuring machine, and the axis of the object is fitted depending on the complete space three-dimensional shape of the hole and the shaft. On the basis of detecting the point cloud of the outer surface, the measured data is further fitted to a space cylinder, and the axis of the cylinder obtained is regarded as the axis of the hole or shaft.
S2:孔与轴装配、固化、剖切:S2: Hole and shaft assembly, curing, sectioning:
在装配前,将孔与轴表面预先涂覆光固化树脂。执行装配后,通过紫外光线照射,使树脂固化,保证孔与轴固定连接。参照孔与轴空间三维外形检测结果,选取特定截面作为剖切面,将装配后的轴孔沿所选剖切面铣削出一个截面。Before assembly, the holes and shaft surfaces are pre-coated with light-curing resin. After the assembly is performed, the resin is cured by irradiation with UV light and the holes are securely connected to the shaft. Referring to the three-dimensional shape detection results of the hole and shaft space, a specific section is selected as the cutting plane, and a section is milled from the assembled shaft hole along the selected cutting plane.
S3:剖面内的孔与轴平面二维外形检测:S3: Two-dimensional shape detection of holes and shaft planes in the section:
将装配好的轴孔通过光敏树脂填充、固化后剖开,通过高倍显微镜(1000倍)对剖面内孔与轴的平面二维外形进行测量。由于高倍放大状态下视野有限,将剖面内孔与轴左右两侧数据分别测量,测量结果分别位于两个独立的坐标系内,左右两侧数据相互关系是未知的。The assembled shaft hole was filled with photosensitive resin, cured and cut open, and the plane two-dimensional shape of the cross-section inner hole and the shaft was measured by a high magnification microscope (1000 times). Due to the limited field of view under the high magnification state, the data on the left and right sides of the hole in the section and the shaft were measured separately. The measurement results were located in two independent coordinate systems, and the relationship between the data on the left and right sides was unknown.
S4:剖面内平面二维外形与空间三维外形数据对准:S4: Alignment of the plane 2D shape and the space 3D shape data in the section:
以人工控制剖面为搜索中心,在一定角度、位移变化范围内,搜索空间三维外形中与实际剖面对应的平面二维外形最相似的截面。孔和轴的数据对齐过程分别进行。以孔为例,在孔的空间三维外形的搜索范围中,选取一个截面。分别计算截面左右两侧孔边界与实际剖面对应的左右两侧孔边界的相似性。取左右两侧总相似性最高的一个截面,作为与实际剖面对应的平面二维外形最相似的截面。Taking the artificial control section as the search center, within a certain angle and displacement variation range, the section in the three-dimensional shape of the space that is most similar to the plane two-dimensional shape corresponding to the actual section is searched. The data alignment process for holes and shafts is performed separately. Taking a hole as an example, select a section in the search range of the three-dimensional shape of the hole. Calculate the similarity between the hole boundaries on the left and right sides of the section and the corresponding hole boundaries on the left and right sides of the actual section respectively. The section with the highest total similarity on the left and right sides is taken as the section with the most similar plane two-dimensional shape corresponding to the actual section.
S5:剖面内孔与轴轴线恢复及装配精度检测:S5: Section inner hole and shaft axis recovery and assembly accuracy detection:
此时,孔和轴从各自空间三维外形中搜索获得的平面二维外形的轴线,即为已装配的孔和轴的轴线。进而计算两条轴线的倾斜误差与同轴误差。At this time, the axis of the plane two-dimensional shape obtained by searching the three-dimensional shape of the respective space for the hole and the shaft is the axis of the assembled hole and the shaft. Then, the tilt error and coaxial error of the two axes are calculated.
根据本申请实施例提出的轴孔装配位姿精度的检测方法,通过利用预先采集的轴孔装配的孔内侧壁面形点云数据与轴外侧壁面形点云数据构建孔和轴的空间三维外形,对孔和轴的空间三维外形进行轴线拟合得到第一轴线;根据孔和轴的空间三维外形截取轴孔装配后的一个剖切面得到第一轴孔截面,通过数据对准分别确定孔和轴的空间三维外形中与第一轴孔截面相似度最高的第一孔截面和第一轴截面;通过第一轴线的坐标关系分别得到第一孔截面对应的第二轴线的坐标和第一轴截面对应的第三轴线的坐标,根据第二轴线的坐标和第三轴线的坐标计算第二轴线和第三轴线间倾斜度与同轴度,以确定轴孔装配的轴孔装配位姿精度。从而,准确检测紧密配合的配合面型数据。According to the method for detecting the position and orientation accuracy of the shaft hole assembly proposed by the embodiment of the present application, the spatial three-dimensional shape of the hole and the shaft is constructed by using the surface shape point cloud data of the inner side wall of the shaft hole assembly and the surface shape point cloud data of the outer side wall of the shaft, which are collected in advance. The first axis is obtained by the axis fitting of the spatial three-dimensional shape of the hole and the shaft; according to the spatial three-dimensional shape of the hole and the shaft, a section plane after the assembly of the shaft hole is cut to obtain the first shaft hole section, and the hole and the shaft are respectively determined by data alignment. The first hole section and the first shaft section with the highest similarity to the first shaft hole section in the spatial three-dimensional shape of the Corresponding to the coordinates of the third axis, the inclination and coaxiality between the second axis and the third axis are calculated according to the coordinates of the second axis and the third axis, so as to determine the position and orientation accuracy of the shaft hole assembly. Thereby, the closely fitting mating surface profile data can be accurately detected.
其次参照附图描述根据本申请实施例提出的轴孔装配位姿精度的检测装置。Next, with reference to the accompanying drawings, the device for detecting the accuracy of the assembly position and orientation of the shaft hole according to the embodiment of the present application will be described.
图7是本申请实施例的轴孔装配位姿精度的检测装置的方框示意图。FIG. 7 is a schematic block diagram of an apparatus for detecting the position and orientation accuracy of a shaft hole assembly according to an embodiment of the present application.
如图7所示,该轴孔装配位姿精度的检测装置10包括:拟合模块100、截取模块200以及精度检测模块300。As shown in FIG. 7 , the
其中,拟合模块100,用于利用预先采集的轴孔装配的孔内侧壁面形点云数据与轴外侧壁面形点云数据构建孔和轴的空间三维外形,对孔和轴的空间三维外形进行轴线拟合得到第一轴线;截取模块,用于根据孔和轴的空间三维外形截取轴孔装配后的一个剖切面得到第一轴孔截面,通过数据对准分别确定孔和轴的空间三维外形中与第一轴孔截面相似度最高的第一孔截面和第一轴截面;精度检测模块300,用于通过第一轴线的坐标关系分别得到第一孔截面对应的第二轴线的坐标和第一轴截面对应的第三轴线的坐标,根据第二轴线的坐标和第三轴线的坐标计算第二轴线和第三轴线间倾斜度与同轴度,以确定轴孔装配的轴孔装配位姿精度。Among them, the
可选地,在本申请的一个实施例中,拟合模块100,包括:构建单元,用于在轴孔装配的孔或轴的侧壁为圆柱面时,根据孔内侧壁面形点云数据与轴外侧壁面形点云数据构建出圆柱形的空间三维外形,以圆柱形的轴线作为第一轴线;筛选单元,用于在轴孔装配的孔或轴的部分侧壁为圆柱面时,在孔内侧壁面形点云数据与轴外侧壁面形点云数据中筛选侧壁为圆柱面的点云数据,根据筛选出的点云数据构建出圆柱形的空间三维外形,以圆柱形的轴线作为第一轴线。Optionally, in an embodiment of the present application, the
可选地,在本申请的一个实施例中,对孔和轴的空间三维外形进行轴线拟合得到第一轴线之后,还包括:参数确定模块,用于对孔和轴的空间三维外形进行轴线拟合得到第一轴线之后,在轴孔装配坐标系中构建第一轴线的初始方程,根据拟合过程确定初始方程的初始参数;求解模块,用于构建初始方程的误差方程,利用线性化最小二乘法求解误差方程,得到线性化的误差方程;调整模块,用于将孔内侧壁面形点云数据带入线性化的误差方程,得到初始方程的参数调整量,根据参数调整量调整初始参数,并更新初始方程;迭代模块,用于迭代多次,直至满足迭代结束条件,输出当前初始方程,得到第一轴线的坐标关系。Optionally, in an embodiment of the present application, after the first axis is obtained by performing axis fitting on the spatial three-dimensional contours of the hole and the shaft, the method further includes: a parameter determination module, configured to perform an axis on the spatial three-dimensional contours of the hole and the shaft. After the first axis is obtained by fitting, the initial equation of the first axis is constructed in the shaft hole assembly coordinate system, and the initial parameters of the initial equation are determined according to the fitting process; the solving module is used to construct the error equation of the initial equation, using the linearization minimum The square method solves the error equation and obtains the linearized error equation; the adjustment module is used to bring the point cloud data of the inner side wall of the hole into the linearized error equation to obtain the parameter adjustment amount of the initial equation, and adjust the initial parameters according to the parameter adjustment amount, And update the initial equation; the iterative module is used to iterate multiple times until the iteration end condition is satisfied, output the current initial equation, and obtain the coordinate relationship of the first axis.
可选地,在本申请的一个实施例中,截取模块200,包括:距离确定单元,用于对于空间三维外形中的任一截面,基于动态时间归整的方法分别确定任一截面左右两侧的孔与轴的曲线与第一轴孔截面中的孔和轴曲线的边界距离;选取单元,用于分别选取左右的边界距离和最小的截面作为第一孔截面和第一轴截面。Optionally, in an embodiment of the present application, the
可选地,在本申请的一个实施例中,精度检测模块300,包括:第一投影单元,用于根据第一轴线的坐标关系得到第二轴线的孔轴线投影和孔上点投影;第二投影单元,用于根据第一轴线的坐标关系得到第三轴线的轴轴线投影和轴上点投影;第一计算单元,用于根据孔上点投影和轴上点投影利用夹角计算公式计算第二轴线和第三轴线间的夹角,根据夹角得到第二轴线和第三轴线间倾斜度;第二计算单元,用于根据孔轴线投影、轴轴线投影、孔上点投影和轴上点投影利用轴线间距计算公式计算第二轴线和第三轴线间的轴厚度中心的轴线间距,根据轴厚度中心的轴线间距得到第二轴线和第三轴线间同轴度。Optionally, in an embodiment of the present application, the
需要说明的是,前述对轴孔装配位姿精度的检测方法实施例的解释说明也适用于该实施例的轴孔装配位姿精度的检测装置,此处不再赘述。It should be noted that, the foregoing explanations of the embodiment of the method for detecting the position and orientation accuracy of the shaft hole assembly are also applicable to the detection device for the position and posture accuracy of the shaft hole assembly in this embodiment, which will not be repeated here.
根据本申请实施例提出的轴孔装配位姿精度的检测装置,首先,对孔与轴进行空间三维外形检测及轴心拟合;之后,在装配前,将孔与轴表面预先涂覆光固化树脂。执行装配后,通过紫外光线照射,使树脂固化,保证孔与轴固定连接。并参照孔与轴空间三维外形检测结果,选取特定截面作为剖切面,将装配后的轴孔沿所选剖切面铣削出一个截面;对剖面内的孔与轴进行平面二维外形检测;剖面内平面二维外形与空间三维外形数据对准,最后,将剖面内孔与轴轴线恢复,并进行装配精度的检测。从而,准确检测紧密配合的配合面型数据。According to the detection device for the assembly position and orientation accuracy of the shaft hole proposed in the embodiment of the present application, firstly, the three-dimensional shape detection and shaft center fitting are performed on the hole and the shaft; then, before the assembly, the surface of the hole and the shaft is pre-coated with light curing resin. After the assembly is performed, the resin is cured by irradiation with UV light and the holes are securely connected to the shaft. And referring to the three-dimensional shape detection results of the hole and shaft space, a specific section is selected as the section plane, and the assembled shaft hole is milled out a section along the selected section plane; The two-dimensional shape of the plane is aligned with the three-dimensional shape data of the space. Finally, the inner hole of the section and the axis of the shaft are restored, and the assembly accuracy is detected. Thereby, the closely fitting mating surface profile data is accurately detected.
图8为本申请实施例提供的电子设备的结构示意图。该电子设备可以包括:FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device may include:
存储器801、处理器802及存储在存储器801上并可在处理器802上运行的计算机程序。
处理器802执行程序时实现上述实施例中提供的轴孔装配位姿精度的检测方法。When the
进一步地,电子设备还包括:Further, the electronic device also includes:
通信接口803,用于存储器801和处理器802之间的通信。The
存储器801,用于存放可在处理器802上运行的计算机程序。The
存储器801可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The
如果存储器801、处理器802和通信接口803独立实现,则通信接口803、存储器801和处理器802可以通过总线相互连接并完成相互间的通信。总线可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线、外部设备互连(PeripheralComponent,简称为PCI)总线或扩展工业标准体系结构(Extended Industry StandardArchitecture,简称为EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。If the
可选的,在具体实现上,如果存储器801、处理器802及通信接口803,集成在一块芯片上实现,则存储器801、处理器802及通信接口803可以通过内部接口完成相互间的通信。Optionally, in terms of specific implementation, if the
处理器802可能是一个中央处理器(Central Processing Unit,简称为CPU),或者是特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路。The
本实施例还提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如上的轴孔装配位姿精度的检测方法。This embodiment also provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the above method for detecting the position and orientation accuracy of an assembly of a shaft hole is implemented.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或N个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or N of the embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“N个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In the description of the present application, "N" means at least two, such as two, three, etc., unless otherwise expressly and specifically defined.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更N个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in the flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or N more executable instructions for implementing custom logical functions or steps of the process , and the scope of the preferred embodiments of the present application includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present application belong.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,N个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of this application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the N steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented by any one of the following techniques known in the art, or a combination thereof: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, Programmable Gate Arrays (PGA), Field Programmable Gate Arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the program is stored in a computer-readable storage medium. When executed, one or a combination of the steps of the method embodiment is included.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210266335.2A CN114782315B (en) | 2022-03-17 | 2022-03-17 | Shaft hole assembly pose precision detection method, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210266335.2A CN114782315B (en) | 2022-03-17 | 2022-03-17 | Shaft hole assembly pose precision detection method, device, equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114782315A true CN114782315A (en) | 2022-07-22 |
| CN114782315B CN114782315B (en) | 2024-07-09 |
Family
ID=82424372
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210266335.2A Active CN114782315B (en) | 2022-03-17 | 2022-03-17 | Shaft hole assembly pose precision detection method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114782315B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115451817A (en) * | 2022-09-23 | 2022-12-09 | 中联重科股份有限公司 | Method, processor, device and storage medium for detecting mechanical structure parameters |
| CN118089598A (en) * | 2024-04-17 | 2024-05-28 | 四川吉埃智能科技有限公司 | Pipeline lengthening method, device, equipment and medium based on three-dimensional detection |
| CN120232361A (en) * | 2025-05-29 | 2025-07-01 | 中铁长江交通设计集团有限公司 | A method and device for detecting deformation of a navigation tunnel |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111027010A (en) * | 2019-11-14 | 2020-04-17 | 武汉天恒信息技术有限公司 | Steel member cylinder fitting algorithm |
| WO2021212844A1 (en) * | 2020-04-21 | 2021-10-28 | 广东博智林机器人有限公司 | Point cloud stitching method and apparatus, and device and storage device |
| CN114018155A (en) * | 2021-11-19 | 2022-02-08 | 上海交通大学 | Method and system for detection of contour accuracy of chemical milling laser engraving |
-
2022
- 2022-03-17 CN CN202210266335.2A patent/CN114782315B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111027010A (en) * | 2019-11-14 | 2020-04-17 | 武汉天恒信息技术有限公司 | Steel member cylinder fitting algorithm |
| WO2021212844A1 (en) * | 2020-04-21 | 2021-10-28 | 广东博智林机器人有限公司 | Point cloud stitching method and apparatus, and device and storage device |
| CN114018155A (en) * | 2021-11-19 | 2022-02-08 | 上海交通大学 | Method and system for detection of contour accuracy of chemical milling laser engraving |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115451817A (en) * | 2022-09-23 | 2022-12-09 | 中联重科股份有限公司 | Method, processor, device and storage medium for detecting mechanical structure parameters |
| CN118089598A (en) * | 2024-04-17 | 2024-05-28 | 四川吉埃智能科技有限公司 | Pipeline lengthening method, device, equipment and medium based on three-dimensional detection |
| CN120232361A (en) * | 2025-05-29 | 2025-07-01 | 中铁长江交通设计集团有限公司 | A method and device for detecting deformation of a navigation tunnel |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114782315B (en) | 2024-07-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114782315A (en) | Method, device, equipment and storage medium for detecting the accuracy of position and orientation of shaft hole assembly | |
| CN116402866B (en) | Point cloud-based part digital twin geometric modeling and error assessment method and system | |
| CN105737762B (en) | A kind of blade of aviation engine profile measurement method | |
| US10222492B2 (en) | Three-dimensional computed tomography gauge | |
| US7228254B2 (en) | Shape model generation method and shape model generation system | |
| CN104990501B (en) | A system parameter calibration method of a three-dimensional laser scanning device | |
| CN113758458B (en) | Surface shape measuring method of toric mirror | |
| CN111123242B (en) | Combined calibration method based on laser radar and camera and computer readable storage medium | |
| CN110573832B (en) | Machine vision system | |
| Zheng et al. | A primitive-based 3D reconstruction method for remanufacturing | |
| KR20250016256A (en) | Calibration method, device and electronic apparatus of external parameters of linear profilometer | |
| CN105184854B (en) | For the fast modeling method of underground space scanning element cloud performance data | |
| US20090083007A1 (en) | System, method, and computer program product for determining wall thickness in graphic model | |
| CN112365602B (en) | A 3D reconstruction error calculation method of pavement based on laser point cloud | |
| CN118411462A (en) | Special-shaped cavity component model reconstruction method based on laser and ultrasonic information fusion | |
| US7174236B2 (en) | Ultra-precise processing method and apparatus for inhomogeneous material | |
| Chen et al. | Fast registration of 3D point clouds with offset surfaces in precision grinding of free-form surfaces | |
| CN116125446A (en) | Calibration method and device of rotary driving type multi-line laser radar three-dimensional reconstruction device | |
| CN109191583A (en) | One kind being based on anisotropy MLS curved surface Accurate align method | |
| CN104574500B (en) | Threedimensional model generating means, threedimensional model generation method and program | |
| Rajagopal et al. | Assessment of circularity error using a selective data partition approach | |
| Petrò et al. | 3D identification of face and flank in micro-mills for automatic measurement of rake angle | |
| Khameneifar | Section-specific geometric error evaluation of airfoil blades based on digitized surface data | |
| Hermann et al. | Application of computational geometry in coordinate measurement | |
| TWI426406B (en) | Method for comparing and analyzing three-dimensional objects |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |