Robot repositioning method and device, control equipment, robot and storage medium

By using raster map and local map technology in a non-open environment, candidate points are determined and local maps are constructed, which solves the problem of robot positioning loss and improves the accuracy and automation of robot relocation.

CN118794422APending Publication Date: 2024-10-18BEIJING ZHIXINGZHE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310403092.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-14
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Robots in non-open environments are prone to positioning loss due to environmental changes, initialization errors, or sensor capability limitations, and there is a lack of effective methods for automatic relocation.

Method used

Preliminary static relocation is performed based on the raster map of the target environment, multiple candidate points are determined, and a local map is established through local point cloud data, from which the positioning reference point is determined to realize the robot repositioning again.

Benefits of technology

It improves the accuracy of robot relocation, reduces the impact of similar environmental scenes on relocation accuracy, and realizes automatic position recovery of robots in non-open environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118794422A_ABST
    Figure CN118794422A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a robot repositioning method and device, control equipment, a robot and a storage medium. The method comprises the steps of performing preliminary static relocation on a robot based on a grid map corresponding to a target environment, and determining a plurality of candidate points for relocating the robot again from the grid map according to a static relocation result; controlling the robot to move in a target environment corresponding to the plurality of candidate points, and collecting local point cloud data in the moving process to establish a local map for describing a local environment where the moved robot is located; determining a positioning reference point from the plurality of candidate points according to the local map; and repositioning the robot again according to the positioning reference point. According to the robot repositioning scheme, the robot repositioning precision can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of artificial intelligence, and in particular, to a robot repositioning method, apparatus, control device, robot and storage medium. Background Art

[0002] In robotics technology, especially when the robot is operating in a non-open environment such as indoors or in a courtyard, the robot may lose its position due to environmental changes, initialization errors, or sensor capability limitations. After the robot switches to a new environment, it may also lose its position due to the lack of coherent prior positioning information. In this case, in addition to setting accurate positioning information by itself, a better way is to automatically relocate and retrieve the robot's position. Therefore, how to achieve automatic relocation of the robot is a technical problem that needs to be solved. Summary of the invention

[0003] In view of this, embodiments of the present application provide a robot repositioning method, apparatus, control device, robot and storage medium to at least partially solve the above-mentioned problems.

[0004] According to a first aspect of an embodiment of the present application, a robot repositioning method is provided, comprising:

[0005] Based on a grid map corresponding to the target environment, the robot is preliminarily statically relocated, and according to the static relocation result, a plurality of candidate points for re-relocating the robot are determined from the grid map;

[0006] Controlling the robot to move in a target environment corresponding to the plurality of candidate points, and collecting local point cloud data during the movement to establish a local map for describing the local environment where the robot is located after the movement;

[0007] Determine a positioning reference point from the multiple candidate points according to the local map;

[0008] The robot is repositioned again according to the positioning reference point.

[0009] In some optional embodiments, the robot is preliminarily statically relocated based on a grid map corresponding to the target environment, and a plurality of candidate points for relocating the robot are determined from the grid map according to the static relocation result, including: acquiring point cloud data collected when the robot is stationary in the target environment; determining an obstacle feature point cloud from the point cloud data, wherein the obstacle feature point cloud originates from obstacles in the target environment; for each pixel point in the grid map, mapping the obstacle feature point cloud to the grid map of the target environment with the pixel point as the corresponding position point in the grid map when the robot is stationary, and determining a first matching degree between the obstacle feature point cloud and the obstacle features in the grid map; and determining a plurality of candidate points for relocating the robot from each pixel point in the grid map according to each first matching degree and a preset first matching degree condition.

[0010] In some optional embodiments, determining a first degree of match between the obstacle feature point cloud and the obstacle features in the grid map includes: determining a first number of points in the obstacle feature point cloud that are mapped to an obstacle grid, wherein the obstacle grid is a grid in the grid map that includes obstacles; determining a first total number of points in the obstacle feature point cloud, and calculating a ratio between the first number and the first total number, using the ratio between the first number and the first total number as the first degree of match.

[0011] In some optional embodiments, the method of determining a plurality of candidate points for re-positioning the robot from each pixel point in the grid map according to each first matching degree and a preset first matching degree condition includes: for each first matching degree, determining whether the first matching degree is greater than a first predetermined threshold value; if there are multiple first matching degrees greater than the first predetermined threshold value, determining a plurality of candidate points for re-positioning the robot from a plurality of pixel points corresponding to the multiple first matching degrees greater than the first predetermined threshold value.

[0012] In some optional embodiments, the method further includes: if there is only one pixel point with a first matching degree greater than a first predetermined threshold, determining the pixel point corresponding to the first matching degree greater than the first predetermined threshold as the positioning reference point.

[0013] In some optional embodiments, determining the positioning reference point from the multiple candidate points based on the local map includes: converting the local map into a local obstacle feature point cloud; for each candidate point among the multiple candidate points, taking the candidate point as the corresponding position point in the grid map when the robot is stationary, mapping the local obstacle feature point cloud to the grid map to determine a second matching degree between the local obstacle feature point cloud and the obstacle features in the grid map; determining the positioning reference point from the multiple candidate points based on each second matching degree and a preset second matching degree condition.

[0014] In some optional embodiments, determining a second degree of matching between the local obstacle feature point cloud and the obstacle features in the grid map includes: determining a second number of points in the local obstacle feature point cloud that are mapped to an obstacle grid, wherein the obstacle grid is a grid in the grid map that includes obstacles; determining a second total number of points in the local obstacle feature point cloud, and calculating a ratio between the second number and the second total number, and taking the ratio between the second number and the second total number as the second degree of matching.

[0015] In some optional embodiments, determining the positioning reference point from the multiple candidate points based on the respective second matching degrees and a preset second matching degree condition includes: determining the maximum value among the respective second matching degrees, and if the maximum value among the second matching degrees is greater than a second predetermined threshold, determining the candidate point corresponding to the maximum value among the second matching degrees as the positioning reference point.

[0016] According to a second aspect of an embodiment of the present application, a robot repositioning device is provided, the device being applied to repositioning a robot in a non-open target environment, the device comprising:

[0017] A first determination module is used to perform preliminary static relocation of the robot based on a grid map corresponding to the target environment, and determine a plurality of candidate points for re-relocation of the robot from the grid map according to the static relocation result;

[0018] An establishment module is used to control the robot to move in the target environment corresponding to the multiple candidate points, and collect local point cloud data during the movement to establish a local map for describing the local environment where the robot is located after the movement;

[0019] A second determination module, configured to determine a positioning reference point from the plurality of candidate points according to the local map;

[0020] A repositioning module is used to reposition the robot according to the positioning reference point.

[0021] According to a third aspect of an embodiment of the present application, a control device is provided, characterized in that it includes: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store a computer program; and the processor is used to execute the method described in the first aspect above by running the computer program stored in the memory.

[0022] According to a fourth aspect of an embodiment of the present application, a robot is provided, comprising: the control device provided in the aforementioned third aspect.

[0023] According to a fifth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect is implemented.

[0024] According to a sixth aspect of an embodiment of the present application, a computer program product is provided, including a computer program, wherein the computer program implements the method described in the first aspect when executed by a processor.

[0025] The robot repositioning scheme provided in the embodiment of the present application can perform preliminary static repositioning of the robot based on the grid map corresponding to the target environment, and determine multiple candidate points for repositioning the robot from the grid map according to the static repositioning result; control the robot to move in the target environment corresponding to the multiple candidate points, and collect local point cloud data during the movement to establish a local map for describing the local environment where the robot is located after the movement; determine a positioning reference point from the multiple candidate points according to the local map; and reposition the robot according to the positioning reference point. Therefore, the robot repositioning scheme in this scheme can realize the mobile repositioning of the robot, and can reduce the influence of similar environmental scenes in the target environment on the repositioning accuracy, thereby improving the accuracy of the robot repositioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0027] Figure 1 The following is a flowchart of an exemplary robot repositioning method in the present application.

[0028] Figure 2 This is an optional sub-step flowchart of step S102 in the present application.

[0029] Figure 3 This is an optional sub-step flowchart of step S106 in the present application.

[0030] Figure 4 The figure is an overall flowchart of an exemplary robot repositioning in the present application.

[0031] Figure 5 This is a structural block diagram of an exemplary robot repositioning device in the present application.

[0032] Figure 6 This is a structural block diagram of an exemplary control device in this application.

[0033] Figure 7 This is a structural block diagram of an exemplary robot in this application. DETAILED DESCRIPTION

[0034] In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field should belong to the scope of protection of the embodiments of the present application. It should be understood that the various steps recorded in the method implementation mode of the present disclosure can be performed in different orders and / or performed in parallel. In addition, the method implementation mode may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0035] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. It should be noted that the modifications of "one" and "multiple" mentioned in this application are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0036] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.

[0037] According to a first aspect of the present application, a robot repositioning method is provided. Figure 1 FIG. 1 is a flowchart of an exemplary robot repositioning method in the present application. Figure 1 As shown, the robot repositioning method includes steps S102, S104, S106 and S108, specifically:

[0038] S102: Based on the grid map corresponding to the target environment, the robot is preliminarily statically relocated, and according to the static relocation result, a plurality of candidate points for re-relocating the robot are determined from the grid map.

[0039] The robot repositioning method in the present application is applied to the repositioning of the robot in a non-open target environment. The non-open target environment described in the present application can be an environment of limited area such as an indoor environment, a courtyard environment, a swimming pool environment, etc., to distinguish it from an open environment of unlimited area such as a highway environment and a field environment. Correspondingly, the robot can be a sanitation vehicle, a vacuum cleaner, a floor scrubber, a watering truck, a sewage treatment vehicle, a sweeping robot, a food delivery robot, a shopping guide robot, a welcoming robot, a disinfection robot, a swimming pool cleaning robot, a lawn mower, a golf cart, etc. In order to facilitate the explanation of the technical solution of the embodiment of the present application, the robot is an indoor sweeping robot and the target environment is an indoor environment for example.

[0040] In this application, for a non-open target environment, the robot can be pre-loaded with a corresponding grid map, which can describe the characteristics of obstacles and passable areas in the target environment, and the robot can operate in the target environment according to the grid map. Optionally, in addition to being pre-loaded, the grid map can also be obtained by the robot building the map itself after being placed in the target environment. The grid map in this application can be a two-dimensional map.

[0041] Through the robot repositioning method in the present application, the robot can be repositioned when an abnormality occurs in the robot positioning, so as to provide position information for the subsequent operation of the robot. For example, through this repositioning, the position of the robot in the grid map of the target environment can be found, and the position is also the position point coordinates (pixel point coordinates) in the grid map. Since each position point coordinate uniquely corresponds to an actual position in the target environment, the current position of the robot is obtained by determining the position point coordinates, and the repositioning is successful.

[0042] In the present application, the robot may be provided with one or more sensors for sensing environmental information and the robot's own information. For example, the sensor may include an image acquisition device (such as a camera, etc.), a point cloud acquisition device (such as a laser radar, etc.), etc. The sensor may also include a millimeter wave radar, an ultrasonic radar, an inertial measurement unit, a wheel speed meter, etc., which are not limited here. For example, when the robot is located in a target environment, a point cloud acquisition device such as a laser radar, etc. provided by the robot may collect three-dimensional point cloud data in the target environment, so as to facilitate the use of the three-dimensional point cloud data for data processing processes including but not limited to robot relocation and target detection.

[0043] In the present application, the robot can be preliminarily statically relocated based on the grid map corresponding to the target environment, and based on the static relocation result, multiple candidate points for relocating the robot can be determined from the grid map, where the multiple candidate points can refer to pixel points in the grid map, each candidate point corresponds to a position that can be uniquely determined in the target environment, and thus the multiple candidate points can be used for relocation. In the present application, statically relocating the robot can refer to relocating the robot while the robot remains stationary. Static relocation of the robot can also be considered as map matching relocation, which is based on the position of the robot relative to a mark (such as an obstacle) in the grid map.

[0044] The specific implementation method of step S102 is not limited in this application. For example, in some optional embodiments, refer to Figure 2 In the flowchart in, step S102 includes sub-steps S1021, S1022, S1023 and S1024, specifically:

[0045] S1021: Acquire point cloud data collected when the robot is stationary in the target environment.

[0046] Specifically, when the robot needs to be repositioned, the robot can be controlled to remain stationary at its current position in the target environment. The robot's position and posture (i.e., position and attitude; it should be understood that the position is not completely determined at this time due to the loss of robot positioning) when it is stationary is recorded as the stationary posture. In this stationary posture, a point cloud acquisition device (such as a laser radar, etc.) provided on the robot collects point cloud data, so that the robot repositioning device can obtain the point cloud data collected by the point cloud acquisition device and perform further processing.

[0047] Optionally, the point cloud data may be filtered to a certain extent to highlight the features of obstacles in the point cloud data and reduce the amount of subsequent calculations.

[0048] In order to improve the accuracy of the static relocalization result, the accumulated point cloud data collected when the robot is stationary in the target environment can be obtained. The accumulated point cloud data can be the accumulation of multiple frames of point cloud data collected by the point cloud collection device (such as a laser radar, etc.) of the robot when it is stationary in the target environment. For example, the multiple frames of point cloud data can be multiple frames of point cloud data collected continuously within a preset time period.

[0049] S1022: Determine an obstacle feature point cloud from the point cloud data, wherein the obstacle feature point cloud originates from obstacles in the target environment.

[0050] In the present application, obstacles in the point cloud data can be detected to determine obstacle feature point clouds from the point cloud data. For example, taking the target environment as an indoor environment and the robot as an indoor mobile robot, obstacles can include objects such as sofas and refrigerators that can hinder the movement of the robot.

[0051] Optionally, taking the aforementioned accumulated point cloud data as an example, step S1022 may include determining an obstacle feature point cloud from the accumulated point cloud data.

[0052] S1023: For each pixel point in the grid map, take the pixel point as the corresponding position point in the grid map when the robot is stationary, map the obstacle feature point cloud to the grid map of the target environment, and determine the first matching degree between the obstacle feature point cloud and the obstacle features in the grid map.

[0053] To facilitate understanding of sub-step S1023, an example is given. Assuming that there are N pixels in the grid map (for example, N=10000), each pixel corresponds to a different position coordinate. For the first pixel, the first pixel can be taken as the position corresponding to the position of the robot in the current static posture in the grid map. Then, according to the static posture of the robot, each point of the obstacle feature point cloud is mapped to the grid map of the target environment to determine the first matching degree between the obstacle feature point cloud and the obstacle feature in the grid map, so as to obtain the first matching degree corresponding to the first pixel. Similarly, brute force matching is performed on the N pixels in the grid map, and each pixel in the N-1 pixels except the first pixel is processed in the same way as the first pixel, so as to obtain the first matching degree corresponding to the N-1 pixels, so as to obtain the first matching degree corresponding to the N pixels, so as to screen suitable candidate points according to the N first matching degrees.

[0054] The method of determining the first degree of match is not limited in this application. In some optional embodiments, "determining the first degree of match between the obstacle feature point cloud and the obstacle features in the grid map" in sub-step S1023 includes: determining a first number of points in the obstacle feature point cloud that are mapped to an obstacle grid, wherein the obstacle grid is a grid in the grid map that includes obstacles; determining a first total number of points in the obstacle feature point cloud, and calculating the ratio between the first number and the first total number, and taking the ratio between the first number and the first total number as the first degree of match.

[0055] Based on this, by using the first matching degree determined in this way in the present application, multiple candidate points for re-positioning the robot are determined from each pixel point in the grid map, and the result is more accurate.

[0056] Take an example for easy understanding. For example, the grid map corresponding to the target environment includes 100 grids (this number is only used as an example), including 50 obstacle grids of obstacles, and the obstacle feature point cloud has 10,000 points (i.e., the first total number is 10,000). The number of points in the obstacle feature point cloud mapped to the obstacle grid is 9,000 (i.e., the first number is 9,000). Then, the first matching degree can be calculated as 9,000 / 10,000=90%. The rest of the situations can be deduced by analogy. This is only used as an example and is not used as any limitation in this application.

[0057] In the present application, the higher the first matching degree is, the more likely it is that the position corresponding to the pixel point is the corresponding position point in the grid map when the robot is stationary.

[0058] S1024: Determine, from each pixel point in the grid map, a plurality of candidate points for re-positioning the robot according to each first matching degree and a preset first matching degree condition.

[0059] In the present application, after each first matching degree is determined, a plurality of candidate points for re-positioning the robot can be determined from each pixel point in the grid map according to each first matching degree and a preset first matching degree condition.

[0060] The specific implementation method of sub-step S1024 is not limited in the present application. For example, in some optional embodiments, sub-step S1024 includes: for each first matching degree, determining whether the first matching degree is greater than a first predetermined threshold; if there are multiple first matching degrees greater than the first predetermined threshold, then determining multiple candidate points for re-positioning the robot from multiple pixel points corresponding to the multiple first matching degrees greater than the first predetermined threshold.

[0061] Based on this, in this application, multiple candidate points for re-positioning the robot can be determined more accurately and reasonably from each pixel point in the grid map in this way, so as to facilitate the re-positioning of the robot in subsequent steps.

[0062] The first predetermined threshold in the present application can be reasonably set as needed, and is not particularly limited here. For example, it can be set to 60%, 70%, 80%, 90%, 95%, etc.

[0063] Optionally, the specific number of the multiple candidate points can be selected as needed, for example, 3, 5, 10, 50, 100, etc. can be selected, and there is no particular limitation here.

[0064] In conjunction with the aforementioned example of N=10000, assume that the specific number of multiple candidate points is 5 and the first predetermined threshold is 90%. If there are 10 pixels with a first matching degree greater than 90% of the first predetermined threshold, then the pixel points corresponding to the top 5 first matching degrees greater than the first predetermined threshold can be determined as 5 candidate points for repositioning the robot in the order of the magnitude of the first matching degrees greater than the first predetermined threshold. Alternatively, in other embodiments, any 5 candidate points can be selected from the 10 first matching degrees greater than the first predetermined threshold as needed or according to rules (for example, 5 pixel points with first matching degrees of the 3rd to 7th largest can be selected as 5 candidate points, 5 pixel points with first matching degrees of 1, 3, 5, 7, and 9 largest can be selected as 5 candidate points, and so on). It should be understood that these examples do not serve as any limitation to the present application.

[0065] Based on this, the present application, through the optional implementation methods of the above-mentioned sub-steps S1021 to S1024, can conveniently and accurately perform preliminary static repositioning of the robot based on the grid map corresponding to the target environment, and determine multiple candidate points for repositioning the robot from the grid map based on the static repositioning results, so as to facilitate the subsequent steps to reposition the robot.

[0066] S104: Control the robot to move in the target environment corresponding to the multiple candidate points, and collect local point cloud data during the movement to establish a local map for describing the local environment where the robot is located after the movement.

[0067] Optionally, in step S104, the robot may be controlled to move from a static position in an open area of ​​the target environment, for example, randomly, in a straight line, or along a predetermined graphic trajectory. During the movement, the point cloud acquisition device (such as a laser radar, etc.) of the robot continuously acquires local point cloud data, and builds a map based on the acquired local point cloud data to establish a local map for describing the local environment where the robot is located after the movement. During the movement of the robot, the local map is gradually expanded.

[0068] In this application, any SLAM (Simultaneous Localization and Mapping) algorithm based on laser point cloud can be used to establish a local map, without limitation. When using the SLAM algorithm to establish a local map, the local point cloud data can be filtered, and then the local point cloud data SLAM algorithm can be used to establish the local map, so that a more stable local map can be obtained.

[0069] Optionally, sufficient local point cloud data may be required when building a local map, so a certain amount of local point cloud data can be accumulated during the movement before building the map. For example, the local point cloud data accumulated and collected during the robot moving a predetermined distance can be used to build a local map for describing the local environment where the robot is located after the movement. The predetermined distance can be set as needed, such as 1 meter, 2 meters, etc.

[0070] S106: Determine a positioning reference point from the multiple candidate points according to the local map.

[0071] In the present application, after the local map is established in step S104 (for example, the local map is established by a SLAM algorithm based on a laser point cloud), the local map can be processed to determine the positioning reference point in a timely manner.

[0072] The specific implementation of step S106 is not limited in this application. In some optional embodiments, refer to Figure 3 In the flowchart shown, step S106 includes sub-steps S1061, S1062 and S1023, specifically:

[0073] S1061: Convert the local map into a local obstacle feature point cloud.

[0074] In this application, obstacles in the local map can be detected, and then the obstacles in the local map can be converted into a local obstacle feature point cloud in the coordinate system of the robot. The local obstacle feature point cloud can indicate the obstacles in the local environment where the robot is located. By converting the local map into a local obstacle feature point cloud for calculation, this application can effectively reduce the amount of calculation in subsequent steps, improve the calculation accuracy, and can meet the requirements of real-time performance.

[0075] S1062: For each candidate point among the multiple candidate points, take the candidate point as the corresponding position point in the grid map when the robot is stationary, map the local obstacle feature point cloud to the grid map, so as to determine a second matching degree between the local obstacle feature point cloud and the obstacle features in the grid map.

[0076] To facilitate understanding of sub-step S1062, the five candidate points in the previous text are used as an example. For the first candidate point, the first candidate point can be used as the corresponding position point in the grid map when the current robot is stationary, and each point of the local obstacle feature point cloud can be mapped to the grid map of the target environment to determine the second matching degree between the local obstacle feature point cloud and the obstacle feature in the grid map, so that the second matching degree corresponding to the first candidate point can be obtained; similarly, each of the four candidate points except the first candidate point is processed in the same way as the first candidate point, and the second matching degree corresponding to the four candidate points is obtained respectively, so that the second matching degree corresponding to the five candidate points can be obtained, so as to select a suitable positioning reference point from the five candidate points according to the five second matching degrees. Obviously, since in this process, only the five candidate points in the grid map need to be calculated to obtain the positioning reference point, without violent matching of each pixel in the grid map, the computing power overhead of the mobile relocation process implemented by the technical solution of the present application is relatively small.

[0077] The method for determining the second degree of matching is not limited in this application. In some optional embodiments, "determining the second degree of matching between the local obstacle feature point cloud and the obstacle features in the grid map" in sub-step S1062 includes: determining the second number of points in the local obstacle feature point cloud that are mapped to the obstacle grid, wherein the obstacle grid is a grid including obstacles in the grid map; determining the second total number of points in the local obstacle feature point cloud, and calculating the ratio between the second number and the second total number, and taking the ratio between the second number and the second total number as the second degree of matching.

[0078] Based on this, the second matching degree determined in this way in the present application is used to determine a positioning reference point from each candidate point, and the robot is repositioned again according to the positioning reference point, with a more accurate result.

[0079] Take an example for easy understanding, for example, the grid map corresponding to the target environment includes 100 grids (this number is only for example), including 50 obstacle grids, the local obstacle feature point cloud has 5000 points (i.e., the second total number is 5000), and the local obstacle feature point cloud is mapped to the obstacle grid. There are 4500 points (i.e., the second number is 4500), then the second matching degree can be calculated as 4500 / 5000=90%. Other situations can be deduced by analogy, which is only an example here and does not constitute any limitation in this application.

[0080] In the present application, the higher the second matching degree is, the more likely it is that the position corresponding to the candidate point is the corresponding position point in the grid map when the robot is stationary.

[0081] S1063: Determine a positioning reference point from the multiple candidate points according to each second matching degree and a preset second matching degree condition.

[0082] In the present application, after determining each second matching degree, a positioning reference point can be determined from multiple candidate points based on each second matching degree and a preset second matching degree condition, so that the robot can be repositioned according to the positioning reference point in subsequent steps.

[0083] The specific implementation method of sub-step S1063 is not limited in the present application. For example, in some optional embodiments, sub-step S1063 includes: determining the maximum value among the second matching degrees, and if the maximum value among the second matching degrees is greater than a second predetermined threshold, then determining the candidate point corresponding to the maximum value among the second matching degrees as the positioning reference point.

[0084] Based on this, in this application, a positioning reference point can be determined from multiple candidate points more accurately and reasonably in this way, so that the robot can be repositioned again according to the positioning reference point in subsequent steps.

[0085] The second predetermined threshold in the present application can be reasonably set as needed, and is not particularly limited here. For example, it can be set to 60%, 70%, 80%, 90%, 95%, etc.

[0086] In conjunction with the above example of five candidate points, assuming that the second predetermined threshold is 90%, if there are two N pixel points whose second matching degree is greater than the second predetermined threshold of 90%, and they are 92% and 95% respectively, then the maximum value, that is, the candidate point corresponding to the second matching degree of 95%, can be selected as the positioning reference point, and the rest of the cases can be deduced by analogy. It should be understood that this example does not serve as any limitation in the present application.

[0087] Based on this, the present application can conveniently and accurately determine the positioning reference point from multiple candidate points according to the local map through the optional implementation of the above-mentioned sub-steps S1061 to S1063, so as to facilitate the subsequent steps to reposition the robot according to the positioning reference point.

[0088] Optionally, if there is no second matching degree greater than the second predetermined threshold among the second matching degrees corresponding to the candidate points, the robot can be controlled to continue moving in the target environment, continuously building and expanding the local map until a candidate point with a second matching degree greater than the second predetermined threshold is found, and the candidate point (if there are multiple, the candidate point corresponding to the maximum second matching degree) is determined as the positioning reference point.

[0089] In some optional embodiments, the robot repositioning method of the present application further includes: if there is only one pixel point with a first matching degree greater than a first predetermined threshold, then the pixel point corresponding to the first matching degree greater than the first predetermined threshold is determined as the positioning reference point.

[0090] Based on this, the present application can adapt to the situation where there is only a single pixel point with a first matching degree greater than the first predetermined threshold (that is, there is only a single candidate point) but no multiple candidate points, so as to determine the pixel point corresponding to the first matching degree greater than the first predetermined threshold as the positioning reference point, so as to re-position the robot, thereby realizing the mobile repositioning of the robot, and reducing the influence of similar environmental scenes in the target environment on the repositioning accuracy, thereby improving the accuracy of the robot's repositioning.

[0091] S108: Repositioning the robot again according to the positioning reference point.

[0092] In the present application, after obtaining the positioning reference point in step S106, the robot can be repositioned again according to the positioning reference point, so that the result of the repositioning is used as the current positioning result of the robot.

[0093] Optionally, the positioning reference point can be used as the corresponding position point in the grid map when the robot is stationary during static repositioning. Since the static posture (including position and posture) of the robot when it is stationary during static repositioning is known, the coordinates of the positioning reference point are determined as the position in the static posture, and the actual posture of the robot when it is stationary during static repositioning can be obtained. The relevant data of the robot's moving process when it moves is known (including moving distance, direction, time, etc.), and the current position of the robot (i.e., the position of the robot in the grid map of the target map) and posture can be calculated based on the actual posture of the robot when it is stationary during static repositioning and the relevant data of the moving process, thereby completing the process of re-repositioning the robot according to the positioning reference point, and finally obtaining the robot repositioning result.

[0094] Based on this, the robot repositioning scheme provided in the embodiment of the present application can perform preliminary static repositioning of the robot based on the grid map corresponding to the target environment, and determine multiple candidate points for re-repositioning the robot from the grid map according to the static repositioning results; control the robot to move in the target environment corresponding to the multiple candidate points, and collect local point cloud data during the movement to establish a local map for describing the local environment where the robot is located after the movement; determine a positioning reference point from the multiple candidate points according to the local map; and re-reposition the robot according to the positioning reference point. Therefore, the robot repositioning scheme in this scheme can realize the mobile repositioning of the robot, and can reduce the influence of similar environmental scenes in the target environment on the repositioning accuracy, thereby improving the accuracy of the robot repositioning.

[0095] Combine the following Figure 4 The flowchart further illustrates the robot repositioning method in this application. Figure 4As shown in FIG. 1 , the robot relocalization process is started. First, when the robot is stationary in the target environment, the robot is preliminarily statically relocated to determine whether there are candidate points (the pixel points corresponding to the first matching degree with the highest N values ​​and greater than the first matching degree threshold are screened as candidate points). If the candidate points are empty (i.e., there are no candidate points, i.e., there are no pixel points with the first matching degree greater than the first matching degree threshold), the relocalization fails; if there are candidate points, and the candidate points are single (i.e., the candidate points are single, i.e., the pixel points with the first matching degree greater than the first matching degree threshold are single), the single candidate point is used as the positioning reference point for relocalization to obtain the current positioning of the robot, and the robot relocalization is successful; if the candidate points are not single (i.e., the candidate points are not single), the robot relocalization fails. If there are multiple selection points, that is, there are multiple pixel points whose first matching degree is greater than the first matching degree threshold, the robot is controlled to move, and a local map is established during the movement, and the local map is gradually expanded. Candidate points are screened according to the local map (that is, the positioning reference point is determined from N candidate points). If the required candidate points are not screened out (that is, the candidate points whose second matching degree is greater than the second matching degree threshold), the repositioning fails; if the required candidate points are found (that is, the candidate points whose second matching degree is greater than the second matching degree threshold), the positioning reference points (that is, the candidate points with the largest second matching degree) are found from them for repositioning to obtain the current positioning of the robot. The robot is repositioned successfully, and the robot repositioning process can be terminated afterwards. It should be understood that the above Figure 4 The description in the specification is not intended to limit the present application in any way.

[0096] It can be understood that the above description of the robot repositioning method is only an exemplary description of the present application and does not constitute any limitation to the present application.

[0097] According to a third aspect of an embodiment of the present application, a robot repositioning device is provided. Figure 5 FIG. 1 is a block diagram showing an exemplary robot repositioning device 100 of the present application. The robot repositioning device 100 of the present embodiment includes:

[0098] A first determination module 102 is used to perform preliminary static relocation of the robot based on a grid map corresponding to the target environment, and determine a plurality of candidate points for re-relocation of the robot from the grid map according to the static relocation result;

[0099] Establishing module 104, used for controlling the robot to move in the target environment corresponding to the plurality of candidate points, and collecting local point cloud data during the movement to establish a local map for describing the local environment where the robot is located after the movement;

[0100] A second determination module 106, configured to determine a positioning reference point from the plurality of candidate points according to the local map;

[0101] The repositioning module 108 is used to reposition the robot according to the positioning reference point.

[0102] The robot repositioning scheme provided in the embodiment of the present application is as follows: since the first determination module 102 can perform preliminary static repositioning of the robot based on the grid map corresponding to the target environment, and determine multiple candidate points for repositioning the robot from the grid map according to the static repositioning result; the establishment module 104 can control the robot to move in the target environment corresponding to the multiple candidate points, and collect local point cloud data during the movement to establish a local map for describing the local environment where the robot is located after the movement; the second determination module 106 can determine the positioning reference point from the multiple candidate points according to the local map; the repositioning module 108 can reposition the robot according to the positioning reference point. Therefore, the robot repositioning scheme in this scheme can realize the mobile repositioning of the robot, and can reduce the influence of similar environmental scenes in the target environment on the repositioning accuracy, thereby improving the accuracy of the robot repositioning.

[0103] In some optional embodiments, the first determination module 102 is specifically used to: obtain point cloud data collected when the robot is stationary in the target environment; determine an obstacle feature point cloud from the point cloud data, wherein the obstacle feature point cloud originates from obstacles in the target environment; for each pixel point in the grid map, map the obstacle feature point cloud to the grid map of the target environment with the pixel point as the corresponding position point in the grid map when the robot is stationary, and determine a first matching degree between the obstacle feature point cloud and the obstacle features in the grid map; and determine a plurality of candidate points for re-positioning the robot from each pixel point in the grid map according to each first matching degree and a preset first matching degree condition.

[0104] In some optional embodiments, the first determination module 102 is specifically used to: determine a first number of points in the obstacle feature point cloud that are mapped to an obstacle grid, wherein the obstacle grid is a grid in the grid map that includes obstacles; determine a first total number of points in the obstacle feature point cloud, and calculate a ratio between the first number and the first total number, using the ratio between the first number and the first total number as the first matching degree.

[0105] In some optional embodiments, the first determination module 102 is specifically used to: for each first matching degree, determine whether the first matching degree is greater than a first predetermined threshold; if there are multiple first matching degrees greater than the first predetermined threshold, determine multiple candidate points for re-positioning the robot from multiple pixel points corresponding to the multiple first matching degrees greater than the first predetermined threshold.

[0106] In some optional embodiments, the robot repositioning device 100 is further used to: if there is only one pixel point with a first matching degree greater than a first predetermined threshold, determine the pixel point corresponding to the first matching degree greater than the first predetermined threshold as the positioning reference point.

[0107] In some optional embodiments, the second determination module 106 is specifically used to: convert the local map into a local obstacle feature point cloud; for each candidate point among the multiple candidate points, take the candidate point as the corresponding position point in the grid map when the robot is stationary, map the local obstacle feature point cloud to the grid map to determine a second matching degree between the local obstacle feature point cloud and the obstacle features in the grid map; determine a positioning reference point from the multiple candidate points according to each second matching degree and a preset second matching degree condition.

[0108] In some optional embodiments, the second determination module 106 is specifically used to: determine a second number of points in the local obstacle feature point cloud that are mapped to the obstacle grid, wherein the obstacle grid is a grid including obstacles in the grid map; determine a second total number of points in the local obstacle feature point cloud, and calculate a ratio between the second number and the second total number, using the ratio between the second number and the second total number as the second matching degree.

[0109] In some optional embodiments, the second determination module 106 is specifically used to: determine the maximum value among the second matching degrees, and if the maximum value among the second matching degrees is greater than a second predetermined threshold, determine the candidate point corresponding to the maximum value among the second matching degrees as the positioning reference point.

[0110] The robot repositioning device 100 of the embodiment of the present application and the robot repositioning method provided in the first aspect are based on the same inventive concept, and are used to implement the corresponding robot repositioning methods in the aforementioned multiple method embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be described in detail here. In addition, the functional implementation of each module in the robot repositioning device 100 of the present embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be described in detail here.

[0111] According to a third aspect of an embodiment of the present application, a control device is provided, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store a computer program; and the processor is used to execute the robot repositioning method described in the first aspect above by running the computer program stored in the memory.

[0112] Figure 6 The present application embodiment does not limit the specific implementation of the control device 600. As an example, refer to Figure 6 The control device 600 provided in the embodiment of the present application includes: a processor 602, a communication interface 604, a memory 606, and a communication bus 608. Among them:

[0113] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .

[0114] The communication interface 604 is used to communicate with other electronic devices or servers.

[0115] The processor 602 is used to execute the computer program 610, and specifically can execute the relevant steps in any of the aforementioned robot repositioning method embodiments.

[0116] Specifically, the computer program 610 may include program codes including computer operation instructions.

[0117] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0118] The memory 606 is used to store the computer program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0119] The computer program 610 may be specifically configured to enable the processor 602 to execute the robot repositioning method in any of the aforementioned embodiments.

[0120] The specific implementation of each step in the computer program 610 can refer to the corresponding description of the corresponding steps and units in any of the above-mentioned robot repositioning method embodiments, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiments, which will not be repeated here.

[0121] The control device 600 in the embodiment of the present application has been described in detail in the aforementioned robot repositioning method embodiment, so its related content and beneficial effects can be understood with reference to the aforementioned method embodiment, and will not be repeated here.

[0122] According to a fourth aspect of the embodiment of the present application, a robot 700 is provided, referring to Figure 7 As shown in the block diagram, the robot 700 includes the control device 600 provided by the third aspect.

[0123] In some optional embodiments, the robot 700 may be equipped with various sensors for sensing environmental information and the robot's own information (including but not limited to lidar, camera, millimeter-wave radar, ultrasonic radar, inertial measurement unit, wheel speed meter, etc.), and the control device 600 may be an autonomous driving domain controller mounted on the robot 700. When the robot 700 is in working state, the autonomous driving domain controller communicates with the various sensors mounted on the robot 700, and performs path planning for the robot 700 based on the environmental information and the robot's own information collected by these sensors, so as to achieve the purpose of controlling the robot 700 to drive automatically.

[0124] In some optional embodiments, the robot 700 can be a sanitation vehicle, a vacuum truck, a floor washing truck, a sprinkler truck, a sewage treatment truck, a sweeping robot, a food delivery robot, a shopping guide robot, a welcoming robot, a disinfection robot, a swimming pool cleaning robot, a lawn mower, a golf cart, etc.

[0125] According to a fifth aspect of the embodiments of the present application, there is provided a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, the robot repositioning method as described in the first aspect is implemented.

[0126] According to a sixth aspect of an embodiment of the present application, there is provided a computer program product, comprising a computer program, which, when executed by a processor, implements the robot repositioning method as described in the first aspect.

[0127] The robot 700 / computer storage medium / computer program product embodiment in the embodiment of the present application has been described in detail in the aforementioned robot repositioning method embodiment, so its related content and beneficial effects can be understood with reference to the above-mentioned method embodiment and will not be repeated here.

[0128] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.

[0129] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CDROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a special-purpose processor or programmable or special-purpose hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the method shown here.

[0130] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0131] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.

Claims

1. A robot repositioning method, characterized in that: The method is applied to relocalization of a robot in a non-open target environment, and the method comprises: Based on a grid map corresponding to the target environment, the robot is preliminarily statically relocated, and according to the static relocation result, a plurality of candidate points for re-relocating the robot are determined from the grid map; Controlling the robot to move in a target environment corresponding to the plurality of candidate points, and collecting local point cloud data during the movement to establish a local map for describing the local environment where the robot is located after the movement; Determine a positioning reference point from the multiple candidate points according to the local map; The robot is repositioned again according to the positioning reference point.

2. The method according to claim 1, characterized in that The preliminary static relocation of the robot based on the grid map corresponding to the target environment, and determining a plurality of candidate points for re-relocation of the robot from the grid map according to the static relocation result, comprises: Acquire point cloud data collected when the robot is stationary in the target environment; Determining an obstacle feature point cloud from the point cloud data, wherein the obstacle feature point cloud originates from obstacles in the target environment; For each pixel point in the grid map, taking the pixel point as the corresponding position point in the grid map when the robot is stationary, mapping the obstacle feature point cloud to the grid map of the target environment, and determining a first matching degree between the obstacle feature point cloud and the obstacle features in the grid map; According to each first matching degree and a preset first matching degree condition, a plurality of candidate points for re-positioning the robot are determined from each pixel point in the grid map.

3. The method according to claim 2, characterized in that The determining a first matching degree between the obstacle feature point cloud and the obstacle features in the grid map includes: Determining a first number of points in the obstacle feature point cloud that are mapped to an obstacle grid, wherein the obstacle grid is a grid in the grid map that includes obstacles; A first total number of points in the obstacle feature point cloud is determined, and a ratio between the first number and the first total number is calculated, and the ratio between the first number and the first total number is used as the first matching degree.

4. The method according to claim 3, characterized in that The determining, from each pixel point in the grid map, a plurality of candidate points for re-positioning the robot according to each first matching degree and a preset first matching degree condition, comprises: For each first matching degree, determine whether the first matching degree is greater than a first predetermined threshold. If there are multiple first matching degrees greater than the first predetermined threshold, determine multiple candidate points for repositioning the robot from multiple pixel points corresponding to the multiple first matching degrees greater than the first predetermined threshold.

5. The method according to claim 4, characterized in that The method further comprises: If there is only one pixel point with a first matching degree greater than the first predetermined threshold, the pixel point corresponding to the first matching degree greater than the first predetermined threshold is determined as the positioning reference point.

6. The method according to any one of claims 1 to 5, characterized in that The step of determining a positioning reference point from the plurality of candidate points according to the local map includes: Converting the local map into a local obstacle feature point cloud; For each candidate point among the multiple candidate points, taking the candidate point as a corresponding position point in the grid map when the robot is stationary, mapping the local obstacle feature point cloud to the grid map to determine a second matching degree between the local obstacle feature point cloud and the obstacle features in the grid map; According to each second matching degree and a preset second matching degree condition, a positioning reference point is determined from the multiple candidate points.

7. The method according to claim 6, characterized in that The determining a second matching degree between the local obstacle feature point cloud and the obstacle features in the grid map includes: Determining a second number of points in the local obstacle feature point cloud that are mapped to an obstacle grid, wherein the obstacle grid is a grid in the grid map that includes obstacles; Determine a second total number of points in the local obstacle feature point cloud, calculate a ratio between the second number and the second total number, and use the ratio between the second number and the second total number as the second matching degree.

8. The method according to claim 6, characterized in that The determining of the positioning reference point from the plurality of candidate points according to each second matching degree and a preset second matching degree condition includes: A maximum value among the second matching degrees is determined, and if the maximum value among the second matching degrees is greater than a second predetermined threshold, a candidate point corresponding to the maximum value among the second matching degrees is determined as the positioning reference point.

9. A robot repositioning device, characterized in that: The device is applied to repositioning of a robot in a non-open target environment, and comprises: A first determination module is used to perform preliminary static relocation of the robot based on a grid map corresponding to the target environment, and determine a plurality of candidate points for re-relocation of the robot from the grid map according to the static relocation result; An establishment module is used to control the robot to move in the target environment corresponding to the multiple candidate points, and collect local point cloud data during the movement to establish a local map for describing the local environment where the robot is located after the movement; A second determination module, configured to determine a positioning reference point from the plurality of candidate points according to the local map; A repositioning module is used to reposition the robot according to the positioning reference point.

10. A control device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 8 by running the computer program stored in the memory.

11. A robot, characterized in that: include: A control device as claimed in claim 10.

12. A computer storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.