Map change detection method and device, equipment and storage medium

By comparing the difference between the prior map and the real-time map on the mobile device, calculating the map change rate, and automatically updating the map, the problem of environmental map change detection is solved, the accuracy and fault tolerance rate of robot navigation are improved, and the update cost is reduced.

CN118730132AActive Publication Date: 2024-10-01ZHEJIANG HUARAY TECH CO LTD

Patent Information

Application Number
CN202410613070.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-10-01
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively detect whether the environmental map has changed, resulting in reduced robot navigation and positioning accuracy, and manual map updating is costly and difficult.

Method used

By controlling the movable device to move and record point clouds based on the prior raster map, a real-time raster map is generated, the difference between the prior map and the real-time map is compared, the map change rate is calculated, and the prior is updated if the change rate exceeds the threshold. map.

Benefits of technology

It realizes automatic detection of map changes, reduces the need for manual updates, improves navigation accuracy and error tolerance, and reduces the cost of map updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730132A_ABST
    Figure CN118730132A_ABST
Patent Text Reader

Abstract

The invention discloses a map change detection method, device and equipment and a storage medium, and the method comprises the steps: controlling a mobile device to carry out the movement and point cloud recording based on an obtained prior grid map, and obtaining a real-time grid map; determining an area, which is overlapped with the real-time grid map, in the prior grid map as a target prior map, and determining an area, which is overlapped with the prior grid map, in the real-time grid map as a target real-time map; and determining a map change rate of the target real-time map relative to the target prior map based on a grid difference comparison result between the target prior map and the target real-time map. According to the scheme, whether the current map changes or not can be accurately judged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of map processing technology, and in particular to a map change detection method, device, equipment and storage medium. Background Art

[0002] Map construction is one of the most important technologies today. In the navigation scenarios of various mobile devices such as robots and cars, high-accuracy maps are required to achieve precise navigation.

[0003] For example, mobile robots with autonomous navigation capabilities are often widely used in factories, logistics, shopping malls and other scenarios, and they generally rely on environmental maps for navigation. However, these environments are complex and changeable. Changes in objects such as walls and machines in the environment directly cause the environmental map to be inconsistent with the actual environment, which in turn affects the accuracy and reliability of robot navigation and positioning. Relying on manual updating of environmental maps later will bring a relatively large cost burden and construction difficulties.

[0004] Therefore, how to determine whether the environmental map has changed has become an important problem that needs to be solved urgently in current map processing technology. Summary of the invention

[0005] The present application at least provides a map change detection method, apparatus, device and computer-readable storage medium.

[0006] In a first aspect, the present application provides a map change detection method, comprising: controlling a movable device to move and record point clouds based on an acquired prior grid map to obtain a real-time grid map; determining an area in the prior grid map that overlaps with the real-time grid map as a target prior map, and determining an area in the real-time grid map that overlaps with the prior grid map as a target real-time map; and determining a map change rate of the target real-time map relative to the target prior map based on a grid difference comparison result between the target prior map and the target real-time map.

[0007] In one embodiment, after the step of determining the map change rate of the target real-time map relative to the target prior map based on the grid difference comparison result between the target prior map and the target real-time map, the method further includes: if the map change rate is greater than a preset change threshold, updating the prior grid map to obtain an updated prior grid map; and controlling the movable device to move and record point cloud based on the updated prior grid map.

[0008] In one embodiment, after the step of performing movement and point cloud recording based on the acquired prior grid map to obtain a real-time grid map, the method further includes: generating a target detection map based on detected grids and undetected grids in the real-time grid map; the step of determining the map change rate of the target real-time map relative to the target prior map based on the grid difference comparison result between the target prior map and the target real-time map includes: determining the undetected grids in the target prior map based on the target detection map, and filtering the undetected grids to obtain the filtered target prior map; determining the map change rate of the target real-time map relative to the target prior map based on the grid difference comparison result between the filtered target prior map and the target real-time map.

[0009] In one embodiment, the step of generating a target detection map based on the detected grids and the undetected grids in the real-time grid map includes: determining the detected grids and the undetected grids in the real-time grid map based on the acquired point cloud data; generating an initial detection map based on the detected grids and the undetected grids; and downsampling the initial detection map to obtain the target detection map.

[0010] In one embodiment, the undetected grid includes a first detection value, the detected grid includes a second detection value, and the grid in the target prior map includes an occupancy value. The step of determining the undetected grid in the target prior map based on the target detection map and filtering the undetected grid to obtain the filtered target prior map includes: traversing the grids whose positions match between the target detection map and the target prior map; updating the occupancy value of the grid corresponding to the first detection value, and retaining the occupancy value of the grid corresponding to the second detection value to obtain the filtered target prior map.

[0011] In one embodiment, the step of determining the map change rate of the target real-time map relative to the target prior map based on the grid difference comparison result between the target prior map and the target real-time map includes: performing an XOR operation between the target prior map and the target real-time map to obtain a difference map, wherein the difference map includes grids with changes between the target prior map and the target real-time map; and calculating the ratio between the number of target grids in the target prior map and the number of grids with changes to obtain the map change rate.

[0012] In one embodiment, the steps of determining the area in the prior grid map that overlaps with the real-time grid map as the target prior map, and determining the area in the real-time grid map that overlaps with the prior grid map as the target real-time map, include: determining the area in the prior grid map that overlaps with the real-time grid map as a prior sub-map; downsampling the prior sub-map to obtain the target prior map; determining the area in the real-time grid map that overlaps with the prior grid map as a real-time sub-map; downsampling the real-time sub-map to obtain the target real-time map.

[0013] A second aspect of the present application provides a map change detection device, comprising: an acquisition module, used to control a movable device to move and record point clouds based on an acquired prior grid map to obtain a real-time grid map; a map determination module, used to determine the area in the prior grid map that overlaps with the real-time grid map as a target prior map, and to determine the area in the real-time grid map that overlaps with the prior grid map as a target real-time map; a change calculation module, used to determine the map change rate of the target real-time map relative to the target prior map based on a grid difference comparison result between the target prior map and the target real-time map.

[0014] A third aspect of the present application provides an electronic device, including a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the above-mentioned map change detection method.

[0015] A fourth aspect of the present application provides a computer-readable storage medium having program instructions stored thereon, which implement the above-mentioned map change detection method when the program instructions are executed by a processor.

[0016] The above scheme obtains a real-time grid map by controlling the movable device to move and record point clouds based on the acquired prior grid map; the area where the prior grid map and the real-time grid map overlap is the area where it is necessary to determine whether there is a change, so the area in the prior grid map that overlaps with the real-time grid map is determined as the target prior map, and the area in the real-time grid map that overlaps with the prior grid map is determined as the target real-time map; based on the grid difference comparison result between the target prior map and the target real-time map, the map change rate of the target real-time map relative to the target prior map is determined, thereby being able to determine whether the current scene has changed compared to the prior map based on the map change rate, thereby preventing the movable device from performing incorrect positioning and navigation.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0019] Figure 1 is a flowchart of an exemplary embodiment of a map change detection method of the present application;

[0020] Figure 2 It is a simplified schematic diagram of the connection relationship between the vehicle controller unit, the vehicle system, and the vehicle audio power amplifier in the map change detection method of the present application;

[0021] Figure 3 It is a schematic diagram of the effect of map change detection under linear acceleration in the map change detection method of the present application;

[0022] Figure 4 yes Figure 1 A flowchart of an exemplary embodiment of step 130 in the map change detection method is shown;

[0023] Figure 5 It is a schematic diagram of the effect of map change detection under linear deceleration in the map change detection method of the present application;

[0024] Figure 6 is a block diagram of a map change detection device shown in an exemplary embodiment of the present application;

[0025] Figure 7 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0026] Figure 8 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0027] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.

[0028] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.

[0029] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C.

[0030] For ease of understanding, examples of common existing methods in applicable scenarios such as positioning and navigation of mobile devices are now provided. In existing methods, mobile devices are usually moved and positioned based on an acquired prior map, where the prior map can be a grid map, that is, a grid composed of grids is used to represent the map, and different values ​​can be stored in the grid to represent the different meanings of the grid, where the value can be a probability value, a grayscale value, or a binary value (0 represents that the grid is idle, and 1 represents that the grid is occupied).

[0031] In some complex and ever-changing environments, if the prior map does not match the actual environment, it will affect the accuracy of positioning and navigation of mobile devices. Therefore, if there is a difference between the prior map and the actual environment, relevant personnel will update the prior map; but if relevant personnel are sent to update the prior map every time the actual environment changes, it will bring a relatively large cost burden and construction difficulties.

[0032] See also Figure 1 , Figure 1 This is a flowchart of an exemplary embodiment of the map change detection method of the present application. Specifically, it may include the following steps:

[0033] Step S110, controlling the movable device to move and record point clouds based on the acquired prior grid map to obtain a real-time grid map.

[0034] The movable device can be a movable robot, a drone, a car and other equipment. In this application, the mobile robot is mainly used as an example for explanation. The movable device is equipped with a laser radar for acquiring laser point cloud data, and can also be equipped with an odometer for preliminarily estimating the change in angle and distance of the mobile robot. A common one is a wheel encoder, which can estimate the robot's posture at the current moment based on the change in posture before and after the moment and the posture at the previous moment.

[0035] The grid map of the present application can be the smallest rectangular envelope surface that contains all obstacle grids. If the shape of the grid obstacle is not rectangular, grids can be added at the edge of the grid map (idle state) until the grid map becomes rectangular. For example, the coordinates of the lower left corner of the grid map can be used as the coordinate origin (x, y, thea), the resolution is r, the number of grid rows is rows, and the number of grid columns is cols.

[0036] It should be noted that the prior grid map can be set in advance or obtained through network communication; the method of the present application can be applied to a mobile device equipped with a processor, and the mobile device can realize its own control and data processing, or it can be applied to an external intelligent device that establishes a communication connection with the mobile device, and the external intelligent device controls the mobile device and realizes data processing through the communication connection. There is no limitation here.

[0037] Specifically, the mobile device uses the acquired prior grid map as a positioning map to move and record real-time laser point cloud data and its corresponding posture. Among them, it can be synchronous real-time recording while moving, or it can be recorded after moving to the target position in the prior grid map, which is not limited here. During its operation, it can be in response to the acquired map generation instruction (refer to the above description, it can be internally triggered or externally triggered), and generate a real-time grid map based on the acquired point cloud data; or it can be based on a preset time interval, and when its running time reaches a time interval each time, it generates a real-time grid map based on the point cloud data acquired during the running time; or it can be based on a preset distance interval, and when its running distance reaches a distance interval each time, it generates a real-time grid map based on the point cloud data acquired within the running distance. Among them, the resolution of the generated real-time grid map can be consistent with the resolution of the prior grid map.

[0038] Furthermore, the real-time grid map M n0 Each key frame laser data acquired can be projected to the prior grid map coordinate system according to its corresponding position and posture, and generated using ray tracing or TSDF method, where the value of each grid in the real-time grid map represents whether it is occupied (1 if occupied, 0 if idle). In addition, when generating the real-time grid map, the observation map M can also be generated. obs (hereinafter also referred to as the detection map) represents whether each grid in the real-time grid map is observed by the mobile device (1 if observed, 0 if not observed). If the grid is not observed, the observation value of the grid in the observation map is 0, but it does not indicate whether the grid is occupied.

[0039] Step S120: determining the area in the priori grid map that overlaps with the real-time grid map as the target priori map, and determining the area in the real-time grid map that overlaps with the priori grid map as the target real-time map.

[0040] Combined with the above steps, the real-time grid map is generated by the mobile device during the movement, so the real-time grid map M n0 and the prior grid map M p0 There may be differences in the size of the real-time grid map and the prior grid map, so it is necessary to compare and analyze the overlapping areas (intersection areas). Figure 2 As shown, Figure 2 This is a schematic diagram of an exemplary analysis of the overlapping area between the prior grid map and the real-time grid map in the map change detection method of the present application. By analyzing the changes of each grid in the overlapping area (from idle to occupied or from occupied to idle), the change amount of the real-time grid map relative to the prior grid map in the overlapping area can be obtained.

[0041] For example, the real-time grid map is projected into the prior grid map coordinate system, and the vertex coordinates of the lower left corner and the upper right corner of the prior grid map are obtained as rect1{(x 1 ,y 1 ),(x′ 1 ,y′ 1 )}, get the vertex coordinates of the lower left corner and upper right corner of the real-time grid map as rect2{(x 2 ,y 2 ),(x′ 2 ,y′ 2 )}. It can be seen that the vertex coordinates of the lower left corner and upper right corner of the intersection grid map of the intersection area are x 0 =max(x 1 ,x 2 ), y 0 =max(y 1 ,y 2 ), x′ 0 =max(x′ 1 ,x′ 2 ),y′ 0 =max(y′ 1 ,y′ 2 ), that is, get the vertex coordinates of the intersecting rectangular area rect3{(x 0 ,y 0 ),(x′ 0 ,y′ 0 )}. Further, the prior map M can be determined in the prior grid map according to the intersection area. p1 and determine the real-time map M in the real-time grid mapn1 .

[0042] It should be noted that M p1 Determine the target prior map and M n1 Determine the target real-time map; or further p1 and M n1 After more optimization processing, the two new maps are used as the target prior map and the target real-time map, which will not be described in detail here.

[0043] In addition, since the observation map M obs With real-time grid map M n0 The origin coordinates, size, and resolution are consistent, so in the process of processing the real-time grid map, M obs The corresponding grid area is the same as M n0 The same cropping process is performed to obtain the observation map M corresponding to the target real-time map. obs1 .

[0044] Step S130 , determining a map change rate of the target real-time map relative to the target a priori map based on a grid difference comparison result between the target a priori map and the target real-time map.

[0045] Combined with the above steps, if M p1 and M n1 Determined as the target prior map and the target real-time map, the target prior map M of the same area can be compared p1 and target real-time map M n1 The grid in the image can be used to obtain the real-time map M of the target in the area. n1 Relative to the target prior map M p1 The change of is used to obtain the map change rate.

[0046] Exemplarily, the change of the grid can be represented by the grid value in the map. For example, the grid value of a grid in the prior map is 1, which represents an occupied state, while the grid value of the grid in the real-time map is 0, which represents an idle state, that is, it represents that the grid has changed from occupied to idle, and the occupied object in the grid may have moved in the current time period; similarly, if the grid value of a grid in the prior map is 0, which represents an idle state, and the grid value of the grid in the real-time map is 1, which represents an occupied state, that is, it represents that the grid has changed from idle to occupied, and the originally idle grid has been placed in an occupied object in the current time period.

[0047] Specifically, the method for calculating the map change rate can be obtained by calculating the ratio between the number of grids whose grid values ​​have changed between the target prior map and the target real-time map and the total number of grids in the intersection area. Among them, judging whether the grid value has changed can be determined by an XOR operation (orthogonal calculation). For example, for the same grid, if the grid value of the grid in the target real-time map has changed compared to the grid value of the grid in the target prior map, the value obtained after the XOR operation of the grid value of the grid in the target real-time map and the grid value of the grid in the target prior map is 1; similarly, if the grid value of the grid has not changed, the value obtained is 0.

[0048] Optionally, after obtaining the above results, the map change rate and the grids with changes can be stored, and the real-time grid map data can be deleted or otherwise optimized to save data storage space. In the subsequent process, mobile devices, other electronic devices or relevant personnel can measure whether the prior map needs to be updated based on the map change rate and the grids with changes.

[0049] It can be seen that the present application obtains a real-time grid map by controlling the movable device to move and record point clouds based on the acquired prior grid map; the area where the prior grid map and the real-time grid map overlap is the area where it is necessary to determine whether there is a change, so the area in the prior grid map that overlaps with the real-time grid map is determined as the target prior map, and the area in the real-time grid map that overlaps with the prior grid map is determined as the target real-time map; based on the grid difference comparison result between the target prior map and the target real-time map, the map change rate of the target real-time map relative to the target prior map is determined, thereby determining whether the current scene has changed compared to the prior map based on the map change rate, thereby preventing the movable device from performing incorrect positioning and navigation.

[0050] Based on the above embodiment, the embodiment of the present application describes the steps after determining the map change rate of the target real-time map relative to the target prior map based on the grid difference comparison result between the target prior map and the target real-time map. Specifically, the method of this embodiment includes the following steps:

[0051] If the map change rate is greater than a preset change threshold, the priori grid map is updated to obtain an updated priori grid map; the movable device is controlled to move and record point clouds based on the updated priori grid map.

[0052] In combination with the above-mentioned embodiments, in the traditional map update method, if a change is detected between the real-time map and the prior map, the prior map will be updated in real time. However, in complex scenarios, if positioning errors and other problems occur, the map will be updated incorrectly. However, the present application can update the map whose map change rate is greater than the change threshold after comparing the map change rate with the preset change threshold, thus avoiding the problem of prior map changes caused by incorrect positioning, and effectively improving the fault tolerance of map construction and positioning navigation.

[0053] There may be one or more change thresholds. For example, the mobile scene of the mobile device may be divided into multiple sub-areas (i.e., the map may include multiple sub-areas), and different sub-areas may have the same or different change thresholds, so as to set different change thresholds for certain frequently changing areas and / or certain infrequently changing areas in the mobile scene for separate judgments.

[0054] Furthermore, after updating the map, the movable device can be controlled to move and record point clouds according to the updated map, and a real-time grid map can be generated according to the method provided in the above embodiment to detect map changes.

[0055] It can be seen from this that after generating a new real-time grid map, the present application calculates the map change rate and stores the changed grids to accurately judge and measure whether the prior map needs to be changed or updated, and can also reduce data redundancy; during the operation of the mobile device, this solution can change the prior map in a non-real-time manner, avoiding the problem of prior map changes caused by incorrect positioning, and effectively improving the fault tolerance rate.

[0056] In addition, the implementation method of the present application for map updating can be that each time the map change rate of the overlapped area between the currently generated real-time grid map and the prior grid map is calculated, it is judged whether the prior map needs to be updated according to the map change rate and the change threshold; it can also be that each time the map change rate is calculated, it is saved until the area of ​​all real-time grid maps generated by the mobile device covers the area of ​​the prior grid map (for example, the mobile device completes full driving on the prior grid map, or the mobile device completes the route driving corresponding to the received task instruction), and then the map change rates obtained by comparing the real-time grid maps and the prior map generated multiple times are averaged or weighted (maps generated in different areas can correspond to the same or different weights, for example, areas with frequent changes can be set with lower weights, while areas with infrequent changes can be set with higher weights), and the target change rate is obtained, and then the target change rate is used to judge whether the map needs to be updated. This can make the judgment on whether the map needs to be updated more accurate.

[0057] Based on the above embodiments, the embodiment of the present application describes the steps of obtaining a real-time grid map by moving and recording point clouds based on the acquired prior grid map, and the steps of determining the map change rate of the target real-time map relative to the target prior map based on the grid difference comparison result between the target prior map and the target real-time map. Specifically, the method of this embodiment includes the following steps:

[0058] A target detection map is generated based on detected grids and undetected grids in a real-time grid map; undetected grids in a target priori map are determined based on the target detection map, and the undetected grids are filtered to obtain a filtered target priori map; a map change rate of the target real-time map relative to the target priori map is determined based on a grid difference comparison result between the filtered target priori map and the target real-time map.

[0059] In conjunction with the above-mentioned embodiment, the target detection map may be equivalent to the observation map M in the above-mentioned embodiment. obs Or a map that has undergone certain data processing, such as M obs1 , or there may be other data processing processes, which will not be described here. It is used to characterize which grids in the real-time grid map are detected (set to 1 if observed) and which grids are not detected (set to 0 if not observed).

[0060] It is understandable that the mobile device is restricted by the route or objects in the environment during movement. When generating a new map (generating a real-time grid map), the mobile device cannot observe the status of certain grid areas in the prior grid map during certain periods of time (possibly due to occlusion, etc.). At this time, it may be considered that the grid area in the real-time grid map is an unknown (idle) area, and then the grid that was originally occupied in the prior grid map is judged to be idle when the real-time grid map is generated, and the objects therein are determined to be removed, which ultimately affects the calculation accuracy of the map change rate.

[0061] In the technical solution of the present application, in the process of generating a real-time grid map, the detection status of each grid can be synchronously recorded to generate a target detection map (the observed grid is determined as a known grid, and its observation value is set to 1; the unobserved grid is determined as an unknown grid, and its observation value is set to 0). For the grids in the intersection area of ​​the prior grid map and the real-time grid map, the target detection map can be used to filter the unknown grids therein, so that the analysis and calculation results are more accurate.

[0062] Exemplarily, the filtering process can be based on the observed values ​​of each grid mark in the target detection map, and the grid values ​​of the grids that are not detected in the target prior map are set to 0 to obtain a filtered target prior map. Based on the grid difference comparison result between the filtered target prior map and the target real-time map (refer to the XOR operation process of the above embodiment), a more accurate map change rate can be determined.

[0063] Based on the above embodiment, the embodiment of the present application describes the steps of generating a target detection map based on the detected grids and undetected grids in the real-time grid map. Specifically, the method of this embodiment includes the following steps:

[0064] Based on the acquired point cloud data, the detected grids and the undetected grids in the real-time grid map are determined; based on the detected grids and the undetected grids, an initial detection map is generated; and the initial detection map is downsampled to obtain a target detection map.

[0065] In combination with the above-mentioned embodiment, in the process of generating a real-time grid map, the detected grids and the undetected grids in the intersection area of ​​the prior grid map and the real-time grid map can be determined based on the acquired point cloud data, and then the initial detection map is generated based on the detected grids and the undetected grids. For ease of understanding, the initial detection map can be equivalent to the observation map M in the above-mentioned embodiment. obs , including detected grids (known grids, observation value is 1) and undetected grids (unknown grids, observation value is 0).

[0066] It is understandable that the prior grid map and the real-time grid map can be used for navigation and positioning, so the maps are relatively fine and have a relatively high resolution. Due to factors such as sensor errors such as laser data, map composition errors, and positioning errors, the contour grids generated by the same object will also have certain errors in the two maps. There is also a certain degree of position and size deviation between the grids. In order to avoid mistaking such situations for changes in the map and to improve computational efficiency, the three maps (prior map, real-time map, and detection map) can be downsampled once or multiple times. After pixel filtering and downsampling, maps with a resolution of r1 are obtained, namely the prior map M p2 、Real-time map M n2 and detection map M obs2 .

[0067] It should be noted that the initial detection map of this embodiment can be obtained by clipping. obs1 , or M without cropping obsThe specific type can refer to the description of the above embodiment, which mainly depends on whether the real-time map is clipped. Therefore, optionally, in this embodiment, the initial detection map M obs After clipping, we get the detection map M obs1 , and then the detection map M obs1 Perform downsampling processing to obtain the target detection map M obs2 ; or the initial detection map M obs Perform downsampling processing to obtain the target detection map M obs2 .

[0068] In addition, in another possible implementation, the execution order of the downsampling process and the cropping process may be swapped, which will not be elaborated here.

[0069] Based on the above embodiment, the embodiment of the present application describes the steps of determining the undetected grids in the target prior map based on the target detection map, and filtering the undetected grids to obtain the filtered target prior map. The undetected grids include the first detection value, the detected grids include the second detection value, and the grids in the target prior map include the occupancy value. Specifically, the method of this embodiment includes the following steps:

[0070] Traverse the grids whose positions match between the target detection map and the target prior map; update the occupancy value of the grid corresponding to the first detection value, and retain the occupancy value of the grid corresponding to the second detection value, to obtain a filtered target prior map.

[0071] In combination with the above-mentioned embodiment, the undetected grids in the detection map will be set to the first detection value (such as 0), and the detected grids will be set to the second detection value (such as 1); and the grids in the prior map have occupancy values ​​to indicate whether the grids in the prior map are occupied, where the occupancy value of 0 indicates unoccupied and the occupancy value of 1 indicates occupied; similarly, the grids in the real-time map also have occupancy values.

[0072] For reference Figure 3 , Figure 3 Schematic diagram of grid filtering in the map change detection method of this application. obs2 For the target prior map M p2 Filtering is used as an example to illustrate that since the target detection map M obs2 and the target prior map M p2 Keep the same specifications and traverse M p2 With M obs2 For each corresponding grid in M p2 、M obs2 The grid at row i and column j in M p2(i,j),M obs2 (i,j), then the filtered prior map M p3 The corresponding grid element M p3 The mathematical expression of (i,j) is:

[0073]

[0074] It means that for the same set of corresponding grids, if the occupancy value and the detection value are both 1, then the occupancy value of the grid in the filtered (AND operation) target prior map is 1, which is equivalent to indicating that when a grid is observed and occupied, the grid is assigned a value of 1; otherwise, it is 0. By traversing all grids to perform the above calculation, the objects in the unknown area can be filtered out, and the filtered target prior map M can be obtained. p3 .

[0075] Based on the above embodiment, the embodiment of the present application describes the steps of determining the map change rate of the target real-time map relative to the target prior map based on the grid difference comparison result between the target prior map and the target real-time map. Specifically, the method of this embodiment includes the following steps:

[0076] An XOR operation is performed between the target prior map and the target real-time map to obtain a difference map, which includes grids with changes between the target prior map and the target real-time map; a ratio is calculated between the number of target grids in the target prior map and the number of grids with changes to obtain a map change rate.

[0077] Combined with the above embodiments, please refer to Figure 4 , Figure 4 Schematic diagram of obtaining grid difference comparison results in the map change detection method of the present application. n2 With the filtered target prior map M p3 Perform XOR operation on each grid element in to obtain the new map matrix M c , its mathematical expression is:

[0078] M c (i, j) = M n2 (i, j) ⊕ M p3 (i, j)

[0079] Through the XOR operation, we can see that the obtained matrix M c The grid values ​​of the grids that have changed are set to 1, and the grid values ​​of the grids that have not changed are set to 0.

[0080] Therefore, the statistical matrix M cThe number of grids with a median value of 1 is N, which represents the number of grids that have changed (including from idle to occupied, and from occupied to idle) compared with the filtered target prior map in the target real-time map. p3 The number of grids with a median value of 1 is the number of grids occupied in the filtered target prior map M. Then the mathematical expression of the map change rate of the target real-time map relative to the filtered target prior map is: Wherein γ is a preset coefficient, because the resolution of the map has been scaled before, if it is scaled too much it may affect the effect, so it is amplified by the preset coefficient; it can be summarized based on experimental experience, the larger the scaling factor of the previous process, the larger the coefficient here can be set, illustratively, this method can use 1.5 as the preset coefficient, where α∝R, R=r1 / r, refer to the above embodiment, r1 is the map resolution after downsampling, and r is the initial resolution of the map.

[0081] In summary, the changed grid map Mc and the map change rate CMR are obtained. If the map environment change rate is greater than the preset change threshold β (which can be set to 0.3 in this application), it is considered that the map has changed, and the staff can be prompted to check whether the map has changed and update the prior map.

[0082] For example, reference may be made to Figure 5 As shown, Figure 5 is a schematic diagram of a scenario for determining whether a map is updated in the map change detection method of the present application, Figure 5 In (a), the boxed area is the part of the real-time map that has changed relative to the prior map, and the change rate is about 41.92%. If the change rate is greater than the threshold β, the map needs to be updated. Similarly, Figure 5 The change rate of (b) is about 13.9%, which is less than the threshold β. At this time, there is no need to update the map.

[0083] Based on the above embodiment, the embodiment of the present application describes the steps of determining the area in the priori grid map that overlaps with the real-time grid map as the target priori map, and determining the area in the real-time grid map that overlaps with the priori grid map as the target real-time map. Specifically, the method of this embodiment includes the following steps:

[0084] The area in the prior grid map that overlaps with the real-time grid map is determined as a prior sub-map; the prior sub-map is downsampled to obtain a target prior map; the area in the real-time grid map that overlaps with the prior grid map is determined as a real-time sub-map; the real-time sub-map is downsampled to obtain a target real-time map.

[0085] In conjunction with the above embodiment, the above embodiment has described the method of downsampling the detection map. Similarly, downsampling can also be performed on the prior map and the real-time map. That is, in one possible implementation of the present application, the movable device can be controlled according to the prior map M p0 Perform mobile and point cloud collection, and generate real-time maps based on the acquired point cloud data n0 and detection map M obs ; Based on the prior map M p0 and real-time map M n0 The intersection area between the two maps is clipped to obtain the prior sub-map M p1 and real-time submap M n1 , and based on the real-time map M n0 The same cropping method is used for the detection map M obs Perform cropping to obtain the detection map M obs1 ; For the prior submap M p1 , Real-time sub-map M n1 and detection map M obs1 Perform downsampling to obtain the target prior map M p2 、Target real-time map M n2 and target detection map M obs2 .

[0086] In summary, the present application designs an accurate and efficient method for calculating the map change rate: by calculating the intersection of the prior map and the real-time map, the intersection part is obtained; by downsampling the map, the false detection caused by the map scale error, sensor error, and algorithm error is avoided, and the calculation efficiency is improved; by recording whether each grid is observed, the grids that are not observed in the prior map are filtered, so that the calculation result is more accurate; by performing an XOR operation on two map matrices, it is possible to quickly determine which grids have changed (including from idle to occupied, from occupied to idle); by calculating the map change rate and storing only the changed matrix M c , it can accurately judge and measure whether the prior map needs to be changed or updated; during the operation of the mobile device, this solution does not need to change the prior map in real time, avoiding the situation where the prior map is changed due to incorrect positioning, and effectively improving the fault tolerance rate.

[0087] It should be further explained that the execution subject of the map change detection method may be a map change detection device, for example, the map change detection method may be executed by a terminal device or a server or other processing device, wherein the terminal device may be a user equipment (UE), a computer, a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the map change detection method may be implemented by a processor calling a computer-readable instruction stored in a memory.

[0088] Figure 6 FIG. 1 is a block diagram of a map change detection device shown in an exemplary embodiment of the present application. Figure 6 As shown, the exemplary map change detection device 600 includes: an acquisition module 610, a map determination module 620 and a change calculation module 630. Specifically:

[0089] The acquisition module 610 is used to control the movable device to move and record point clouds based on the acquired priori grid map to obtain a real-time grid map.

[0090] The map determination module 620 is used to determine the area in the priori grid map that overlaps with the real-time grid map as the target priori map, and to determine the area in the real-time grid map that overlaps with the priori grid map as the target real-time map.

[0091] The change calculation module 630 is used to determine the map change rate of the target real-time map relative to the target a priori map based on the grid difference comparison result between the target a priori map and the target real-time map.

[0092] In this exemplary map change detection device, a real-time grid map is obtained by controlling a movable device to move and record point clouds based on an acquired prior grid map; the area where the prior grid map and the real-time grid map overlap is the area where it is necessary to determine whether there is a change, so the area in the prior grid map that overlaps with the real-time grid map is determined as the target prior map, and the area in the real-time grid map that overlaps with the prior grid map is determined as the target real-time map; based on the grid difference comparison result between the target prior map and the target real-time map, the map change rate of the target real-time map relative to the target prior map is determined, thereby being able to determine whether the current scene has changed compared to the prior map based on the map change rate, thereby preventing the movable device from performing incorrect positioning and navigation.

[0093] It should be noted that the device provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In practical applications, the device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0094] The functions of each module can be found in the map change detection method embodiment, which will not be described in detail here.

[0095] See also Figure 7 , Figure 7 7 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device 700 includes a memory 701 and a processor 702. The processor 702 is used to execute program instructions stored in the memory 701 to implement the steps in any of the above map change detection method embodiments. In a specific implementation scenario, the electronic device 700 may include but is not limited to: a microcomputer, a server, and in addition, the electronic device 700 may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.

[0096] Specifically, the processor 702 is used to control itself and the memory 701 to implement the steps in any of the above-mentioned map change detection method embodiments. The processor 702 can also be called a CPU (Central Processing Unit). The processor 702 may be an integrated circuit chip with signal processing capabilities. The processor 702 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 702 can be implemented by an integrated circuit chip.

[0097] In this exemplary electronic device, a real-time grid map is obtained by controlling a movable device to move and record point clouds based on an acquired prior grid map; the area where the prior grid map and the real-time grid map overlap is the area where it is necessary to determine whether there is a change, so the area in the prior grid map that overlaps with the real-time grid map is determined as the target prior map, and the area in the real-time grid map that overlaps with the prior grid map is determined as the target real-time map; based on the grid difference comparison result between the target prior map and the target real-time map, the map change rate of the target real-time map relative to the target prior map is determined, thereby determining whether the current scene has changed compared to the prior map based on the map change rate, thereby preventing the movable device from performing incorrect positioning and navigation.

[0098] See also Figure 8 , Figure 8 The computer-readable storage medium 810 stores program instructions 811 that can be executed by a processor, and the program instructions 811 are used to implement the steps in any of the above map change detection method embodiments.

[0099] In this exemplary storage medium, the program instructions in the storage medium are run to control the movable device to move and record point clouds based on the acquired prior grid map to obtain a real-time grid map; the area where the prior grid map and the real-time grid map overlap is the area where it is necessary to determine whether there is a change, so the area in the prior grid map that overlaps with the real-time grid map is determined as the target prior map, and the area in the real-time grid map that overlaps with the prior grid map is determined as the target real-time map; based on the grid difference comparison result between the target prior map and the target real-time map, the map change rate of the target real-time map relative to the target prior map is determined, thereby being able to determine whether the current scene has changed compared to the prior map based on the map change rate, thereby preventing the movable device from performing incorrect positioning and navigation.

[0100] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0101] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0102] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0103] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

Claims

1. A map change detection method, characterized in that: The method comprises: Control the movable device to move and record point clouds based on the acquired prior grid map to obtain a real-time grid map; Determine the area in the priori grid map that overlaps with the real-time grid map as the target priori map, and determine the area in the real-time grid map that overlaps with the priori grid map as the target real-time map; A map change rate of the target real-time map relative to the target a priori map is determined based on a grid difference comparison result between the target a priori map and the target real-time map.

2. The method according to claim 1, characterized in that After the step of determining the map change rate of the target real-time map relative to the target a priori map based on the grid difference comparison result between the target a priori map and the target real-time map, the method further includes: If the map change rate is greater than a preset change threshold, the priori grid map is updated to obtain an updated priori grid map; The movable device is controlled to move and record point cloud based on the updated priori grid map.

3. The method according to claim 1, characterized in that After the step of performing movement and point cloud recording based on the acquired priori grid map to obtain a real-time grid map, the method further includes: Generating a target detection map based on detected grids and undetected grids in the real-time grid map; The step of determining the map change rate of the target real-time map relative to the target a priori map based on the grid difference comparison result between the target a priori map and the target real-time map comprises: Determining undetected grids in the target priori map based on the target detection map, and filtering the undetected grids to obtain the filtered target priori map; A map change rate of the target real-time map relative to the target a priori map is determined based on a grid difference comparison result between the filtered target a priori map and the target real-time map.

4. The method according to claim 3, characterized in that The step of generating a target detection map based on detected grids and undetected grids in the real-time grid map comprises: Determining the detected grids and the undetected grids in the real-time grid map based on the acquired point cloud data; generating an initial detection map based on the detected grids and the undetected grids; Downsampling is performed on the initial detection map to obtain the target detection map.

5. The method according to claim 3, characterized in that: The undetected grid includes a first detection value, the detected grid includes a second detection value, the grid in the target priori map includes an occupancy value, and the step of determining the undetected grid in the target priori map based on the target detection map, and filtering the undetected grid to obtain the filtered target priori map includes: Traversing grids whose positions match between the target detection map and the target prior map; The occupancy value of the grid corresponding to the first detection value is updated, and the occupancy value of the grid corresponding to the second detection value is retained to obtain the filtered target prior map.

6. The method according to claim 1, characterized in that The step of determining the map change rate of the target real-time map relative to the target a priori map based on the grid difference comparison result between the target a priori map and the target real-time map comprises: Performing an XOR operation between the target a priori map and the target real-time map to obtain a difference map, wherein the difference map includes grids where changes occur between the target a priori map and the target real-time map; The map change rate is obtained by calculating the ratio between the number of target grids in the target priori map and the number of grids with changes.

7. The method according to claim 1, characterized in that The steps of determining the area in the priori grid map that overlaps with the real-time grid map as the target priori map, and determining the area in the real-time grid map that overlaps with the priori grid map as the target real-time map, include: Determine the area in the priori grid map that overlaps with the real-time grid map as a priori sub-map; Downsampling the a priori submap to obtain the target a priori map; Determine the area in the real-time grid map that overlaps with the priori grid map as a real-time sub-map; Downsampling is performed on the real-time sub-map to obtain the target real-time map.

8. A map change detection device, characterized in that: include: An acquisition module is used to control the movable device to move and record point clouds based on the acquired prior grid map to obtain a real-time grid map; A map determination module, used to determine the area in the priori grid map that overlaps with the real-time grid map as a target priori map, and to determine the area in the real-time grid map that overlaps with the priori grid map as a target real-time map; The change calculation module is used to determine the map change rate of the target real-time map relative to the target a priori map based on the grid difference comparison result between the target a priori map and the target real-time map.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Map updating method, map updating device and computer readable storage medium

    CN113295176A

  • Laser positioning method and device and self-moving equipment

    CN117518176A

  • Raster map updating method and related product

    CN117804421A

  • Car navigation system and method for updating map-data of that

    KR1020100008386A

  • Map change detection system

    US20210302171A1

Cited By

  • Indoor cleaning AMR map cloud collaborative automatic updating method

    CN121594853A

  • A cloud-based collaborative automatic update method for indoor cleaning AMR maps

    CN121594853B