Robot obstacle avoidance method, device, robot and computer-readable storage medium
Through the comprehensive detection of ground inspection sensors, gyroscopes and wall inspection sensors, the height difference of the area to be cleaned by the robot is judged, and the robot is controlled to return to the previous cleaning area, which solves the problem of the robot being unable to exit the low-floor room normally, and improves cleaning efficiency and Security.
Patent Information
- Application Number
- CN202210287439.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-03-22
AI Technical Summary
There is a height difference between the floors of two rooms in the user's home, and the height difference is less than the preset threshold of the ground detection sensor, causing the robot to be unable to exit the low-floor room normally.
The ground detection sensor detects the height data of the robot and the area to be cleaned, the gyroscope detects the attitude angle data of the robot, and combined with the obstacle feedback data from the wall detection sensor, the height difference between the current area to be cleaned and the previous cleaning area is determined. Control the robot to return to the previous cleaning area to avoid being trapped.
This effectively avoids the risk of the robot being trapped, improves cleaning efficiency, and ensures that the robot can safely exit a low-floor room.
Smart Images

Figure CN114721378B
Abstract
Description
Technical Field
[0001] The present application relates to the field of robotics technology, and in particular to a robot obstacle avoidance method, device, robot, and computer-readable storage medium. Background Art
[0002] To ensure the robot's ability to overcome obstacles, the height of the robot's ground detection sensor is usually set to a preset threshold; the robot will only retreat when the ground detection sensor detects that the height between the robot and the ground exceeds the preset threshold to avoid falling. However, in actual robot use scenarios, some users have a height difference between the floors of two rooms in their homes, and the height difference is less than the preset threshold of the ground detection sensor, which is not enough to trigger the ground detection. The robot can normally enter the low-ground room from the high-ground room to perform cleaning work, but when the machine enters the low-ground room and completes cleaning, the robot cannot normally exit the low-ground room. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present application provide a robot obstacle avoidance method, device, robot and computer-readable storage medium.
[0004] In a first aspect, an embodiment of the present application provides a robot obstacle avoidance method, the method comprising:
[0005] Detecting the current height data between the robot and the current area to be cleaned by a ground detection sensor;
[0006] When the current height data is greater than or equal to a preset height threshold, detecting the attitude angle data of the robot by a gyroscope;
[0007] When the attitude angle data is greater than or equal to a preset angle threshold, detecting obstacle feedback data through a wall detection sensor to determine whether the obstacle feedback data increases;
[0008] When the obstacle feedback data increases, it is determined that the first height difference between the current area to be cleaned and the previous cleaning area is greater than the second height difference between the lowest point of the robot's front collision and the previous cleaning area, and the robot is controlled to retreat to the previous cleaning area.
[0009] In one embodiment, after the step of controlling the robot to return to the last cleaning area, the method further includes:
[0010] Marking the current area to be cleaned as a dangerous area;
[0011] An obstacle avoidance and clearing path is determined according to the dangerous area.
[0012] In one embodiment, the method further comprises:
[0013] When the obstacle feedback data remains unchanged, the current area to be cleaned is determined to be a safe area.
[0014] In one embodiment, the step of obtaining the preset height threshold comprises:
[0015] The preset height threshold is obtained according to the second height difference and a preset multiple.
[0016] In one embodiment, the step of obtaining the preset angle threshold comprises:
[0017] Obtaining the wheel distance between the front wheel and the driving wheel of the robot;
[0018] The preset angle threshold is determined according to the wheel distance and the preset height threshold.
[0019] In one embodiment, the step of detecting the attitude angle data of the robot by a gyroscope comprises:
[0020] The gyroscope is used to detect the attitude angle data of the robot within a preset time, and the preset time is determined according to the body length and speed of the robot.
[0021] In one embodiment, the method further comprises:
[0022] Sending reminder information corresponding to the dangerous area to the client, so that the client generates a dangerous area release sign according to the reminder information and displays the dangerous area release sign;
[0023] The dangerous area is marked as a safe area according to the danger relief instruction received from the client, and the robot is controlled to enter the safe area to perform cleaning work. The danger relief instruction is determined by the client according to the user operation received according to the dangerous area relief mark.
[0024] In a second aspect, an embodiment of the present application provides a robot obstacle avoidance device, the robot obstacle avoidance device comprising:
[0025] A first detection module, used to detect the current height data between the robot and the current area to be cleaned through a ground detection sensor;
[0026] A second detection module is used to detect the posture angle data of the robot through a gyroscope when the current height data is greater than or equal to a preset height threshold;
[0027] A judgment module, configured to, when the posture angle data is greater than or equal to a preset angle threshold, detect obstacle feedback data through a wall detection sensor, and judge whether the obstacle feedback data increases;
[0028] The control module is used to determine that a first height difference between the current area to be cleaned and the previous cleaning area is greater than a second height difference between the lowest point of the robot's front collision and the previous cleaning area when the obstacle feedback data increases, and control the robot to return to the previous cleaning area.
[0029] In a third aspect, an embodiment of the present application provides a robot, comprising a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is run by the processor, the robot obstacle avoidance method provided in the first aspect is executed.
[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when running on a processor, executes the robot obstacle avoidance method provided in the first aspect.
[0031] The robot obstacle avoidance method, device, robot and computer-readable storage medium provided by the present application detect the current height data between the robot and the current area to be cleaned through the ground detection sensor; when the current height data is greater than or equal to the preset height threshold, the robot's attitude angle data is detected through the gyroscope; when the attitude angle data is greater than or equal to the preset angle threshold, the obstacle feedback data is detected through the wall detection sensor; when the obstacle feedback data increases, it is determined that the first height difference between the current area to be cleaned and the previous cleaning area is greater than the second height difference between the lowest point of the robot's front collision and the previous cleaning area, and the robot is controlled to return to the previous cleaning area. In this way, by decreasing the detection data of the sensor, gyroscope and wall detection sensor, the robot can control not to enter the dangerous area when it determines that the current area to be cleaned is a dangerous area with a risk of being trapped, so as to avoid the robot from being trapped and improve the cleaning efficiency of the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of protection of the present application. In each of the drawings, similar components are numbered similarly.
[0033] Figure 1 A schematic diagram of a process of a robot obstacle avoidance method provided by an embodiment of the present application is shown;
[0034] Figure 2 A schematic diagram of a motion state of a robot provided in an embodiment of the present application is shown;
[0035] Figure 3 Another schematic diagram of the motion state of the robot provided by the embodiment of the present application is shown;
[0036] Figure 4 Another schematic diagram of the process of the robot obstacle avoidance method provided by an embodiment of the present application is shown;
[0037] Figure 5 A structural schematic diagram of a robot obstacle avoidance device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0038] The technical solutions in the embodiments of the present application will be described clearly and completely 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.
[0039] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0040] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present application, are intended only to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations of the foregoing items.
[0041] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0042] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0043] Example 1
[0044] An embodiment of the present disclosure provides a robot obstacle avoidance method.
[0045] For details, see Figure 1 ,Robot obstacle avoidance methods include:
[0046] Step S101, detecting the current height data between the robot and the current area to be cleaned by using a ground detection sensor.
[0047] See also Figure 2 , Figure 2 The figure shows a schematic diagram of a robot's motion state. Figure 2 As shown, the robot 20 includes a front wheel 201, a driving wheel 202 and a body 203. The robot 20 performs a cleaning operation in the first ground area 21. During the cleaning process, the robot 20 moves to the boundary between the first ground area 21 and the second ground area 22. The head of the robot 20 enters the second ground area 22, and most of the body is still on the first ground area 21. It should be noted that the driving wheel 202 is provided with traction by the power mechanism of the robot so that the robot can move forward, and the front wheel 201 is driven by the driving wheel 202.
[0048] In one embodiment, the robot 20 is further provided with a ground detection sensor, a gyroscope and a wall detection sensor, wherein the wall detection sensor is installed in front of the robot 20 to detect the distance of the obstacle in front of the robot in the horizontal X-axis circumferential direction from the robot. The wall detection sensor can be an infrared distance sensor, or a high-cost ultrasonic sensor or TOF laser distance sensor.
[0049] The ground detection sensor is installed on the head of the robot 20 to detect the height between the robot and the ground area in front, so as to judge whether the ground area to be cleaned in front of the robot 20 is raised or lowered. Usually, the ground detection sensor of consumer robots can be an infrared distance sensor, an ultrasonic sensor or a TOF laser ranging sensor. The first ground area 21 can be regarded as the previous cleaning area, and the second ground area 22 can be regarded as the current area to be cleaned. Due to the height difference between the first ground area 21 and the second ground area 22, the current height data between the robot and the current area to be cleaned, and the current height data between the robot and the previous cleaning area are not the same. For example, the lowest point of the robot's front collision is 15 cm away from the first ground area 21, and the first ground area 21 is 20 cm away from the second ground area 22.
[0050] Step S102, when the current height data is greater than or equal to a preset height threshold, detecting the posture angle data of the robot through a gyroscope.
[0051] In one embodiment, when the current height data is greater than or equal to the preset height threshold, it is preliminarily determined that the height between the robot body and the ground exceeds the safe height, and it is necessary to continue to determine whether the current area to be cleaned is a safe area. Specifically, the robot's attitude angle data can be detected and further determined based on the attitude angle data. Figure 3 , Figure 3 Shown is a schematic diagram of another motion state of the robot. Figure 3 Zhongyou Figure 2 The robot 20 shown continues to move forward to obtain, Figure 3 In the figure, the front wheel 201 of the robot 20 is located in the second ground area 22, the driving wheel 202 of the robot 20 is located in the first ground area 21, and the body 203 of the robot 20 is in a tilted state. The gyroscope can detect the attitude angle data of the robot 20, and further determine whether the detected attitude angle data is greater than or equal to the preset angle threshold. When the detected attitude angle data is greater than or equal to the preset angle threshold, it means that the robot is tilted and has stepped down. It is necessary to further determine whether the robot can return to the previous cleaning area from the current cleaning area after entering the current cleaning area. When the detected attitude angle data is less than the preset angle threshold, it means that the robot is crossing the obstacle normally, and no other processing is required, and the robot continues to enter the current cleaning area to perform cleaning work.
[0052] In another embodiment, when the current height data is greater than or equal to a preset height threshold, it indicates that the current area to be cleaned is a safe area, and the robot enters the current area to be cleaned and continues to perform the cleaning work.
[0053] Step S103, when the attitude angle data is greater than or equal to a preset angle threshold, the obstacle feedback data is detected by a wall detection sensor to determine whether the obstacle feedback data increases.
[0054] In one embodiment, since the wall detection sensor is installed on the head of the robot, Figure 2 In the motion state shown, when there are no obstacles such as walls around the robot, the obstacle feedback data detected by the wall detection sensor is very small, that is, there are no obstacles around the horizontal X-axis of the robot. At this time, the obstacle feedback data is extremely small and approaches 0.
[0055] exist Figure 3 In the motion state shown, the robot's head is very close to the ground, and the obstacle feedback data detected by the wall detection sensor increases rapidly, that is, there is an obstacle on the ground around the horizontal X-axis of the robot. Therefore, the robot's motion state can be further determined based on whether the obstacle feedback data detected by the wall detection sensor increases.
[0056] Step S104, when the obstacle feedback data increases, determine that the first height difference between the current area to be cleaned and the previous cleaning area is greater than the second height difference between the lowest point of the robot's front collision and the previous cleaning area, and control the robot to return to the previous cleaning area.
[0057] For example, in Figure 3 In the moving state, when the obstacle feedback data increases, it is determined that the first height difference of 20 cm between the second ground area 22 and the first ground area 21 is greater than the second height difference of 15 cm between the lowest point of the robot 20's front collision and the first ground area 21, and the robot 20 is controlled to retreat to the first ground area 21, so that the robot 20 does not enter the second ground area 22, thereby preventing the robot 20 from being unable to re-enter the first ground area 21 from the second ground area 22.
[0058] In this way, the robot can determine whether there is a risk of being trapped if it continues to clean forward. If there is a risk of being trapped, it will stop cleaning forward and mark the current area to be cleaned as a dangerous area. The robot will slow down and turn around in advance for subsequent cleaning to avoid the risk of being trapped and improve the cleaning effect of the robot.
[0059] In one embodiment, the robot obstacle avoidance method may further include the following steps:
[0060] Marking the current area to be cleaned as a dangerous area;
[0061] An obstacle avoidance and clearing path is determined according to the dangerous area.
[0062] For example, in Figure 3 In the example, if the current area to be cleaned is the second ground area 22, the second ground area 22 is regarded as a dangerous area, and an obstacle avoidance cleaning path is formulated that does not enter the second ground area 22. The cleaning work is performed according to the obstacle avoidance cleaning path.
[0063] In one embodiment, the robot obstacle avoidance method may further include the following steps:
[0064] When the obstacle feedback data remains unchanged, the current area to be cleaned is determined to be a safe area.
[0065] After determining that the current area to be cleaned is a safe area, the robot can enter the safe area to perform cleaning work without leaving any area to be cleaned.
[0066] Since the robot has a short time to enter the current area to be cleaned from the boundary between the last cleaning area and the current area to be cleaned, it is necessary to determine whether the current area to be cleaned is a dangerous area in a short time. It is necessary to reasonably select the preset height threshold and the preset angle threshold.
[0067] In one embodiment, the step of obtaining the preset height threshold comprises:
[0068] The preset height threshold is obtained according to the second height difference and a preset multiple.
[0069] Please refer again Figure 3, if the second height difference is the height difference between the first ground area 21 and the lowest point of the robot's front collision, and the second height difference is 15 cm, then the preset height threshold is the product of 15 cm and the preset multiple, for example, the preset multiple can be 2, then the preset height threshold is 30 cm. That is, the height difference between the first ground area and the second ground area needs to be less than or equal to the height difference from the lowest point of the robot's body front collision to the ground.
[0070] In one embodiment, the step of obtaining the preset angle threshold comprises:
[0071] Obtaining the wheel distance between the front wheel and the driving wheel of the robot;
[0072] The preset angle threshold is determined according to the wheel distance and the preset height threshold.
[0073] Specifically, the preset angle threshold may be determined according to the following formula 1:
[0074] Formula 1: Y = arctan(X / L);
[0075] Wherein, Y represents the preset angle threshold, L represents the wheel distance, and X represents the preset height threshold.
[0076] It should be noted that the time from the boundary to the current area to be cleaned is short, and the attitude angle data needs to be detected by the gyroscope in a short time. Specifically, in one embodiment, the step of detecting the attitude angle data of the robot by the gyroscope includes:
[0077] The gyroscope is used to detect the attitude angle data of the robot within a preset time, and the preset time is determined according to the body length and speed of the robot.
[0078] Specifically, the time taken by the robot to completely enter the current area to be cleaned from the last cleaning area can be calculated based on the body length and speed. The preset time can be a value less than the consumed time, and the attitude angle data can be the pitch angle data. For example, the preset time can be 0.5 seconds, and the attitude angle data of the robot can be detected by the gyroscope at 0.5 seconds.
[0079] In one embodiment, the robot can communicate with the client, and the client can control and manage the cleaning work of the robot. Specifically, in one embodiment, the robot obstacle avoidance method can also include the following steps:
[0080] Sending reminder information corresponding to the dangerous area to the client, so that the client generates a dangerous area release sign according to the reminder information and displays the dangerous area release sign;
[0081] The dangerous area is marked as a safe area according to the danger relief instruction received from the client, and the robot is controlled to enter the safe area to perform cleaning work. The danger relief instruction is determined by the client according to the user operation received according to the dangerous area relief mark.
[0082] Specifically, the robot and the client can realize the human-computer interaction process. The client generates a danger zone release sign according to the reminder information and displays the danger zone release sign to indicate the risk of being trapped. The danger zone release sign prompts the user to input a selection operation. When the safe area is cleaned, the user can touch the danger zone release sign. The robot removes the danger sign in the dangerous area according to the user's touch operation on the danger zone release sign. The robot enters the cleaning area where the danger sign is removed and performs cleaning work to avoid missing cleaning. If the user chooses not to remove the danger zone sign, the robot ends the cleaning work and returns to charge.
[0083] Combine the following Figure 4 The robot's obstacle avoidance method is described.
[0084] Step S401, start cleaning.
[0085] Step S402, turning on the gyroscope, wall detection sensor, and ground detection sensor to detect the ground condition in real time.
[0086] Step S403, determining whether the ground inspection data date1 is less than a preset height threshold X.
[0087] In one embodiment, if the ground inspection data date1 is less than the preset height threshold X, step S404 is executed, and if the ground inspection data date1 is greater than or equal to the preset height threshold X, step S412 is executed. It should be noted that the ground inspection data date1 is specifically the current height data between the robot and the current cleaning area.
[0088] Step S404, preliminarily determining that the height between the robot body and the ground exceeds the safe height.
[0089] Step S405, determining whether the gyroscope pitch angle date2 is greater than a preset angle threshold Y.
[0090] In one embodiment, if the gyroscope pitch angle date2 is greater than the preset angle threshold Y, step S407 is executed, and if the gyroscope pitch angle date2 is greater than or equal to the preset angle threshold Y, step S406 is executed. It should be noted that the gyroscope pitch angle date2 is the posture angle data of the robot.
[0091] Step S406, determining that this is a normal obstacle crossing situation.
[0092] Step S407, determining whether the wall detection sensor date3 increases.
[0093] In one embodiment, if the date3 of the wall detection sensor increases, step S409 is executed. If the date3 of the wall detection sensor does not increase, step S408 is executed. It should be noted that the date3 of the wall detection sensor is obstacle feedback data reflected by the obstacle detected by the wall detection sensor.
[0094] Step S408, determining the safe area at this time.
[0095] Step S409, determining that the first height difference between the current ground area and the previous ground area is greater than the second height difference between the lowest point of the robot's body front collision and the previous ground area, and marking the current ground area as a dangerous area.
[0096] Step S410, determining whether the client has cleared the danger zone.
[0097] In one embodiment, if the client cancels the danger zone, step S412 is executed. If the client does not cancel the danger zone, step S411 is executed.
[0098] Step S411, end the cleaning.
[0099] Step S412, continue cleaning.
[0100] The robot obstacle avoidance method provided in this embodiment detects the current height data between the robot and the current area to be cleaned through the ground detection sensor; when the current height data is greater than or equal to the preset height threshold, the robot's attitude angle data is detected through the gyroscope; when the attitude angle data is greater than or equal to the preset angle threshold, the obstacle feedback data is detected through the wall detection sensor; when the obstacle feedback data increases, it is determined that the first height difference between the current area to be cleaned and the previous cleaning area is greater than the second height difference between the lowest point of the robot's front collision and the previous cleaning area, and the robot is controlled to return to the previous cleaning area. In this way, by decreasing the detection data of the sensor, the gyroscope, and the wall detection sensor, the robot can control not to enter the dangerous area when it determines that the current area to be cleaned is a dangerous area with a risk of being trapped, so as to avoid the robot from being trapped and improve the cleaning efficiency of the robot.
[0101] Example 2
[0102] In addition, an embodiment of the present disclosure provides a robot obstacle avoidance device.
[0103] Specifically, Figure 5 As shown, the robot obstacle avoidance device 500 includes:
[0104] The first detection module 501 is used to detect the current height data between the robot and the current area to be cleaned through a ground detection sensor;
[0105] A second detection module 502 is used to detect the posture angle data of the robot through a gyroscope when the current height data is greater than or equal to a preset height threshold;
[0106] A judgment module 503 is used to detect obstacle feedback data through a wall detection sensor when the posture angle data is greater than or equal to a preset angle threshold, and to judge whether the obstacle feedback data increases;
[0107] The control module 504 is used to determine that the first height difference between the current area to be cleaned and the previous cleaning area is greater than the second height difference between the lowest point of the robot's front collision and the previous cleaning area when the obstacle feedback data increases, and control the robot to return to the previous cleaning area.
[0108] In one embodiment, the robot obstacle avoidance device 500 further includes:
[0109] A marking module, used for marking the current area to be cleaned as a dangerous area;
[0110] The first determination module is used to determine an obstacle avoidance and clearing path according to the dangerous area.
[0111] In one embodiment, the robot obstacle avoidance device 500 further includes:
[0112] The second determination module is used to determine that the current area to be cleaned is a safe area when the obstacle feedback data remains unchanged.
[0113] In one embodiment, the robot obstacle avoidance device 500 further includes:
[0114] The first acquisition module is used to acquire the preset height threshold according to the second height difference and a preset multiple.
[0115] In one embodiment, the robot obstacle avoidance device 500 further includes:
[0116] A second acquisition module is used to acquire the wheel distance between the front wheel and the driving wheel of the robot;
[0117] The preset angle threshold is determined according to the wheel distance and the preset height threshold.
[0118] In one embodiment, the second detection module 502 is further used to detect the attitude angle data of the robot within a preset time through the gyroscope, and the preset time is determined according to the body length and speed of the robot.
[0119] In one embodiment, the robot obstacle avoidance device 500 further includes:
[0120] A sending module, used for sending the reminder information corresponding to the dangerous area to the client, so that the client generates a dangerous area release sign according to the reminder information and displays the dangerous area release sign;
[0121] A processing module is used to mark the dangerous area as a safe area according to the danger relief instruction received from the client, and control the robot to enter the safe area to perform cleaning work. The danger relief instruction is determined by the client according to the user operation received by the dangerous area relief mark.
[0122] The robot obstacle avoidance device provided in this embodiment can implement the robot obstacle avoidance method provided in Example 1, and will not be described again here to avoid repetition.
[0123] The robot obstacle avoidance device provided in this embodiment detects the current height data between the robot and the current area to be cleaned through the ground detection sensor; when the current height data is greater than or equal to the preset height threshold, the robot's attitude angle data is detected through the gyroscope; when the attitude angle data is greater than or equal to the preset angle threshold, the obstacle feedback data is detected through the wall detection sensor; when the obstacle feedback data increases, it is determined that the first height difference between the current area to be cleaned and the previous cleaning area is greater than the second height difference between the lowest point of the robot's front collision and the previous cleaning area, and the robot is controlled to return to the previous cleaning area. In this way, by decreasing the detection data of the sensor, the gyroscope, and the wall detection sensor, the robot can control not to enter the dangerous area when it determines that the current area to be cleaned is a dangerous area with a risk of being trapped, so as to avoid the robot from being trapped and improve the cleaning efficiency of the robot.
[0124] Example 3
[0125] The disclosed embodiment further provides a robot, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is run by the processor, the robot obstacle avoidance method provided in embodiment 1 is executed.
[0126] The robot provided in this embodiment can implement the robot obstacle avoidance method provided in Example 1, and will not be described again here to avoid repetition.
[0127] Example 4
[0128] The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the robot obstacle avoidance method provided in embodiment 1.
[0129] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0130] The computer-readable storage medium provided in this embodiment can implement the robot obstacle avoidance method provided in Example 1, and will not be described again here to avoid repetition.
[0131] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0132] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0133] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A robot obstacle avoidance method, characterized in that: The method comprises: When the robot moves to the boundary of the first floor area and the second floor area during the cleaning process, the first floor area is regarded as the last cleaning area, and the second floor area is regarded as the current area to be cleaned; the current height data between the robot and the current area to be cleaned is detected by a ground detection sensor; When the current height data is greater than or equal to a preset height threshold, detecting the attitude angle data of the robot by a gyroscope; When the attitude angle data is greater than or equal to a preset angle threshold, detecting obstacle feedback data through a wall detection sensor to determine whether the obstacle feedback data increases; When the obstacle feedback data increases, it is determined that the first height difference between the current area to be cleaned and the previous cleaning area is greater than the second height difference between the lowest point of the robot's front collision and the previous cleaning area, and the robot is controlled to return to the previous cleaning area.
2. The method according to claim 1, characterized in that After the step of controlling the robot to return to the last cleaning area, the method further includes: Marking the current area to be cleaned as a dangerous area; An obstacle avoidance and clearing path is determined according to the dangerous area.
3. The method according to claim 1, characterized in that The method further comprises: When the obstacle feedback data remains unchanged, the current area to be cleaned is determined to be a safe area.
4. The method according to claim 1, characterized in that: The step of obtaining the preset height threshold comprises: The preset height threshold is obtained according to the second height difference and a preset multiple.
5. The method according to claim 1, characterized in that The step of obtaining the preset angle threshold comprises: Obtaining the wheel distance between the front wheel and the driving wheel of the robot; The preset angle threshold is determined according to the wheel distance and the preset height threshold.
6. The robot obstacle avoidance method according to claim 1, characterized in that: The step of detecting the attitude angle data of the robot by a gyroscope comprises: The gyroscope is used to detect the attitude angle data of the robot within a preset time, and the preset time is determined according to the body length and speed of the robot.
7. The method according to claim 2, characterized in that The method further comprises: Sending reminder information corresponding to the dangerous area to the client, so that the client generates a dangerous area release sign according to the reminder information and displays the dangerous area release sign; The dangerous area is marked as a safe area according to the danger relief instruction received from the client, and the robot is controlled to enter the safe area to perform cleaning work. The danger relief instruction is determined by the client according to the user operation received according to the dangerous area relief mark.
8. A robot obstacle avoidance device, characterized in that: The device comprises: A first detection module is used for, when the robot moves to the boundary of the first floor area and the second floor area during the cleaning process, regarding the first floor area as the last cleaning area and regarding the second floor area as the current area to be cleaned, and detecting the current height data between the robot and the current area to be cleaned through a ground detection sensor; A second detection module is used to detect the posture angle data of the robot through a gyroscope when the current height data is greater than or equal to a preset height threshold; A judgment module, configured to, when the posture angle data is greater than or equal to a preset angle threshold, detect obstacle feedback data through a wall detection sensor to judge whether the obstacle feedback data increases; The control module is used to determine that a first height difference between the current area to be cleaned and the previous cleaning area is greater than a second height difference between the lowest point of the robot's front collision and the previous cleaning area when the obstacle feedback data increases, and control the robot to return to the previous cleaning area.
9. A robot, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is run by the processor, the robot obstacle avoidance method according to any one of claims 1 to 7 is executed.
10. A computer-readable storage medium, characterized in that: The computer program is stored therein, and when the computer program is run on a processor, the robot obstacle avoidance method according to any one of claims 1 to 7 is executed.
