A SLAM precision enhancement method integrating discontinuous TLS
By integrating the method of discontinuous TLS, TLS scanning and panoramic image matching are used to optimize the SLAM trajectory, which solves the problem of decreased accuracy of the SLAM system in complex scenes and improves the accuracy of the SLAM system.
Patent Information
- Application Number
- CN202411035118.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-31
AI Technical Summary
In complex scenarios, the six-degree-of-freedom trajectory accuracy of the SLAM system is easy to decline, especially when the visible area is small, the features are not obvious, and the loop cannot be closed, resulting in a loss of accuracy in the point cloud results. The traditional control point layout method is costly. It is difficult and cannot be tested in certain scenarios.
The method of fusing discontinuous TLS is used to determine the time synchronization error by obtaining the initial point cloud and panoramic image. The TLS scan is used to obtain the initial point cloud and panoramic image of the site, and the transformation matrix is obtained by matching. The pose is optimized and the error function is constructed to optimize SLAM trajectories to improve accuracy.
In areas where SLAM is prone to degradation, the segmented laser point cloud is registered with the TLS point cloud to obtain the transformation matrix, improve the accuracy of the SLAM trajectory, and enhance the overall accuracy of the SLAM system.
Smart Images

Figure CN118570078B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of point cloud data positioning, and in particular to a SLAM precision enhancement method integrating discontinuous TLS. Background Art
[0002] The laser SLAM system can collect high-precision point clouds in indoor environments, but the SLAM system requires many preconditions to collect high-precision point cloud results, such as small scenes, closed loops, etc., but these requirements are often not met in complex scenes, resulting in SLAM results often failing to meet the high-precision requirements of surveying and mapping, and varying degrees of accuracy loss. In order to avoid these problems, the traditional technical solution is to add GNSS / RTK (if outdoors), and to use a control point solution indoors, that is, to place control points (such as stickers, steel nails, etc.) at locations where accuracy loss is likely to occur in indoor scenes, and then use surveying instruments (total stations) to measure and obtain coordinates. When the SLAM system is operating, when passing through the location, the fixed position of the device contacts the control point and records the moment, which is equivalent to the precise alignment of the SLAM trajectory, thereby achieving accuracy control as a "control point" (also called an anchor point).
[0003] This "control point" method can control the accuracy very well, but this control point needs to be arranged relatively evenly and densely. For example, indoor parking lots generally need to be arranged at a density of 20 to 30 meters. If there are fewer control points, the areas far from the control points cannot be constrained, resulting in a loss of accuracy. Therefore, the cost of laying out control points is very high and the measurement is difficult, especially in places with poor visibility. Transfer measurement is very troublesome. According to experience, the workload of laying out control points exceeds half of the entire collection work. In addition, in some scenarios, control points cannot be laid out due to conditions, such as corridors or places that cannot be reached by manpower.
[0004] The existing technology often uses the backpack SLAM (Simultaneous Localization and Mapping) system:
[0005] like Figure 1As shown, in an unknown environment, the environment is collected through vision (called visual SLAM) or laser (called laser SLAM), so as to reversely calculate its own position, and then continue to perceive the environment. Through continuous iteration, the three-dimensional space perception of the unknown environment is realized. The present invention only studies laser SLAM. The general laser SLAM system includes a panoramic camera, a laser, an IMU (Inertia Measurement Unit), and an industrial computer. The laser is responsible for perceiving the three-dimensional space, the IMU assists in providing the posture of the equipment, and the industrial computer is responsible for time synchronization and some computing functions. The backpack SLAM system is connected through a customized backpack frame to obtain the laser point cloud of the surrounding environment while the operator is walking.
[0006] like Figure 2 As shown, TLS is called a fixed-station scanner, which includes: an array camera, a fixed tripod, and a 360-degree gimbal. This scanner generally uses an industrial-grade high-precision laser, which can scan 360 degrees and emit a self-rotating high-precision laser. At the same time, the laser is installed on a gimbal that can rotate 360 degrees. Therefore, TLS can scan 360×360, but this scanning device can only be fixed in one position. Therefore, a scene needs to be scanned multiple times at different positions, and then spliced to obtain a complete laser point cloud of the scanned scene. The advantage of TLS is that the obtained laser point cloud is very accurate in the local coordinates of the station, and can be considered as the surveying and mapping true value in the local coordinate system.
[0007] In surveying and mapping, all measurements come from position, attitude and distance. In open areas such as outdoors, the position can be directly provided by GNSS, the attitude can be provided by IMU, and the distance can be obtained by the laser itself, so it is easy to survey and map in open outdoor scenes. However, reliable GNSS signals cannot be provided in indoor and underground spaces, which makes the collection of the above spatial information complicated. The general practice is to use fixed stations such as TLS for scanning, and then use the total station to obtain the location of the TLS station to obtain the spatial information of the indoor space, but this method is very time-consuming. The introduction of SLAM technology provides a method for GNSS restricted space to quickly obtain spatial point clouds, but SLAM technology is prone to loss of accuracy of the collected point clouds in scenarios such as small visible areas, unclear features, and inability to close the loop. The loss of accuracy of the point cloud results means that there is an error in the position or attitude of the SLAM system, that is, the accuracy of the SLAM six-degree-of-freedom trajectory (position x, y, z and angle heading, pitch, roll) has decreased. Summary of the invention
[0008] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a SLAM accuracy enhancement method integrating discontinuous TLS, which solves the problem of decreased accuracy of the six-degree-of-freedom trajectory of SLAM technology in the prior art when the visible area is small, the features are not obvious, and the loop cannot be closed.
[0009] To achieve the above object, the present invention provides the following solutions:
[0010] A SLAM accuracy enhancement method integrating discontinuous TLS, comprising:
[0011] Using the SLAM system to be enhanced to obtain the initial point cloud and the first panoramic image of the target area;
[0012] Determine whether the time synchronization error between the initial point cloud and the panoramic image exceeds a preset range, and if so, use TLS to scan the area corresponding to the time synchronization error to obtain the initial point cloud and the second panoramic image of several stations;
[0013] Matching the first panoramic image and the second panoramic image to obtain a transformation matrix;
[0014] Based on the transformation matrix, a conversion point cloud is obtained according to the initial point cloud of the preset station, wherein the conversion point cloud is: the initial point cloud of the preset station in the coordinate system of the SLAM system to be enhanced;
[0015] Get the pose of the initial point cloud in the SLAM system and get the first pose;
[0016] The pose of the initial point cloud in the transformed point cloud is calculated using the iterative closest point to obtain the second pose;
[0017] Based on an optimization error formula, obtaining an optimization error according to the first posture and the second posture;
[0018] According to the optimization error, construct a corresponding error function for each site;
[0019] According to the error function, the SLAM trajectory of the SLAM system to be enhanced is optimized to obtain a SLAM trajectory with enhanced accuracy.
[0020] Preferably, the area corresponding to the time synchronization error includes:
[0021] Indoor corners, corridors between upper and lower floors, and long straight passages.
[0022] Preferably, the optimization error formula is:
[0023] =
[0024] in, Optimization error, is the transformation relationship from the TLS fixed station coordinate system to the SLAM coordinate system, For the first position, is the second pose, j is the frame number of the initial point cloud, u is the u-frame laser data obtained by the SLAM system, and i is the number of sites.
[0025] Preferably, the error function is:
[0026]
[0027] Where E is the error function and n is the number of TLS acquisitions.
[0028] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0029] The present invention provides a SLAM precision enhancement method integrating discontinuous TLS, comprising: using a SLAM system to be enhanced to obtain an initial point cloud and a first panoramic image of a target area; judging whether a time synchronization error between the initial point cloud and the panoramic image exceeds a preset range, and if so, using TLS to scan an area corresponding to the time synchronization error to obtain initial point clouds and second panoramic images of several stations; matching the first panoramic image and the second panoramic image to obtain a transformation matrix; based on the transformation matrix, obtaining a conversion point cloud according to the initial point cloud of a preset station, the conversion point cloud is: the initial point cloud of the preset station in the coordinate system of the SLAM system to be enhanced; obtaining the position and posture of the initial point cloud in the SLAM system to obtain a first position and a second ... In the area where SLAM is prone to degradation, the present invention uses the fragmented laser point cloud generated by the SLAM system in the area to align with the TLS point cloud, and obtains the transformation matrix generated by the alignment, which is the true value of the SLAM trajectory at that moment, so as to achieve the purpose of SLAM trajectory enhancement and improve the accuracy of SLAM. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0031] Figure 1 A schematic diagram of a backpack SLAM system provided in an embodiment of the present invention;
[0032] Figure 2 A schematic diagram of a TLS device provided in an embodiment of the present invention;
[0033] Figure 3 A flow chart of a SLAM precision enhancement method integrating discontinuous TLS provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] The purpose of the present invention is to provide a SLAM precision enhancement method integrating discontinuous TLS, which solves the problem in the prior art that the precision of the six-degree-of-freedom trajectory of SLAM decreases in scenarios such as small visible area, unclear features, and inability to close the loop.
[0036] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0037] like Figure 3 As shown, the present invention provides a SLAM precision enhancement method integrating discontinuous TLS, comprising:
[0038] Step 100: Acquire an initial point cloud and a first panoramic image of a target area using the SLAM system to be enhanced;
[0039] Specifically, a scene is normally collected using the SLAM system. Laser data and panoramic image videos are collected in the field, and after the collection is completed, the solution is performed normally to obtain the result point cloud and panoramic image with posture.
[0040] Step 200: determine whether the time synchronization error between the initial point cloud and the panoramic image exceeds a preset range, and if so, use TLS to scan the area corresponding to the time synchronization error to obtain the initial point cloud and the second panoramic image of several stations;
[0041] Specifically, because in the SLAM system, the panoramic image and the laser are calibrated for spatial relationship and time synchronization, the consumer-grade panoramic image cannot be timed, so there is a certain error in time synchronization, but the consumer-grade panoramic image and the laser can be synchronized by software, that is, the time in ROS is used as the synchronization reference. This synchronization has a certain error. Experience shows that this error is generally around 50ms. Calculated at a speed of 1 meter / second for the operator, the position error is about 5cm, which does not affect the implementation of the present invention. The trajectory accuracy of SLAM is judged by the result point cloud. If the point cloud is found to be misplaced or layered on the ground, wall or other landmarks, or the point cloud is distorted and deformed, it is considered that the trajectory accuracy has decreased. If it exceeds the error requirement, the subsequent steps are performed.
[0042] Use TLS to scan at locations where the error exceeds the limit. Generally, the error exceeds the limit in areas with a small visible range, such as indoor corners, corridors between upper and lower floors, long straight passages and other scenes. TLS mainly plays a role similar to "angle iron" to control the "accuracy degradation" part. The characteristics of these scenes are relatively obvious and can be easily distinguished based on experience. Therefore, it is generally not necessary to wait until the SLAM results are obtained before measuring TLS. SLAM acquisition and TLS acquisition can be performed at the same time. Save the collected fixed-site cloud and panorama (TLS array images will be automatically spliced into panoramic images). There may be multiple places where the error exceeds the limit in a measurement area, so each site needs to be numbered. Note that the number is unique and there cannot be duplication between multiple sites.
[0043] Step 300: matching the first panoramic image and the second panoramic image to obtain a transformation matrix;
[0044] Specifically, for a certain measuring station, the panoramic image of TLS is used to find the best matching image in the panoramic video of SLAM. Because the panoramic video of SLAM has a known spatial relationship (i.e. spatial calibration) and time synchronization with the laser, the six-degree-of-freedom pose (generally represented by a 4×4 matrix) of each frame of the panoramic image of the SLAM system can be obtained. By matching the TLS panoramic image with the SLAM series panoramic image, the pose of the best matching SLAM panoramic image can be obtained, which is the pose of TLS at the measuring station in the SLAM coordinate system. This process is called "visual positioning based on prior maps". This algorithm is already very mature. Its principle is to detect features from the image, then perform feature comparison, and finally solve it by least squares. Known mature solutions include Harris, SIFT, ORB, and more advanced deep learning methods. The present invention uses panoramic vision to achieve 360-degree surround viewing and increase the robustness of positioning.
[0045] Step 400: Based on the transformation matrix, a conversion point cloud is obtained according to the initial point cloud of the preset station, wherein the conversion point cloud is: the initial point cloud of the preset station in the coordinate system of the SLAM system to be enhanced;
[0046] Step 500: Obtain the position and posture of the initial point cloud in the SLAM system to obtain the first position;
[0047] Step 600: Calculate the pose of the initial point cloud in the transformed point cloud using the iterative closest point to obtain a second pose;
[0048] Step 700: obtaining an optimized error according to the first posture and the second posture based on an optimized error formula;
[0049] Specifically, suppose that the test area has conducted n TLS collections. The point cloud collected by the station is recorded as
[0050] Assume that the transformation matrix from the station TLS to the SLAM coordinate system is (obtained from step 3), the site cloud in the SLAM coordinate system is ,but = ;
[0051] Assume that the SLAM system obtains u frames of laser data, and the point cloud of the jth frame is
[0052] Using ICP calculation exist The position in ,this Its position in the SLAM system There is an error between them, and this error is the amount to be optimized. It should be pointed out that the TLS coordinate system and the SLAM coordinate system are converted, but it is a "rough registration", so there is an accurate transformation relationship that needs to be added to the optimization process. This transformation relationship is recorded as At this point, the SLAM pose is different from the one after transformation ( ) can be expressed as:
[0053] =
[0054] in, To optimize the error. is the transformation relationship from the TLS fixed station coordinate system to the SLAM coordinate system, subscript TS refers to the TLS fixed station to the SLAM system, and T (Transformation) refers to the pose transformation matrix. For the first position, is the second pose, j is the frame number of the initial point cloud, u is the u-frame laser data obtained by the SLAM system, and i is the number of sites. Among them, POS is the abbreviation of Position, that is, pose (position + posture: xyz coordinates + hpr three-axis rotation angle), generally represented by a 4×4 matrix.
[0055] In the above, each frame point cloud and point set Perform registration to obtain the second pose However, the coverage of each frame point cloud is small, and the registration may degenerate (fail). Therefore, all point clouds in a time segment can be selected as the whole and In engineering applications, point clouds within 1 to 2 seconds are generally used as a whole unit, and the corresponding number of frames is about 10 to 20 frames. Because the range of a single-station TSL is several meters to hundreds of meters, it is sufficient to perform registration within tens of seconds before and after the time corresponding to the optimal panoramic view obtained in step 3 to reduce the amount of calculation.
[0056] Step 800: constructing a corresponding error function for each site according to the optimization error;
[0057] Step 900: Optimizing the SLAM trajectory of the SLAM system to be enhanced according to the error function to obtain a SLAM trajectory with enhanced accuracy.
[0058] Specifically, for all sites, corresponding error functions are constructed and global optimization is performed. That is:
[0059] ;
[0060] Using optimization theory to optimize, we can get , which is the optimized SLAM trajectory, achieving the purpose of precision optimization. At the same time, the precise transformation relationship from TLS to SLAM at each station can also be obtained. , but this is not what the present invention seeks. Currently, there are many open source and stable algorithm libraries that support optimization processing, such as iSAM, GTSAM, G2O, Ceres, etc.
[0061] The beneficial effects of the present invention are as follows:
[0062] The present invention provides a SLAM precision enhancement method integrating discontinuous TLS, comprising: using a SLAM system to be enhanced to obtain an initial point cloud and a first panoramic image of a target area; judging whether a time synchronization error between the initial point cloud and the panoramic image exceeds a preset range, and if so, using TLS to scan an area corresponding to the time synchronization error to obtain initial point clouds and second panoramic images of several stations; matching the first panoramic image and the second panoramic image to obtain a transformation matrix; based on the transformation matrix, obtaining a conversion point cloud according to the initial point cloud of a preset station, the conversion point cloud is: the initial point cloud of the preset station in the coordinate system of the SLAM system to be enhanced; obtaining the position and posture of the initial point cloud in the SLAM system to obtain a first position and a second ... In the area where SLAM is prone to degradation, the present invention uses the fragmented laser point cloud generated by the SLAM system in the area to align with the TLS point cloud, and obtains the transformation matrix generated by the alignment, which is the true value of the SLAM trajectory at that moment, so as to achieve the purpose of SLAM trajectory enhancement and improve the accuracy of SLAM.
[0063] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0064] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A SLAM precision enhancement method integrating discontinuous TLS, characterized in that: include: Using the SLAM system to be enhanced to obtain the initial point cloud and the first panoramic image of the target area; Determine whether the time synchronization error between the initial point cloud and the panoramic image exceeds a preset range, and if so, use TLS to scan the area corresponding to the time synchronization error to obtain the initial point cloud and the second panoramic image of several stations; Matching the first panoramic image and the second panoramic image to obtain a transformation matrix; Based on the transformation matrix, a conversion point cloud is obtained according to the initial point cloud of the preset station, wherein the conversion point cloud is: the initial point cloud of the preset station in the coordinate system of the SLAM system to be enhanced; Get the pose of the initial point cloud in the SLAM system and get the first pose; The pose of the initial point cloud in the transformed point cloud is calculated using the iterative closest point to obtain the second pose; Based on an optimization error formula, obtaining an optimization error according to the first posture and the second posture; According to the optimization error, construct a corresponding error function for each site; According to the error function, the SLAM trajectory of the SLAM system to be enhanced is optimized to obtain a SLAM trajectory with enhanced accuracy.
2. A SLAM precision enhancement method integrating non-continuous TLS according to claim 1, characterized in that: The area corresponding to the time synchronization error includes: Indoor corners, corridors between upper and lower floors, and long straight passages.
3. A SLAM precision enhancement method integrating non-continuous TLS according to claim 1, characterized in that: The optimization error formula is: in, Optimization error, The transformation relationship from the fixed station coordinate system to the SLAM coordinate system, For the first position, is the second pose, j is the frame number of the initial point cloud, u is the u-frame laser data obtained by the SLAM system, and i is the code of the site.
4. A SLAM precision enhancement method integrating non-continuous TLS according to claim 3, characterized in that: The error function is: ; Where E is the error function and n is the number of TLS acquisitions.
Citation Information
Patent Citations
Continuous acquisition method for three-dimensional information of indoor environment
CN106382917A
Three-dimensional map creating method and device and surveying and mapping equipment
CN115657069A
