Device and method for scanning and reconstructing reference of slide rail based on distributed line structured light
Through distributed line structured light sensors and rapid positioning devices, the problem of low accuracy of slide rail detection in traditional methods is solved, efficient and accurate slide rail detection is achieved, and detection efficiency and measurement accuracy are improved.
Patent Information
- Application Number
- CN202211128609.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-09-16
AI Technical Summary
It is difficult to achieve accurate dimensional inspection of automobile slide rails with traditional methods, especially the low installation accuracy caused by the punching collapse of the reference hole and the manufacturing error of the positioning device, which limits the inspection accuracy.
A slide rail scanning and reconstruction datum device based on distributed line structured light is used. Through a rapid positioning device and multiple line structured light sensors, floating cone pins and magnets are used to achieve precise positioning and measurement of the slide rail, and the camera calibration plate or stereoscopic mark is used to achieve precise positioning and measurement. The target completes the unification of multi-sensor measurement coordinate systems and establishes a reference coordinate system to improve detection accuracy.
It achieves efficient and accurate detection of slide rails. Compared with traditional three-dimensional coordinate measuring machines, the efficiency is increased by more than 100 times, and the measurement repeatability and reproducibility are increased by more than 90%, ensuring the benchmark consistency of slide rail manufacturing and testing.
Smart Images

Figure CN115451867B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical sensor calibration, and in particular to a device and method for reconstructing a reference by scanning a slide rail based on distributed line structured light. Background Art
[0002] As the automation level of the current manufacturing industry continues to improve, the quality requirements for stamping parts are also gradually increasing. Practice has shown that accurately and quickly detecting whether the part size meets the requirements can greatly improve production efficiency. Therefore, non-contact measurement is increasingly valued by more and more companies. Using multiple line structured light sensors to scan stamping parts can not only quickly obtain the size parameters of the measured parts, but also has the advantage of high detection coverage.
[0003] Line structured light sensors use the principle of laser triangulation to identify the spatial position of the contour of line structured light projected on the part through the camera, thereby analyzing and demodulating the surface structure of the object. Multi-line structured light sensors use multiple line structured light sensors to measure different surfaces of parts and fuse the contours under the field of view of each line structured light sensor. A line structured light sensor can obtain a two-dimensional contour in a single measurement. Although the amount of data obtained is less than that of a surface structured light sensor, it is much larger than that of a point laser displacement sensor. It has a simple structure, low cost, fast measurement speed, and is easy to integrate with other motion coordinates. It is an ideal choice for achieving complete measurement of slender parts.
[0004] Automobile slide rails are typical slender parts. As the functions of automobile seats increase, they are increasingly dependent on electric long slide rails. The electronic control function of long slide rails has high requirements for machinery, so the requirements for its processing accuracy are also much higher. The installation position tolerance between the two relative slide rails is within the range of ±0.3mm, which puts higher requirements on the detection accuracy. After adopting the distributed linear structured light sensor detection system, the manufacturing error and low installation accuracy of the traditional positioning device limit the effective improvement of accuracy. On the other hand, since the stamping collapse of the slide rail reference hole often occurs, directly scanning the two reference holes and fitting the hole center and constructing the reference coordinate system has low accuracy and is sensitive to the placement and posture of the parts. The results are unstable, which makes it difficult to ensure the rail deviation detection accuracy of the slide rail within a large measurement length range. In addition, the traditional detection method is to use a three-coordinate measuring machine to establish a coordinate system on the surface of the part and use a probe to contact the surface of the part point by point, while recording the coordinates of the contact points. This contact measurement method is very inefficient and has limitations such as complex operation and cumbersome equipment maintenance. The cost of a single set of three-coordinate measuring machines is more than one million yuan, and the positioning accuracy is greatly affected by the environment.
[0005] Therefore, a method is needed to scan the slide rail using a line structured light sensor and reconstruct the correct reference coordinate system based on the obtained fused point cloud to achieve the alignment of the slide rail point cloud with the theoretical model. Summary of the invention
[0006] 1. Technical problems to be solved:
[0007] In response to the above technical problems, the present invention provides a device and method for scanning and reconstructing a reference for a slide rail based on distributed line structured light, and utilizes a low-cost dedicated rapid positioning device to make the distributed line structured light sensor a registration method for the measurement unit, so as to effectively solve the problem that the slide rail cannot obtain precise dimensions.
[0008] 2. Technical solution:
[0009] The device for reconstructing a reference based on a slide rail scanning of distributed line structured light comprises a rapid positioning device and a plurality of line structured light sensors, and is characterized in that: the number of the line structured light sensors is at least three, which are distributed in a ring shape and can generate a field of view on approximately the same vertical section; the rapid positioning device comprises a movable base, a column, a movable column, and a reference offset guide rail; the column and the reference offset guide rail are both fixedly mounted on the surface of the movable base; the extension direction of the reference offset guide rail is in the same straight line as the column; the movable column moves along the reference offset guide rail to realize that the upper surface of the column and the upper surface of the movable column move in the same horizontal plane; the square upper surfaces of the column and the movable column are both provided with vertically extending guide rails. Hole; a floating cone pin is provided in each guide hole, and the floating cone pin can move up and down along the guide hole under the control of its corresponding control handle; when the floating cone pin moves up to the highest position, it can be inserted into the reference hole of the slide rail component to be detected; when the floating cone pin moves down to the lowest position, a small ball slightly larger than the diameter of the guide hole can be placed above each guide hole; the center point of the reference hole and the center point of the small ball are both on the axis of the floating cone pin; the square upper surfaces of the column and the movable column are inlaid with fixed magnets; the fixed magnets can adsorb and fix the slide rail component to be detected on the upper surface of the column and the movable column, so that the movable base can drive the slide rail component to be detected to pass through the field of view for its positioning detection and reconstruction of the reference.
[0010] Furthermore, the surface of the movable base includes a linear guide rail and a slider sliding along the guide rail; the base is fixed to the upper surface of the slider; the slider slides along the guide rail under the drive of the movable motor or cylinder connected to it.
[0011] Furthermore, the line structured light sensors are respectively fixed to the top and left and right sides of the front end of the gantry to generate a field of view that is approximately the same vertical section; the slide rail component to be detected passes through the gantry during detection to achieve its passing through the field of view.
[0012] The method for reconstructing a reference by scanning a slide rail based on distributed line structured light comprises the following steps:
[0013] Step 1: Pull the movable column to the preset far-end limit position and lock it; the floating cone pin control handle locks the floating cone pins at the top of the two columns and moves them down to a retracted state, and then a small ball is placed on the guide holes of the floating cone pins respectively; the far-end limit position is the end of the reference offset guide rail;
[0014] Step 2: Reset the slider to the preset zero position on the guide rail surface, and then move the slider forward to allow the top line structured light sensor to scan and obtain the surface point clouds of the two standard objects; use the point clouds of the two standard objects to fit their center points and record the fixed center coordinates p1 (p 1x p 1y p 1z ) and the movable center coordinates p2(p 2x p 2y p 2z ); the preset zero position is the starting position of the ball scanning and the scanning of the test piece;
[0015] Step 3: Remove the ball and release the floating cone pin control handle to a movable state; loosen the locking structure of the movable column; adjust the movable column according to the position of the reference hole of the test piece, so that the two floating cone pins are respectively embedded in the corresponding two reference holes of the slide rail component to be tested, and the fixed magnet of the column fixes the slide rail component to be tested to prevent it from being ejected by the floating cone pin to generate additional degrees of freedom; fix and lock the movable column;
[0016] Step 4: Reset the slider to the preset zero position on the surface of the guide rail, and then move the slider forward to allow the distributed line structured light sensor to scan the shape of the object to be detected and obtain its entire point cloud; use a camera calibration plate or a three-dimensional target to unify the multi-sensor measurement coordinate system, and fuse all the point clouds scanned by the side line structured light sensors into the coordinate system of the top line structured light sensor to complete the preprocessing of the fused point cloud;
[0017] Step 5: Establish a detection reference coordinate system in the top line structured light sensor coordinate system, including: moving the length between the two reference holes of the slide rail to be tested backward along the line connecting the fixed center coordinate and the center coordinate to obtain the moved point P3; the moved point P3 and the fixed center point P1 on the fixed column are respectively used as the points directly above the two reference holes of the slide rail, that is, make parallel Z through point p1 L The straight line p1-Z of the axis L , draw a parallel Z through point p3 L The straight line p3-Z of the axis L ; p1-Z L 、p3-Z L As the central axis, two cylindrical neighborhoods are generated; point clouds are extracted from the two generated cylindrical areas on the bottom surface of the slide rail; the plane fitted by the point clouds of the two cylindrical neighborhoods is used as the X coordinate of the reference coordinate system D Y DPlane; project the fixed center coordinates P1 and point P3 onto X D Y D On the plane; take the projection point of the fixed center coordinate as the origin of the reference coordinate system, and the direction of the line connecting the two projection points as the Y D Axis, X D Y D The plane normal is the Z D Axis, Y D Axis and Z D Axis cross product direction as X D Axis, thereby establishing a reference coordinate system; L It is the Z axis in the line structured light sensor.
[0018] Furthermore, step five is specifically as follows:
[0019] S51: Use the direction of the line connecting the fixed center coordinate and the movable center coordinate as the reference direction of the slide rail, then the fixed center coordinate p1 (p 1x p 1y p 1z ) and the movable center coordinates p2(p 2x p 2y p 2z ) Connection direction v 12 for:
[0020]
[0021] The distance between the two reference holes of the slide rail component to be tested is d, then the point above one of the reference holes is the fixed center coordinate p1 on the fixed column, and the coordinate of the other reference hole is p3, then
[0022]
[0023] S52: Draw straight lines p1-Z through point p1 and parallel to the z axis L , draw a straight line p3-Z through point p3 parallel to the z axis L , determine two cylindrical neighborhoods with the two straight lines as the central axis; any point in the point cloud is represented by The radius of the cylindrical neighborhood is r, then any point in the point cloud only satisfies formula (3) in the two cylindrical areas:
[0024]
[0025] S53: After denoising the point cloud that meets the requirements of formula (3), a plane is fitted using the least squares method as the X coordinate system of the reference coordinate system. D Y D Plane; project both point P1 and point P3 onto X D Y D On the plane, the projection points are p1'(p1'x p1' y p1' z ) and p3'(p' 3x p' 3y p' 3z );
[0026] The unit vector n in the direction of the line connecting the two projection points y As the reference coordinate system Y D Axis direction vector, then:
[0027]
[0028] Note X D Y D The plane normal vector is (n px n py n pz ) T , X D Y D The plane normal vector is used as the reference coordinate system Z D The unit direction vector n of the axis z ,but:
[0029] n z =(n px n py n pz ) T (5)
[0030] Then the reference coordinate system X D Axis unit direction vector n x By Y D Axis and Z D The axis cross product is:
[0031] n x =n y ×n z =(n x1 n x2 n x3 ) T (6)
[0032] Taking the projection sphere center point p1' as the origin of the reference coordinate system, the translation t from the top line structured light sensor coordinate system to the reference coordinate system is:
[0033] t=(-p1' x -p1' y -p1' z ) T (7)
[0034] Then, by n x 、n y 、n z, and the translation vector t construct the rotation and translation matrix from the top line structured light sensor coordinate system to the reference coordinate system Right now:
[0035]
[0036] Note that any point in the point cloud after conversion to the reference is Then convert any point cloud point in the top line structured light sensor coordinate system to the reference coordinate system, that is:
[0037]
[0038] Thus, a point cloud of the slide rail component to be detected in the reference coordinate system is obtained; the point cloud of the slide rail component to be detected in the reference coordinate system is used for subsequent detection of the slide rail contour, straightness, and symmetry characteristics.
[0039] 3. Beneficial effects:
[0040] (1) The device for scanning and reconstructing the reference of the slide rail based on distributed line structured light in the present invention adopts a distributed line structured light sensor as a measuring device to realize the shape scanning of the slide rail component to be inspected; a combination of a fixed column and a movable column is adopted in the positioning device, so that it can be suitable for the reference hole of the slide rail with any reference length; during the measurement, the slide rail component to be inspected is limited by the floating cone pin, and the bottom surface of the slide rail is attracted by the magnet on the top surface of the column so that it fits tightly with the top surface of the column. Therefore, under the premise of meeting the detection accuracy requirements, the efficiency is improved by more than 100 times compared with the traditional three-dimensional coordinate measuring machine detection method, so that the slide rail component to be inspected can be transformed from a random inspection mode to a large-scale batch inspection or even a full inspection.
[0041] (2) The device for scanning and reconstructing the reference of the slide rail based on distributed line structured light in the present invention can change the fixed length of the slide rail according to the different distances between the reference holes of the slide rail. It is highly flexible and saves the operator's time in replacing the positioning device during use, thereby improving the production efficiency of the enterprise.
[0042] (3) In the method of constructing the reference coordinate system of the present invention, by correcting the placement error of the slide rail component to be inspected fixed on the rapid positioning device, and the rotation and translation misalignment between the camera coordinate system and the reference coordinate system in the slide rail model, the slide rail scanning point cloud is accurately positioned to the theoretical model in the form of a reference of one side and two holes, which is conducive to more accurate analysis of the slide rail manufacturing deviation. Compared with the commonly used point cloud-model optimal matching positioning, it ensures the consistency of the references of each link of slide rail manufacturing-inspection-assembly-final inspection.
[0043] (4) This method also aims at the problem of the collapsed edge of the reference hole of the slide rail that often occurs in production activities. In the prior art, two reference holes are directly scanned, the hole centers are fitted, and a reference coordinate system is constructed. This method has low accuracy and is sensitive to the placement and posture of parts, resulting in unstable results. The present invention proposes a reference construction method in which the center of a sphere is fitted and projected onto a reference plane, which effectively solves the above problem. The implementation of measurement system analysis (MSA) shows that the measurement repeatability and reproducibility are improved by more than 90%. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 The overall schematic diagram of the device for reconstructing the reference by scanning the slide rail based on distributed line structured light;
[0045] Figure 2 It is a specific schematic diagram of the rapid positioning device in the present invention;
[0046] Figure 3 A schematic diagram for constructing the detection benchmark of the present invention;
[0047] Figure 4 It is a specific flow chart of scanning the shape of the slide rail in the present invention. DETAILED DESCRIPTION
[0048] The present invention will be described in detail below with reference to the accompanying drawings.
[0049] The device for reconstructing a reference based on a slide rail scanning of distributed line structured light comprises a rapid positioning device and a plurality of line structured light sensors 1, characterized in that: the number of the line structured light sensors is at least three, which are distributed in a ring shape and can generate a field of view 3 on approximately the same vertical section; the rapid positioning device comprises a movable base 5, a column 9, a movable column 11, and a reference offset guide rail 10; the column 9 and the reference offset guide rail are both fixedly mounted on the surface of the movable base 12; the extension direction of the reference offset guide rail is in the same straight line as the column; the movable column moves along the reference offset guide rail so that the upper surface of the column and the upper surface of the movable column move in the same horizontal plane; the square upper surfaces of the column and the movable column are both provided with vertically extending Guide hole; a floating cone pin is provided in each of the guide holes, and the floating cone pin 8 can be moved up and down along the guide hole under the control of its corresponding control handle 14; when the floating cone pin moves up to the highest position, it can be inserted into the reference hole of the slide rail component to be detected; when the floating cone pin moves down to the lowest position, a small ball 13 slightly larger than the diameter of the guide hole can be placed above each guide hole; the center point of the reference hole and the center point of the small ball are both on the axis of the floating cone pin; the square upper surfaces of the column and the movable column are inlaid with fixed magnets 15; the fixed magnet can adsorb and fix the slide rail component to be detected on the upper surface of the column and the movable column, so that the movable base can drive the slide rail component 4 to be detected to pass through the field of view to perform its positioning detection and reconstruction of the reference.
[0050] Furthermore, the surface of the movable base includes a linear guide rail 6 and a slider sliding along the guide rail; the base is fixed to the upper surface of the slider; the slider slides along the guide rail under the drive of the mobile motor or cylinder connected to it.
[0051] Furthermore, the line structured light sensors are respectively fixed to the top and left and right sides of the front end of the gantry 2 to generate a field of view that is approximately the same vertical section; the slide rail component to be detected passes through the gantry during detection to achieve its passing through the field of view.
[0052] The method for reconstructing a reference by scanning a slide rail based on distributed line structured light comprises the following steps:
[0053] Step 1: Pull the movable column to the preset far-end limit position and lock it; the floating cone pin control handle locks the floating cone pins at the top of the two columns and moves them down to a retracted state, and then a small ball is placed on the guide holes of the floating cone pins respectively; the far-end limit position is the end of the reference offset guide rail;
[0054] Step 2: Reset the slider to the preset zero position on the guide rail surface, and then move the slider forward to allow the top line structured light sensor to scan and obtain the surface point clouds of the two standard objects; use the point clouds of the two standard objects to fit their center points and record the fixed center coordinates p1 (p 1x p 1y p 1z ) and the movable center coordinates p2(p 2x p 2y p 2z ); the preset zero position is the starting position of the ball scanning and the scanning of the test piece;
[0055] Step 3: Remove the ball and release the floating cone pin control handle to a movable state; loosen the locking structure of the movable column; adjust the movable column according to the position of the reference hole of the test piece, so that the two floating cone pins are respectively embedded in the corresponding two reference holes of the slide rail component to be tested, and the fixed magnet of the column fixes the slide rail component to be tested to prevent it from being ejected by the floating cone pin to generate additional degrees of freedom; fix and lock the movable column;
[0056] Step 4: Reset the slider to the preset zero position on the surface of the guide rail, and then move the slider forward to allow the distributed line structured light sensor to scan the shape of the object to be detected and obtain its entire point cloud; use a camera calibration plate or a three-dimensional target to unify the multi-sensor measurement coordinate system, and fuse all the point clouds scanned by the side line structured light sensors into the coordinate system of the top line structured light sensor to complete the preprocessing of the fused point cloud;
[0057] Step 5: Establish a detection reference coordinate system in the top line structured light sensor coordinate system, including: moving the length between the two reference holes of the slide rail to be tested backward along the line connecting the fixed center coordinate and the center coordinate to obtain the moved point P3; the moved point P3 and the fixed center point P1 on the fixed column are respectively used as the points directly above the two reference holes of the slide rail, that is, make parallel Z through point p1 L The straight line p1-Z of the axis L , draw a parallel Z through point p3 L The straight line p3-Z of the axis L ; p1-Z L 、p3-Z L As the central axis, two cylindrical neighborhoods are generated; point clouds are extracted from the two generated cylindrical areas on the bottom surface of the slide rail; the plane fitted by the point clouds of the two cylindrical neighborhoods is used as the X coordinate of the reference coordinate system D Y D Plane; project the fixed center coordinates P1 and point P3 onto X D Y D On the plane; take the projection point of the fixed center coordinate as the origin of the reference coordinate system, and the direction of the line connecting the two projection points as the Y D Axis, X D Y D The plane normal is the Z D Axis, Y D Axis and Z D Axis cross product direction as X D Axis, thereby establishing a reference coordinate system; L It is the Z axis in the line structured light sensor.
[0058] Furthermore, step five is specifically as follows:
[0059] S51: Use the direction of the line connecting the fixed center coordinate and the movable center coordinate as the reference direction of the slide rail, then the fixed center coordinate p1 (p 1x p 1y p 1z ) and the movable center coordinates p2(p 2x p 2y p 2z ) Connection direction v 12 for:
[0060]
[0061] The distance between the two reference holes of the slide rail component to be tested is d, then the point above one of the reference holes is the fixed center coordinate p1 on the fixed column, and the coordinate of the other reference hole is p3, then
[0062]
[0063] S52: Draw straight lines p1-Z through point p1 and parallel to the z axis L , draw a straight line p3-Z through point p3 parallel to the z axis L , determine two cylindrical neighborhoods with the two straight lines as the central axis; any point in the point cloud is represented by The radius of the cylindrical neighborhood is r, then any point in the point cloud only satisfies formula (3) in the two cylindrical areas:
[0064]
[0065] S53: After denoising the point cloud that meets the requirements of formula (3), a plane is fitted using the least squares method as the X coordinate system of the reference coordinate system. D Y D Plane; project both point P1 and point P3 onto X D Y D On the plane, the projection points are p1'(p1' x p1' y p1' z ) and p3'(p' 3x p' 3y p' 3z );
[0066] The unit vector n in the direction of the line connecting the two projection points y As the reference coordinate system Y D Axis direction vector, then:
[0067]
[0068] Note X D Y D The plane normal vector is (n px n py n pz ) T , X D Y D The plane normal vector is used as the reference coordinate system Z D The unit direction vector n of the axis z ,but:
[0069] n z =(n px n py n pz ) T (5)
[0070] Then the reference coordinate system X D Axis unit direction vector n x By Y D Axis and Z D The axis cross product is:
[0071] nx =n y ×n z =(n x1 n x2 n x3 ) T (6)
[0072] Taking the projection sphere center point p1' as the origin of the reference coordinate system, the translation t from the top line structured light sensor coordinate system to the reference coordinate system is:
[0073] t=(-p1' x -p1' y -p1' z ) T (7)
[0074] Then, by n x 、n y 、n z , and the translation vector t construct the rotation and translation matrix from the top line structured light sensor coordinate system to the reference coordinate system Right now:
[0075]
[0076] Note that any point in the point cloud after conversion to the reference is Then convert any point cloud point in the top line structured light sensor coordinate system to the reference coordinate system, that is:
[0077]
[0078] Thus, a point cloud of the slide rail component to be detected in the reference coordinate system is obtained; the point cloud of the slide rail component to be detected in the reference coordinate system is used for subsequent detection of the slide rail contour, straightness, and symmetry characteristics. Specific embodiment:
[0080] Attached Figure 1 The figure shows a schematic diagram of the structure of a device for reconstructing a reference based on a slide rail scanning based on distributed line structured light. The line structured light sensor 1 arranged in a ring is installed on one side of the gantry 2; a slider 7 is installed on the linear guide rail 6, which can move forward and backward from a fixed starting point along the linear guide rail 6. The rapid positioning device 5 is installed on the slider 7, and the two are fixed by bolts; the top surfaces of the two columns on the rapid positioning device 5 are installed with floating cone pins 8, which can be used as positioning pins for positioning the reference hole of the slide rail component 8, and can also be sunk as a groove for limiting the small ball 13. When the slider 7 drives the rapid positioning device 5 to move, if the slide rail component 4 to be detected passes through the field of view 3 of the line structured light sensor 1, the cross-sectional profile of the slide rail component 4 to be detected at this time can be obtained.
[0081] The rapid positioning device is Figure 2As shown, it includes a base 12 and a column 9 and a movable column 11 installed thereon, wherein the movable column 11 can move forward and backward along the direction of the reference offset guide rail 10, and the reference offset guide rail 10 is equipped with limiting devices at the front and back to prevent the movable column 11 from sliding out of the reference offset guide rail. A floating cone pin 8 for fixing the reference hole of the slide rail is installed at the center of the top of each column 9 and the movable column 11, and four magnets 15 are installed around the top to attract the fixed slide rail to prevent the slide rail from moving. When the small ball 13 is used to determine the axial direction of the quick positioning device, the floating cone pin 8 can be fixed inside the base as the floating cone pin control handle 14 is pressed, so that the small ball 13 is installed and is not ejected by the floating cone pin 8. After the slide rail component 4 to be detected is installed on the quick positioning device 5, the rotatable locking device 16 fixes the movable column 11 on the reference offset guide rail 10.
[0082] like Figure 3 and Figure 4 The flowchart is constructed for the specific detection benchmark; the invention uses the line connecting the center points of the two small balls to replace the length direction of the quick positioning device, ensuring that the benchmark accuracy is not affected by the installation error. Since the center point of the reference hole and the center point of the ball are both on the axis of the floating cone pin when the slide rail is installed, the line connecting the reference holes is also parallel to the line connecting the center points of the ball, so the direction of the guide rail benchmark offset is also obtained at the same time.
[0083] This method uses the line connecting two projection points to replace the Y D axis, using the datum plane (X D Y D plane) as the normal vector of Z D Axis, use Y D Axis and Z D Axis cross product as X D Axis is used to establish a reference coordinate system to correct the point cloud transformation from the top line structured light sensor coordinate system to the reference.
[0084] The device adopts a combination of fixed columns 9 and movable columns 11, so that it can fit the reference hole of the slide rail with any reference length. After the slide rail component 4 to be detected is limited by the floating cone pin 8, the magnet 15 on the top surface of the column attracts the bottom surface of the slide rail so that it fits tightly with the top surface of the column. The floating cone pin 8 is controlled by the floating cone pin control handle 14 to control its telescopic length. If necessary, the floating cone pin control handle 14 can be pressed to the bottom to lock it so that the floating cone pin 8 is completely in the column.
[0085] Although the present invention has been disclosed as above in terms of preferred embodiments, they are not intended to limit the present invention. Anyone skilled in the art can make various changes or modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection defined by the claims of this application.
Claims
1. A device for scanning and reconstructing a reference of a slide rail based on distributed line structured light, comprising a rapid positioning device and a plurality of line structured light sensors, characterized in that: There are at least three linear structured light sensors, which are distributed in a ring shape and can generate a field of view on the same vertical section; the rapid positioning device includes a movable base, a column, a movable column, and a reference offset guide rail; the column and the reference offset guide rail are fixedly installed on the surface of the movable base; the extension direction of the reference offset guide rail is in the same straight line as the column; the movable column moves along the reference offset guide rail to achieve the upper surface of the column and the upper surface of the movable column moving in the same horizontal plane; the square upper surfaces of the column and the movable column are both provided with vertically extending guide holes; the guide holes are both provided with floating cone pins, and the floating cone pins are located at their corresponding The control handle is controlled to realize up and down movement along the guide hole; when the floating cone pin moves up to the highest position, it can be inserted into the reference hole of the slide rail component to be detected; when the floating cone pin moves down to the lowest position, a small ball slightly larger than the diameter of the guide hole can be placed above each guide hole; the center point of the reference hole and the center point of the small ball are both on the axis of the floating cone pin; the square upper surfaces of the column and the movable column are inlaid with fixed magnets; the fixed magnets can adsorb and fix the slide rail component to be detected on the upper surface of the column and the movable column, so that the movable base can drive the slide rail component to be detected to pass through the field of view to perform its positioning detection and reconstruction of the reference; The movable base includes a linear guide rail and a slider sliding along the guide rail; the base is fixed to the upper surface of the slider; the slider slides along the guide rail under the drive of the movable motor or cylinder connected to it; The line structured light sensors are respectively fixed to the top of the front end of the gantry and the left and right sides to realize the generation of a field of view of the same vertical section; the slide rail component to be detected passes through the gantry during detection to realize its passing through the field of view.
2. A method for reconstructing a reference based on a slide rail scanning using distributed line structured light, using the device for reconstructing a reference based on a slide rail scanning using distributed line structured light as claimed in claim 1 to reconstruct reference coordinates; characterized in that: The following steps are involved: Step 1: Pull the movable column to the preset far-end limit position and lock it; the floating cone pin control handle locks the floating cone pins at the top of the two columns and moves them down to a retracted state, and then a small ball is placed on the guide holes of the floating cone pins respectively; the far-end limit position is the end of the reference offset guide rail; Step 2: Reset the slider to the preset zero position on the guide rail surface, and then move the slider forward to allow the top line structured light sensor to scan and obtain the surface point clouds of the two balls; use the point clouds of the two balls to fit their center points and record the fixed center coordinates p1 (p 1x p 1y p 1z ) and the movable center coordinates p2(p 2x p 2y p 2z ); the preset zero position is the starting position for scanning the ball and the scanning of the slide rail component to be detected; Step 3: Remove the ball and release the floating cone pin control handle to a movable state; loosen the locking structure of the movable column; adjust the movable column according to the position of the reference hole of the slide rail component to be detected, so that the two floating cone pins are respectively embedded in the corresponding two reference holes of the slide rail component to be detected, and the fixed magnet of the movable column fixes the slide rail component to be detected to prevent it from being ejected by the floating cone pin to generate additional degrees of freedom; fix and lock the movable column; Step 4: Reset the slider to the preset zero position on the surface of the guide rail, and then move the slider forward to allow the distributed line structured light sensor to scan the shape of the slide rail component to be detected, and obtain its entire point cloud; use the camera calibration plate or stereo target to complete the unification of the multi-sensor measurement coordinate system, and fuse all the point clouds scanned by the side line structured light sensors into the coordinate system of the top line structured light sensor to complete the preprocessing of the fused point cloud; Step 5: Establishing a detection reference coordinate system in the top line structured light sensor coordinate system, including: moving the length between the two reference holes of the slide rail component to be detected in the backward direction along the line connecting the fixed center coordinate and the center coordinate to obtain the moved point P3; The point P3 after the movement and the fixed center coordinate p1 on the column are respectively used as the points directly above the two reference holes of the slide rail, that is, parallel Z is drawn through point p1. L The straight line p1-Z of the axis L , draw a parallel Z through point P3 L The straight line p3-Z of the axis L ; p1-Z L 、p3-Z L As the central axis, two cylindrical neighborhoods are generated; point clouds are extracted from the two generated cylindrical neighborhoods on the bottom surface of the slide rail respectively; the plane fitted by the point clouds of the two cylindrical neighborhoods is used as the X coordinate of the reference coordinate system D Y D Plane; project the fixed center coordinates p1 and point P3 onto X D Y D On the plane; take the projection point of the fixed center coordinate as the origin of the reference coordinate system, and the direction of the line connecting the two projection points as the Y D Axis, X D Y D The plane normal is the Z D Axis, Y D Axis and Z D Axis cross product direction as X D Axis, thereby establishing a reference coordinate system; L It is the Z axis in the line structured light sensor.
3. The method for reconstructing a reference by scanning a slide rail based on distributed line structured light according to claim 2, characterized in that: Step 5 is as follows: S51: Use the direction of the line connecting the fixed center coordinate and the movable center coordinate as the reference direction of the slide rail, then the fixed center coordinate p1 (p 1x p 1y p 1z ) and the movable center coordinates p2(p 2x p 2y p 2z ) Connection direction v 12 for: The distance between the two reference holes of the slide rail component to be tested is d, then the point above one of the reference holes is the fixed center coordinate p1 on the column, and the coordinate of the other reference hole is p3, then S52: Draw straight lines p1-Z parallel to the z axis through the fixed center coordinate p1 L , draw a straight line p3-Z through point p3 parallel to the z axis L , determine two cylindrical neighborhoods with the two straight lines as the central axis; any point in the point cloud is represented by The radius of the cylindrical neighborhood is r, then any point in the point cloud only satisfies equation (3) in the two cylindrical neighborhoods: S53: After denoising the point cloud that meets the requirements of formula (3), a plane is fitted using the least squares method as the X coordinate system of the reference coordinate system. D Y D Plane; project the fixed center coordinates p1 and point P3 onto X D Y D On the plane, the projection points are p1'(p1' x p1' y p1' z ) and p3'(p' 3x p' 3y p' 3z ); The unit vector n in the direction of the line connecting the two projection points y As the reference coordinate system Y D Axis direction vector, then: Note X D Y D The plane normal vector is (n px n py n pz ) T , X D Y D The plane normal vector is used as the reference coordinate system Z D The unit direction vector n of the axis z ,but: n z =(n px n py n pz ) T (5) Then the reference coordinate system X D Axis unit direction vector n x By Y D Axis and Z D The axis cross product is: n x =n y ×n z =(n x1 n x2 n x3 ) T (6) Taking the projection point p1' as the origin of the reference coordinate system, the translation t from the top line structured light sensor coordinate system to the reference coordinate system is: t=(-p1' x -p1' y -p1' z ) T (7) Then, by n x 、n y 、n z The translation vector t constructs the rotation and translation matrix from the top line structured light sensor coordinate system to the reference coordinate system Right now: Note that any point in the point cloud after conversion to the reference is Then convert any point cloud point in the top line structured light sensor coordinate system to the reference coordinate system, that is: Thus, a point cloud of the slide rail component to be detected in the reference coordinate system is obtained; the point cloud of the slide rail component to be detected in the reference coordinate system is used for subsequent detection of the slide rail contour, straightness, and symmetry characteristics.
