Robot joint relocation method, robot, electronic device, and storage medium

By optimizing the local search domain and decision conditions of the robot relocation algorithm, the problem of excessive relocation time on home embedded platforms is solved, and efficient and stable relocation is achieved in environments without dedicated graphics cards.

CN123135071APending Publication Date: 2026-11-20ASTRIBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611639305.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-22
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, robot relocation algorithms take too long on home embedded platforms without dedicated graphics cards, heavily rely on the parallel computing power of graphics cards, and are difficult to meet the needs of normal operation. Furthermore, the visual retrieval results lack effective geometric search convergence criteria.

Method used

By acquiring global appearance descriptors from binocular image data and combining them with an appearance visual database for candidate item retrieval, the geometric upper bound and pruning upper bound of the local search domain are optimized. Cross-validation is performed using geometric uniqueness margin, appearance uniqueness margin, and cross-modal space consistency conditions to prune low-matching search domains and reduce the computational scale of geometric search.

Benefits of technology

Stable operation of robot repositioning on a home embedded platform without a dedicated graphics card was achieved, reducing computation time and improving the reliability and efficiency of repositioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123135071A_ABST
    Figure CN123135071A_ABST
Patent Text Reader

Abstract

The application discloses a robot joint relocation method, a robot, an electronic device and a storage medium, and relates to the field of robot relocation; the method comprises the following steps: acquiring a global appearance descriptor of binocular image data; based on the global appearance descriptor, a plurality of candidate entries are retrieved from an appearance visual database; for each candidate entry, a local search domain is determined with the map pose as the center and the size being negatively related to the appearance similarity; according to the appearance similarity corresponding to each local search domain, a modulated geometric upper bound is obtained; based on the modulated geometric upper bound and the current global optimal lower bound, each local search domain is pruned; branch and bound search is performed on the pruned local search domain, and an optimal pose of geometric matching is output; based on a judgment condition, the optimal pose is judged, and a robot relocation result is determined according to the judgment result. The application realizes the initial value-free global relocation of the robot, and reduces the hardware dependence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of robot relocation technology, and more specifically, to a robot joint relocation method, a robot, an electronic device, and a storage medium. Background Technology

[0002] Global relocalization is a key technology for restoring pose after robot localization failure, and it directly determines the reliability of robot autonomous operation. With the increasing popularity of home service robots, higher and higher requirements are being placed on the real-time and stable operation of relocalization algorithms on embedded hardware.

[0003] In existing technologies, a number of candidate locations are typically obtained first using global descriptor retrieval, and then the robot's six-degree-of-freedom pose is solved using local feature matching or point cloud registration within the neighborhood of each candidate pose. (Partial vision...) The laser joint positioning scheme uses only the visual retrieval results as the initial value for laser registration, enabling a simple combination of multiple sensors.

[0004] However, in existing solutions, vision is only used to provide initial candidate values, and the search boundary, pruning upper bound, and scoring function of geometric search are not controlled by visual evidence. If visual retrieval provides only erroneous candidates, geometric search will lack effective convergence criteria; at the same time, the search scale cannot be substantially compressed, heavily relying on the parallel computing power of graphics cards. On home embedded platforms without dedicated graphics cards, relocation time reaches the second level, which is difficult to meet the needs of normal operation. Summary of the Invention

[0005] This application provides a robot joint relocalization method, a robot, an electronic device, and a storage medium to solve the technical problems of the lack of effective convergence criteria for geometric search in the prior art, and the heavy reliance on the parallel computing power of discrete graphics cards.

[0006] According to a first aspect of the embodiments of this application, a robot joint relocalization method is provided, the method comprising: Acquire the binocular image data at the current moment and extract the global appearance descriptor from the binocular image data; based on the global appearance descriptor, retrieve several candidate entries from the appearance visual database, each candidate entry including a map pose and the corresponding appearance similarity; For each candidate entry, a local search domain is determined centered on the map pose and based on the size negatively correlated with the appearance similarity, and overlapping local search domains are merged. Determine the geometric upper bound of all local search domains, and based on the appearance similarity of each local search domain, perform monotonically non-increasing modulation on the geometric upper bound of each local search domain to obtain the modulated geometric upper bound; based on the modulated geometric upper bound of each local search domain and the current global optimal lower bound, prune each local search domain. A branch-and-bound search is performed on the pruned local search domain to output the optimal pose for geometric matching. Based on the decision conditions, a cross-validation decision is made on the optimal pose, and the robot relocalization result is determined according to the decision result. The decision conditions include at least one of the following: geometric uniqueness margin condition, appearance uniqueness margin condition, and cross-modal space consistency condition. The geometric uniqueness margin condition is that the difference between the score of the optimal pose and the score of the second-best pose is not less than a first threshold. The appearance uniqueness margin condition is that the difference between the appearance similarity of the optimal candidate item and the appearance similarity of the second-best candidate item is not less than a second threshold. The cross-modal space consistency condition is that the spatial distance between the optimal pose and the map pose of the corresponding candidate item is not greater than a third threshold.

[0007] As an optional implementation, retrieving several candidate entries from the appearance visual database based on the global appearance descriptor includes: Obtain a 3D point cloud map constructed by LiDAR and a visual appearance database associated with the 3D point cloud map; the visual appearance database includes several entries, each entry including a global appearance descriptor and a corresponding map pose; Calculate the appearance similarity between the global appearance descriptor extracted from the binocular image data and the global appearance descriptor of each entry in the visual appearance database; The matching entries are determined based on the appearance similarity of each entry; the map pose of the matching entries is combined with the corresponding appearance similarity to obtain several candidate entries.

[0008] As an optional implementation, the 3D point cloud map is stored in a hierarchical voxel structure; the branch-and-bound search of the pruned local search domain to output the optimal pose for geometric matching includes: Based on the hierarchical order of the layered voxel structure from coarse to fine, the pose subdomains of the pruned local search domain are subdivided layer by layer, and branch and bound search is performed on the subdivided pose subdomains to obtain the candidate poses and corresponding geometric scores of each local search domain. Based on the geometric scores corresponding to each candidate pose, the optimal pose for geometric matching is output.

[0009] As an optional implementation, the step of performing cross-negation judgment on the optimal pose based on the decision conditions, and determining the robot relocalization result according to the decision result includes: If all the judgment conditions are met, the judgment is passed, and the optimal pose is taken as the robot relocalization result. If not all of the decision conditions are met, the decision is deemed unsuccessful, an uncertainty flag is generated, and the uncertainty flag and the set of multiple hypotheses are used as the robot relocalization result. The set of multiple hypotheses includes multiple hypothetical poses, which are obtained by performing branch and bound search on the pruned local search domain.

[0010] As an optional implementation, the step of performing cross-negation judgment on the optimal pose based on the decision conditions and determining the robot relocalization result according to the decision result further includes: If the geometric uniqueness margin condition is not met but the appearance uniqueness margin condition is met, the candidate pose with the highest appearance similarity among multiple candidate poses is taken as the robot relocalization result.

[0011] As an optional implementation, the step of using the uncertain flag as the robot relocalization result further includes: The robot is repeatedly driven to move a predetermined distance in a preset direction, and each candidate pose is re-evaluated; the preset direction is the direction in which the observed differences between each candidate pose increase. If the decision is passed within the preset limit, the robot relocation result is output; if the decision is not passed after reaching the preset limit, the system is reported for manual intervention.

[0012] As an optional implementation, the process after the decision fails further includes: For the optimal pose, the current observed point cloud is transformed to the map coordinate system and the distance to the nearest surface of the map is calculated point by point to obtain the residual field; The residual field is divided into spatial grids. Grids containing observation point clouds are recorded as valid grids, and the representative residual values ​​of the internal residual points of each valid grid are calculated. Based on the relationship between the representative residual values ​​and the threshold, each valid grid is divided into over-threshold grids or normal grids. If the ratio of the number of out-of-threshold grid cells to the total number of effective grid cells is greater than the first value and the ratio of the number of grid cells in the largest connected region formed by the out-of-threshold grid cells to the total number of out-of-threshold grid cells is less than the second value, the optimal pose is determined to be incorrect, and the optimal pose is regenerated. If the ratio of the number of out-of-threshold graticles to the total number of valid graticles is less than or equal to a first value, and the ratio of the number of graticles in the largest connected region formed by the out-of-threshold graticles to the total number of out-of-threshold graticles is greater than or equal to a second value, the optimal pose is determined to be correct, and local map updates are performed on the connected regions formed by the out-of-threshold graticles.

[0013] As an optional implementation, the local map update of the connected domains formed by the superdomain grid includes: Replace the map point cloud within the coverage area of ​​the aforementioned connected domains, and retain the map point cloud outside the coverage area of ​​the aforementioned connected domains, as well as the room division and restricted area configuration associated with the three-dimensional point cloud map.

[0014] As an optional implementation, the method further includes a hierarchical wake-up mechanism; wherein, the first-level wake-up is always-on lightweight monitoring; the second-level wake-up performs local relocation in the neighborhood of the current pose; the third-level wake-up performs global relocation in all search domains; the condition for upgrading from a lower level to a higher level is that the current level cannot converge within a predetermined time, and the condition for downgrading from a higher level to a lower level is that the higher level has output a pose that has passed the decision.

[0015] As an optional implementation, the method further includes: Based on the gravity direction output by the inertial measurement unit, the wheel speed output by the wheel odometer, and the robot's ground contact status, it is determined whether the robot has been lifted. If it is determined that the robot has been lifted, the system enters Level 3 wake-up and cancels the odometer accumulation during the period when the robot was lifted.

[0016] According to a second aspect of the embodiments of this application, a robot is provided, including: a lidar, a binocular camera, an inertial measurement unit, a wheeled odometer, and a processing unit connected to each device, the processing unit being configured to perform the method described in any one of the first aspects.

[0017] According to a third aspect of the present application, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method described in any one of the first aspects.

[0018] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the method as described in any one of the first aspects.

[0019] According to a fifth aspect of the embodiments of this application, a computer program product is provided, including a computer program that, when executed by a processor, implements the method as described in any one of the first aspects.

[0020] The beneficial effects of the technical solutions provided in this application are: This application provides a robot joint relocalization method, a robot, an electronic device, and a storage medium. In this application, the appearance retrieval result not only serves as the initial pose basis for the geometric search, but also directly optimizes the search boundary and pruning upper bound function of the branch and bound geometric search based on the appearance retrieval result. Under the premise of satisfying the upper bound legality constraint, the global optimality of the branch and bound is not lost. At the same time, the search domain with low appearance matching degree is pruned as a whole before the geometric score is calculated, which effectively reduces the computational scale of the geometric search, reduces the computation time, and enables stable operation of robot relocalization on a home embedded platform without a dedicated graphics card. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.

[0022] Figure 1 This application provides a schematic diagram of the architecture of a robot joint relocalization system. Figure 2 A flowchart illustrating a robot joint relocalization method provided in an embodiment of this application; Figure 3 A flowchart illustrating a local search domain based on visual appearance prior clipping, provided for an embodiment of this application; Figure 4 A schematic diagram of a bimodal asymmetric cross-validation decision provided for an embodiment of this application; Figure 5 A schematic diagram of a hierarchical relocation process provided for an embodiment of this application; Figure 6 A schematic diagram of the architecture of a robot joint relocalization method provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0023] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.

[0024] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” can be implemented as “A,” or as “B,” or as “A and B.”

[0025] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0026] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0027] This disclosure proposes a joint relocalization method for robots. Before describing the optional embodiments of this disclosure, in order to better understand the inventive concept and the inventiveness of this solution, the relevant technologies are first explained: Global relocalization is a key technology for restoring pose after robot localization failure, and it directly determines the reliability of robot autonomous operation. With the increasing popularity of home service robots, higher and higher requirements are being placed on the real-time and stable operation of relocalization algorithms on embedded hardware.

[0028] In existing technologies, a number of candidate locations are typically obtained first using global descriptor retrieval, and then the robot's six-degree-of-freedom pose is solved using local feature matching or point cloud registration within the neighborhood of each candidate pose. (Partial vision...) The laser joint positioning scheme uses only the visual retrieval results as the initial value for laser registration, enabling a simple combination of multiple sensors.

[0029] However, in existing solutions, vision is only used to provide initial candidate values, and the search boundary, pruning upper bound, and scoring function of geometric search are not controlled by visual evidence. If visual retrieval provides only erroneous candidates, geometric search will lack effective convergence criteria; at the same time, the search scale cannot be substantially compressed, heavily relying on the parallel computing power of graphics cards. On home embedded platforms without dedicated graphics cards, relocation time reaches the second level, which is difficult to meet the needs of normal operation.

[0030] The robot joint relocation method, robot, electronic device and storage medium provided in this application are intended to solve the above-mentioned technical problems of the prior art.

[0031] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.

[0032] The embodiments of this application apply to autonomous mobile service robots in home indoor environments. The robot adopts a wheeled differential drive chassis and works in single-story or multi-story residential buildings.

[0033] Figure 1 This application provides a schematic diagram of the architecture of a robot joint relocalization system; as shown in the embodiments. Figure 1 As shown, the robot 100 includes: a lidar 101, a binocular camera 102, an inertial measurement unit 103, a wheeled odometer 104, and a processing unit 105.

[0034] In some embodiments, the lidar 101 is arranged on the upper part of the wheeled differential drive chassis to acquire surrounding environmental distance scanning data; wherein, the horizontal field of view is ≥270°, the ranging range covers 0.1m to 10m, and the scanning frame rate is 10fps to tens of fps. A single-line scanning scheme can be used, or a multi-line scanning scheme with a limited vertical field of view can be selected; the multi-line scanning scheme can directly output a three-dimensional point cloud, while the single-line scheme relies on the robot's own motion to accumulate and generate a three-dimensional point cloud.

[0035] In some embodiments, the binocular camera 102 is positioned facing forward, with a horizontal field of view of 60° to 130°, a baseline length of several centimeters to 10 cm, an output resolution of not less than one million pixels, and a frame rate of not less than 10 fps. The binocular camera 102 simultaneously outputs an appearance image and sparse depth information; wherein, the appearance image is used to extract global descriptors, and the sparse depth information is used to help characterize the observation distance relationship of candidate locations.

[0036] In some embodiments, the sampling rate of the inertial measurement unit 103 is not less than 100Hz, outputs the gravity direction estimation result, and completes short-time attitude recursion. On the one hand, it provides the basic conditions for point cloud gravity alignment, simplifying the geometric pose search into a four-degree-of-freedom problem with three translational degrees of freedom plus yaw angle; on the other hand, it participates in the discrimination logic of the robot being lifted.

[0037] In some embodiments, the wheel odometer 104 obtains the planar pose increment based on the rotation angle encoding of the left and right drive wheels, and the encoder resolution is not less than 1000 lines per revolution; at the same time, the wheel odometer 104 can also output a signal that the wheel speed is zero, as one of the input conditions for determining the lifted state.

[0038] In some embodiments, the processing unit 105 employs a home-use embedded main control chip, which includes a multi-core central processing unit (CPU) and a neural network inference acceleration unit, without relying on a separate graphics processing unit (GPU).

[0039] It should be noted that in the embodiments of this application, the parameters of the lidar 101, binocular camera 102, inertial measurement unit 103 and wheel odometer 104 are all range values ​​and are not limited to specific device models and manufacturers.

[0040] Figure 2 This is a flowchart illustrating a robot joint relocalization method provided in an embodiment of this application; as shown below. Figure 2 As shown, the method includes: S201. Obtain the binocular image data at the current moment and extract the global appearance descriptor from the binocular image data; based on the global appearance descriptor, retrieve several candidate entries from the appearance visual database, each candidate entry including a map pose and the corresponding appearance similarity.

[0041] In some embodiments, the global appearance descriptor is a fixed-length feature vector obtained by encoding the overall scene appearance of a frame of binocular images. It is used to characterize the global visual features of the shooting location and realize visual location retrieval. The vector distance between global appearance descriptors of the same location is closer, while the vector distance between global appearance descriptors of different locations is farther.

[0042] Specifically, in this embodiment of the application, during the mapping stage, global appearance descriptors of each point image on the map are extracted and stored in the visual appearance database. Each entry in the database includes a global appearance descriptor and the corresponding map pose. During the retrieval process, the global appearance descriptors extracted from the current binocular image data are matched in the appearance visual database to obtain several entries with the highest appearance similarity, and these are used as candidate entries.

[0043] S202. For each candidate entry, a local search domain is determined centered on the map pose and based on the size negatively correlated with the appearance similarity, and overlapping local search domains are merged.

[0044] Specifically, in this embodiment, each map pose output by visual retrieval is used as the center of a local search domain. The spatial size of the local search domain is negatively correlated with appearance similarity; that is, the higher the appearance similarity, the smaller the range of the constructed local search domain; the lower the appearance similarity, the larger the range of the constructed local search domain. This can be understood as follows: high appearance similarity indicates higher credibility of the map pose, and the true pose is near the map pose; therefore, a smaller local search domain can be set to reduce the computational overhead of subsequent branch and bound searches. Conversely, low appearance similarity indicates lower credibility of the map pose, and the true pose deviates far from the map pose; therefore, a larger local search domain is needed to improve the accuracy of branch and bound searches.

[0045] In some embodiments, the translation boundary of the local search domain is determined based on the map pose and the visible distance of the database image, and the yaw boundary is obtained by roughly estimating the viewpoint relationship between the candidate image and the query image and then adding a tolerance.

[0046] In some embodiments, when multiple local search domains overlap, the overlapping areas are merged into a single search domain to avoid redundant calculations. After the above processing, the search space of the root node of the branch tree is reduced from the whole-house scale to the sum of the spaces of several local search domains. The reduction factor of the search space is related to the number of rooms and the total indoor area.

[0047] S203. Determine the geometric upper bound of all local search domains, and based on the appearance similarity of each local search domain, perform monotonically non-increasing modulation on the geometric upper bound of each local search domain to obtain the modulated geometric upper bound; based on the modulated geometric upper bound of each local search domain and the current global optimal lower bound, prune each local search domain.

[0048] In related technologies, visual retrieval results are only used to output candidate initial poses; the search boundaries, pruning upper bounds, and scoring functions of geometric search are not adjusted based on the visual retrieval results. This leads to two problems: First, if all map poses obtained from visual retrieval are incorrect, geometric search will lack effective convergence criteria; second, the search scale cannot be substantially compressed, the algorithm relies on the parallel computing power of the graphics processor, and relocalization time reaches the second level on home embedded platforms without dedicated graphics cards, making it difficult to meet the needs of normal operation.

[0049] Specifically, in the embodiments of this application, for each local search domain, the geometric pruning upper bound is first calculated in a conventional manner, and then the pruning upper bound is conservatively reduced based on the appearance similarity corresponding to the local search domain. That is, local search domains with high appearance similarity are not reduced or only slightly reduced, while local search domains with low appearance similarity have their pruning upper bound reduced as a whole.

[0050] Specifically, in this embodiment, each local search domain is processed sequentially in descending order of appearance similarity, and a globally optimal lower bound is maintained for all search domains. If the pruned upper bound of a local search domain after compression is lower than the currently obtained globally optimal lower bound, the entire search domain is pruned without further subdivision. Since the search domain with the highest appearance similarity is processed first, the globally optimal lower bound can usually be improved during the processing of the first few search domains, so that most subsequent search domains do not need to be calculated.

[0051] In some embodiments, the present application provides multiple failure protections, including the following: First, when all local search domains are pruned and no local search domain obtains a geometric score that meets the threshold requirement, the appearance retrieval results are determined to be all incorrect. At this point, the algorithm reverts to a whole-house branch and bound search without introducing appearance constraints, ensuring the availability of the algorithm with a small amount of additional computational overhead and avoiding the unavailability of the relocation function due to the failure of the vision module.

[0052] Second, if the appearance similarity of the first few map poses returned by appearance retrieval is close to each other and the overall value is low, this situation often occurs in scenes with scarce textures such as white walls and solid-color cabinet doors. In this case, the conservative coefficient is automatically set to zero, and the appearance information no longer participates in the pruning operation, but only retains its decomposition effect on the search space.

[0053] Third, a certain tolerance is reserved for the translation and yaw boundaries of each local search domain to prevent the true pose from falling outside the search domain boundary and being missed.

[0054] It should be noted that in this embodiment of the application, the upper bound reduction caused by appearance similarity needs to be set with an upper limit. This upper limit should ensure that the pruned upper bound after reduction is still not lower than the theoretical maximum value of the true geometric score in the search domain, so as to avoid the true pose being erroneously pruned.

[0055] The following is a specific example to illustrate this: The geometric upper bound of a certain local search domain is The appearance similarity of the map poses in this local search domain, after normalization, is: If ∈[0,1], then the geometric upper bound after modulation is:

[0056] in, This is the upper bound of the modulated geometry. Conservative coefficient and .

[0057] In some embodiments, the above formula must satisfy the following legality constraints:

[0058] in, To ensure the true geometric score of the local search domain, the upper bound of the geometry after appearance similarity modulation is not lower than the maximum possible value of the true geometric score within the search domain. This prevents the local search domain from being incorrectly pruned due to excessive suppression of the upper bound, thus avoiding loss of the true pose. In this case, it degenerates into the case of only performing search space decomposition without changing the geometric upper bound.

[0059] S204. Perform branch and bound search on the pruned local search domain and output the optimal pose for geometric matching; based on the decision conditions, perform cross-validation on the optimal pose and determine the robot relocalization result according to the decision result; the decision conditions include at least one of geometric uniqueness margin condition, appearance uniqueness margin condition, and cross-modal space consistency condition; the geometric uniqueness margin condition is that the difference between the score of the optimal pose and the score of the second-best pose is not less than a first threshold; the appearance uniqueness margin condition is that the difference between the appearance similarity of the optimal candidate item and the appearance similarity of the second-best candidate item is not less than a second threshold; the cross-modal space consistency condition is that the spatial distance between the optimal pose and the map pose of the corresponding candidate item is not greater than a third threshold.

[0060] Specifically, in this embodiment, for the pruned local search domain, the system performs branch and bound search one by one. By subdividing the search space layer by layer, iteratively comparing geometric matching features, and updating the scoring parameters, the system traverses the pose solutions in each local search domain to obtain the candidate poses and corresponding geometric scores of each local search domain. Finally, the system selects the candidate pose with the highest geometric score from the candidate poses output by each local search domain as the optimal pose for geometric matching.

[0061] Specifically, in this embodiment of the application, after obtaining the optimal pose, the system will initiate a cross-validation decision. The cross-validation decision includes multiple decision conditions. Only when all decision conditions are met is the optimal pose verification deemed successful. If any decision condition is not met, the validation mechanism is immediately triggered, and the optimal pose verification is deemed unsuccessful.

[0062] In related technologies, multimodal results are fused using weighted summation or sequential acceptance. However, in a home setting, the failure characteristics of the two modalities are not asymmetrical: in symmetrical corridors or adjacent rooms with similar layouts, laser geometry can output similar high scores in multiple locations, resulting in high-confidence erroneous poses; while in areas with poor texture, such as white walls and solid-color cabinet doors, the overall similarity of visual retrieval is low, and the distinction between candidates is weak, resulting in low confidence. If weighted fusion is performed directly, high-confidence erroneous results will dominate, causing the system to output erroneous poses with high confidence, which is a particularly harmful failure mode in a home environment. Furthermore, in related technologies, robot relocalization results can only choose between outputting a pose and reporting failure, lacking an explicit "uncertain" output state. Instead of weighted summation of the scores of the two modalities, this application constructs three criteria: geometric uniqueness margin condition, appearance uniqueness margin condition, and cross-modal spatial consistency condition. These criteria are used to verify the pose solution from three dimensions: geometric feature ambiguity, appearance discrimination ability, and cross-modal position matching. This filters out the optimal pose with ambiguity and conflict, reduces the risk of outputting incorrect poses with high confidence, and improves the reliability of relocalization.

[0063] Criterion 1: Geometric Uniqueness Margin Condition. The geometric uniqueness margin condition is defined as the ratio (or difference) between the optimal geometric score and the second-best geometric peak score. The second-best peak and the optimal solution must be separated by a preset distance in the pose space to avoid misclassifying neighboring regions of the same peak as independent parallel peaks. If the ratio (or difference) is less than a first threshold, it indicates that the geometric configuration itself has self-similarity ambiguity. In this case, a high geometric score result (optimal pose) should not be used as the sole basis for acceptance.

[0064] Criterion 2: Appearance Uniqueness Margin Condition. The appearance uniqueness margin condition is defined as the ratio of the appearance similarity of the most similar candidate item to the appearance similarity of the second most similar candidate item. If this ratio is less than the second threshold, it indicates that the appearance itself lacks distinctiveness, and the appearance information does not meet the independent judgment criteria.

[0065] Criterion 3: Cross-modal spatial consistency condition. The cross-modal spatial consistency condition is defined as the spatial distance between the optimal pose and the map pose of the candidate item with the most similar appearance. If the spatial distance exceeds the third threshold, it indicates that the two modalities point to different locations, i.e., they mutually refute each other.

[0066] In some embodiments, the acceptance criteria for high geometric score results are constituted by the conjunction of the following three inequalities:

[0067]

[0068]

[0069] in, The optimal geometric score; The score is the second-best geometric peak. and These are the map poses of the optimal pose and the candidate item with the most similar appearance, respectively. The geometric score threshold; The threshold for geometric uniqueness; For spatial consistency tolerance, The acquisition interval should be the same as that of the database images to avoid misjudging adjacent acquisition points at the same location as inconsistent.

[0070] It should be noted that the spatial distance is a three-dimensional Euclidean distance, which is the distance between the optimal pose and the map pose of the candidate item with the most similar appearance at the translation position.

[0071] In this embodiment, the appearance retrieval result not only serves as the initial pose basis for the geometric search, but also directly optimizes the search boundary and pruning upper bound function of the branch and bound geometric search based on the appearance retrieval result. Under the premise of satisfying the upper bound legality constraint, the global optimality of the branch and bound is not lost. At the same time, the search domain with low appearance matching degree is pruned as a whole before the geometric score is calculated, which effectively reduces the computational scale of the geometric search, reduces the computation time, and realizes the stable operation of robot repositioning on a home embedded platform without a dedicated graphics card.

[0072] To help those skilled in the art better understand the implementation process of visual appearance prior pruning of the local search domain, the following section combines... Figure 3 Please provide an explanation.

[0073] Figure 3 A flowchart illustrating a local search domain based on visual appearance prior clipping is provided for an embodiment of this application; as shown in the figure, it includes the following steps: First, global descriptors are extracted from the binocular images. The obtained global descriptors are input into the visual database to retrieve the first few candidate entries. Each candidate entry includes a map pose and a corresponding appearance similarity. The map pose includes the candidate position and the candidate viewpoint. For each candidate entry, a corresponding local search domain is generated. The translation boundary of the local search domain is determined by the candidate position and the visible range, and the yaw boundary is determined by a rough estimate of the candidate viewpoint relationship plus a tolerance. After the construction of the local search domain is completed, the priority of each local search domain is ranked in descending order of appearance similarity.

[0074] Secondly, identify the highest priority local search domain among the unprocessed local search domains, calculate the geometric upper bound of the local search domain, and conservatively reduce the geometric upper bound of the local search domain according to appearance similarity; determine whether the reduced geometric upper bound is lower than the global optimal lower bound; if so, perform whole-domain pruning on the local search domain and do not expand it again; if not, perform branch and bound subdivision of the local search domain and update the global optimal lower bound.

[0075] Third, determine if there are still unprocessed local search domains; if so, process the remaining search domains in descending order of priority; if not, end the process and output the candidate poses and corresponding geometric scores of each local search domain.

[0076] Based on the above embodiments, as an optional embodiment, retrieving several candidate entries from the appearance visual database based on the global appearance descriptor includes: Obtain a 3D point cloud map constructed by LiDAR and a visual appearance database associated with the 3D point cloud map; the visual appearance database includes several entries, each entry including a global appearance descriptor and a corresponding map pose; Calculate the appearance similarity between the global appearance descriptor extracted from the binocular image data and the global appearance descriptor of each entry in the visual appearance database; The matching entries are determined based on the appearance similarity of each entry; the map pose of the matching entries is combined with the corresponding appearance similarity to obtain several candidate entries.

[0077] Specifically, in the embodiments of this application, during the mapping stage, the lidar constructs a three-dimensional point cloud map and establishes an association between the three-dimensional point cloud map and the visual appearance database; wherein, the visual appearance database is pre-constructed during the mapping stage and contains multiple structured storage entries, each entry storing a global appearance descriptor for the corresponding scene location and a map pose matching the global descriptor, and the data of each entry is independent of each other and covers the entire scene of the map.

[0078] Specifically, in this embodiment, after loading the appearance visual database and map data, the global appearance descriptor extracted from the binocular image data is obtained, and the appearance similarity between the global appearance descriptor and the global appearance descriptors of all entries in the visual appearance database is calculated one by one. After traversing all entries, the entries with the highest similarity are selected as matching entries based on the similarity values ​​corresponding to each entry. Then, the map pose and the corresponding appearance similarity of each matching entry are combined to obtain and output several candidate entries. Each candidate entry includes a map pose and the corresponding appearance similarity.

[0079] In this embodiment, a global appearance descriptor is used to complete visual retrieval, quickly filter out map poses and corresponding appearance similarities, provide reliable priors for subsequent division of local search domains and execution of branch and bound search, reduce invalid search space, and improve relocation efficiency.

[0080] Based on the above embodiments, as an optional embodiment, the 3D point cloud map is stored in a hierarchical voxel structure; the branch and bound search of the pruned local search domain to output the optimal pose for geometric matching includes: Based on the hierarchical order of the layered voxel structure from coarse to fine, the pose subdomains of the pruned local search domain are subdivided layer by layer, and branch and bound search is performed on the subdivided pose subdomains to obtain the candidate poses and corresponding geometric scores of each local search domain. Based on the geometric scores corresponding to each candidate pose, the optimal pose for geometric matching is output.

[0081] Specifically, in this embodiment, according to the predetermined hierarchical order of the layered voxel structure of the 3D point cloud map from coarse to fine, the pose space in the local search domain to be processed is subdivided layer by layer, and the large pose solution space is decomposed into multiple pose subdomains with smaller granularity. Then, the branch and bound search process is executed for each pose subdomain obtained by each level of subdivision.

[0082] Specifically, in this embodiment, throughout the entire process of hierarchical subdivision and iterative search, the system continuously monitors the running status of the current search process in real time and continuously determines whether the preset search termination condition is met. When the current search process is detected to have reached the search termination condition, the subsequent hierarchical subdivision and subdomain search steps are immediately stopped, the current branch and bound search process is terminated, and candidate poses and corresponding geometric scores are selected and output from all search results to complete the pose solution for the current local search domain.

[0083] In some embodiments, when there are multiple local search domains, the candidate poses output by branch and bound search are traversed through each local search domain, the geometric score corresponding to the candidate pose is calculated, and the pose with the highest geometric score is selected as the optimal pose for geometric matching.

[0084] In some embodiments, the search termination conditions include, but are not limited to: the hierarchical voxels have reached the highest resolution layer and cannot be further subdivided into pose subdomains; the translation and angle of the pose have been subdivided to the preset minimum step size, and the subdomains cannot be further subdivided; the cumulative number of subdivision iterations of the local search domain has reached a preset maximum number; all pose subdomains of the local search domain have been traversed and pruned, and there are no remaining subdomains to be calculated; a pose solution with a geometric score higher than a preset absolute threshold is obtained. When one or more of the above search termination conditions are met, the branch and bound search is stopped.

[0085] In this embodiment, the pose subdomain is subdivided layer by layer based on the hierarchical characteristics of the layered voxels from coarse to fine, and the pose solution in the local search domain is completed through branch and bound search, outputting the optimal pose of geometric matching, and providing input for subsequent cross-validation decision.

[0086] In this embodiment, three criteria are constructed: geometric uniqueness margin, appearance uniqueness margin, and cross-modal space consistency. The pose solution is verified from three dimensions: geometric feature ambiguity, appearance discrimination ability, and cross-modal position matching. The optimal pose with ambiguity and conflict is filtered out, reducing the risk of high confidence output of incorrect pose and improving the reliability of relocalization.

[0087] Based on the above embodiments, as an optional embodiment, the step of determining the optimal pose based on the decision conditions and determining the robot relocalization result according to the decision result includes: If all the judgment conditions are met, the judgment is passed, and the optimal pose is taken as the robot relocalization result. If not all of the decision conditions are met, the decision is deemed unsuccessful, an uncertainty flag is generated, and the uncertainty flag and the set of multiple hypotheses are used as the robot relocalization result. The set of multiple hypotheses includes multiple hypothetical poses, which are obtained by performing branch and bound search on the pruned local search domain.

[0088] Specifically, the decision rule for cross-refutation in this application embodiment is as follows: the decision is considered valid only when all three criteria are met simultaneously; if any one criterion is not met, the decision is immediately rejected.

[0089] In some embodiments, a "uncertain" state is generated after the refutation criterion is triggered; if no output is set for this state, relocation failures will occur more frequently. Therefore, this application embodiment does not forcibly determine the optimal pose from the candidate poses, but outputs a set of multiple hypotheses and an explicit uncertainty flag to the upper-level navigation system; the upper-level navigation system can perform conservative behaviors based on this information, such as slowing down, prohibiting movement across rooms, and prohibiting high-risk actions, without having to choose between "outputting a determined pose" and "reporting a positioning failure".

[0090] In this embodiment, a multi-criteria conjunctive refutation mechanism is used to eliminate the high-risk failure mode of the system outputting incorrect poses with high confidence. This mechanism improves the accuracy of positioning results by moderately reducing the pose output rate. At the same time, by setting an "uncertainty flag", a clear basis is provided for the upper-level navigation system to carry out conservative control, effectively improving the safety of system operation.

[0091] To help those skilled in the art better understand the process of bimodal asymmetric cross-validation, the following section combines... Figure 4 Please provide an explanation.

[0092] Figure 4 This document provides a flowchart of a bimodal asymmetric cross-refutation decision process, as illustrated in the figure. The process includes the following steps: receiving candidate poses and corresponding appearance similarities output from each local search domain; calculating geometric uniqueness margin, appearance uniqueness margin, and cross-space consistency; determining whether the geometric score of the optimal pose reaches a threshold; if the optimal geometric score does not reach the threshold, it is determined that the geometric evidence is insufficient; conversely, if the optimal geometric score reaches the threshold, it is further determined whether the geometric uniqueness margin reaches the threshold; if the geometric uniqueness margin does not reach the threshold, it is determined that there is geometric self-similarity ambiguity, and then it is determined whether the appearance uniqueness margin reaches the threshold. If a threshold is reached, the candidate pose with the highest appearance similarity among the parallel geometric candidate poses is selected as the decision result, and local fine registration is initiated. If the appearance uniqueness margin does not reach the threshold, the ambiguity remains unresolved. If the geometric uniqueness margin reaches the threshold, it is determined whether the cross-modal spatial consistency is within the tolerance. If the cross-modal spatial consistency is not within the tolerance, it is determined that the two modes mutually contradict each other. In the case of insufficient geometric evidence, mutual contradictory between the two modes, and insufficient appearance margin, the ambiguity is determined to be unresolved. At this time, all parallel candidate poses are retained and an uncertainty flag is set. At the same time, the robot is repeatedly driven to perform the action with the greatest information gain. If the ambiguity is still not resolved after multiple rounds, it is reported to human intervention.

[0093] Based on the above embodiments, as an optional embodiment, the step of performing cross-negation judgment on the optimal pose based on the decision conditions and determining the robot relocalization result according to the decision result further includes: If the geometric uniqueness margin condition is not met but the appearance uniqueness margin condition is met, the candidate pose with the highest appearance similarity among multiple candidate poses is taken as the robot relocalization result.

[0094] Specifically, in this embodiment, if the optimal pose does not meet all decision conditions, an asymmetric limited authorization method can be used to determine the relocalization result. Specifically, when the geometric uniqueness margin condition is not met (i.e., multiple parallel geometric peaks exist, but the appearance uniqueness margin condition is met), uniqueness decision is allowed among multiple parallel geometric candidates based on appearance information. For example, from the candidate poses corresponding to multiple parallel geometric peaks, the candidate pose with the highest appearance similarity is selected as the robot relocalization result. Conversely, if the appearance uniqueness condition is not met, a decision cannot be made solely based on geometric information. This can be understood as follows: since appearance mode failure manifests as low confidence, while geometric mode failure does not output a corresponding low confidence, this embodiment adopts an "asymmetric" decision authorization rule.

[0095] In this embodiment, when the geometric modality cannot distinguish multiple sets of parallel candidate poses, the uniqueness is determined by means of appearance information, avoiding ambiguity waiting or unnecessary active disambiguation, and improving the output efficiency of relocation.

[0096] Based on the above embodiments, as an optional embodiment, after using the uncertainty flag as the robot relocalization result, the method further includes: The robot is repeatedly driven to move a predetermined distance in a preset direction, and each candidate pose is re-evaluated; the preset direction is the direction in which the observed differences between each candidate pose increase. If the decision is passed within the preset limit, the robot relocation result is output; if the decision is not passed after reaching the preset limit, the system is reported for manual intervention.

[0097] Specifically, in this embodiment, when it is impossible to determine a unique optimal pose from multiple candidate poses, active disambiguation processing is performed, that is: the robot is controlled to perform small translation or turning actions, and the motion direction with the largest information gain is selected. This direction can maximize the difference between the predicted observations corresponding to each parallel candidate pose. It should be noted that the robot's motion range needs to be limited to a small range to avoid large-span displacements in the state of pose uncertainty. At the same time, after the robot completes the above actions, cross-validation judgment is performed on the newly obtained optimal pose.

[0098] In some embodiments, the direction with the greatest information gain can be determined as follows: for each parallel candidate pose, the observation results corresponding to the completion of each group of candidate actions are predicted by combining map information, and the action that maximizes the difference between the observation results is selected, and the direction of this action is taken as the direction with the greatest information gain. It should be noted that the above actions are limited to small-amplitude movements to avoid the robot from making large-span displacements when its pose is uncertain, which could lead to safety risks.

[0099] In some embodiments, if the decision condition still cannot be met after multiple rounds of continuous active disambiguation processing, a prompt for manual intervention is submitted. For example, the user is guided to move the robot to the charging base or an open area, and no uniquely determined single pose is output throughout the process; wherein, the charging base can serve as a deterministic position anchor point; when the robot autonomously returns or is placed on the charging base, the known pose of the base is used as the anchor point, which can directly eliminate pose ambiguity.

[0100] In some embodiments, if the scene itself has inherent symmetric ambiguity, continuous execution of active disambiguation actions cannot achieve decision convergence; it is necessary to limit the number of attempts to prevent the robot from continuously consuming computing power and causing safety hazards due to repeated movements. When the number of times the robot moves in the direction with the greatest information gain reaches the upper limit and still cannot meet the decision conditions, active disambiguation is terminated and a manual intervention process is triggered.

[0101] In this embodiment of the application, when the optimal pose of the robot cannot be obtained, the robot is repeatedly driven to perform small-range movements along the selected direction, which transforms passive waiting into active observation and evidence collection, and provides a convergent solution path for pose ambiguity.

[0102] Based on the above embodiments, as an optional embodiment, after the decision fails, the following further steps are included: For the optimal pose, the current observed point cloud is transformed to the map coordinate system and the distance to the nearest surface of the map is calculated point by point to obtain the residual field; The residual field is divided into spatial grids. Grids containing observation point clouds are recorded as valid grids, and the representative residual values ​​of the internal residual points of each valid grid are calculated. Based on the relationship between the representative residual values ​​and the threshold, each valid grid is divided into over-threshold grids or normal grids. If the ratio of the number of out-of-threshold grid cells to the total number of effective grid cells is greater than the first value and the ratio of the number of grid cells in the largest connected region formed by the out-of-threshold grid cells to the total number of out-of-threshold grid cells is less than the second value, the optimal pose is determined to be incorrect, and the optimal pose is regenerated. If the ratio of the number of out-of-threshold graticles to the total number of valid graticles is less than or equal to a first value, and the ratio of the number of graticles in the largest connected region formed by the out-of-threshold graticles to the total number of out-of-threshold graticles is greater than or equal to a second value, the optimal pose is determined to be correct, and local map updates are performed on the connected regions formed by the out-of-threshold graticles.

[0103] In related technologies, robot relocalization failures fall into two completely different categories: one is an incorrect robot pose; the other is a correct pose but a partial map failure, such as the displacement of furniture like sofas, chairs, or boxes. Existing technologies rely solely on residual sums or matching scores, failing to differentiate between these two scenarios. This leads to anomalies that could be handled through local map updates being misjudged as localization failures and resulting in repeated retries; or, the user is directly prompted to delete the map and rescan, which not only takes over ten minutes to reconstruct the map but also causes the loss of user configuration settings.

[0104] Specifically, in this embodiment of the application, the two types of causes have discernible differences in the spatial distribution of the residuals. The specific steps are as follows: Step 1: Residual Space Statistics. Using the optimal pose output from the branch-and-bound search, the current observation point cloud is transformed to the map coordinate system. The distance from each observation point to the nearest map surface is calculated point by point to generate the residual field. The space is divided into grids, and the representative residual values ​​of points within each valid grid are statistically analyzed. Out-of-threshold grids are distinguished from normal grids based on a preset threshold.

[0105] Step 2: Calculate two morphological feature quantities. The first is the overthreshold ratio, which is the ratio of the number of overthreshold rasters to the total number of effective rasters; the second is the spatial clustering, which is the ratio of the number of rasters forming the largest connected region by overthreshold rasters to the total number of overthreshold rasters. Among them, the overthreshold ratio is used to characterize the distribution breadth of anomalous residuals, and the spatial clustering is used to characterize the concentration of anomalous residuals.

[0106] Step 3: Double hypothetical decision.

[0107] (1) If the proportion of exceeding the threshold is high and the spatial clustering is low, it means that the residual is widely distributed and the matching of multiple regions fails. In this case, the current output optimal pose is determined to be wrong and the current pose is discarded. The global search process is re-entered and the map update is not performed. (2) If the proportion of out-of-threshold is low and the spatial clustering is high, it means that the residual is concentrated in a small number of connected regions and the matching effect of the other regions is good. Then it is determined that the map is locally outdated, the current output of the optimal pose is adopted, and only the connected domain is updated locally, while the rest of the map data and all user configurations are retained. (3) If neither of the two indicators has significant characteristics, it is determined that the state is uncertain and enters active disambiguation processing, that is: control the robot to perform a small translation or turning action. The direction of the action is the direction with the greatest information gain, which can maximize the observation difference corresponding to each candidate pose. After the action is completed, pose decision is carried out again.

[0108] In some embodiments, superdomain occupancy Spatial clustering The following formula can be used:

[0109]

[0110] in, The number of raster cells whose residuals exceed the threshold; The total number of valid grid cells, This represents the maximum number of connected raster cells formed by the superthreshold raster cells.

[0111] In some embodiments, the condition for determining that a part of the map is outdated is: and The condition for determining a pose error is: and Grid side length, residual threshold, and out-of-threshold percentage threshold. Spatial clustering threshold It needs to be calibrated based on actual measurements; at the same time, the grid side length should be of the same order as the furniture size so that the movement of a single piece of furniture can form an identifiable connected domain.

[0112] In this embodiment, the causes of relocation failure are distinguished, avoiding the dead loop caused by simple repeated retries in the prior art, and improving the robustness of robot relocation.

[0113] Based on the above embodiments, as an optional embodiment, the step of performing local map updates on several connected domains formed by the superdomain grid includes: Replace the map point cloud within the coverage area of ​​the aforementioned connected domains, and retain the map point cloud outside the coverage area of ​​the aforementioned connected domains, as well as the room division and restricted area configuration associated with the three-dimensional point cloud map.

[0114] In some embodiments, when a map is determined to be partially outdated, the optimal pose can still be trusted, and only the local map update can be performed on the connected domain, while the rest of the map and user configuration are retained.

[0115] In some embodiments, local map updates follow these conditions: (1) Local map updates should only be performed when the same connected domain has high residuals repeatedly in multiple independent observations, and these observations should come from different perspectives to avoid writing moving people, pets, and temporarily placed items into the map as furniture.

[0116] (2) The old geometry that is updated is retained as a backup with low weight for a period of time to deal with the situation where the furniture is moved back to its original position.

[0117] (3) The area of ​​the connected domain in a single update shall not exceed the set ratio of the whole house map area. If it exceeds the ratio, the local map will not be updated. Instead, the user will be notified to rescan and update the whole house map.

[0118] (4) Local map updates only modify the geometry layer. The corresponding entries in the appearance description sub-database are synchronously marked as pending updates but not deleted immediately to avoid inconsistency between the two map layers.

[0119] In this embodiment, for cases where furniture displacement causes the optimal pose determination to fail, the original "delete map and rescan" processing method is optimized to local map correction, while retaining user configurations such as room division and restricted areas. This makes the system processing overhead match the actual severity of the fault and improves the user experience.

[0120] Based on the above embodiments, as an optional embodiment, the method further includes a hierarchical wake-up mechanism; wherein, the first-level wake-up is always-on lightweight monitoring; the second-level wake-up performs local relocalization in the neighborhood of the current pose; the third-level wake-up performs global relocalization in all search domains; the condition for upgrading from a lower level to a higher level is that the current level cannot converge within a predetermined time, and the condition for downgrading from a higher level to a lower level is that the higher level has output a pose that has passed the decision.

[0121] In some embodiments, the first level has low computational overhead, and the pose is obtained recursively based on wheel odometry and inertial measurement unit, continuously monitoring the matching degree between the current local point cloud and the map; only when the matching degree is continuously lower than the threshold will it switch to a higher level to avoid false triggering caused by single frame data disturbance.

[0122] In some embodiments, Level 2 has moderate computational overhead and performs visual retrieval and local registration within the current pose neighborhood to handle minor pose drift. If the neighborhood registration is successful and a multi-criteria conjunctive disproven decision is passed, the system reverts to Level 1; otherwise, it upgrades to Level 3.

[0123] In some embodiments, Level 3 is a high-computing-power-intensive process that is triggered on demand. It employs a global branch-bound search based on visual prior pruning to address scenarios such as complete pose loss or robot being moved. The output of this level must be verified by a combination of multiple criteria for disproven decisions and residual morphology analysis before it can be accepted.

[0124] In some embodiments, any one of the following formulas triggers an upgrade:

[0125]

[0126]

[0127] It should be noted that in the above formula Need to continue frame.

[0128] In some embodiments, For local matching degree; This is the local matching degree threshold; the meaning of this formula is continuous. If the matching degree between the local point cloud and the map in a frame is lower than the threshold, it indicates a deterioration in the positioning status, triggering an upgrade. Increasing the number of consecutive frames filters out noise in single frames and prevents false triggering.

[0129] In some embodiments, This is the difference between the odometer recursive pose and the registration pose; The consistency threshold is defined by the formula. This means that if the position calculated by the odometer and the position calculated by the registration are too far apart, the two positioning sources contradict each other, the judgment drift is obvious, and an upgrade is triggered.

[0130] In some embodiments, This is a flag indicating that the robot has been moved; the formula means that when it is determined that the robot has been moved by someone, an upgrade is triggered directly.

[0131] It should be noted that, , and Actual calibration is required.

[0132] In this embodiment, the relocation computing power is scheduled in a three-level progressive manner to maintain a low computing overhead under normal conditions. High computing overhead is only activated as needed when pose is lost or abnormal, thus avoiding long-term occupation of a large amount of computing power and achieving controllable system power consumption.

[0133] To help those skilled in the art better understand the processing flow and escalation relationship of each level in the hierarchical relocation of this application, the following is a detailed explanation. Figure 5 Please provide an explanation.

[0134] Figure 5 This is a schematic diagram of a hierarchical relocation process provided in an embodiment of this application. As shown in the figure, the system normally operates at level one, namely: always-on lightweight monitoring. During always-on lightweight monitoring, if the local matching degree falls below the threshold, it switches to level two for neighborhood relocation. After the neighborhood relocation is completed, if the neighborhood registration is successful and the cross-validation decision is passed, it returns to level one; if this condition is not met, it enters level three. During always-on lightweight monitoring, if the robot is detected to have been lifted, the odometer historical data is invalidated, and the system directly upgrades to level three and performs a global search. After completing the global search, if the output optimal pose fails the cross-validation decision, the process enters the ambiguity safety degradation process, outputs an uncertainty flag, and waits for active disambiguation or manual intervention. After active disambiguation or manual intervention is completed, the process returns to level one. If the output optimal pose passes the cross-validation decision, the distribution pattern of the residual space is analyzed: if the residuals are scattered throughout the entire space, the process returns directly to level one; if the residuals are not scattered throughout the entire space, the process continues to determine whether the residuals are concentrated in a few connected components; if the residuals are concentrated in a few connected components, a local map update is triggered, and the process returns to level one; if the residuals are not concentrated in a few connected components, the process returns directly to level one.

[0135] Based on the above embodiments, as an optional embodiment, the method further includes: Based on the gravity direction output by the inertial measurement unit, the wheel speed output by the wheel odometer, and the robot's ground contact status, it is determined whether the robot has been lifted. If it is determined that the robot has been lifted, the system enters Level 3 wake-up and cancels the odometer accumulation during the period when the robot was lifted.

[0136] Specifically, in this embodiment, the inertial measurement unit (IMU) is used to sense the robot's posture and gravity vector direction in real time. When the robot is lifted off the ground, its posture deflects, and the gravity direction detected by the IMU shifts significantly relative to its normal ground posture. A wheel speed counter collects information on the rotation of the walking wheels and outputs wheel speed data; when the robot is moving normally on the ground, the translational acceleration should match the wheel rotation speed; if the wheel speed counter shows zero wheel speed, it means the wheels are not rotating. The ground contact signal originates from a ground sensor and is used to characterize the robot's contact state with the ground; when the robot is lifted, the sensor cannot detect ground support, and the ground contact signal is lost.

[0137] Specifically, in the embodiments of this application, the conditions for determining that the robot is lifted include, but are not limited to: the change in the direction of gravity detected by the inertial measurement unit exceeds a threshold; the wheel speed is zero, but a significant translational acceleration is detected; and the ground contact state signal is lost.

[0138] In some instances, if any two of the above conditions are met simultaneously, the robot is determined to have been lifted.

[0139] In some embodiments, after determining that the robot has been lifted, the following steps are performed: invalidate the historical prior information of the odometry to avoid erroneous priors from polluting the global search boundary; after the robot lands, skip the second level and upgrade to the third level directly, at which point the neighborhood pose assumption no longer holds; use the attitude obtained by integrating the inertial measurement unit during the lift-off phase to obtain a coarse estimate of the gravity direction after landing, and complete the gravity alignment for the four-degree-of-freedom pose search.

[0140] In this embodiment, dedicated processing logic is set up for the frequent robot being picked up in the home setting to eliminate the interference of erroneous odometry priors on the search process and improve the reliability of pose search.

[0141] To facilitate a clearer understanding of the technical solution of this application by those skilled in the art, the following is combined with... Figure 6 Please provide an explanation.

[0142] Figure 6This is a schematic diagram of the architecture of a robot joint relocalization method provided in this application embodiment. As shown in the figure, the binocular camera image is extracted by a visual global descriptor, and the wheel odometry completes pose estimation and lifting detection. The outputs of both are jointly entered into the appearance candidate retrieval and ranking. The single-frame scan data of the lidar and the data of the inertial measurement unit complete point cloud preprocessing and gravity direction alignment. The output results of the appearance candidate retrieval and ranking are used to perform search domain generation and pruning upper bound correction, providing constraints for branch and bound search. The preprocessed point cloud data is input into the branch and bound search, and the optimal pose is output. The optimal pose is input into the bimodal asymmetric cross-negation decision. If the decision passes, local fine matching is performed, and then residual space distribution morphology analysis is carried out to distinguish between pose error and map failure. Based on the distinction result, one of the following is executed: outputting the six-degree-of-freedom pose, updating the local map, or returning to the global search. If the decision on the optimal pose fails, ambiguity safety degradation and active disambiguation are entered, and uncertainty flags and multiple hypothesis sets are output.

[0143] In this embodiment, the appearance retrieval result not only serves as the initial pose basis for the geometric search, but also directly optimizes the search boundary and pruning upper bound function of the branch and bound geometric search based on the appearance retrieval result. Under the premise of satisfying the upper bound legality constraint, the global optimality of the branch and bound is not lost. At the same time, the search domain with low appearance matching degree is pruned as a whole before the geometric score is calculated, which effectively reduces the computational scale of the geometric search, reduces the computation time, and enables the robot repositioning to run stably on a home embedded platform without a dedicated graphics card.

[0144] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 7 As shown, the electronic device 7000 includes a processor 7001 and a memory 7003. The processor 7001 and the memory 7003 are connected, for example, via a bus 7002. Optionally, the electronic device 7000 may further include a transceiver 7004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 7004 is not limited to one type, and the structure of the electronic device 7000 does not constitute a limitation on the embodiments of this application.

[0145] Processor 7001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 7001 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0146] Bus 7002 may include a pathway for transmitting information between the aforementioned components. Bus 7002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 7002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0147] The memory 7003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc-Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0148] The memory 7003 is used to store computer programs that execute the embodiments of this application, and its execution is controlled by the processor 7001. The processor 7001 is used to execute the computer programs stored in the memory 7003 to implement the steps shown in the foregoing method embodiments.

[0149] Among them, electronic devices may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.

[0150] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the steps and corresponding content of the aforementioned method embodiments.

[0151] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0152] This application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.

[0153] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the illustrations or text descriptions.

[0154] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.

[0155] The above are only optional implementation methods for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application, without departing from the technical concept of this application, also fall within the protection scope of the embodiments of this application.

Claims

1. A robot joint relocalization method, characterized in that, The method includes: Acquire the binocular image data at the current moment and extract the global appearance descriptor from the binocular image data; based on the global appearance descriptor, retrieve several candidate entries from the appearance visual database, each candidate entry including a map pose and the corresponding appearance similarity; For each candidate entry, a local search domain is determined centered on the map pose and based on the size negatively correlated with the appearance similarity, and overlapping local search domains are merged. Determine the geometric upper bound of all local search domains, and based on the appearance similarity of each local search domain, perform monotonically non-increasing modulation on the geometric upper bound of each local search domain to obtain the modulated geometric upper bound; based on the modulated geometric upper bound of each local search domain and the current global optimal lower bound, prune each local search domain. A branch-and-bound search is performed on the pruned local search domain to output the optimal pose for geometric matching. Based on the decision conditions, a cross-validation decision is made on the optimal pose, and the robot relocalization result is determined according to the decision result. The decision conditions include at least one of the following: geometric uniqueness margin condition, appearance uniqueness margin condition, and cross-modal space consistency condition. The geometric uniqueness margin condition is that the difference between the score of the optimal pose and the score of the second-best pose is not less than a first threshold. The appearance uniqueness margin condition is that the difference between the appearance similarity of the optimal candidate item and the appearance similarity of the second-best candidate item is not less than a second threshold. The cross-modal space consistency condition is that the spatial distance between the optimal pose and the map pose of the corresponding candidate item is not greater than a third threshold.

2. The method according to claim 1, characterized in that, The step of retrieving several candidate entries from the appearance visual database based on the global appearance descriptor includes: Obtain a 3D point cloud map constructed by LiDAR and a visual appearance database associated with the 3D point cloud map; the visual appearance database includes several entries, each entry including a global appearance descriptor and a corresponding map pose; Calculate the appearance similarity between the global appearance descriptor extracted from the binocular image data and the global appearance descriptor of each entry in the visual appearance database; The matching entries are determined based on the appearance similarity of each entry; the map pose of the matching entries is combined with the corresponding appearance similarity to obtain several candidate entries.

3. The method according to claim 2, characterized in that, The 3D point cloud map is stored in a hierarchical voxel structure; the branch and bound search of the pruned local search domain to output the optimal pose for geometric matching includes: Based on the hierarchical order of the layered voxel structure from coarse to fine, the pose subdomains of the pruned local search domain are subdivided layer by layer, and branch and bound search is performed on the subdivided pose subdomains to obtain the candidate poses and corresponding geometric scores of each local search domain. Based on the geometric scores corresponding to each candidate pose, the optimal pose for geometric matching is output.

4. The method according to claim 3, characterized in that, The process of performing cross-negation judgment on the optimal pose based on the judgment conditions, and determining the robot relocalization result based on the judgment result, includes: If all the judgment conditions are met, the judgment is passed, and the optimal pose is taken as the robot relocalization result. If not all of the decision conditions are met, the decision is deemed unsuccessful, an uncertainty flag is generated, and the uncertainty flag and the set of multiple hypotheses are used as the robot relocalization result. The set of multiple hypotheses includes multiple hypothetical poses, which are obtained by performing branch and bound search on the pruned local search domain.

5. The method according to claim 3, characterized in that, The process of performing cross-negation judgment on the optimal pose based on the judgment conditions, and determining the robot relocalization result based on the judgment result, further includes: If the geometric uniqueness margin condition is not met but the appearance uniqueness margin condition is met, the candidate pose with the highest appearance similarity among multiple candidate poses is taken as the robot relocalization result.

6. The method according to claim 4, characterized in that, The process of using the uncertainty flag and the set of multiple hypotheses as the robot relocalization result further includes: The robot is repeatedly driven to move a predetermined distance in a preset direction, and each candidate pose is re-evaluated; the preset direction is the direction in which the observed differences between each candidate pose increase. If the decision is passed within the preset limit, the robot relocation result is output; if the decision is not passed after reaching the preset limit, the system is reported for manual intervention.

7. The method according to claim 4, characterized in that, The following are also included after the judgment is not passed: For the optimal pose, the current observed point cloud is transformed to the map coordinate system and the distance to the nearest surface of the map is calculated point by point to obtain the residual field; The residual field is divided into spatial grids. Grids containing observation point clouds are recorded as valid grids, and the representative residual values ​​of the internal residual points of each valid grid are calculated. Based on the relationship between the representative residual values ​​and the threshold, each valid grid is divided into over-threshold grids or normal grids. If the ratio of the number of out-of-threshold grid cells to the total number of effective grid cells is greater than the first value and the ratio of the number of grid cells in the largest connected region formed by the out-of-threshold grid cells to the total number of out-of-threshold grid cells is less than the second value, the optimal pose is determined to be incorrect, and the optimal pose is regenerated. If the ratio of the number of out-of-threshold graticles to the total number of valid graticles is less than or equal to a first value, and the ratio of the number of graticles in the largest connected region formed by the out-of-threshold graticles to the total number of out-of-threshold graticles is greater than or equal to a second value, the optimal pose is determined to be correct, and local map updates are performed on the connected regions formed by the out-of-threshold graticles.

8. The method according to claim 7, characterized in that, The process of performing local map updates on several connected domains formed by the superdomain raster includes: Replace the map point cloud within the coverage area of ​​the aforementioned connected domains, and retain the map point cloud outside the coverage area of ​​the aforementioned connected domains, as well as the room division and restricted area configuration associated with the three-dimensional point cloud map.

9. The method according to any one of claims 1 to 8, characterized in that, The method also includes a hierarchical wake-up mechanism; wherein, the first-level wake-up is always-on lightweight monitoring; the second-level wake-up performs local relocalization in the neighborhood of the current pose; the third-level wake-up performs global relocalization in all search domains; the condition for upgrading from a lower level to a higher level is that the current level cannot converge within a predetermined time, and the condition for downgrading from a higher level to a lower level is that the higher level has output a pose that has passed the decision.

10. The method according to claim 9, characterized in that, The method further includes: Based on the gravity direction output by the inertial measurement unit, the wheel speed output by the wheel odometer, and the robot's ground contact status, it is determined whether the robot has been lifted. If it is determined that the robot has been lifted, the system enters Level 3 wake-up and cancels the odometer accumulation during the period when the robot was lifted.

11. A robot, characterized in that, The robot includes: a lidar, a binocular camera, an inertial measurement unit, a wheeled odometer, and a processing unit connected to each device, the processing unit being configured to perform the method of any one of claims 1 to 10.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the method of any one of claims 1 to 10.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 10.

14. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 10.