Loopback detection method and device, equipment and storage medium

By using semantic raster maps and historical semantic raster maps in SLAM technology to determine the grid pyramid and calculate the matching scores of candidate poses, it solves the problem of insufficient feature description matching accuracy and efficiency in the traditional loop closure detection method, and achieves a better Efficient loopback detection effect.

CN118628770APending Publication Date: 2024-09-10XUANCHENG LUXSHARE PRECISION IND CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410772083.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Traditional loop closure detection methods have poor accuracy and efficiency in feature description matching in SLAM technology, which affects the effectiveness and efficiency of loop closure detection.

Method used

By using the current semantic grid map and the historical semantic grid map to determine the grid pyramid, and calculating the matching score of the candidate pose, the target pose that best matches the current semantic grid map and the historical semantic grid map can be quickly determined.

Benefits of technology

The effect and efficiency of loop closure detection are improved, without the need for new hardware equipment, and the matching between candidate poses and historical semantic grid map poses is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628770A
    Figure CN118628770A
Patent Text Reader

Abstract

The invention discloses a loopback detection method and device, equipment and a storage medium. The method comprises the following steps: determining a grid pyramid by utilizing a current semantic grid map and a historical semantic grid map; determining a candidate pose set of the current semantic grid map by using the historical semantic grid map, and determining matching scores of candidate poses in the candidate pose set by using the candidate pose set and a local historical semantic grid map in the grid pyramid; and determining a target pose from the candidate poses associated with the matching score, and determining the target pose as a loopback detection result. According to the technical scheme provided by the embodiment of the invention, the best matched target pose of the current semantic grid map and the historical semantic grid map is quickly and accurately determined by utilizing the matching score of the candidate pose, and the loopback detection effect and efficiency can be improved without adding other hardware equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the field of intelligent driving, visual semantic SLAM (Simultaneous Localization and Mapping) technology based on BEV (Bird Eye View) is widely used in positioning and path planning in this field because the output map has the advantages of large viewing angle, low cost and stable features. SLAM will continuously accumulate errors during the mapping process, so it is necessary to detect whether the scene where the current vehicle is located coincides with the historical scene, and reduce the accumulated error of the system by eliminating the error during the overlap. This method is called loop optimization technology.

[0003] In SLAM technology, the initial pose of the current local map in the world coordinate system can always be directly obtained from the most recent historical map information, but with a large cumulative error. The task of loop detection is to find the overlapping area between the current map and the historical map, and provide a more accurate current pose from this area. Traditional loop detection methods usually require the establishment of a feature description of the map, and then match the feature description of the current detection image with the map features. However, the accuracy and efficiency of determining whether the feature description of the current detection image matches the map features are poor, which affects the effect and efficiency of loop detection. Summary of the invention

[0004] The present invention provides a loop detection method, device, equipment and storage medium to solve the problem of poor effect and efficiency of loop detection.

[0005] In a first aspect, the present invention provides a loop detection method, comprising:

[0006] Determine a grid pyramid using the current semantic grid map and the historical semantic grid map, wherein the grid pyramid contains local historical semantic grid maps of multiple resolutions and intersecting with the current semantic grid map;

[0007] Determine a candidate pose set of the current semantic grid map by using the historical semantic grid map, and determine a matching score of a candidate pose in the candidate pose set by using the candidate pose set and a local historical semantic grid map in the grid pyramid, wherein the matching score is used to characterize a matching degree between a candidate pose in the candidate pose set and a pose in the historical semantic grid map;

[0008] A target pose is determined from the candidate poses associated with the matching scores, and the target pose is determined as a loop detection result.

[0009] In a second aspect, the present invention provides a loop detection device, comprising:

[0010] A grid pyramid determination module, used to determine a grid pyramid using a current semantic grid map and a historical semantic grid map, wherein the grid pyramid contains local historical semantic grid maps of multiple resolutions and intersecting with the current semantic grid map;

[0011] a matching score determination module, configured to determine a candidate pose set of the current semantic grid map using the historical semantic grid map, and to determine a matching score of a candidate pose in the candidate pose set using the candidate pose set and a local historical semantic grid map in the grid pyramid, wherein the matching score is used to characterize a matching degree between a candidate pose in the candidate pose set and a pose in the historical semantic grid map;

[0012] The loop detection module is used to determine a target pose from the candidate poses associated with the matching scores, and determine the target pose as a loop detection result.

[0013] In a third aspect, the present invention provides an electronic device, the electronic device comprising:

[0014] at least one processor;

[0015] and a memory communicatively coupled to the at least one processor;

[0016] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the loop detection method of the first aspect.

[0017] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer instructions, which are used to enable a processor to implement the loop detection method of the first aspect when executed.

[0018] The loop detection scheme provided by the present invention uses the current semantic grid map and the historical semantic grid map to determine the grid pyramid, wherein the grid pyramid contains a local historical semantic grid map of multiple resolutions and having an intersection with the current semantic grid map, uses the historical semantic grid map to determine the candidate pose set of the current semantic grid map, and uses the candidate pose set and the local historical semantic grid map in the grid pyramid to determine the matching score of the candidate poses in the candidate pose set, wherein the matching score is used to characterize the matching degree between the candidate poses in the candidate pose set and the poses of the historical semantic grid map, determines the target pose from the candidate poses associated with the matching score, and determines the target pose as the loop detection result. By adopting the above technical scheme, the matching degree between the candidate pose and the pose of the historical semantic grid map is determined by using the candidate pose set and the grid pyramid of the current semantic grid map, and then the matching score is used to realize the rapid determination of the target pose that best matches the current semantic grid map and the historical semantic grid map, without adding other hardware devices, the effect and efficiency of loop detection can be improved.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of a loop detection method provided according to Embodiment 1 of the present invention;

[0022] Figure 2 is a flow chart of a loop detection method provided according to Embodiment 2 of the present invention;

[0023] Figure 3 is a schematic diagram of the structure of a loop detection device provided according to Embodiment 3 of the present invention;

[0024] Figure 4 It is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In the description of the present invention, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are an "or" relationship. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Embodiment 1

[0028] Figure 1 A flowchart of a loop detection method is provided for Embodiment 1 of the present invention. This embodiment is applicable to scenarios in which loop detection is performed on a map. The method can be performed by a loop detection device. The loop detection device can be implemented in the form of hardware and / or software. The loop detection device can be configured in an electronic device. The electronic device can be composed of two or more physical entities or one physical entity.

[0029] like Figure 1 As shown, a loop detection method provided in the first embodiment of the present invention specifically includes the following steps:

[0030] S101. Determine a grid pyramid using a current semantic grid map and a historical semantic grid map, wherein the grid pyramid includes local historical semantic grid maps of multiple resolutions and intersecting with the current semantic grid map.

[0031] In this embodiment, a search window Win (Dr, Dx, Dy) can be set, which includes the search range of rotation and displacement. Dr represents the search radius in the rotation direction, Dx and Dy represent the horizontal and vertical search radii respectively, the rotation search range can be greater than or equal to -Dr and less than or equal to Dr, the horizontal search range can be greater than or equal to -Dx and less than or equal to Dx, and the vertical search range can be greater than or equal to -Dy and less than or equal to Dy. The search step length Step (dr, dx, dy) can be understood as the amount of change in each step of the search in each search direction. dr represents the search step length in the rotation direction, dx represents the horizontal search step length, and dy represents the vertical search step length. The search window can be used to determine the local historical semantic grid map that intersects with the current semantic grid map. For example, the current semantic grid map and the historical semantic grid map are respectively converted to the world coordinate system using the search window, so as to obtain the intersection area of ​​the historical semantic grid map with the current semantic grid map, and the local historical semantic grid map is determined using the intersection area. Then, by performing a preset convolution operation on the local historical semantic grid map, a grid pyramid containing local historical semantic grid maps of multiple resolutions can be obtained. The number of layers of the grid pyramid is negatively correlated with the resolution of the map in the grid pyramid. The grid map contains semantic type labels of ground features, such as zebra crossings, lane lines, parking space lines, and arrows.

[0032] S102. Determine a candidate pose set of the current semantic grid map using the historical semantic grid map, and determine a matching score of a candidate pose in the candidate pose set using the candidate pose set and a local historical semantic grid map in the grid pyramid, wherein the matching score is used to characterize a degree of matching between a candidate pose in the candidate pose set and a pose in the historical semantic grid map.

[0033] In this embodiment, the historical semantic grid map can be used to filter out a candidate pose set from the current semantic grid map pose. For example, the current semantic grid map can be moved in the search window with the above-mentioned search step size. If there is an intersection with the area covered by the historical semantic grid map, the current semantic grid map pose corresponding to the current search window is taken as a candidate and added to the candidate set. Then, the matching score of the candidate pose is determined using the candidate pose set and the grid pyramid. For example, for each local historical semantic grid map in the grid pyramid, the position of the preset point in the current semantic grid map in the historical semantic grid map can be determined using the candidate pose, and the matching score can be determined based on the position and the grid value in the historical semantic grid map. Among them, the matching degree between the candidate pose and the historical semantic grid map pose can be negatively correlated with the matching score, that is, the greater the matching degree between the candidate pose and the historical semantic grid map pose, the smaller the matching score can be.

[0034] S103: Determine a target pose from the candidate poses associated with the matching scores, and determine the target pose as a loop detection result.

[0035] In this embodiment, a preset method can be used to screen out a candidate pose associated with the minimum matching score from the matching scores corresponding to the local historical semantic grid map in the grid pyramid, and the pose is the target pose.

[0036] The loop detection method provided by the embodiment of the present invention uses the current semantic grid map and the historical semantic grid map to determine the grid pyramid, wherein the grid pyramid contains local historical semantic grid maps of multiple resolutions and having intersections with the current semantic grid map, uses the historical semantic grid map to determine the candidate pose set of the current semantic grid map, and uses the candidate pose set and the local historical semantic grid map in the grid pyramid to determine the matching score of the candidate poses in the candidate pose set, wherein the matching score is used to characterize the matching degree between the candidate poses in the candidate pose set and the poses of the historical semantic grid map, determines the target pose from the candidate poses associated with the matching score, and determines the target pose as the loop detection result. The technical solution of the embodiment of the present invention uses the candidate pose set and the grid pyramid of the current semantic grid map to determine the matching degree between the candidate pose and the pose of the historical semantic grid map, and then uses the matching score to quickly determine the target pose that best matches the current semantic grid map and the historical semantic grid map, without adding other hardware devices, so as to improve the effect and efficiency of loop detection.

[0037] Optionally, the method of using the candidate pose set and the local historical semantic grid map in the grid pyramid to determine the matching score of the candidate poses in the candidate pose set includes: for each of the local historical semantic grid maps in the pyramid, using the candidate pose set and the historical semantic grid map pose to determine the target coordinate value of the target point in the current local historical semantic grid map, wherein the target point is a point in the current semantic grid map; using the target coordinate value to determine the coordinate value of the point that is the same as the target grid value in the local historical semantic grid map, and using the coordinate value to determine the matching score of the candidate poses in the candidate pose set, wherein the target grid value is the grid value of the target point in the current semantic grid map.

[0038] Specifically, for each local historical semantic grid map in the grid pyramid, the (target) coordinate value of the target point in the current local historical semantic grid map can be determined by using the poses in the candidate pose set and the poses of the historical semantic grid map. Then, for each local historical semantic grid map, the coordinate value of the point whose grid value is consistent with the target grid value can be determined within a preset range containing the target coordinate value. According to the specific position of the coordinate value, the matching score of the candidate pose corresponding to the target coordinate value is determined. For example, the smaller the Euclidean distance between the point that is consistent with the target grid value and has the shortest distance to the target point and the target point, the smaller the matching score.

[0039] Embodiment 2

[0040] Figure 2 This is a flow chart of a loop detection method provided in Embodiment 2 of the present invention. The technical solution of the embodiment of the present invention is further optimized on the basis of the above-mentioned optional technical solutions, and a specific method for loop detection on a map is given.

[0041] Optionally, the method of using the historical semantic grid map to determine the candidate pose set of the current semantic grid map includes: determining the search step of the search box for each local historical semantic grid map in the grid pyramid; using the search step of the search box to map the historical semantic grid map and the current semantic grid map to a preset coordinate system respectively; if in the preset coordinate system, there is an overlapping area between the preset search box of the current semantic grid map and the preset search box of the historical semantic grid map, then generating a candidate pose set using the pose of the preset search box of the current semantic grid map. The advantage of such a setting is that, for each local historical semantic grid map in the grid pyramid, the overlapping area between the current semantic grid map and the historical semantic grid map is accurately determined using the search box, and the candidate pose set is generated using the pose of the overlapping area.

[0042] Optionally, the use of the target coordinate value to determine the coordinate value of the point that is the same as the target grid value in the local historical semantic grid map, and the use of the coordinate value to determine the matching score of the candidate pose in the candidate pose set, includes: for each of the local historical semantic grid maps, with the target coordinate value of the current local historical semantic grid map as the center, using the nearest neighbor search algorithm to determine the closest distance of the point that is the same as the target grid value and closest to the target point within the preset search radius of the current local historical semantic grid map, wherein the grid value includes an object semantic type value, and when at least one non-background object semantic type value in the two grid values ​​is both true, the two grid values ​​are the same; using the nearest distance to determine the matching score of the candidate pose in the candidate pose set. The advantage of this setting is that, for each local historical semantic grid map, the nearest distance point of the target grid value is accurately and quickly determined using the nearest neighbor search algorithm, so that the matching score of the candidate pose can be obtained.

[0043] Optionally, determining the target pose from the candidate poses associated with the matching scores, and determining the target pose as the loop detection result, includes: in the process of generating a matching score tree using the matching score of the local historical semantic raster map, traversing and pruning the matching score tree using the branch and bound method to obtain the target pose, wherein the root node of the matching score tree is the candidate pose associated with the matching score of the local historical semantic raster map with the lowest resolution in the grid pyramid, and the target pose is the candidate pose associated with the lowest matching score in the local historical semantic raster map with the highest resolution in the grid pyramid. The advantage of such a setting is that by traversing and pruning in the process of generating the matching score tree using the branch and bound method, the target pose that best matches the current map and the historical map can be searched reasonably, effectively and quickly.

[0044] like Figure 2 As shown, a loop detection method provided by Embodiment 2 of the present invention specifically includes the following steps:

[0045] S201. Determine a grid pyramid using the current semantic grid map and the historical semantic grid map.

[0046] S202: Determine a search step length of a search box for each local historical semantic grid map in the grid pyramid.

[0047] Exemplarily, the search step size of the local historical semantic grid map at the zeroth level (ie, the highest resolution) in the grid pyramid may be (dr, dx, dy).

[0048] S203. Using the search step of the search box, the historical semantic grid map and the current semantic grid map are respectively mapped to preset coordinate systems. If there is an overlapping area between the preset search box of the current semantic grid map and the preset search box of the historical semantic grid map, the pose of the preset search box of the current semantic grid map is used to generate a candidate pose set.

[0049] Specifically, the search box can be understood as the search window described above. The current semantic grid map and the historical semantic grid map can be converted to the world coordinate system using the search box and the search step, so that the search box area in the historical semantic grid map that overlaps with the current semantic grid map can be obtained. The union of the overlapping search box areas can be determined as the local historical semantic grid map.

[0050] Optionally, the resolution of the local historical semantic grid map is positively correlated with the search step size of the search box.

[0051] Exemplarily, the search step size of the local historical semantic grid map of the TNth layer may be (dr, dx*2TN, dy*2TN).

[0052] S204: for each of the local historical semantic grid maps in the pyramid, determine the target coordinate value of the target point in the current local historical semantic grid map by using the candidate pose set and the historical semantic grid map pose.

[0053] The target point is a point in the current semantic grid map.

[0054] S205. For each of the local historical semantic grid maps, with the target coordinate value of the current local historical semantic grid map as the center, a nearest neighbor search algorithm is used to determine the nearest distance to the point that has the same target grid value and is closest to the target point within a preset search radius of the current local historical semantic grid map.

[0055] The grid values ​​include object semantic type values. When at least one non-background object semantic type value in two grid values ​​is true, the two grid values ​​are the same.

[0056] S206: Determine a matching score of a candidate pose in the candidate pose set using the shortest distance.

[0057] For example, the matching scores may be determined starting from the local historical semantic grid map of the TNth layer (with the lowest resolution) to the local historical semantic grid map of the zeroth layer (with the highest resolution). The specific determination method may be:

[0058]

[0059] A in the above formula represents the coordinate subset of the points in the current semantic grid map, which can be all non-background points in the current semantic grid map, or all non-background edge points. Pi is the coordinate value of the target point in A (including horizontal and vertical coordinate information). Th represents the pose of the historical semantic grid map, and Tc represents the pose in the candidate pose set. The trans() operation represents the conversion of the coordinate value of the point in the current semantic grid map to the historical semantic grid map. The C(pi) operation represents the grid value at the coordinate of the target point pi. The neighbor(,,,) operation represents the nearest neighbor search, in which the first parameter TN is the nearest neighbor search for the local historical semantic raster map at the TN layer, the second parameter trans() operation return value is the center coordinate point of the nearest neighbor search, the third parameter D is the maximum radius of the nearest neighbor search, and the fourth parameter C(pi) is the target grid value of the search. The return value of the neighbor(,,,) operation is the metric distance of the point that is closest to the point corresponding to the fourth parameter and has the same raster value. w i The distance weight of each target point can be assigned according to the semantic type and measurement noise at the target point. The method for determining whether two grid values ​​are the same can be: at least one non-background label value (object semantic type value) in the two grid values ​​is the same as true, that is, there is at least the same non-background object in the two small areas represented by the two grids.

[0060] Optionally, the resolution of the local historical semantic grid map is positively correlated with a preset search radius of the local historical semantic grid map.

[0061] Specifically, when calculating the matching score score, the nearest neighbor search range of the high-resolution local historical semantic raster map is larger than the search range of the low-resolution local historical semantic raster map. For example, the preset search radius of the high-resolution local historical semantic raster map can be twice the preset search radius of the low-resolution local historical semantic raster map. Among them, if the preset search radius of the local historical semantic raster map of the highest layer (lowest resolution) in the raster pyramid is zero, then the preset search radius of the local historical semantic raster map of the next layer is twice the sum of the preset search radius of the highest layer and 1.

[0062] S207 . In the process of generating a matching score tree by using the matching scores of the local historical semantic grid map, traverse and prune the matching score tree by using a branch and bound method to obtain a target posture.

[0063] Among them, the root node of the matching score tree is the candidate pose associated with the matching score of the local historical semantic raster map with the lowest resolution in the grid pyramid, and the target pose is the candidate pose associated with the lowest matching score in the local historical semantic raster map with the highest resolution in the grid pyramid.

[0064] Specifically, a candidate stack S can be created. Each time the matching score of a local historical semantic grid map is determined, the candidate matching elements can be stacked in order from high to low according to the matching scores, and then the stack S is output. The stack can always maintain a last-in-first-out order, so that the candidate matching element with the lowest matching score can be processed first. Among them, the candidate matching element includes at least a matching score score, a candidate pose Twc corresponding to the score, and a grid pyramid layer number sN corresponding to the score.

[0065] Exemplarily, the specific rules for generating the matching score tree may include the following two steps:

[0066] 1) Root node selection: The candidate matching elements of the local historical semantic grid map at the TNth layer in the stack S are taken as the root nodes, that is, there are as many matching score trees as there are candidate matching elements in the stack S. The number of layers of each tree is consistent with the number of layers of the grid pyramid. The root node of each tree is the lowest resolution layer of the grid pyramid (i.e., the TNth layer), and the leaf node is the highest resolution layer of the grid pyramid (i.e., the zeroth layer).

[0067] 2) Child node generation: Generate child nodes according to the posture of the parent node. The child nodes have the same data structure as the parent node. Each parent node can branch out multiple child nodes, such as nine child nodes. The rotation of the child node is the same as that of the parent node. If the posture of the parent node is (r, tx, ty), the generated child node set can be expressed as: Children = {(r, tx, ty) + (0, u*dx*2*sN-1, v*dy*2*sN-1) | u and v both belong to the set: {-1, 0, 1}}. sN in the above formula represents the number of layers of the grid pyramid corresponding to the parent node. The number of layers of the grid pyramid corresponding to the child node is "the number of layers of the parent node sN-1". The child nodes are sorted by the matching score and pushed into the stack in the order of high to low.

[0068] Exemplarily, the target posture is determined by:

[0069] 1) Tree traversal: In the process of generating each tree, the depth-first traversal method can be used for traversal and pruning, so as to ensure that a matching result of a local historical semantic grid map with the highest resolution is obtained as soon as possible for subsequent pruning.

[0070] 2) Tree pruning: Each time a node is traversed using the branch and bound method, it can be determined whether the matching score of the node is less than the current minimum matching score. If it is not less than the minimum matching score, the node is pruned.

[0071] Specifically, using the above-mentioned method for determining the target pose, the matching score of the low-resolution local historical semantic grid map is the lower bound of the matching score of the high-resolution local historical semantic grid map, that is, the matching score of the high-resolution will not be lower than the matching score of the low-resolution. Therefore, under this pruning method, the leaf node of each tree will not have a lower matching score than the current lowest, so that the pose with the lowest score in the highest resolution layer of the grid pyramid can be determined, and this pose is the target pose.

[0072] Optionally, before executing step 202, the nearest neighbor graph of each semantic label of each layer of the image in the grid pyramid may be determined. In this case, the data structure of each grid value of each layer of the image in the grid pyramid may be:

[0073] PixelDistance

[0074] ClassDistance1 distance_1,

[0075] ClassDistance2 distance_2,

[0076] …

[0077] ClassDistancen distance_n;

[0078] }

[0079] Distance_n represents the nearest metric distance from the coordinate point of this value to the nth semantic category. The nearest neighbor search algorithm is used to traverse each grid coordinate of each layer of the local historical semantic grid map, calculate the nearest neighbor metric distance value of each semantic type at the coordinate, and store it in the grid value at the coordinate. The metric distance can be understood as the larger value of the actual horizontal Euclidean distance and the actual vertical Euclidean distance. Finally, the grid pyramid with the same number of layers and the same size of each layer as the original grid pyramid is output. Then, the method for determining the matching score score can be updated as follows:

[0080]

[0081] Among them, the neighbor(,,) operation represents the nearest neighbor reading distance algorithm. Its first parameter N represents the nearest neighbor distance reading in the Nth layer grid map of the nearest neighbor metric distance grid pyramid. The second parameter represents the central coordinate point of the reading, and the third parameter represents the target semantic label value of the reading. The neighbor(,,) operation returns the metric distance of the point that is closest to the point corresponding to the third parameter and has the same grid value.

[0082] Optionally, each grid value of the local historical semantic grid map in the grid pyramid can have multiple semantic categories that are true at the same time. Then the method for determining the matching score score can be updated as follows:

[0083]

[0084] Among them, min{} means taking the minimum value, and Gi can be understood as the set of all possible grid values ​​whose results are not all "false" after performing logical "XOR" and logical "AND" operations with C(pi). The logical operation between grid values ​​can be understood as performing logical operations separately for each of the same semantic type.

[0085] The calculation method for judging whether the grid values ​​are the same in the neighbor(,,,) operation can be more detailed as follows: among the grid values ​​involved in the judgment, each corresponding semantic label value is the same, otherwise the grid values ​​are judged to be different.

[0086] The loop detection method provided by the embodiment of the present invention, for each local historical semantic grid map in the grid pyramid, uses a search box to accurately determine the overlapping area of ​​the current semantic grid map and the historical semantic grid map, and uses the posture of the overlapping area to generate a candidate posture set, and then for each local historical semantic grid map, uses a nearest neighbor search algorithm to accurately and quickly determine the nearest distance point of the target grid value, so as to obtain the matching score of the candidate posture, and finally uses the branch and bound method to traverse and prune in the process of generating the matching score tree, so as to reasonably, effectively and quickly search for the target posture that best matches the current map and the historical map.

[0087] Embodiment 3

[0088] Figure 3 FIG. 1 is a schematic diagram of the structure of a loop detection device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a grid pyramid determination module 301, a matching score determination module 302 and a loop detection module 303, wherein:

[0089] A grid pyramid determination module, used to determine a grid pyramid using a current semantic grid map and a historical semantic grid map, wherein the grid pyramid contains local historical semantic grid maps of multiple resolutions and intersecting with the current semantic grid map;

[0090] a matching score determination module, configured to determine a candidate pose set of the current semantic grid map using the historical semantic grid map, and to determine a matching score of a candidate pose in the candidate pose set using the candidate pose set and a local historical semantic grid map in the grid pyramid, wherein the matching score is used to characterize a matching degree between a candidate pose in the candidate pose set and a pose in the historical semantic grid map;

[0091] The loop detection module is used to determine a target pose from the candidate poses associated with the matching scores, and determine the target pose as a loop detection result.

[0092] The loop detection device provided in the embodiment of the present invention uses the candidate pose set and grid pyramid of the current semantic raster map to determine the matching degree between the candidate pose and the pose of the historical semantic raster map, and then uses the matching score to quickly determine the target pose that best matches the current semantic raster map and the historical semantic raster map. Without adding other hardware equipment, the effect and efficiency of loop detection can be improved.

[0093] Optionally, the matching score determination module includes:

[0094] A search step length determination unit, used to determine the search step length of the search box for each local historical semantic grid map in the grid pyramid;

[0095] A mapping unit, used to map the historical semantic grid map and the current semantic grid map to a preset coordinate system respectively by using the search step of the search box;

[0096] The candidate pose set determination unit is used to generate a candidate pose set using the pose of the preset search box of the current semantic grid map if there is an overlapping area between the preset search box of the current semantic grid map and the preset search box of the historical semantic grid map in the preset coordinate system.

[0097] Optionally, the resolution of the local historical semantic grid map is positively correlated with the search step size of the search box.

[0098] Optionally, the matching score determination module includes:

[0099] A target coordinate value determination unit is used to determine the target coordinate value of a target point in the current local historical semantic grid map by using the candidate pose set and the historical semantic grid map pose for each of the local historical semantic grid maps in the pyramid, wherein the target point is a point in the current semantic grid map;

[0100] A matching score determination unit is used to use the target coordinate value to determine the coordinate value of the point that is the same as the target grid value in the local historical semantic grid map, and use the coordinate value to determine the matching score of the candidate posture in the candidate posture set, wherein the target grid value is the grid value of the target point in the current semantic grid map.

[0101] Optionally, the target coordinate value is used to determine the coordinate value of the point that is the same as the target grid value in the local historical semantic grid map, and the coordinate value is used to determine the matching score of the candidate pose in the candidate pose set, wherein the target grid value is the grid value of the target point in the current semantic grid map, including: for each of the local historical semantic grid maps, with the target coordinate value of the current local historical semantic grid map as the center, using a nearest neighbor search algorithm to determine the nearest distance of the point that is the same as the target grid value and closest to the target point within a preset search radius of the current local historical semantic grid map, wherein the grid value includes an object semantic type value, and when at least one non-background object semantic type value in two grid values ​​is the same and is true, the two grid values ​​are the same; and the matching score of the candidate pose in the candidate pose set is determined using the nearest distance.

[0102] Optionally, the resolution of the local historical semantic grid map is positively correlated with a preset search radius of the local historical semantic grid map.

[0103] Optionally, the loop detection module is specifically used to, in the process of generating a matching score tree using the matching score of the local historical semantic grid map, traverse and prune the matching score tree using a branch and bound method to obtain a target pose, wherein the root node of the matching score tree is the candidate pose associated with the matching score of the local historical semantic grid map with the lowest resolution in the grid pyramid, and the target pose is the candidate pose associated with the lowest matching score in the local historical semantic grid map with the highest resolution in the grid pyramid.

[0104] The loop detection device provided in the embodiment of the present invention can execute the loop detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0105] Embodiment 4

[0106] Figure 4A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0107] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0108] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0109] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 41 performs the various methods and processes described above, such as the loop detection method.

[0110] In some embodiments, the loop detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the loop detection method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the loop detection method in any other appropriate manner (e.g., by means of firmware).

[0111] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0112] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0113] The computer device provided above can be used to execute the loop detection method provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0114] Embodiment 5

[0115] In the context of the present invention, a computer-readable storage medium may be a tangible medium, wherein the computer-executable instructions, when executed by a computer processor, are used to perform a loop detection method, the method comprising:

[0116] Determine a grid pyramid using the current semantic grid map and the historical semantic grid map, wherein the grid pyramid contains local historical semantic grid maps of multiple resolutions and intersecting with the current semantic grid map;

[0117] Determine a candidate pose set of the current semantic grid map by using the historical semantic grid map, and determine a matching score of a candidate pose in the candidate pose set by using the candidate pose set and a local historical semantic grid map in the grid pyramid, wherein the matching score is used to characterize a matching degree between a candidate pose in the candidate pose set and a pose in the historical semantic grid map;

[0118] A target pose is determined from the candidate poses associated with the matching scores, and the target pose is determined as a loop detection result.

[0119] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by an instruction execution system, device or equipment or used with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0120] The computer device provided above can be used to execute the loop detection method provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0121] It is worth noting that in the embodiment of the above loop detection device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0122] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A loop detection method, It is characterized in that include: Determine a grid pyramid using the current semantic grid map and the historical semantic grid map, wherein the grid pyramid contains local historical semantic grid maps of multiple resolutions and intersecting with the current semantic grid map; Determine a candidate pose set of the current semantic grid map by using the historical semantic grid map, and determine a matching score of a candidate pose in the candidate pose set by using the candidate pose set and a local historical semantic grid map in the grid pyramid, wherein the matching score is used to characterize a matching degree between a candidate pose in the candidate pose set and a pose in the historical semantic grid map; A target pose is determined from the candidate poses associated with the matching scores, and the target pose is determined as a loop detection result.

2. The method according to claim 1, It is characterized in that The method of determining a candidate pose set of the current semantic grid map by using the historical semantic grid map includes: For each local historical semantic grid map in the grid pyramid, determining a search step length of a search box; The historical semantic grid map and the current semantic grid map are respectively mapped to preset coordinate systems using the search step size of the search box. If there is an overlapping area between the preset search box of the current semantic grid map and the preset search box of the historical semantic grid map, the pose of the preset search box of the current semantic grid map is used to generate a candidate pose set.

3. The method according to claim 2, It is characterized in that The resolution of the local historical semantic grid map is positively correlated with the search step size of the search box.

4. The method according to claim 1, It is characterized in that The determining the matching scores of candidate poses in the candidate pose set by using the candidate pose set and the local historical semantic grid map in the grid pyramid includes: For each of the local historical semantic grid maps in the pyramid, using the candidate pose set and the historical semantic grid map pose, determine the target coordinate value of the target point in the current local historical semantic grid map, wherein the target point is a point in the current semantic grid map; Using the target coordinate value, the coordinate value of the point with the same target grid value as the target grid value is determined in the local historical semantic grid map, and the matching score of the candidate pose in the candidate pose set is determined using the coordinate value, wherein the target grid value is the grid value of the target point in the current semantic grid map.

5. The method according to claim 4, It is characterized in that The method of using the target coordinate value to determine the coordinate value of a point that is the same as the target grid value in the local historical semantic grid map, and using the coordinate value to determine the matching score of the candidate pose in the candidate pose set includes: For each of the local historical semantic grid maps, taking the target coordinate value of the current local historical semantic grid map as the center, using a nearest neighbor search algorithm to determine the closest distance to a point that is the same as the target grid value and closest to the target point within a preset search radius of the current local historical semantic grid map, wherein the grid value includes an object semantic type value, and when at least one non-background object semantic type value of two grid values ​​is the same as true, the two grid values ​​are the same; The matching score of the candidate pose in the candidate pose set is determined using the closest distance.

6. The method according to claim 5, It is characterized in that The resolution of the local historical semantic grid map is positively correlated with the preset search radius of the local historical semantic grid map.

7. The method according to any one of claims 1 to 6, It is characterized in that The step of determining a target pose from the candidate poses associated with the matching scores, and determining the target pose as a loop detection result, comprises: In the process of generating a matching score tree using the matching score of the local historical semantic grid map, the matching score tree is traversed and pruned using a branch and bound method to obtain a target pose, wherein the root node of the matching score tree is a candidate pose associated with the matching score of the local historical semantic grid map with the lowest resolution in the grid pyramid, and the target pose is a candidate pose associated with the lowest matching score in the local historical semantic grid map with the highest resolution in the grid pyramid.

8. A loop detection device, It is characterized in that include: A grid pyramid determination module, used to determine a grid pyramid using a current semantic grid map and a historical semantic grid map, wherein the grid pyramid contains local historical semantic grid maps of multiple resolutions and intersecting with the current semantic grid map; a matching score determination module, configured to determine a candidate pose set of the current semantic grid map using the historical semantic grid map, and to determine a matching score of a candidate pose in the candidate pose set using the candidate pose set and a local historical semantic grid map in the grid pyramid, wherein the matching score is used to characterize a matching degree between a candidate pose in the candidate pose set and a pose in the historical semantic grid map; The loop detection module is used to determine a target pose from the candidate poses associated with the matching scores, and determine the target pose as a loop detection result.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the loop detection method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the loop detection method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Multi-robot collaborative global map construction system and method based on image semantics

    CN116452928A

  • Method and apparatus for visual SLAM

    CN118154859A

  • Target localization method and related system, and storage medium

    WO2024036984A1