Three-dimensional laser radar shafting error calibration method
By capturing the 3D lidar motion trajectory with a CMOS camera and using the particle swarm algorithm to optimize the axis system deviation, the problem of complex and high-cost error calibration of the 3D lidar is solved, and high-precision point cloud data calibration and accuracy improvement are achieved.
Patent Information
- Application Number
- CN202410963640.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-11
AI Technical Summary
Due to the axis system error and wear problems caused by long-term use of 3D lidar, the measurement accuracy is reduced. The existing error calibration method is complex, costly and time-consuming.
A CMOS camera is used to capture the motion trajectory of the three-dimensional lidar emission, and the basic particle swarm algorithm is used to optimize the internal axis system deviation of the lidar and the axis system deviation of the horizontal turntable, build an axis system deviation model, and realize the calibration of point cloud data.
It realizes the optimization of point cloud data, is simple and low-cost, improves the measurement accuracy, and achieves the effect of high point cloud accuracy and smooth surface.
Smart Images

Figure CN118759502A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an error calibration method, and in particular to a three-dimensional laser radar axis system error calibration method. Background Art
[0002] Due to long-term use, there are deviations and wear between the 3D laser radar and the built-in turntable parts, which causes the horizontal and vertical axes of the 3D laser radar to change when it is working, resulting in deviations in the point cloud data obtained when the 3D laser radar measures the same object at the same measurement angle. Therefore, the 3D laser radar must be calibrated before the geometric model is established, and solving the system errors of the 3D laser radar and the wear problems after long-term use, and improving the accuracy of the laser radar scanning are the main tasks of laser radar calibration. At present, the error calibration method of laser radar is to scan the high-precision specific structure calibration parts through laser radar, fit the data using the least squares method, establish a geometric trigonometric function relationship, establish a linear equation group, linearly solve the parameters to be calibrated, obtain the internal and external parameters of the laser radar, and improve the measurement accuracy of the laser radar. The existing technical problems are that the laser radar needs to scan specially designed targets, collect redundant data, the calibration process is complicated, the actual measurement calculation is cumbersome, the technical cost is high, and it takes a long time. Summary of the invention
[0003] Purpose of the invention: The purpose of the present invention is to provide a simple and low-cost three-dimensional laser radar axis error calibration method to address the deviation and wear problems between the three-dimensional laser radar and the built-in turntable parts due to long-term use, reduce the influence of the axis error, and achieve calibration optimization of point cloud data.
[0004] Technical solution: The three-dimensional laser radar axis error calibration method of the present invention comprises:
[0005] (1) Place the 3D laser radar on a horizontal platform and establish the laser radar system coordinate system o-xyz, where the origin o is the center of the reflection surface of the rotating reflector, the y-axis is along the axis of the rotating reflector, and the x-axis and z-axis are determined according to the vertical relationship;
[0006] (2) A horizontal observation board is set above the 3D laser radar, and a CMOS camera is set on the x-axis of the laser radar system coordinate system to face the observation board. Photos are taken in a dark environment. The laser radar is configured to send a pulse signal to trigger the CMOS camera to take photos synchronously. The laser radar horizontal turntable starts to rotate slowly at a constant speed with an azimuth angle of 0° as the initial position, and the pitch angle rotates rapidly for one circle between 0° and 360° to collect data. After the pitch angle rotates for one circle, it starts to rotate rapidly again at 0°. When the azimuth angle reaches the maximum, the photo taking is stopped to complete the data collection.
[0007] (3) extracting a number of single-frame images at the same frame interval, obtaining laser irradiation points within a certain pitch angle range, and obtaining a laser irradiation trajectory map; obtaining laser irradiation points within the same pitch angle range at a certain azimuth angle interval in the same manner, and obtaining multiple laser irradiation trajectory maps; obtaining a laser irradiation trajectory integrated map based on the multiple laser irradiation trajectory maps;
[0008] (4) Establish a horizontal turntable coordinate system with the same coordinate axis direction as the laser radar system coordinate system at the center of the connection between the laser radar main body and the horizontal turntable; determine the axis offset of the laser radar system coordinate system caused by the internal axis error of the laser radar scanner, and the axis offset of the horizontal turntable coordinate system caused by the axis error at the connection between the laser radar main body and the horizontal turntable;
[0009] (5) The coordinates of the laser point irradiated to the observation plate under the theoretical state are obtained by the axis offset of the laser radar system coordinate system and the axis offset of the horizontal turntable coordinate system to obtain the offset laser point coordinates; the offset laser point coordinates are converted into the pixel coordinate system of the camera to obtain a laser trajectory pixel map;
[0010] (6) The grayscale difference between each pixel in the laser trajectory pixel map and the laser irradiation trajectory integrated map is calculated to obtain the fitness function. The optimal axis deviation inside the laser radar scanner and the axis deviation of the laser radar horizontal turntable are determined through the basic particle swarm algorithm. The axis deviation is added to the point cloud data for calibration to achieve point cloud data optimization.
[0011] Furthermore, in step (2), the observation board is made of a white Kodak board and is placed on a height-adjustable bracket, and the height of the observation board is adjusted so that the entire observation board is within the field of view of the CMOS camera.
[0012] Furthermore, the three-dimensional laser radar uses a laser with a wavelength of 905nm, and the camera uses a near-infrared CMOS camera with a spectral range of 400nm to 1100nm.
[0013] Furthermore, in step (3), several single-frame images are grayed out, and according to the grayscale difference between the laser-irradiated area and the non-laser-irradiated area on the image, the grayscale values of the pixel positions corresponding to the laser-irradiated points are extracted and put into a new image with a grayscale of 0 in the order of the lidar photos taken by the camera, so as to obtain a laser irradiation trajectory map at the corresponding azimuth angle; the grayscale values of the pixel positions where the laser trajectory is located in each laser irradiation trajectory map are extracted into a grayscale of 0 image, so as to obtain an integrated laser irradiation trajectory map.
[0014] Furthermore, in step (3), the azimuth angle interval needs to ensure that the captured laser irradiation trajectory is clear.
[0015] Furthermore, step (4) includes: the relationship between the point coordinates (x′, y′, z′) after the internal axis system of the laser radar scanner is offset and the laser radar coordinates (x, y, z) in the ideal state is as shown in formula (1):
[0016]
[0017] Among them, ε x , ε y , ε z is the position error inside the 3D laser radar, R zyx (θ) is the offset matrix of the laser radar system coordinate system, R zyx (θ) = R z (θ z )·R y (θ y )·R x (θ x );
[0018]
[0019] Among them, R x (θ x ) is the x-axis offset matrix of the laser radar system coordinate system, θ x is the offset angle around the x-axis of the laser radar system coordinate system; R y (θ y ) is the y-axis offset matrix of the laser radar system coordinate system, θ y is the offset angle around the y-axis of the laser radar system coordinate system; R z (θ z ) is the z-axis offset matrix of the laser radar system coordinate system, θ z is the offset angle around the z-axis of the laser radar system coordinate system.
[0020] Furthermore, step (4) further includes: mapping the point coordinates (x′, y′, z′) after the internal axis system of the laser radar scanner is offset into the horizontal turntable coordinate system, then performing point transformation of the horizontal turntable coordinate system offset, and finally mapping back to the laser radar system coordinate system;
[0021] The point (x", y", z") after the horizontal turntable coordinate system offset transformation is:
[0022]
[0023] Where [a, b, c] is the translation matrix that maps the point coordinates (x′, y′, z′) after the internal axis system of the lidar scanner is offset into the horizontal turntable coordinate system, ε x′ , ε y′ , ε z′ is the position error of the 3D laser radar horizontal turntable, Rz′y′x′ (θ) is the offset matrix of the horizontal turntable coordinate system, R z′y′x′ (θ) = R z′ (θ z′ )·R y′ (θ y′ )·R x′ (θ x′ );
[0024]
[0025] Among them, R x′ (θ x′ ) is the x-axis offset matrix of the horizontal turntable coordinate system, θ x′ is the offset angle around the x-axis of the horizontal turntable coordinate system; R y′ (θ y′ ) is the y-axis offset matrix of the horizontal turntable coordinate system, θ y′ is the offset angle around the y-axis of the horizontal turntable coordinate system; R z′ (θ z′ ) is the z-axis offset matrix of the horizontal turntable coordinate system, θ z′ is the offset angle around the z-axis of the horizontal turntable coordinate system;
[0026] The point coordinates (x", y", z") are rotated by the laser radar horizontal turntable. The coordinates after
[0027]
[0028] in, Rotation around the z-axis of the laser radar system coordinate system The rotation matrix of .
[0029] Further, step (5) includes: setting the azimuth angle to be the same as the azimuth angle of the first track in the laser irradiation track integration diagram, and the laser point with the same pitch angle range, and obtaining the laser radar offset track under the azimuth angle after the laser radar system coordinate system axis system offset transformation and the laser radar horizontal turntable axis system offset transformation; in order to correspond to the laser radar track integration diagram taken by the camera, the laser radar offset track is rotated multiple times at the same azimuth interval angle and the offset position of each time is recorded;
[0030] The laser radar trajectory image after the laser radar system coordinate system axis offset transformation is converted into the camera pixel coordinate system through the camera internal and external parameters to obtain the laser trajectory pixel image after the laser radar axis offset. The relationship with the camera's pixel (u, v) coordinate system is shown in equation (6):
[0031]
[0032] Among them, f x 、f y , u0, v0 are the intrinsic parameters of the camera, and R, T are the extrinsic parameters of the camera.
[0033] Furthermore, in step (5), when setting the laser point of the lidar laser irradiation at a certain pitch angle and azimuth angle, multiple laser points are set around the position according to the laser track width in the laser track image captured by the camera to match the laser track width captured by the camera.
[0034] Further, step (6) includes: setting the laser point gray value in the laser point pixel map after the laser radar axis system offset to 255, and the remaining gray values to 0, and using the basic particle swarm algorithm to optimize the laser radar axis system offset model;
[0035] The grayscale difference between each pixel of the laser trajectory pixel map after the axis offset of the laser radar system coordinate system and the axis offset of the horizontal turntable coordinate system and the integrated image of the laser irradiation trajectory taken by the camera is calculated to obtain the fitness function, as shown in formula (7):
[0036]
[0037] Among them, U is the horizontal resolution of the pixel image, V is the vertical resolution of the pixel image, is the gray value of the pixel where the laser track is located in the laser track pixel map after the laser radar axis system is offset, The gray value of the pixel where the laser track is located in the integrated image of the laser irradiation track captured by the camera;
[0038] Calculate the individual optimal value and group optimal value of the particle swarm to obtain a set of optimized θ x ,θ y ,θ z ,ε x ,ε y ,ε z ,θ x′ ,θ y′ ,θ z′ ,ε x′ ,ε y′ ,ε z′ , the obtained θ x ,θ y ,θ z is the angle offset of the laser radar system coordinate system, and the obtained ε x ,ε y ,ε z The mean is the position offset of the laser radar system coordinate system, and the obtained θ x′ ,θ y′ ,θ z′The mean is the angular offset of the laser radar horizontal turntable axis system, and the obtained ε x′ ,ε y′ ,ε z′ The mean value is the position offset of the laser radar horizontal turntable axis system;
[0039] θ x ,θ y ,θ z ,ε x ,ε y ,ε z ,θ x′ ,θ y′ ,θ z′ ,ε x′ ,ε y′ ,ε z′ The optimal estimate of is the axis deviation inside the laser radar scanner and the axis deviation of the laser radar horizontal turntable. By adding
[0040] θ x ,θ y ,θ z ,ε x ,ε y ,ε z ,θ x′ ,θ y′ ,θ z′ ,ε x′ ,ε y′ ,ε z′ The axis error is calibrated to optimize the point cloud data.
[0041] Beneficial effect: Compared with the prior art, the present invention has the following significant advantages: the present invention uses a CMOS camera to capture the motion trajectory of the laser emitted by the three-dimensional laser radar, constructs an axis deviation model by analyzing the axis deviation of the laser radar's internal scanner and the axis deviation of the laser radar's horizontal turntable, and optimizes the axis deviation model through a particle swarm algorithm, thereby achieving point cloud data optimization with simplicity and low cost, high point cloud accuracy, and a smooth point cloud surface. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flow chart of the 3D laser radar axis error calibration method;
[0043] Figure 2 It is a schematic diagram of the laser radar system coordinate system;
[0044] Figure 3 It is a schematic diagram of the internal structure of a 3D laser radar;
[0045] Figure 4 It is a schematic diagram of the laser radar laser irradiation trajectory;
[0046] Figure 5 (a) is the laser irradiation trajectory under ideal conditions. Figure 5 (b) is the laser irradiation trajectory after the axis system error occurs;
[0047] Figure 6 is the internal mirror tilt error of the 3D lidar, where Figure 6 (a) is the reflection of the internal reflector of the lidar under ideal conditions and the situation observed on the observation board. Figure 6 (b) and (c) of Figure 6 show the reflection of the laser radar rotating reflector after tilting and the situation observed on the observation board;
[0048] Figure 7 is the internal motor rotation error of the 3D lidar, where Figure 7 (a) is the detection range of the lidar under ideal conditions, Figure 7 (b) Figure 7 (c) is the laser radar detection range when the motor rotation centerline is offset;
[0049] Figure 8 This is a comparison chart before and after point cloud calibration. DETAILED DESCRIPTION
[0050] The present invention will be further described below in conjunction with the accompanying drawings.
[0051] like Figure 1 As shown, an embodiment of the present invention provides a three-dimensional laser radar axis error calibration method, comprising the following steps:
[0052] (1) Place the 3D laser radar on a horizontal platform and establish the laser radar system coordinate system o-xyz. Figure 2 and Figure 3 , the origin o is the center of the reflecting surface of the rotating reflector, the y-axis is along the axis of the rotating reflector, the x-axis is determined according to the horizontal vertical relationship, and the z-axis is determined according to the vertical vertical relationship.
[0053] (2) A horizontal observation board is set above the three-dimensional laser radar, and a CMOS camera is set on the x-axis of the laser radar system coordinate system to face the observation board. The camera is used to take pictures in a dark environment to reduce the impact of light on laser visibility. During the shooting process, in order to obtain a laser trajectory with clear position changes, the laser radar is configured to send a pulse signal to trigger the CMOS camera to take pictures synchronously. The laser radar horizontal turntable starts to rotate slowly and uniformly with an azimuth angle of 0° as the initial position, and the pitch angle is quickly rotated for one circle at 0° to 360° for data collection. Photos of the laser radar with a pitch angle of 120° to 240° are taken. After the pitch angle rotates for one circle, it starts to rotate quickly again at 0°. When the azimuth angle reaches the maximum, stop taking pictures and complete data collection. The maximum azimuth angle is determined by the specific three-dimensional laser radar. In this embodiment, the maximum azimuth angle is 200°. Figure 4 Shown is the captured laser irradiation trajectory.
[0054] In order to highlight the laser traces, the observation board in this embodiment uses a rectangular white Kodak board with a length of 100 cm and a width of 50 cm. The observation board is set on a height-adjustable bracket and placed directly above the laser radar. The center of the observation board is located on the z-axis of the laser radar system coordinate system. The three-dimensional laser radar uses a laser with a wavelength of 905nm, and the camera uses a near-infrared CMOS camera with a spectral range of 400nm to 1100nm.
[0055] The height h of the observation board is adjusted so that the observation board is completely within the field of view of the CMOS camera, while preventing the camera field of view from being blocked by the three-dimensional laser radar. The height h of the observation board is determined by the field of view angle of the camera. In this embodiment, the height h of the observation board is adjusted to 50 cm. The camera diagonal field of view angle is calculated to be 103° based on the internal parameters of the camera. When the camera is 50 cm away from the observation board, the observation board with a length of 100 cm and a width of 50 cm is within the camera's field of view, which is convenient for subsequent observation.
[0056] (3) extracting a number of single-frame laser trajectory images at the same frame interval, obtaining laser irradiation points within a certain pitch angle range, and obtaining a laser irradiation trajectory map; obtaining laser irradiation points within the same pitch angle range at a certain azimuth angle interval in the same manner, and obtaining multiple laser irradiation trajectory maps; obtaining a laser irradiation trajectory integrated map based on the multiple laser irradiation trajectory maps;
[0057] Several single-frame images are grayed out, and the images are extracted in the order of the laser radar photos taken by the camera according to the different grayscales of the laser irradiation and non-laser irradiation areas on the image. In the first cycle of the laser radar pitch angle rotation (i.e., one rotation), the laser irradiation point when the laser radar pitch angle is 120°~240° is first extracted, and the grayscale value of the pixel position is extracted and put into a new image with a grayscale of 0, and the laser irradiation trajectory when the laser radar pitch angle is 120°~240° under the azimuth angle is obtained. In order to observe the offset of the laser radar axis system, a laser irradiation trajectory map of the laser radar is extracted every 30° in the azimuth angle, and a total of 6 laser irradiation trajectory maps are extracted. The grayscale value of the pixel position where the laser trajectory is located in each laser irradiation trajectory map is extracted into a grayscale of 0. An integrated laser irradiation trajectory map is obtained, and the offset of the laser radar axis system can be observed through the integrated laser irradiation trajectory map.
[0058] It should be pointed out that the azimuth interval can also be other angles, such as 40°, as long as the captured laser irradiation trajectory is clear.
[0059] (4) Establish a horizontal turntable coordinate system with the same coordinate axis direction as the laser radar system coordinate system at the center of the connection between the laser radar main body and the horizontal turntable; determine the axis offset of the laser radar system coordinate system caused by the internal axis error of the laser radar scanner, and the axis offset of the horizontal turntable coordinate system caused by the axis error at the connection between the laser radar main body and the horizontal turntable;
[0060] The laser trajectory in the laser irradiation trajectory integration diagram is different from the laser trajectory in the theoretical state. The laser trajectory of the three-dimensional laser radar should intersect at one point in the theoretical state. Due to the wear and system error of the laser radar under long-term use, the axis deviation is generated, and it no longer intersects at one point in the laser irradiation trajectory integration diagram, such as Figure 5 As shown, Figure 5 (a) is the laser trajectory under ideal conditions. Figure 5 (b) is the laser trajectory after the axis error is amplified. The resulting axis error is as follows:
[0061] (4.1) The error between the rotating reflector and the laser source inside the lidar scanner is specifically expressed as:
[0062] 1) If Figure 6 As shown, the rotating reflector and the laser source are not on the same horizontal line, which will cause the laser radar irradiated laser to deviate from the original direction when it is reflected by the reflector, resulting in an axis error.
[0063] 2) If Figure 7 As shown, the rotation centerline of the rotating motor of the laser radar rotating reflector should be perpendicular to the horizontal ground. Errors may occur during long-term use, causing the rotation centerline to shift, resulting in changes in the laser radar detection range.
[0064] 3) Systematic errors inside the lidar scanner.
[0065] The relationship between the point coordinates (x′, y′, z′) after the internal axis system of the laser radar scanner is offset and the laser radar coordinates (x, y, z) under the ideal state is shown in formula (1):
[0066]
[0067] Among them, ε x , ε y , ε z is the position error inside the 3D laser radar, R zyx (θ) is the offset matrix of the laser radar system coordinate system, R zyx (θ) = R z (θ z )·R y (θ y )·R x (θ x);
[0068]
[0069] Among them, R x (θ x ) is the x-axis offset matrix of the laser radar system coordinate system, θ x is the offset angle around the x-axis of the laser radar system coordinate system; R y (θ y ) is the y-axis offset matrix of the laser radar system coordinate system, θ y is the offset angle around the y-axis of the laser radar system coordinate system; R z (θ z ) is the z-axis offset matrix of the laser radar system coordinate system, θ z is the offset angle around the z-axis of the laser radar system coordinate system.
[0070] The axis error inside the LiDAR scanner causes the coordinate system of the LiDAR system to change, resulting in the LiDAR coordinate system R x (θ x ), R y (θ y ), R z (θ z )’s offset.
[0071] (4.2) The laser system coordinate system and the laser radar horizontal turntable coordinate system are two different coordinate systems. Two coordinate mappings are required. The point coordinates (x′, y′, z′) after the internal axis system of the laser radar scanner is offset are mapped into the horizontal turntable coordinate system, and then the point transformation of the horizontal turntable coordinate system offset is performed, and finally mapped back to the laser radar system coordinate system;
[0072] The point (x", y", z") after the horizontal turntable coordinate system offset transformation is:
[0073]
[0074] Where [a, b, c] is the translation matrix that maps the point coordinates (x′, y′, z′) after the internal axis system of the lidar scanner is offset into the horizontal turntable coordinate system, ε x′ , ε y′ , ε z′ is the position error of the 3D laser radar horizontal turntable, R z′y′x′ (θ) is the offset matrix of the horizontal turntable coordinate system, R z′y′x′ (θ) = R z′ (θ z′ )·R y′ (θ y′ )·R x′ (θ x′ );
[0075]
[0076] Among them, R x′ (θ x′ ) is the x-axis offset matrix of the horizontal turntable coordinate system, θ x′ is the offset angle around the x-axis of the horizontal turntable coordinate system; R y′ (θ y′ ) is the y-axis offset matrix of the horizontal turntable coordinate system, θ y′ is the offset angle around the y-axis of the horizontal turntable coordinate system; R z′ (θ z′ ) is the z-axis offset matrix of the horizontal turntable coordinate system, θ z′ is the offset angle around the z-axis of the horizontal turntable coordinate system;
[0077] There is also an axis error at the connection between the main part of the laser radar and the horizontal turntable during use, namely R x′ (θ x′ ), R y′ (θ y′ ), R z′ (θ z′ ) causes the internal components of the LiDAR to deviate from their original horizontal positions, affecting the accuracy of the LiDAR data.
[0078] The point coordinates (x", y", z") are rotated by the laser radar horizontal turntable. The coordinates after That is, the laser radar laser point rotates through the horizontal turntable After that, the azimuth is The laser point offset coordinates at time:
[0079]
[0080] in, Rotation around the z-axis of the laser radar system coordinate system The rotation matrix of .
[0081] (5) The coordinates of the laser point irradiated to the observation plate under the theoretical state are obtained by the axis offset of the laser radar system coordinate system and the axis offset of the horizontal turntable coordinate system to obtain the offset laser point coordinates; the offset laser point coordinates are converted into the pixel coordinate system of the camera to obtain a laser trajectory pixel map;
[0082] The azimuth angle is set to be the same as the azimuth angle of the first trajectory in the laser irradiation trajectory integration diagram. The laser point with a pitch angle θ of 120° to 240° is subjected to the laser radar system coordinate system axis offset transformation and the laser radar horizontal turntable axis offset transformation to obtain the laser radar offset trajectory under the azimuth angle. In order to correspond to the laser radar trajectory integration diagram taken by the camera, the laser radar offset trajectory is rotated 30° multiple times and the offset position of each time is recorded. A total of 6 rotations are made, and the set azimuth angle is consistent with the azimuth angle information in the laser irradiation trajectory integration diagram.
[0083] The laser radar trajectory image after the laser radar system coordinate system axis offset transformation is converted into the camera pixel coordinate system through the camera internal and external parameters to obtain the laser trajectory pixel image after the laser radar axis offset. The relationship with the camera's pixel (u, v) coordinate system is shown in equation (6):
[0084]
[0085] Among them, f x 、f y , u0, v0 are the intrinsic parameters of the camera, and R, T are the extrinsic parameters of the camera.
[0086] In this step (5), the position where the laser is irradiated on the observation plate is not a single pixel point, but a light spot that changes from bright to dark from the center to the outside. Therefore, when setting the laser point of the lidar laser irradiation at a certain pitch angle and azimuth angle, multiple laser points are set around the position according to the laser track width in the laser track diagram taken by the camera to match the laser track width taken by the camera.
[0087] (6) The grayscale difference between each pixel in the laser trajectory pixel map and the laser irradiation trajectory integrated map is calculated to obtain the fitness function. The optimal axis deviation inside the laser radar scanner and the axis deviation of the laser radar horizontal turntable are determined through the basic particle swarm algorithm. The axis deviation is added to the point cloud data for calibration to achieve point cloud data optimization.
[0088] The laser point grayscale value in the laser point pixel map after the laser radar axis system offset is set to 255, and the remaining grayscale values are set to 0. The basic particle swarm algorithm is used to optimize the laser radar axis system offset model.
[0089] The grayscale difference between each pixel of the laser trajectory pixel map after the axis offset of the laser radar system coordinate system and the axis offset of the horizontal turntable coordinate system and the integrated image of the laser irradiation trajectory taken by the camera is calculated to obtain the fitness function, as shown in formula (7):
[0090]
[0091] Among them, U is the horizontal resolution of the pixel image, V is the vertical resolution of the pixel image, is the gray value of the pixel where the laser track is located in the laser track pixel map after the laser radar axis system is offset, The gray value of the pixel where the laser track is located in the integrated image of the laser irradiation track captured by the camera;
[0092] Calculate the individual optimal value and group optimal value of the particle swarm to obtain a set of optimized θ x ,θ y ,θ z ,ε x ,ε y ,ε z ,θ x′ ,θ y′ ,θ z′ ,ε x′ ,ε y′ ,ε z′ , the obtained θ x ,θ y ,θ z is the angle offset of the laser radar system coordinate system, and the obtained ε x ,ε y ,ε z The mean is the position offset of the laser radar system coordinate system, and the obtained θ x′ ,θ y′ ,θ z′ The mean is the angular offset of the laser radar horizontal turntable axis system, and the obtained ε x′ ,ε y′ ,ε z′ The mean value is the position offset of the laser radar horizontal turntable axis system;
[0093] θ x ,θ y ,θ z ,ε x ,ε y ,ε z ,θ x′ ,θ y′ ,θ z′ ,ε x′ ,ε y′ ,ε z′ The optimal estimate of is the axis deviation inside the laser radar scanner and the axis deviation of the laser radar horizontal turntable. By adding
[0094] θ x ,θ y ,θ z ,ε x ,ε y ,ε z ,θ x, ,θ y, ,θz′ ,ε x′ ,ε y′ ,ε z′ The axis error is calibrated to optimize the point cloud data.
[0095] Figure 8 The figure shows a comparison of the point cloud before and after calibration of the present invention. It can be seen that the surface of the point cloud is smooth and flat after calibration.
Claims
1. A three-dimensional laser radar axis error calibration method, characterized in that: include: (1) Place the 3D laser radar on a horizontal platform and establish the laser radar system coordinate system o-xyz, where the origin o is the center of the reflection surface of the rotating reflector, the y-axis is along the axis of the rotating reflector, and the x-axis and z-axis are determined according to the vertical relationship; (2) A horizontal observation board is set above the 3D laser radar, and a CMOS camera is set on the x-axis of the laser radar system coordinate system to face the observation board. Photos are taken in a dark environment. The laser radar is configured to send a pulse signal to trigger the CMOS camera to take photos synchronously. The laser radar horizontal turntable starts to rotate slowly at a constant speed with an azimuth angle of 0° as the initial position, and the pitch angle rotates rapidly for one circle between 0° and 360° to collect data. After the pitch angle rotates for one circle, it starts to rotate rapidly again at 0°. When the azimuth angle reaches the maximum, the photo taking is stopped to complete the data collection. (3) extracting a number of single-frame images at the same frame interval, obtaining laser irradiation points within a certain pitch angle range, and obtaining a laser irradiation trajectory map; obtaining laser irradiation points within the same pitch angle range at a certain azimuth angle interval in the same manner, and obtaining multiple laser irradiation trajectory maps; obtaining a laser irradiation trajectory integrated map based on the multiple laser irradiation trajectory maps; (4) Establish a horizontal turntable coordinate system with the same coordinate axis direction as the laser radar system coordinate system at the center of the connection between the laser radar main body and the horizontal turntable; determine the axis offset of the laser radar system coordinate system caused by the internal axis error of the laser radar scanner, and the axis offset of the horizontal turntable coordinate system caused by the axis error at the connection between the laser radar main body and the horizontal turntable; (5) The coordinates of the laser point irradiated to the observation plate under the theoretical state are obtained by the axis offset of the laser radar system coordinate system and the axis offset of the horizontal turntable coordinate system to obtain the offset laser point coordinates; the offset laser point coordinates are converted into the pixel coordinate system of the camera to obtain a laser trajectory pixel map; (6) The grayscale difference between each pixel in the laser trajectory pixel map and the laser irradiation trajectory integrated map is calculated to obtain the fitness function. The optimal axis deviation inside the laser radar scanner and the axis deviation of the laser radar horizontal turntable are determined through the basic particle swarm algorithm. The axis deviation is added to the point cloud data for calibration to achieve point cloud data optimization.
2. The three-dimensional laser radar axis error calibration method according to claim 1, characterized in that: In step (2), the observation board is made of a white Kodak board and is placed on a height-adjustable bracket. The height of the observation board is adjusted so that the entire observation board is within the field of view of the CMOS camera.
3. The three-dimensional laser radar axis error calibration method according to claim 2, characterized in that: The three-dimensional laser radar uses a laser with a wavelength of 905nm, and the camera uses a near-infrared CMOS camera with a spectral range of 400nm to 1100nm.
4. The three-dimensional laser radar axis error calibration method according to claim 1, characterized in that: In step (3), several single-frame images are grayed out. According to the grayscale difference between the laser-irradiated area and the non-laser-irradiated area on the image, the grayscale value of the pixel position corresponding to the laser irradiation point is extracted and put into a new image with a grayscale of 0 in the order of the lidar photos taken by the camera, so as to obtain a laser irradiation trajectory map at the corresponding azimuth angle; the grayscale value of the pixel position where the laser trajectory is located in each laser irradiation trajectory map is extracted into a grayscale of 0 image, so as to obtain an integrated laser irradiation trajectory map.
5. The three-dimensional laser radar axis error calibration method according to claim 4, characterized in that: In step (3), the azimuth angle interval must ensure that the captured laser irradiation trajectory is clear.
6. The three-dimensional laser radar axis error calibration method according to claim 1, characterized in that: Step (4) includes: the relationship between the point coordinates (x′, y′, z′) after the internal axis system of the laser radar scanner is offset and the laser radar coordinates (x, y, z) in the ideal state is as shown in formula (1): Among them, ε x , ε y , ε z is the position error inside the 3D laser radar, R zyx (θ) is the offset matrix of the laser radar system coordinate system, R zyx (θ) = R z (θ z )·R y (θ y )·R x (θ x ); Among them, R x (θ x ) is the x-axis offset matrix of the laser radar system coordinate system, θ x is the offset angle around the x-axis of the laser radar system coordinate system; R y (θ y ) is the y-axis offset matrix of the laser radar system coordinate system, θ y is the offset angle around the y-axis of the laser radar system coordinate system; R z (θ z ) is the z-axis offset matrix of the laser radar system coordinate system, θ z is the offset angle around the z-axis of the laser radar system coordinate system.
7. The three-dimensional laser radar axis error calibration method according to claim 6, characterized in that: Step (4) further includes: mapping the point coordinates (x′, y′, z′) after the internal axis system of the laser radar scanner is offset into the horizontal turntable coordinate system, then performing point transformation of the horizontal turntable coordinate system offset, and finally mapping back to the laser radar system coordinate system; The point (x", y", z") after the horizontal turntable coordinate system offset transformation is: Where [a, b, c] is the translation matrix that maps the point coordinates (x′, y′, z′) after the internal axis system of the lidar scanner is offset into the horizontal turntable coordinate system, ε x′ , ε y′ , ε z′ is the position error of the 3D laser radar horizontal turntable, R z′y′x′ (θ) is the offset matrix of the horizontal turntable coordinate system, R z′y′x′ (θ) = R z′ (θ z′ )·R y′ (θ y′ )·R x′ (θ x′ ); Among them, R x′ (θ x′ ) is the x-axis offset matrix of the horizontal turntable coordinate system, θ x′ is the offset angle around the x-axis of the horizontal turntable coordinate system; R y′ (θ y′ ) is the y-axis offset matrix of the horizontal turntable coordinate system, θ y′ is the offset angle around the y-axis of the horizontal turntable coordinate system; R z′ (θ z′ ) is the z-axis offset matrix of the horizontal turntable coordinate system, θ z′ is the offset angle around the z-axis of the horizontal turntable coordinate system; The point coordinates (x", y", z") are rotated by the laser radar horizontal turntable. The coordinates after in, Rotation around the z-axis of the laser radar system coordinate system The rotation matrix of .
8. The three-dimensional laser radar axis error calibration method according to claim 7, characterized in that: Step (5) includes: setting the azimuth angle to be the same as the azimuth angle of the first track in the laser irradiation track integration diagram, and the laser point with the same pitch angle range, and obtaining the laser radar offset track under the azimuth angle after the laser radar system coordinate system axis system offset transformation and the laser radar horizontal turntable axis system offset transformation; in order to correspond to the laser radar track integration diagram taken by the camera, rotating the laser radar offset track multiple times at the same azimuth interval angle and recording the offset position each time; The laser radar trajectory image after the laser radar system coordinate system axis offset transformation is converted into the camera pixel coordinate system through the camera internal and external parameters to obtain the laser trajectory pixel image after the laser radar axis offset. The relationship with the camera's pixel (u, v) coordinate system is shown in equation (6): Among them, f x 、f y , u0, v0 are the intrinsic parameters of the camera, and R, T are the extrinsic parameters of the camera.
9. The three-dimensional laser radar axis error calibration method according to claim 8, characterized in that: In step (5), when setting the laser point irradiated by the lidar laser at a certain pitch angle and azimuth angle, multiple laser points are set around the position according to the laser track width in the laser track image captured by the camera to match the laser track width captured by the camera.
10. The three-dimensional laser radar axis error calibration method according to claim 8, characterized in that: Step (6) includes: setting the laser point gray value in the laser point pixel map after the laser radar axis system is offset to 255, and setting the remaining gray values to 0, and using the basic particle swarm algorithm to optimize the laser radar axis system offset model; The grayscale difference between each pixel of the laser trajectory pixel map after the axis offset of the laser radar system coordinate system and the axis offset of the horizontal turntable coordinate system and the integrated image of the laser irradiation trajectory taken by the camera is calculated to obtain the fitness function, as shown in formula (7): Among them, U is the horizontal resolution of the pixel image, V is the vertical resolution of the pixel image, is the gray value of the pixel where the laser track is located in the laser track pixel map after the laser radar axis system is offset, The gray value of the pixel where the laser track is located in the integrated image of the laser irradiation track captured by the camera; Calculate the individual optimal value and group optimal value of the particle swarm to obtain a set of optimized θ x ,θ y ,θ z ,ε x ,ε y ,ε z ,θ x′ ,θ y′ ,θ z′ ,ε x′ ,ε y′ ,ε z′ , the obtained θ x ,θ y ,θ z is the angle offset of the laser radar system coordinate system, and the obtained ε x ,ε y ,ε z The mean is the position offset of the laser radar system coordinate system, and the obtained θ x′ ,θ y′ ,θ a′ The mean is the angular offset of the laser radar horizontal turntable axis system, and the obtained ε x′ ,ε y′ ,ε z′ The mean value is the position offset of the laser radar horizontal turntable axis system; θ x ,θ y ,θ z ,ε x ,ε y ,ε z ,= x′ ,θ y′ ,θ z′ ,ε x′ ,ε y′ ,ε z′ The optimal estimate of is the axis deviation inside the laser radar scanner and the axis deviation of the laser radar horizontal turntable. By adding θ x ,θ y ,θ z ,ε x ,ε y ,ε z ,θ x′ ,θ y′ ,θ z′ ,ε x′ ,ε y′ ,ε z′ The axis error is calibrated to optimize the point cloud data.
Citation Information
Cited By
Laser-IMU (Inertial Measurement Unit) installation deviation calibration method, surveying and mapping method and system based on vision assistance
CN120891487A
Optical phased array laser radar, laser radar system and scanning method thereof
CN121232198A
Calibration method and system for auxiliary laser instrument
CN122813648A
