Robot positioning method, robot and computer readable storage medium

By obtaining the displacement information of multiple sensors to determine the abnormal state of the robot, and using appropriate displacement information for positioning, the problem of low positioning accuracy in the existing technology is solved, and the positioning accuracy of the robot in abnormal states is improved.

CN118730097APending Publication Date: 2024-10-01SHENZHEN LDROBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310285567.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing robot positioning methods lead to low positioning accuracy when the change in distance information between the robot and the front environment is less than or equal to the preset change threshold and the movement displacement continues to change. Especially when the robot is traveling in a straight line, the movement calculated by the odometer The displacement is too large, resulting in positioning errors.

Method used

By obtaining the displacement information of at least two sensors, it is determined whether the robot is in an abnormal state. If it is in an abnormal state, the displacement information of one of the sensors is used for positioning and the positioning information is displayed on the map, including determining whether the first displacement information continues to change. And the change of the second displacement information is less than the preset threshold, if so, the second displacement information is used for positioning, if not, the first displacement information is used for positioning.

Benefits of technology

It improves the accuracy of robot positioning, reduces positioning errors caused by the movement displacement calculated by the displacement sensor, and enhances the positioning accuracy under abnormal conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730097A_ABST
    Figure CN118730097A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a robot positioning method, a robot and a computer readable storage medium, which are used for performing robot positioning under the condition of improving the accuracy of robot positioning. The method comprises the steps that displacement information obtained by the robot based on at least two sensors is obtained, whether the robot is in an abnormal state or not is determined according to the displacement information obtained by the at least two sensors, and if it is determined that the robot is in the abnormal state, the robot is controlled to conduct positioning according to the displacement information of one sensor, the positioning information is displayed on a map, and the robot is provided with at least two sensors.
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 robot positioning, and more specifically, to a robot positioning method, a robot, and a computer-readable storage medium. Background Art

[0002] With the rapid development of robotics technology, robots are widely used in various fields. Among them, the positioning of robots is crucial. For example, the sweeper in the smart home needs to be accurately positioned in order to better complete the cleaning work.

[0003] The existing robot positioning method is to set up multiple sensors on the robot and perform positioning through the position information calculated by the multiple sensors. Specifically, the rear wheel of the robot can be provided with a displacement sensor, such as an odometer, and the front of the robot can be provided with a laser sensor, wherein the odometer can calculate the movement displacement of the robot according to the rotation of the robot's wheels, and the laser sensor calculates the distance information from the surrounding environment by scanning the surrounding environment (obstacles), and then obtains the robot's position information according to the movement displacement and distance information matching map. When the robot is driving in a straight line or other driving process, since the laser sensor and the robot are relatively fixed, it can only collect the distance information from the front environment, and cannot match the map to obtain the robot's position information, so the robot is mainly positioned by the movement displacement obtained by the odometer.

[0004] However, when the change in the distance information between the robot and the front environment is less than or equal to the preset change threshold, and the mobile displacement continues to change in an abnormal state, for example, when the robot is walking in a straight line, the robot does not move forward, but the wheels are slipping, etc., the mobile displacement calculated by the odometer will be too large. Therefore, using the mobile displacement obtained by the displacement sensor (such as the odometer) to position the robot will result in incorrect robot positioning, and the robot positioning accuracy is low. Summary of the invention

[0005] The embodiments of the present application provide a robot positioning method, a robot, and a computer-readable storage medium, which are used to perform robot positioning while improving the accuracy of robot positioning.

[0006] In a first aspect, an embodiment of the present application provides a robot positioning method, comprising:

[0007] Acquiring displacement information of the robot respectively acquired based on the at least two sensors;

[0008] Determining whether the robot is in an abnormal state according to the displacement information respectively acquired by the at least two sensors;

[0009] If it is determined that the robot is in an abnormal state, the robot is controlled to locate itself using displacement information of one of the sensors, and the location information is displayed on a map.

[0010] Optionally, the at least two sensors include a first sensor and a second sensor;

[0011] The determining whether the robot is in an abnormal state according to the displacement information respectively acquired by the at least two sensors comprises:

[0012] Determine whether the first displacement information continuously changes, and whether the change of the second displacement information is less than a preset threshold;

[0013] If the judgment result is yes, it is determined that the robot is in an abnormal state;

[0014] The step of controlling the robot to perform positioning using one of the displacement information comprises:

[0015] The robot is controlled to perform positioning according to the second displacement information.

[0016] Optionally, after determining whether the first displacement information continuously changes and the change of the second displacement information is less than a preset threshold, the method further includes:

[0017] If the judgment result is no, determining to position the robot using the first displacement information and the second displacement information;

[0018] Alternatively, the robot is positioned using the first displacement information.

[0019] Optionally, the abnormal state includes the robot wheels slipping, being on a carpet, being trapped, and being blocked.

[0020] Optionally, the method further includes:

[0021] If it is determined that the robot is in an abnormal state, preset release operations of slipping, being on the carpet, being trapped and being blocked are performed in sequence.

[0022] Optionally, after sequentially executing the preset release operations of slipping, being on the carpet, being trapped, and being blocked, the method further includes:

[0023] After executing the release operation for a preset number of times or a preset time, if it is determined that the robot still maintains the original state, an alarm operation is issued.

[0024] Optionally, the method further includes:

[0025] After executing the release operation for a preset number of times or for a preset time, if it is determined that the robot has released its original state, the robot is controlled to rotate at least one circle, so that the ranging sensor obtains environmental information by scanning the surrounding environment of the robot during the rotation process;

[0026] The robot is repositioned according to the environmental information.

[0027] Optionally, after relocating the robot according to the environmental information, the method further includes:

[0028] After the robot is repositioned, the moving path is replanned to avoid the previous moving path.

[0029] In a second aspect, an embodiment of the present application provides a robot, comprising:

[0030] CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply;

[0031] The memory is a short-term storage memory or a persistent storage memory;

[0032] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the aforementioned robot positioning method.

[0033] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which includes instructions. When the instructions are executed on a computer, the computer executes the aforementioned robot positioning method.

[0034] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when the computer program product is run on a computer, enables the computer to execute the aforementioned robot positioning method.

[0035] It can be seen from the above technical scheme that the embodiments of the present application have the following advantages: the displacement information of the robot obtained based on at least two sensors can be obtained, and whether the robot is in an abnormal state can be determined based on the displacement information obtained by at least two sensors. If the robot is determined to be in an abnormal state, the robot is controlled to locate itself based on the displacement information of one of the sensors, and the positioning information is displayed on a map. When an abnormal state occurs in which the change in the distance information between the robot and the front environment is less than or equal to a preset change threshold and the mobile displacement continues to change, the robot can be controlled to locate itself based on the displacement information of one of the sensors, and the positioning information is displayed on a map, thereby reducing the possibility of positioning the robot based on the mobile displacement obtained by the displacement sensor and causing robot positioning errors, thereby improving the accuracy of the robot positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of a flow chart of a robot positioning method disclosed in an embodiment of the present application;

[0037] Figure 2 This is a schematic diagram of the structure of a robot disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The embodiments of the present application provide a robot positioning method, a robot, and a computer-readable storage medium, which are used to perform robot positioning while improving the accuracy of robot positioning.

[0039] See also Figure 1 , Figure 1 The following is a flow chart of a robot positioning method disclosed in an embodiment of the present application, wherein the method comprises:

[0040] 101. Obtain displacement information obtained by the robot based on at least two sensors.

[0041] In this embodiment, when the robot is positioned, displacement information obtained by the robot based on at least two sensors may be obtained, wherein the robot is provided with at least two sensors.

[0042] 102. Determine whether the robot is in an abnormal state according to displacement information respectively obtained by at least two sensors.

[0043] After obtaining the displacement information of the robot based on at least two sensors, it can be determined whether the robot is in an abnormal state according to the displacement information obtained by the at least two sensors. It is understandable that the abnormal state can be the robot wheels slipping, being on a carpet, being trapped, being blocked, etc., which is not specifically limited here.

[0044] 103. If it is determined that the robot is in an abnormal state, the robot is controlled to locate itself using displacement information of one of the sensors, and the location information is displayed on a map.

[0045] After determining whether the robot is in an abnormal state based on the displacement information respectively obtained by at least two sensors, it can be judged whether the robot is in an abnormal state. If it is determined that the robot is in an abnormal state, the robot is controlled to locate itself based on the displacement information of one of the sensors, and the positioning information is displayed on the map.

[0046] In the embodiment of the present application, the robot can obtain displacement information obtained by at least two sensors respectively, and determine whether the robot is in an abnormal state based on the displacement information obtained by at least two sensors respectively. If it is determined that the robot is in an abnormal state, the robot is controlled to locate itself based on the displacement information of one of the sensors, and the positioning information is displayed on a map. When an abnormal state occurs in which a change in the distance information between the robot and the front environment is less than or equal to a preset change threshold and the mobile displacement continues to change, the robot can be controlled to locate itself based on the displacement information of one of the sensors, and the positioning information is displayed on a map, thereby reducing the possibility of locating the robot based on the mobile displacement obtained by the displacement sensor and causing robot positioning errors, thereby improving the accuracy of the robot positioning.

[0047] In the embodiment of the present application, there are multiple methods for determining whether the robot is in an abnormal state based on the displacement information respectively obtained by at least two sensors. Figure 1 The robot positioning method shown in the figure, one of the methods is described below.

[0048] In this embodiment, when the robot is positioned, displacement information obtained by the robot based on at least two sensors may be obtained, wherein the robot is provided with at least two sensors.

[0049] Specifically, the robot can be a self-moving robot. A ranging sensor can be provided in front of the self-moving robot. The target wheel of the robot is provided with a displacement sensor. The ranging sensor is fixed relative to the robot. The displacement sensor can be specifically an encoder. The rotation angle of the self-moving robot's wheels is collected by the encoder, and then the first displacement information of the self-moving robot is calculated. The ranging sensor can be a laser sensor, such as a point laser sensor.

[0050] It is important to understand that the distance sensor can detect the distance information of the surrounding environment as the self-propelled robot rotates, thereby constructing a map. For example, if the self-propelled robot is a sweeper, during the cleaning process, the self-propelled robot can match the scanned environmental distance information with the map each time it rotates to determine the current position. However, when the self-propelled robot walks in a straight line, the distance sensor can only measure the distance information in front of the self-propelled robot, that is, the second displacement information. In this case, it is impossible to match the map with the position information of the self-propelled robot.

[0051] After obtaining the displacement information respectively obtained by the at least two sensors of the robot, it can be determined whether the robot is in an abnormal state according to the displacement information respectively obtained by the at least two sensors.

[0052] Among them, abnormal states include the robot wheels slipping, being on the carpet, being trapped, and being blocked, etc., which are not specifically limited here.

[0053] Among them, the method for determining whether the robot is in an abnormal state according to the displacement information respectively obtained by at least two sensors may be to determine whether there is a continuous change in the first displacement information, and whether the change in the second displacement information is less than a preset threshold value, and if the judgment result is yes, then the robot is determined to be in an abnormal state, wherein the at least two sensors include a first sensor and a second sensor, the first sensor may be a displacement sensor, and the second sensor may be a point laser sensor. It can be understood that in addition to the method described above for determining whether the robot is in an abnormal state according to the displacement information respectively obtained by at least two sensors, it can also be determined according to whether the difference between the displacement information respectively obtained by the two sensors is greater than or equal to a preset threshold value, and it can also be other reasonable methods, which are not specifically limited here.

[0054] After determining whether the robot is in an abnormal state based on the displacement information respectively obtained by at least two sensors, it can be judged whether the robot is in an abnormal state. If it is determined that the robot is in an abnormal state, the robot is controlled to locate itself based on the displacement information of one of the sensors, and the positioning information is displayed on the map.

[0055] The method of controlling the robot to perform positioning based on the displacement information of one of the sensors may be controlling the robot to perform positioning based on the second displacement information.

[0056] Specifically, for easier understanding, two specific application scenarios are described below.

[0057] Scenario 1: When the self-propelled robot is recharging, it usually moves to the front of the charging base station first, then rotates to perform a U-turn, and then retreats to dock the charging port at the rear of the self-propelled robot with the charging base station for charging. However, during the retreat process, if the positions of the self-propelled robot and the charging base station are not aligned, there may be no way to achieve alignment charging, and the self-propelled robot is always blocked by the charging base station. In this case, the laser sensor will measure that the distance between the self-propelled robot and the obstacle in front has not changed much, and because the self-propelled robot slips or moves back and forth, its wheels are always turning, that is, the corresponding first displacement information is constantly changing. In this case, if the first displacement information is used as the position information of the self-propelled robot, the positioning will be wrong. Therefore, the second displacement information can be used as the position information of the self-propelled robot.

[0058] Scenario 2: When the self-propelled robot is crossing a ridge, some wheels have already passed, or have not passed, but can rotate. At this time, the self-propelled robot is relatively still, and the second displacement information measured by the laser sensor has not changed much. However, the wheels are still rotating, which means that the corresponding first displacement information is continuously changing, indicating that the self-propelled robot is trapped. Therefore, the second displacement information corresponding to the moment when the distance detected by the laser sensor does not change much can also be used for positioning.

[0059] It should be understood that when the robot is walking in a straight line, if the robot is in an abnormal state such as wheel slipping, being on a carpet, being trapped, or being blocked, that is, the wheels are always turning, but the robot has not changed in one position, the second displacement information measured by the point laser sensor remains basically unchanged, but will fluctuate within a very small range of fluctuation, while the first displacement information measured by the displacement sensor due to the rotation of the wheels will continue to change. Therefore, the robot's positioning accuracy can be improved by using the second displacement information corresponding to the moment when the distance detected by the laser sensor does not change much to locate the robot.

[0060] Among them, after judging whether there is a continuous change in the first displacement information and the change in the second displacement information is less than a preset threshold, if the judgment result is no, it is determined to position the robot using the first displacement information and the target second displacement information, or to position the robot using the first displacement information.

[0061] Specifically, for easier understanding, a specific application scenario is given below for description.

[0062] Scenario 3: When there is a moving obstacle in front of the self-moving robot, the point laser sensor can detect that there is a moving obstacle in front, and the moving obstacle moves away from the self-moving robot, such as a person walking. At this time, if the self-moving robot does not meet the conditions that the first displacement information continues to change, and the second displacement information change is less than the preset threshold, it can be determined that the self-moving robot is in a normal state. At this time, it can be determined that the robot is positioned using the first displacement information and the second displacement information, or the robot is positioned using the first displacement information.

[0063] It should be understood that when the robot is walking in a straight line, if the robot is not in an abnormal state such as wheel slipping, being on a carpet, being trapped or blocked, that is, when it is in a normal state, the robot does not move, but the value of the second displacement information measured by the point laser sensor is increasing, while the first displacement information measured by the displacement sensor remains basically unchanged. Therefore, it can be determined that the robot is positioned using the first displacement information and the second displacement information, or the robot is positioned directly using the first displacement information, which can improve the accuracy of the robot's positioning.

[0064] After determining whether the robot is in an abnormal state according to the displacement information respectively obtained by at least two sensors, if the robot is determined to be in an abnormal state, the preset release operations of slipping, being on the carpet, being trapped and being blocked are performed in sequence. Specifically, the release operation may be, for example, increasing the rotation speed of the robot's wheels, or other reasonable release operations, which are not limited here.

[0065] Among them, after performing the preset release operations of slipping, being on the carpet, being trapped and being blocked in sequence, the release operation can be performed a preset number of times or a preset time, and if it is determined that the robot still maintains the original state, an alarm operation is issued. It can be understood that issuing an alarm operation can remind the user to deal with the robot in an abnormal state.

[0066] Among them, after executing the release operation a preset number of times or a preset time, if it is determined that the robot has released the original state, the robot can be controlled to rotate at least one circle, so that the ranging sensor can obtain environmental information by scanning the surrounding environment of the robot during the rotation, and then reposition the robot according to the environmental information.

[0067] Among them, after the robot is repositioned, the moving path can be replanned to avoid the previous moving path. It is understandable that after the robot is repositioned, the moving path can be replanned to reduce the possibility of the robot being in an abnormal state again.

[0068] It can be understood that in addition to the method described above for determining whether the robot is in an abnormal state based on the displacement information respectively obtained by at least two sensors, in addition to the abnormal state method described above, in addition to the method described above for determining that the robot is in an abnormal state, in addition to the method described above for controlling the robot to position itself based on one of the displacement information, there may be other reasonable methods, which are not limited here.

[0069] In this embodiment, the displacement information obtained by the robot based on at least two sensors can be obtained, and whether the robot is in an abnormal state can be determined based on the displacement information obtained by at least two sensors. If the robot is determined to be in an abnormal state, the robot is controlled to locate with the displacement information of one of the sensors, and the positioning information is displayed on the map. When the change of the distance information between the robot and the front environment is less than or equal to the preset change threshold, and the mobile displacement continues to change in an abnormal state, the robot can be controlled to locate with the displacement information of one of the sensors, and the positioning information is displayed on the map, which reduces the possibility of locating the robot with the mobile displacement obtained by the displacement sensor and causing the robot to locate incorrectly, and improves the accuracy of the robot's positioning. Secondly, it can be determined whether the first displacement information continues to change, and the change of the second displacement information is less than the preset threshold. If the judgment result is yes, it is determined that the robot is in an abnormal state, which improves the accuracy of determining that the robot is in an abnormal state. Furthermore, if the judgment result is no, it can be determined to locate the robot with the first displacement information and the second displacement information, or to locate the robot with the first displacement information, which improves the accuracy of the robot's positioning when the robot is in a normal state.

[0070] See below Figure 2 In the embodiment of the present application, an embodiment of the robot 200 includes:

[0071] CPU 201, memory 205, input / output interface 204, wired or wireless network interface 203 and power supply 202;

[0072] The memory 205 is a temporary storage memory or a permanent storage memory;

[0073] The CPU 201 is configured to communicate with the memory 205 and execute the instructions in the memory 205 to perform the aforementioned Figure 1 The method in the illustrated embodiment.

[0074] The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium includes instructions, when the instructions are executed on a computer, the computer executes the aforementioned Figure 1 The method in the illustrated embodiment.

[0075] The present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the aforementioned Figure 1 The method in the illustrated embodiment.

[0076] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0077] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

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

[0079] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0080] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0081] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A robot positioning method, It is characterized in that The robot is provided with at least two sensors; The method comprises: Acquiring displacement information of the robot respectively acquired based on the at least two sensors; Determining whether the robot is in an abnormal state according to the displacement information respectively acquired by the at least two sensors; If it is determined that the robot is in an abnormal state, the robot is controlled to locate itself using displacement information of one of the sensors, and the location information is displayed on a map.

2. The method according to claim 1, It is characterized in that The at least two sensors include a first sensor and a second sensor; The determining whether the robot is in an abnormal state according to the displacement information respectively acquired by the at least two sensors comprises: Determine whether the first displacement information continuously changes, and whether the change of the second displacement information is less than a preset threshold; If the judgment result is yes, it is determined that the robot is in an abnormal state; The step of controlling the robot to perform positioning using one of the displacement information comprises: The robot is controlled to perform positioning according to the second displacement information.

3. The method according to claim 2, It is characterized in that After determining whether the first displacement information continuously changes and the change of the second displacement information is less than a preset threshold, the method further includes: If the judgment result is no, determining to position the robot using the first displacement information and the second displacement information; Alternatively, the robot is positioned using the first displacement information.

4. The method according to claim 1, It is characterized in that The abnormal states include the robot wheels slipping, being on a carpet, being trapped, and being blocked.

5. The method according to claim 4, It is characterized in that The method further comprises: If it is determined that the robot is in an abnormal state, preset release operations of slipping, being on the carpet, being trapped and being blocked are performed in sequence.

6. The method according to claim 5, It is characterized in that After sequentially executing the preset release operations of slipping, being on the carpet, being trapped, and being blocked, the method further includes: After executing the release operation for a preset number of times or a preset time, if it is determined that the robot still maintains the original state, an alarm operation is issued.

7. The method according to claim 5 or 6, It is characterized in that The method further comprises: After executing the release operation for a preset number of times or for a preset time, if it is determined that the robot has released its original state, the robot is controlled to rotate at least one circle, so that the ranging sensor obtains environmental information by scanning the surrounding environment of the robot during the rotation process; The robot is repositioned according to the environmental information.

8. The method according to claim 7, It is characterized in that After repositioning the robot according to the environmental information, the method further includes: After the robot is repositioned, the moving path is replanned to avoid the previous moving path.

9. A robot, It is characterized in that include: CPU, and memory; The memory is a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium comprises instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 8.