Robot multi-map cooperative positioning method and system for changing environment
By employing a collaborative positioning method using a global base map, a mid-term reference map, and a real-time local map, combined with adaptive adjustment constraints on registration in-point rate and temporal stability, the problem of positioning inconsistency caused by environmental changes was solved, achieving high-precision positioning with low resource overhead.
Patent Information
- Application Number
- CN202611644016.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-20
AI Technical Summary
Existing localization methods based on a single prior map are prone to inconsistencies between the map and the current environment when the environment changes over a long period or the local structure changes, leading to increased localization errors or failures. At the same time, loading a complete point cloud map in a large-scale environment increases the computational and memory burden.
A collaborative localization method using a global base map, a mid-term reference map, and a real-time local map is adopted. The consistency between the map and the environment is evaluated by the registration inlier rate and temporal stability. The localization constraints are adaptively adjusted and uniformly introduced into the sliding window factor map for pose optimization. At the same time, the large-scale prior map is divided into independently loadable local tiles, and relevant data is loaded as needed.
It avoids inconsistencies between the map and the current environment, solves the problem of positioning failure, reduces computation and resource overhead, and improves positioning accuracy and stability.
Smart Images

Figure CN123135072A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of mobile robot localization and navigation technology, and particularly relates to a multi-map collaborative localization method and system for robots in changing environments. Background Technology
[0002] Mobile robots need to operate stably over long periods in large environments in scenarios such as smart logistics, unmanned delivery, autonomous driving, and industrial inspection. LiDAR inertial odometry can provide continuous relative pose estimation, but it will still accumulate drift as the operating time increases. Therefore, it is usually necessary to use a prior map to provide global constraints.
[0003] Existing localization methods based on a single prior map are prone to inconsistencies between the map and the current environment when the environment changes over a long period, the local structure changes, or the robot enters an area that was not previously mapped. This can lead to a reduction in effective data association, an increase in localization error, or even localization failure. On the other hand, complete point cloud maps in large-scale environments usually have a large amount of data. If the entire map is loaded over a long period of time, it will increase the memory and computational burden. Therefore, existing technologies cannot simultaneously improve localization accuracy and reduce computational burden. Summary of the Invention
[0004] To address the aforementioned problems, this invention proposes a multi-map collaborative localization method and system for robots operating in changing environments. This invention utilizes a global base map, a mid-term reference map, and real-time local maps to provide complementary environmental constraints at different time scales. During map registration, the consistency between each time-series map and the current environment is evaluated based on the registration in-point rate and temporal stability, and the confidence levels of different localization constraints are adaptively adjusted accordingly. Subsequently, short-term, mid-term, and long-term constraints are uniformly introduced into a sliding window factor graph for pose optimization. This avoids map inconsistencies with the current environment and solves the localization failure problem. Simultaneously, the large-scale prior map is divided into independently loadable local tiles, and relevant map data is loaded on demand according to the robot's current pose, solving the resource overhead problem caused by parallel maintenance of multiple maps and achieving a balance between improving localization accuracy and reducing computational burden.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solution: In a first aspect, the present invention provides a robot multi-map cooperative localization method for changing environments, comprising: Obtain the current pose of the mobile robot; Based on the current pose, retrieve the real-time local map near the current location from the preset intermediate reference map and global base map; The intermediate reference map and the global base map are divided into independently loadable local block maps, and relevant map data are loaded as needed according to the robot's current pose. The lidar point cloud data is registered with the real-time local map, the intermediate reference map, and the global base map to form short-term, intermediate, and long-term constraints. During the registration process, the consistency between each map and the current environment is evaluated based on the registration in-point rate and temporal stability, and the confidence level of different constraints is adaptively adjusted. The short-term, medium-term, and long-term constraints are added to a sliding window factor graph to jointly optimize the robot's pose in the global coordinate system.
[0006] Furthermore, the division of the intermediate reference map and the global base map includes: dividing the intermediate reference map and the global base map into multiple primary map blocks, and dividing each primary map block into multiple secondary map blocks; establishing a first-level index between the center of the primary map block and the corresponding secondary index file, and a second-level index between the center of the secondary map block and the corresponding point cloud file.
[0007] Furthermore, using the translation component of the robot's current pose as the query location, the current first-level map tile is determined in the spatial index formed by the center of the first-level map tile, and a neighborhood search is performed in the corresponding second-level map tile spatial index to load the second-level map tile point cloud within the preset loading range into memory.
[0008] Furthermore, the registration of the LiDAR point cloud data with the real-time local map, the intermediate reference map, and the global base map includes: the current LiDAR point cloud and various maps are scanned to the map using point-to-plane residuals; when the number of effective registrations between the local map and the current point cloud is lower than a preset condition, a local auxiliary map is constructed using several historical point cloud frames near the robot, and the registration constraints are supplemented by the local auxiliary map.
[0009] Furthermore, for the current point cloud... j A point, the plane residual. for: ; in, This is the normal vector of the corresponding local plane; The current point after the transformation; For the corresponding neighboring points in the target map; The number of effective registration points.
[0010] Furthermore, the registration in-point rate is the ratio of the number of valid registration points in the previous point cloud to the total number of points in the current point cloud.
[0011] Furthermore, the timing stability for: ; in, for k Registration in-point rate at any given time; for k The registration in-point rate at time -1; the registration in-point rate and temporal stability are weighted to obtain the map registration reliability. : ; in, .
[0012] Furthermore, the noise standard deviation of the corresponding map constraints is adaptively adjusted based on the map registration confidence level. ; in, and These are the preset minimum and maximum standard deviations, respectively.
[0013] Furthermore, the global base map is a pre-built and fixed global map offline; the intermediate reference map is generated offline using optimized keyframes according to a preset cycle or task batch; and the real-time local map is maintained online by a lidar inertial odometry system.
[0014] Secondly, the present invention also provides a robot multi-map cooperative localization system for changing environments, comprising: The data acquisition module is configured to acquire the current pose of the mobile robot. Based on the current pose, retrieve the real-time local map near the current location from the preset intermediate reference map and global base map; The partitioning module is configured to: partition the intermediate reference map and the global base map into independently loadable local block maps, and load relevant map data as needed based on the robot's current pose; The registration module is configured to: register the LiDAR point cloud data with the real-time local map, the intermediate reference map, and the global base map respectively to form short-term constraints, intermediate constraints, and long-term constraints; during the registration process, the consistency between each map and the current environment is evaluated based on the registration in-point rate and temporal stability, and the confidence level of different constraints is adaptively adjusted. The localization module is configured to add the short-term constraint, the medium-term constraint, and the long-term constraint to a sliding window factor graph to jointly optimize the robot's pose in the global coordinate system.
[0015] Thirdly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the robot multi-map cooperative localization method for changing environments as described in the first aspect.
[0016] Fourthly, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to implement the steps of the robot multi-map cooperative localization method for changing environments described in the first aspect.
[0017] Fifthly, the present invention also provides a computer program product, the computer program product comprising a computer program, which, when executed by a processor, implements the steps of the robot multi-map cooperative localization method for changing environments described in the first aspect.
[0018] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention utilizes a global base map, a mid-term reference map, and a real-time local map to provide complementary environmental constraints at different time scales. During map registration, the consistency between each time-series map and the current environment is evaluated based on the registration in-point rate and temporal stability, and the confidence level of different positioning constraints is adaptively adjusted accordingly. Subsequently, short-term, mid-term, and long-term constraints are uniformly introduced into a sliding window factor graph for pose optimization. This avoids the inconsistency between the map and the current environment, solving the problem of positioning failure. At the same time, the large-scale prior map is divided into independently loadable local tiles, and relevant map data is loaded on demand according to the robot's current pose, solving the resource overhead problem caused by parallel maintenance of multiple maps, and balancing improved positioning accuracy with reduced computational burden. Attached Figure Description
[0019] The accompanying drawings, which form part of this embodiment, are used to provide a further understanding of this embodiment. The illustrative embodiments and their descriptions are used to explain this embodiment and do not constitute an improper limitation of this embodiment.
[0020] Figure 1 This is a flowchart of the method in Embodiment 1 of the present invention. Detailed Implementation
[0021] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0022] It should be noted that the following detailed descriptions are exemplary and intended to provide further explanation of this application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.
[0023] Example 1: The large-scale application of autonomous navigation robots in fields such as unmanned delivery and autonomous driving has placed higher demands on the robustness and accuracy of positioning technology. As a core module of robot navigation systems, positioning directly affects the reliability of path planning, motion control, and task execution. Compared to cameras, LiDAR (Light Detection and Ranging) can directly acquire three-dimensional structured environmental information and has strong resistance to changes in lighting conditions, thus offering significant advantages in positioning in complex environments.
[0024] LiDAR-Inertial Odometry (LIO) can achieve high-frequency, real-time pose estimation, but because it is essentially an incremental state estimation, cumulative drift is inevitable during long-term operation. To suppress this type of error, localization methods based on high-precision prior maps are widely used. By registering the current laser point cloud with the global map, the robot is provided with globally consistent pose constraints.
[0025] However, in large-scale scenarios, as map size increases, the memory and computing resources required for map loading, nearest neighbor search, and data association also grow. While high compression or large-scale downsampling of point cloud maps can reduce storage overhead, it often results in the loss of local geometric details, thus affecting localization accuracy. On the other hand, the long-term operating environment can change significantly due to factors such as object movement, scene modification, seasonal changes, or road changes, and the robot may also enter areas that have not yet been mapped. When there is a significant discrepancy between the current observation and a single prior map, erroneous data association can lead to deterioration in pose estimation and even localization failure.
[0026] To address at least one of the aforementioned problems, this embodiment provides a multi-map cooperative localization method for robots in changing environments. It jointly utilizes a global base map (PPM), a medium-term reference map (RRM), and a real-time local map (RCM) to provide complementary environmental constraints at different time scales. During map registration, the consistency between each temporal map and the current environment is evaluated based on the registration in-point rate and temporal stability, and the confidence levels of different localization constraints are adaptively adjusted accordingly. Subsequently, short-term, medium-term, and long-term constraints are uniformly introduced into a sliding window factor graph for pose optimization. To reduce the resource overhead of parallel maintenance of multiple maps, a self-centered map management method based on a two-level spatial index is proposed. This method divides the large-scale prior map into independently loadable local tiles and loads relevant map data on demand according to the robot's current pose. Through the above design, this embodiment forms a multi-temporal map localization framework for long-term environmental changes, which can balance global consistency, environmental timeliness, and online resource controllability.
[0027] Specifically, the mobile robot is equipped with a 3D LiDAR and an inertial measurement unit (IMU) to acquire LiDAR point clouds and IMU data, respectively. The odometry module compensates for motion distortion in the LiDAR point clouds and combines the IMU data to output the relative motion between adjacent moments. At the same time, it uses keyframes near the robot to maintain a real-time local map.
[0028] A global base map is pre-built offline, while a mid-term reference map is periodically generated or updated based on recent task data. Both the mid-term reference map and the global base map undergo hierarchical and tile-based processing: first, primary map tiles are formed, and then each primary map tile is divided into multiple secondary map tiles. The center of each primary map tile, the address of its corresponding secondary index file, and the center of each secondary map tile and its point cloud file address are recorded to form a two-level spatial index.
[0029] During online operation, a proximity search is performed in the center index of the primary map tile based on the robot's current position to determine the corresponding primary map tile. Then, its secondary index is read, and neighboring secondary map tiles are searched with the robot's current position as the center. The relevant point cloud data is then loaded from disk into memory. The loading range can be set according to the effective ranging range of the LiDAR, and boundary compensation distance can be added to avoid missing valid point clouds located at the edges of map tiles.
[0030] Optionally, first, based on the centroid of the parent block graph. Build first-level map tiles In time i global pose of the robot Translation components For query center, through K Nearest neighbor search determines the parent block graph to which the robot currently belongs: ; The address of the secondary index file corresponding to the parent tile map is obtained based on the global first-level index, and the secondary index is loaded into memory. Subsequently, secondary map tiles are constructed using the centroids of the child tile map. A radius search is performed around the robot's current position to obtain several sub-block maps that need to be loaded, and their set can be represented as: ; in, The effective range of the lidar, This is a voxel diagonal compensation term used to avoid missing boundary voxels. Both primary and secondary map tiles are constructed solely based on tile centroids, therefore, loading the complete point cloud is unnecessary during the index search phase.
[0031] For real-time local maps, they are dynamically maintained in memory by the odometry module. To limit memory usage, the system only retains the area near the robot. The system generates keyframe point clouds and continuously removes historical keyframes that are far from the current position as the robot moves.
[0032] At each localization time, the current distortion-corrected LiDAR point cloud is transformed to the global coordinate system, and scan-to-map registration is performed with the real-time local map, the intermediate reference map, and the global base map, respectively. Point-to-plane residuals can be used to establish registration error, and only point pairs with a registration distance less than a preset threshold are considered valid registrations. When the effective registration of the intermediate reference map or the global base map significantly decreases, a local auxiliary map can be constructed using several historical point cloud frames near the robot to increase effective data association and reduce abrupt changes in map registration results.
[0033] Specifically, the current lidar point cloud can be transformed to the global coordinate system based on the global pose, odometry relative motion, and extrinsic parameters of the lidar to the inertial measurement unit from the previous moment: ; in, Indicates the first k Laser dots in the frame; Indicates the first k Point cloud in the coordinate system of a real-time lidar; This represents the robot's global pose at the previous moment; This indicates the relative motion output by the odometer; This indicates the transformation of sensor extrinsic parameters.
[0034] For the current point cloud, the first j Each point has a point-to-plane residual with respect to the corresponding local plane in the target map. It can be represented as: ; in, This is the normal vector of the corresponding local plane; The current point after the transformation; For the corresponding neighboring points in the target map; This refers to the number of effective registration points. When the absolute value of the residual or the registration distance is less than a preset threshold... d When this point is registered, the pair is counted as a valid registration. , Optional, d= 0.3m.
[0035] Registration reliability evaluations were performed on both the intermediate reference map and the global base map. Let the number of valid registration points in the current point cloud be... The current total number of points in the point cloud is Then the registration interior point rate for: ; To reduce the impact of single-frame noise or sporadic registration errors on weight adjustment, temporal stability is constructed based on the registration in-point rate of adjacent time steps: ; The registration in-point rate and temporal stability are weighted to obtain the map registration reliability. : ; in, Optional , .
[0036] The noise standard deviation of the corresponding map constraints is adaptively adjusted based on the map registration reliability. ; in, and These are the preset minimum and maximum standard deviations, respectively. When When it increases, Reducing the size of the map constraint enhances its role in optimization; when When decreasing, Increasing the value of the map reduces the impact of the mismatched map on global pose estimation.
[0037] The relative motion constraints generated by the odometry module, the stage map constraints generated by the intermediate reference map registration, and the global map constraints generated by the global base map registration are all uniformly incorporated into a fixed-length sliding window factor map for nonlinear optimization to obtain the robot's pose in the global coordinate system. The real-time local map retains only a preset number of keyframes near the robot; the intermediate reference map can be reconstructed offline after the task is completed using the optimized keyframes and the distortion-free point cloud; the global base map remains fixed to balance short-term environmental adaptability and the stability of the global positioning reference.
[0038] Within the sliding window, using the robot's global pose as the variable to be optimized, the joint optimization objective can be expressed as: ; in, This represents the short-term constraint term formed by the relative motion of the odometer; This represents the intermediate constraints formed by intermediate reference map registration; This represents the long-term constraint term formed by global base map registration; the covariance of stage map constraints and global map constraints is based on the corresponding... set up.
[0039] The short-run constraint is defined as follows: ; The intermediate constraints are defined as follows: ; Long-term constraints are defined as: ; in, To predict pose; The relative pose transformation provided for the odometer; and The covariance matrices for various constraints are obtained through joint registration of the intermediate reference map and the global base map, respectively. ; in, , and The confidence level is calculated from the adaptive confidence of the corresponding observations. Through this design, the registration of reliable map observations exerts a stronger constraint on the optimization results, while map observations inconsistent with the current environment are automatically weighted less, thereby reducing the impact of erroneous map associations on the global pose.
[0040] In this embodiment, the real-time local map, intermediate reference map, and global base map provide complementary constraints from three levels: the current neighborhood, the recent environment, and the stable global structure. This reduces the risk of positioning failure when a fixed single map is mismatched with the current scene. By calling local map data by location through hierarchical map tiles and two-level spatial indexes, there is no need to keep the complete large-scale map continuously in memory, which can control the resource consumption during multi-map collaborative positioning. Through adaptive weighting driven by registration reliability, the positioning effect is enhanced when the map is well registered with the current environment, and the corresponding constraints are weakened when the registration quality deteriorates, which is conducive to improving the continuous positioning stability in changing environments.
[0041] Example 2: This embodiment provides a robot multi-map cooperative localization system for changing environments, including: The data acquisition module is configured to acquire the current pose of the mobile robot. Based on the current pose, retrieve the real-time local map near the current location from the preset intermediate reference map and global base map; The partitioning module is configured to: partition the intermediate reference map and the global base map into independently loadable local block maps, and load relevant map data as needed based on the robot's current pose; The registration module is configured to: register the LiDAR point cloud data with the real-time local map, the intermediate reference map, and the global base map respectively to form short-term constraints, intermediate constraints, and long-term constraints; during the registration process, the consistency between each map and the current environment is evaluated based on the registration in-point rate and temporal stability, and the confidence level of different constraints is adaptively adjusted. The localization module is configured to add the short-term constraint, the medium-term constraint, and the long-term constraint to a sliding window factor graph to jointly optimize the robot's pose in the global coordinate system.
[0042] The working method of the system is the same as that of the robot multi-map cooperative localization method for changing environments in Embodiment 1, and will not be described again here.
[0043] Example 3: This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the robot multi-map cooperative localization method for changing environments described in Embodiment 1.
[0044] Example 4: This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the program, it implements the steps of the robot multi-map cooperative localization method for changing environments described in Embodiment 1.
[0045] Example 5: This embodiment provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the robot multi-map cooperative localization method for changing environments described in Embodiment 1.
[0046] The above description is merely a preferred embodiment of this practice and is not intended to limit the scope of this practice. Various modifications and variations can be made to this practice by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this practice should be included within the protection scope of this practice.
Claims
1. A multi-map cooperative localization method for robots in changing environments, characterized in that, include: Obtain the current pose of the mobile robot; Based on the current pose, retrieve the real-time local map near the current location from the preset intermediate reference map and global base map; The intermediate reference map and the global base map are divided into independently loadable local block maps, and relevant map data are loaded as needed according to the robot's current pose; The lidar point cloud data is registered with the real-time local map, the intermediate reference map, and the global base map to form short-term, intermediate, and long-term constraints. During the registration process, the consistency between each map and the current environment is evaluated based on the registration in-point rate and temporal stability, and the confidence level of different constraints is adaptively adjusted. The short-term, medium-term, and long-term constraints are added to a sliding window factor graph to jointly optimize the robot's pose in the global coordinate system.
2. The robot multi-map cooperative localization method for changing environments as described in claim 1, characterized in that, The division of the intermediate reference map and the global base map includes: dividing the intermediate reference map and the global base map into multiple primary map blocks, and dividing each primary map block into multiple secondary map blocks; establishing a first-level index between the center of the primary map block and the corresponding secondary index file, and a second-level index between the center of the secondary map block and the corresponding point cloud file.
3. The robot multi-map cooperative localization method for changing environments as described in claim 1, characterized in that, Using the translation component of the robot's current pose as the query location, the current first-level map tile is determined in the spatial index formed by the center of the first-level map tile. Neighborhood search is performed in the corresponding second-level map tile spatial index, and the point cloud of the second-level map tile located within the preset loading range is loaded into memory.
4. The robot multi-map cooperative localization method for changing environments as described in claim 1, characterized in that, The registration of the lidar point cloud data with the real-time local map, the intermediate reference map, and the global base map includes: the current lidar point cloud and various maps are scanned to the map using point-to-plane residuals; when the number of effective registrations between the local map and the current point cloud is lower than a preset condition, a local auxiliary map is constructed using several historical point cloud frames near the robot, and the registration constraints are supplemented by the local auxiliary map.
5. The robot multi-map cooperative localization method for changing environments as described in claim 4, characterized in that, For the current point cloud, the first j A point, the plane residual. for: ; in, This is the normal vector of the corresponding local plane; The current point after the transformation; For the corresponding neighboring points in the target map; The number of effective registration points.
6. The robot multi-map cooperative localization method for changing environments as described in claim 1, characterized in that, The registration in-point rate is the ratio of the number of valid registration points in the previous point cloud to the total number of points in the current point cloud.
7. The robot multi-map cooperative localization method for changing environments as described in claim 1, characterized in that, The timing stability for: ; in, for k Registration in-point rate at any given time; for k The registration in-point rate at time -1; the registration in-point rate and temporal stability are weighted to obtain the map registration reliability. : ; in, .
8. The robot multi-map cooperative localization method for changing environments as described in claim 7, characterized in that, The noise standard deviation of the corresponding map constraints is adaptively adjusted based on the map registration reliability. ; in, and These are the preset minimum and maximum standard deviations, respectively.
9. The robot multi-map cooperative localization method for changing environments as described in claim 7, characterized in that, The global base map is a pre-built and fixed global map that is offline; the intermediate reference map is generated offline using optimized keyframes according to a preset cycle or task batch; the real-time local map is maintained online by a lidar inertial odometry system.
10. A robot multi-map cooperative localization system for changing environments, characterized in that, include: The data acquisition module is configured to acquire the current pose of the mobile robot. Based on the current pose, retrieve the real-time local map near the current location from the preset intermediate reference map and global base map; The partitioning module is configured to: partition the intermediate reference map and the global base map into independently loadable local block maps, and load relevant map data as needed based on the robot's current pose; The registration module is configured to: register the LiDAR point cloud data with the real-time local map, the intermediate reference map, and the global base map respectively to form short-term constraints, intermediate constraints, and long-term constraints; during the registration process, the consistency between each map and the current environment is evaluated based on the registration in-point rate and temporal stability, and the confidence level of different constraints is adaptively adjusted. The localization module is configured to add the short-term constraint, the medium-term constraint, and the long-term constraint to a sliding window factor graph to jointly optimize the robot's pose in the global coordinate system.
