Self-propelled device and control method thereof
By forming a virtual area in the self-propelled sweeper and using boundary data to correct the position, the problem of low wall angle detection and obstacle handling efficiency in the existing technology is solved, more efficient cleaning path planning and execution is achieved, and cleaning efficiency is improved. and accuracy.
Patent Information
- Application Number
- CN202011064651.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-09-30
AI Technical Summary
When existing self-propelled sweepers deal with uneven walls and cleaning areas containing obstacles, it is difficult to accurately detect the wall angle and has low efficiency. Moreover, it takes a long time to detour in a large room, and the uncleaned areas are scattered and difficult to clean efficiently.
By forming a virtual area within the surface, use the distance sensor to measure the boundary data, correct the position of the virtual area, and when encountering an obstacle, walk along the edge of the obstacle, stop the area that has been passed, scan the area that has not been passed, and continue to move. Font path cleaning to improve efficiency.
The cleaning efficiency of the self-propelled device is improved, the number of virtual areas is reduced, repeated walking is avoided, cleaning time is shortened, and complete cleaning of sunken areas and obstacles is ensured.
Smart Images

Figure CN114355871B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a self-propelled device and a control method thereof, and more particularly to a self-propelled device for moving a position of a virtual area according to boundary data and a control method thereof. Background Art
[0002] Japanese Patent Publication No. H08-215116A describes a self-propelled cleaning machine that detects a wall in front of a main body, determines the main body position by making the main body and the wall at right angles, and sets the zero point of the orientation sensor. However, in this method, when the wall is approximately flat, the direction can be detected, but when the wall is uneven, it may not be possible to correctly detect the angle of the wall. In addition, when the cleaning area contains obstacles such as chairs and tables, it is necessary to change the moving path to avoid the obstacles.
[0003] Figure 1 A schematic diagram showing a conventional path control method of a self-propelled sweeper. Figure 1 A schematic diagram showing a control method for a self-propelled sweeper as described in Chinese Patent Publication No. CN1535646A. Figure 1 As shown, when the self-propelled sweeper 910 starts cleaning, it identifies the cleaning area by walking along the wall 920 of the room 930 and circling the room 930 counterclockwise. According to the aforementioned known technology, when walking along the wall 920, the reference orientation of the self-propelled sweeper 910 is set at the same time, and then the self-propelled sweeper 910 walks in a bow shape according to the reference orientation, so that the uncleaned area can be reduced. However, when the room is very large, it takes a long time to go around the room. Moreover, after the initial cleaning, it is necessary to scan multiple uncleaned areas on the map again. Sometimes, these uncleaned areas are far apart and require more time to clean. Therefore, these known technologies have not fully taken into account the aforementioned situation, and there is room for further improvement. Summary of the invention
[0004] According to one embodiment of the present invention, there is provided a self-propelled device and a control method thereof, which forms a virtual area on a surface, controls the self-propelled device to walk a path in the virtual area and measures a boundary data, and then moves the position of the virtual area according to the boundary data to form a calibrated virtual area, thereby improving walking efficiency. According to another embodiment of the present invention, there is provided a self-propelled device and a control method thereof, which stops the step of walking along the edge of the obstacle when encountering an obstacle and encounters an area that has been walked, and performs a scanning step to find a nearby area that has not been walked, and then continues to move to the area that has not been walked, thereby improving walking efficiency.
[0005] According to one embodiment of the present invention, a self-propelled device is provided, which includes a walking device, a sensing module and a control module. The walking device is used to move the self-propelled device on a surface. The sensing module includes a distance sensor and is used to identify the position of the control module within the surface using data measured by the distance sensor. The control module is electrically connected to the sensing module and the walking device. The control module further performs the following steps. Calculate the moving path of the self-propelled device. Form a first virtual area D0 (traveling throughout the area) in the map information of the surface, wherein the first virtual area D0 includes a first side virtual boundary. And, control the self-propelled device to travel an initial path within the first virtual area D0, wherein the control module uses the distance sensor to measure a boundary data, and then moves the position of the first virtual area D0 according to the boundary data to form a corrected first virtual area D1.
[0006] In one embodiment, a buffer distance h exists between a first virtual boundary of the first virtual area D0 and a first initial boundary measured by the sensing module.
[0007] In one embodiment, after the sensing module detects a recessed area C1 within the first virtual area D0, the control module causes the self-propelled device to enter the recessed area C1, and uses the sensing module to measure a first side update boundary of the recessed area C1, and moves the position of the first virtual area D0, so that the first side virtual boundary of the corrected first virtual area D1 moves in a direction close to the first side update boundary of the recessed area C1.
[0008] In one embodiment, the control module is used to perform an edge following step, wherein the edge following step controls the self-propelled device to walk to a boundary of the surface and regards the boundary as the first side initial boundary.
[0009] In one embodiment, at least one second virtual area D2 is set in the surface according to the corrected first virtual area D1.
[0010] In one embodiment, the control module further performs: after the self-propelled device traverses the corrected first virtual area D1, the virtual boundary of the corrected first virtual area D1 is removed to enter at least one second virtual area D2. Preferably, the corrected first virtual area D1 overlaps at least a portion with at least one second virtual area D2.
[0011] In one embodiment, a buffer distance w exists between a second virtual boundary of the first virtual area D0 and a second initial wall measured by the sensing module.
[0012] In one embodiment, when the self-propelled device encounters an obstacle, it walks along the edge of the obstacle. When the self-propelled device detects that it has walked to an area that it has walked to, it stops walking along the edge of the obstacle and searches for an area that it has not walked to in the corrected first virtual area D1. Furthermore, when there is an area that it has not walked to in the corrected first virtual area D1, the self-propelled device moves to the area that it has not walked to for cleaning.
[0013] In one embodiment, the control module forms a plurality of grids in the first virtual area D1 after correction. The control module marks the grids that the self-propelled device has cleaned. Furthermore, when the self-propelled device detects that it has walked to a grid marked with a mark that it has walked to, it is detected that the self-propelled device has walked to the area that it has walked to.
[0014] According to one embodiment of the present invention, a control method for a self-propelled device is provided, which is applicable to a self-propelled device. The self-propelled device includes a walking device, a sensing module and a control module. The walking device is used to move the self-propelled device on a surface. The sensing module includes a distance sensor and is used to identify the position of the control module on the surface using data measured by the distance sensor. The control module is electrically connected to the sensing module and the walking device. The control method for the self-propelled device includes the following steps. A first virtual area D0 is formed in the map information of the surface, wherein the first virtual area D0 includes a first side virtual boundary. And, the self-propelled device is controlled to walk an initial path in the first virtual area D0, wherein the control module uses the distance sensor to measure boundary data corresponding to the initial path, and then moves the position of the first virtual area D0 according to the boundary data to form a corrected first virtual area D1.
[0015] In one embodiment, a buffer distance h exists between a first virtual boundary of the first virtual area D0 and a first initial boundary measured by the sensing module.
[0016] In one embodiment, the step of controlling the self-propelled device to walk an initial path in the first virtual area D0 includes: after using the sensing module to measure a recessed area C1 in the first virtual area D0, the self-propelled device enters the recessed area C1, and uses the sensing module to measure a first side update boundary of the recessed area C1; and moves the position of the first virtual area D0 so that the first side virtual boundary of the corrected first virtual area D1 moves in a direction close to the first side update boundary of the recessed area C1.
[0017] In one embodiment, the control method of the self-propelled device further includes: a step of following an edge, which is used to control the self-propelled device to walk to a boundary of the surface and regard the boundary as the first side initial boundary.
[0018] In one embodiment, the control method of the self-propelled device further includes: setting at least one second virtual area D2 in the surface according to the corrected first virtual area D1.
[0019] In one embodiment, the control method of the self-propelled device further includes: allowing the self-propelled device to traverse the corrected first virtual area D1 (traveling throughout the area); then, removing the virtual boundary of the corrected first virtual area D1 and entering the at least one second virtual area D2. The corrected first virtual area D1 and the at least one second virtual area D2 at least partially overlap.
[0020] In one embodiment, a buffer distance w exists between a second virtual boundary of the first virtual area D0 and a second initial wall measured by the sensing module.
[0021] In one embodiment, the control method of the self-propelled device further includes: when the self-propelled device encounters an obstacle, it walks along the edge of the obstacle; when the self-propelled device detects that it has walked to an area that has been walked, it stops walking along the edge of the obstacle and searches for an area that has not been walked in the corrected first virtual area D1; and when there is an area that has not been walked in the corrected first virtual area D1, the self-propelled device moves to the area that has not been walked for cleaning.
[0022] In one embodiment, the control method of the self-propelled device further includes: forming a plurality of grids in the first virtual area D1 after calibration; marking the grids that have been cleaned by the self-propelled device with a mark that has been passed; and when the self-propelled device detects that it has walked to a grid marked with a mark that has been passed, it is detected that the self-propelled device has walked to the area that has been passed.
[0023] In summary, according to one embodiment of the present invention, a virtual area is set in a surface, and the self-propelled device is controlled to walk a path in the virtual area, and a boundary data is measured by a distance sensor, and then the position of the virtual area is moved according to the boundary data to form a calibrated virtual area, so as to improve the cleaning efficiency. In one embodiment, after encountering an obstacle, the self-propelled device walks clockwise along the edge of the obstacle, and in the process of walking along the edge of the obstacle, if it encounters an area that has been walked or cleaned, the step of walking along the edge of the obstacle is stopped, and a scanning step is performed to find a nearby area that has not been walked, and then continue to clean the room according to the "bow-shaped" path walking method, so as to improve the cleaning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic diagram showing a conventional path control method of a self-propelled sweeper.
[0025] Figure 2A A top view of a self-propelled device according to an embodiment of the present invention is shown.
[0026] Figure 2B A functional block diagram of a self-propelled device according to an embodiment of the present invention is shown.
[0027] Figure 3 A flow chart showing a method for controlling a self-propelled device according to an embodiment of the present invention.
[0028] Figure 4A A schematic diagram showing a step of a method for controlling a self-propelled device according to an embodiment of the present invention.
[0029] Figure 4B A schematic diagram showing the step of moving a first virtual area in a method for controlling an autonomous vehicle according to an embodiment of the present invention.
[0030] Figure 4C A schematic diagram showing the step of forming a plurality of second virtual areas in a method for controlling an autonomous vehicle according to an embodiment of the present invention.
[0031] Figure 5A A schematic diagram showing a step of a method for controlling a self-propelled device according to an embodiment of the present invention.
[0032] Figure 5B show Figure 5A A schematic diagram of map information of a step of a control method.
[0033] Figure 5C A schematic diagram showing a step of a method for controlling a self-propelled device according to an embodiment of the present invention.
[0034] Figure 6 A flow chart showing a step of a method for controlling a self-propelled device according to an embodiment of the present invention.
[0035]
Explanation of symbols
[0036] 200: Self-propelled device
[0037] 222: Side brush
[0038] 223: Walking device
[0039] 224: Cleaning device
[0040] 225: Cleaning device
[0041] 226: Anti-collision bar
[0042] 320: Sensing module
[0043] 321: Distance sensor
[0044] 330: Pump module
[0045] 331: Vacuum port
[0046] 340: Control module
[0047] 341: Encoder
[0048] 342: Motor module
[0049] 343: Gyroscope
[0050] 344: Processor
[0051] 345: Memory
[0052] 361: Map Information
[0053] 390: Power module
[0054] 832: First side virtual boundary
[0055] 842: Second side virtual boundary
[0056] 900: Surface
[0057] 910: Self-propelled sweeper
[0058] 920: Wall
[0059] 930: Room
[0060] 931: Initial boundary of the first side
[0061] 932: First side update boundary
[0062] 940: Obstacles
[0063] 941: Second side initial boundary
[0064] 942: Second side update boundary
[0065] C1: Depression area
[0066] C2: Depression area
[0067] D1: The first virtual area after correction
[0068] D0: First virtual area
[0069] D2: Second virtual area DETAILED DESCRIPTION
[0070] The present invention will be described in detail with reference to the accompanying drawings, wherein the same reference numerals will be used to identify the same or similar elements in multiple views. It should be noted that the drawings should be viewed in the orientation direction of the reference numerals.
[0071] According to an embodiment of the present invention, a self-propelled device and a control method thereof are provided. The self-propelled device may be a cleaning device or a cleaning robot. Figure 2A A top view of a self-propelled device according to an embodiment of the present invention is shown. Figure 2A As shown, the self-propelled device 200 includes a dust suction port 331, at least one side brush 222, a walking device 223, and a cleaning device 224 and 225. The side brush 222 extends downward to sweep the dust on the ground into the dust suction port 331. The cleaning devices 224 and 225 may include a cleaning cloth disposed on the bottom side and facing downward to wipe the ground. In one embodiment, the walking device 223 may be a pulley device including two wheels and a belt, and the belt is connected between the wheels. In one embodiment, a bumper 226 may be disposed in front of the self-propelled device 200 to sense an event of colliding with an obstacle.
[0072] Figure 2B The functional block diagram of the self-propelled device according to one embodiment of the present invention is shown. Figure 2B In this embodiment, the self-propelled device 200 further includes a sensing module 320, a pump module 330, a control module 340 and a power module 390. The power module 390 is used to provide a power source to the pump module 330 and the control module 340. The pump module 330 drives a vacuum cleaner (not shown) to vacuum, suck dust from the dust suction port 331 and collect the dust in a dust collection belt (not shown). The sensing module 320 includes at least one distance sensor 321.
[0073] The distance sensor 321 is electrically connected to the control module 340 to transmit a distance data to the control module 340. The control module 340 includes an encoder 341, a motor module 342, a gyroscope 343, a processor (CPU) 344 and a memory 345. The motor module 342 drives the walking device 223 to make the self-propelled device 200 move forward and backward or rotate left and right. The motor module 342 is electrically connected to an encoder 341 (Encoder), and the encoder 341 obtains the walking distance or the turning angle according to an operation signal of the motor module 342. The reading value of the encoder 341 can be used to calculate the walking distance or the turning angle of the self-propelled device 200. The gyroscope 343 of the control module 340 is used to measure the angular velocity (ω) of the self-propelled device 200, and then the integral angle (iA) of the machine is obtained by integrating the angular velocity (ω), as shown in the following formula eq1. The encoder 341 performs inertial navigation according to at least one of the walking distance, the turning angle and the integrated angle (iA), and performs a “bow-shaped” sweep back and forth.
[0074] iA=∫Kodteq1
[0075] Among them, iA represents the integrated angle, K is the constant of the gyroscope, ω is the angular velocity, and t is the time.
[0076] In one embodiment, a rotary encoder 341 for detecting the rotation speed of the wheels of the walking device 223 can be installed on the left and right motors of the motor module 342 of the walking device 223. The control module 340 can be further provided with a front or side proximity sensor (distance sensor 321) for detecting obstacles in front or on the side. A signal is sent from the sensor, such as an infrared beam, which generates reflected light when it is projected on an object. The control module 340 detects the reflected light and calculates the distance between the sensor and the obstacle. In order to accurately detect obstacles and walls, the side proximity sensor is set on the right or left side of the self-propelled device 200. In this embodiment, the right side of the self-propelled device 200 is made to walk along the wall, so the side proximity sensor is set at a position where it can sense the right side of the self-propelled device 200.
[0077] The control module 340 drives the motor module 342 to move the self-propelled device 200 based on the information detected by the rotary encoder 341, the gyroscope 343, the front proximity sensor and the side proximity sensor (distance sensor 321). The control module 340 is a control computer system equipped with a CPU, a memory, and an input and output circuit. In order to execute the operation algorithm of the control module 340, the computer program is embedded in the memory. A part of the memory of the control module 340 is used to store the map information 361.
[0078] In addition, in this specification, the edges of walls and doors in the movable area of the room are referred to as "boundaries", and the boundaries may include furniture such as shelves placed along the walls. Chairs and tables in the room and located away from the boundaries are regarded as areas that cannot be cleaned and are referred to as "isolated obstacles". Obstacles may refer to boundaries or isolated obstacles. During the walking of the self-propelled device 200, the angular velocity detected by the gyroscope 343 is integrated to obtain the azimuth Q of the direction of travel of the self-propelled device 200. The moving distance and azimuth Q detected by the encoder 341 are used to obtain the movement amount and moving direction of the self-propelled device 200 to calculate the position of the self-propelled device 200. In addition, the initial position and current position of the self-propelled device 200 are compared at any time. If the initial position and current position are approximately the same, it is determined that the room has been circled once or the virtual area (as described later) has been circled once. In addition, since the right side of the self-propelled device 200 is made to move along the wall, when the self-propelled device 200 determines that it is moving counterclockwise (the difference angle ΔA described later is approximately 360°), it is determined to be moving around the wall. However, when the self-propelled device 200 determines that it is moving clockwise, it is determined to be moving around an isolated obstacle (the difference angle ΔA described later is approximately 360°).
[0079] The control module 340 is used to create map information 361 of the surface 900 of the floor of the room 930 based on the data measured by the distance sensor 321. The map information 361 includes a plurality of grid data m(i, k) arranged in two dimensions. More specifically, the surface 900 of the floor of the cleaning area is divided into grids of a predetermined size, such as 5 cm×5 cm, to form sub-blocks A(j, l). The grid data m(p, q) are respectively mapped to each sub-block A(p, q). In addition, the map information 361 further includes a mark written in each grid data m(p, q) to indicate a specific meaning. The mark may be, for example, a mark indicating "unconfirmed", "boundary", "virtual boundary", "cleaned", "passed" or "isolated obstacle". Figure 5B In the text box, the letter "W" indicates a boundary. The letter "C" indicates that it has been passed, and when the self-propelled device is a cleaning machine, the letter "C" can also indicate "cleaned". A blank block indicates "unconfirmed". Figure 4A In the figure, the letter "X" represents a virtual boundary. The size of the grid is determined according to the size of the room to be cleaned and the accuracy required for walking, the memory capacity, the calculation speed, etc., and can be set to about 1 cm×1 cm, for example. In this specification, a virtual boundary refers to a boundary that does not actually exist, but the control module 340 draws a virtual boundary in the map information 361 to control the self-propelled device 200 not to exceed the data of the virtual boundary. In one embodiment, the sensing module 320 includes a distance sensor 321, and is used to identify the position of the control module 340 within the surface 900 using the data measured by the distance sensor 321. Therefore, after the virtual boundary is drawn, the control module 340 can control the self-propelled device 200 not to exceed the virtual boundary.
[0080] In one embodiment, the control module 340 plans to store a total of 1000×1000 grids, each grid is a square of 5cm×5cm to 20cm×20cm, preferably 5cm×5cm. In one embodiment, the control module 340 further makes each virtual area approximately 4.4 meters, that is, there are 88 grids when each grid is 5cm×5cm. In one embodiment, two adjacent virtual areas overlap, for example, 30cm, that is, there are about 6 grids when each grid is 5cm×5cm. Figure 4C Ao and Ao1 are shown to avoid areas that are not cleaned.
[0081] According to an embodiment of the present invention, a self-propelled device 200 and a control method thereof are provided, wherein a virtual area D0 is set in a surface, and the self-propelled device 200 is controlled to walk a path in the virtual area D0, and a boundary data is measured by a distance sensor 321, and then the position of the virtual area D0 is moved according to the boundary data to form a calibrated virtual area D1, so as to improve the cleaning efficiency. The specific embodiment of the present invention will be further described below.
[0082] Figure 3 A flow chart showing a control method of a self-propelled device according to an embodiment of the present invention. Figure 3 As shown, a control method of a self-propelled device according to an embodiment of the present invention includes the following steps.
[0083] Step S02: Calculate the moving path of the self-propelled device 200 and perform an edge tracking step to use the sensing module 320 to measure a first side initial boundary 931. After the edge tracking step controls the self-propelled device 200 to walk to a boundary of the surface 900, the boundary is regarded as the first side initial boundary. Figure 4A A schematic diagram showing a step of a control method for a self-propelled device according to an embodiment of the present invention. Figure 4A As shown, in one embodiment, when the self-propelled device 200 starts cleaning, it moves straight in the direction FD in front of it until it encounters a wall at point Pa. In one embodiment, when the self-propelled device 200 moves straight in the direction FD in front of it and encounters an isolated obstacle, it rotates counterclockwise along the edge of the isolated obstacle and walks a certain distance. When it is detected that there is no isolated obstacle in the direction FD, it continues to walk in the direction FD until it encounters a wall. After continuing to walk counterclockwise and measuring that the direction FD cannot be walked for a preset time, it is confirmed that the first side initial boundary (as described later) has been encountered. Figure 5B Example).
[0084] The present invention is not limited to the edge following method. In one embodiment, after the self-propelled device 200 encounters an obstacle, it continues to walk along the obstacle for a period of time. When the self-propelled device 200 detects that it is rotating counterclockwise, it is determined that the obstacle is part of the boundary of the wall or surface 900, and when the self-propelled device 200 detects that it rotates counterclockwise once, it means that it has circled the floor surface 900. On the contrary, after walking along the obstacle for a period of time, when the self-propelled device 200 detects that it is rotating clockwise, it is determined that the obstacle is part of an isolated obstacle, and when the self-propelled device 200 detects that it rotates clockwise once, it means that it has circled the edge of the obstacle.
[0085] Step S04: A first virtual area D0 is formed in the map information 361 of the surface 900 of the floor of the room 930, wherein the first virtual area D0 includes a first side virtual boundary 832. Preferably, the first side virtual boundary 832 of the first virtual area D0 has a buffer distance h from a first side initial boundary 931 measured by the sensing module 320.
[0086] Since the self-propelled device 200 will not be able to go beyond the first virtual area D0 to the outside of the first side virtual boundary 832 after the first virtual area D0 is established, if there is an undetected concave area C1 outside the first virtual area D0 in the actual cleaning area, the robot will not be able to enter the concave area C1. Therefore, in order to avoid the concave area C1 in the actual cleaning area, preferably, the first virtual area D0 is set as follows: the position of the self-propelled device 200 does not fall on the first side virtual boundary 832 of the first virtual area D0, for example, at the corner or boundary line of the first virtual area D0. Or the first virtual area D0 is set as follows: the first side virtual boundary 832 is not set at the same position as the first side initial boundary 931 (i.e., the actual wall) detected by the self-propelled device 200. According to the above design, there is a greater chance that the first virtual area D0 contains a concave area C1, so that the self-propelled device 200 has the opportunity to enter the concave area C1 to explore the boundary line in the concave area C1.
[0087] like Figure 4A As shown, since there is a buffer distance h between the first side virtual boundary 832 and a first side initial boundary 931 measured by the sensing module 320 , when the self-propelled device 200 walks to the point Pb and detects the recessed area C1 , it can enter the recessed area C1 .
[0088] Step S06: An initial path is walked along the first side initial boundary 931 in the first virtual area D0, and the control module 340 uses the distance sensor 321 to measure a boundary data on the initial path, and then moves the position of the first virtual area D0 according to the boundary data to form a corrected first virtual area D1.
[0089] Figure 4B A schematic diagram showing the steps of moving the first virtual area D0 in a control method for a self-propelled device according to an embodiment of the present invention. Figure 4A and 4B As shown, the self-propelled device 200 enters the concave area C1, walks to the point Pc and measures the first side update boundary 932 of the concave area C1, and then moves the position of the first virtual area D0 to make the first side virtual boundary 832 close to the first side update boundary 932. Figure 4BIn the embodiment, the first side virtual boundary 832 is aligned with the first side update boundary 932. In another embodiment, the distance between the first side virtual boundary 832 and the first side update boundary 932 may be smaller than the buffer distance h and greater than zero. For example, it may be preferably the same as the distance of the overlapping area Ao of two adjacent virtual areas.
[0090] Step S08: Based on the corrected first virtual area D1, at least one second virtual area D2 is formed in the surface 900. In one embodiment, two adjacent virtual areas in the corrected first virtual area D1 and the at least one second virtual area D2 at least partially overlap Ao, so as to avoid the presence of uncleaned blocks between the two adjacent virtual areas due to walking errors or other factors.
[0091] Step S10: After the self-propelled device 200 cleans the corrected first virtual area D1, it removes the virtual boundary of the corrected first virtual area D1 and enters the adjacent second virtual area D2. Figure 4B As shown, the virtual boundary of the second virtual area D2 is formed again, and the second virtual area D1 is cleaned.
[0092] like Figure 4B As shown, when the first virtual area D0 is not moved, three virtual areas need to be formed in the y direction of the room 930. However, after the first virtual area D0 is moved to form the corrected first virtual area D1, two virtual areas need to be formed in the y direction of the room 930. Figure 4C A schematic diagram showing the steps of forming a plurality of second virtual areas D2 in a control method for a self-propelled device according to an embodiment of the present invention. It should be noted that in order to clearly display the walking route and symbols, Figures 4A to 4C The grid is only partially drawn. Figure 4C As shown, when the first virtual area D0 is not moved, four virtual areas need to be formed in the x direction of the room 930. However, after the first virtual area D0 is moved to form the corrected first virtual area D1, three virtual areas need to be formed in the x direction of the room 930. Therefore, the self-propelled device 200 of the present invention improves the cleaning efficiency of the self-propelled device 200.
[0093] Please refer to Figure 4A and 4B, when the self-propelled device 200 moves to point Pd, the second side initial boundary 941 is measured. When it moves to point Pe, the recessed area C2 is measured. Since there is a buffer distance w between the second side virtual boundary 842 of the first virtual area D0 and the second side initial boundary 941, the self-propelled device 200 can enter the recessed area C2. When the self-propelled device 200 moves to point Pf, the second side updated boundary 942 in the recessed area C2 is measured. Subsequently, the position of the first virtual area D0 is moved so that the second side virtual boundary 842 moves toward the direction close to the second side updated boundary 942. Figure 4B In the embodiment, the second side virtual boundary 842 is aligned with the second side update boundary 942. In another embodiment, the distance between the second side virtual boundary 842 and the second side update boundary 942 can be smaller than the buffer distance w and greater than zero. For example, it is preferred that the overlap area Ao1 (such as Figure 4C ).
[0094] It should be understood that the present invention does not limit the time point of moving the first virtual area D0, as long as the first virtual area D0 is moved when or before encountering the virtual boundary. Those skilled in the art can determine the time point of moving the first virtual area D0 as needed. For example, in one embodiment, the self-propelled device 200 can move the first virtual area D0 when it is found that its current position has exceeded point Pa in the y direction (for example, at point Pe), so that the first side virtual boundary 832 moves in a direction close to the first side update boundary 932. In one embodiment, the first virtual area D0 can also be moved again when encountering a virtual boundary, for example, at the position of point Pz, so that the first side virtual boundary 832 moves in a direction close to the first side update boundary 932. In one embodiment, the self-propelled device 200 can also move the first virtual area D0 when it is found that its current position has exceeded point Pd in the x direction (for example, at point Pi), so that the second side virtual boundary 842 moves in a direction close to the second side update boundary 942. In one embodiment, when a virtual boundary is encountered, such as at the point Py, the first virtual area D0 may be moved to move the second side virtual boundary 842 toward the direction close to the second side update boundary 942 .
[0095] As described above, after the self-propelled device 200 walks a path in the first virtual area D0, the position of the first virtual area D0 is moved according to the path walked by the self-propelled device 200 to form a corrected first virtual area D1. In addition, the update boundary is determined according to the path walked, and then the first side virtual boundary 832 is made close to the first side update boundary 932 or the second side virtual boundary 842 is made close to the second side update boundary 942 to form the corrected first virtual area D1. Compared with the case where the corrected first virtual area D1 is not formed, the number of virtual areas formed by the self-propelled device 200 in the case where the corrected first virtual area D1 is formed is smaller. Therefore, the advantage of moving the first virtual area D0 is that the number of virtual areas can be reduced and the cleaning efficiency can be improved.
[0096] In addition, in one embodiment, the self-propelled device 200 first moves straight, and after encountering a wall (step S02), a virtual area of about 4.4 meters is first formed (step S04). Then, in the virtual area, it moves along the wall in a counterclockwise direction (letting the right side of the self-propelled device 200 brush close to the wall), and when other updated walls are detected, the position of the virtual area is moved (step S06). Then, it walks around the virtual boundary or real wall of the updated virtual area, and starts walking in a bow shape after walking around.
[0097] According to one embodiment of the present invention, a self-propelled device and a control method thereof are provided. The self-propelled device may be a cleaning device or a cleaning robot. After encountering an obstacle, the self-propelled device 200 walks clockwise along the edge of the obstacle. In the process of walking along the edge of the obstacle, if it encounters a cleaned area, it stops the step of walking along the edge of the obstacle and performs a scanning step to find a nearby untraveled area, and then continues to clean the room according to the "bow-shaped" path walking method, so as to improve the cleaning efficiency. The following will further describe a specific embodiment of the present invention.
[0098] Figure 5A A schematic diagram showing a step of a method for controlling a self-propelled device according to an embodiment of the present invention. Figure 5B show Figure 5A It should be noted that in order to avoid the diagram being too complicated and to make the walking route and symbols clearly displayed, Figure 5B The grids and walking routes are only partially marked out, and the scale of the grids is not the actual size and is only for illustration. Figure 5C A schematic diagram showing a step of a method for controlling a self-propelled device according to an embodiment of the present invention. Figure 6 A flow chart showing a step of a method for controlling a self-propelled device according to an embodiment of the present invention.
[0099] Figure 6A flow chart showing a control method of the self-propelled device 200 in a virtual area is shown. Figure 6 As shown, the control method of the autonomous device 200 in a virtual area includes the following steps.
[0100] Step S20: The self-propelled device 200 performs bow-shaped walking.
[0101] Step S22: Determine whether the traversal within the virtual area is complete, if yes, proceed to step S30, if not, proceed to step S24.
[0102] Step S24: The self-propelled device 200 determines whether it has hit an edge and has not passed that point. If so, it proceeds to step S26, and if not, it returns to step S20, and records the edge-hitting point as the initial point of following the edge.
[0103] Step S26: The self-propelled device 200 walks along the edge. More specifically, the right side of the self-propelled device 200 walks along the edge of the obstacle.
[0104] Step S28: During the edge walking process, determine whether the current position has been passed and the difference angle ΔA between the azimuth Q of the current position and the azimuth Q0 of the initial point of the edge walking is greater than 300°; or determine whether the current position has been passed and ΔA<-180°, if yes, proceed to step S28, if not, return to step S24 and continue walking along the edge.
[0105] Step S30: Enter the next virtual area.
[0106] When the difference angle ΔA is greater than zero, it indicates counterclockwise rotation, and when the difference angle ΔA is less than zero, it indicates clockwise rotation. In addition, the size of the angle can be appropriately set by those skilled in the art, for example, the difference angle ΔA is greater than the first preset angle, and the difference angle ΔA is less than the second preset angle, and the first preset angle can be 250°, 300°, 350°, 360° or a value between the aforementioned numbers. The second preset angle can be -130°, -180°, -230°, -330°, -360° or a value between the aforementioned numbers. In addition, in one embodiment, the anti-collision bar 226 can be used to sense the collision signal to determine the collision edge. In other embodiments, the distance sensor 321 can also be used to measure the distance between the self-propelled device 200 and the obstacle (isolated obstacle or wall), and when the distance meets a preset distance range, the collision edge is determined.
[0107] like Figure 6 , Figure 5A and 5BAs shown, when the self-propelled device 200 starts to clean a virtual area, such as the first virtual area D0, the calibrated first virtual area D1 or the second virtual area D2, it first performs a bow-shaped walking (step S20) and determines whether the traversal is completed (step S22). When it is determined that the traversal is not complete, the self-propelled device 200 moves from the position of point P0 in the direction FD in front of it. When the self-propelled device 200 walks to point P1, it will hit the edge and encounter obstacle 940. At this time, it is determined that the edge has been hit and the traversal has not been completed, and point P1 is set as the initial point (step S24). At this time, the self-propelled device 200 walks along the edge (step S26), that is, the right side of the self-propelled device 200 walks around the obstacle 940. Finally, it will walk to point P1 again and find that it has gone around clockwise (the difference angle ΔA between the azimuth angle Q of the current position and the azimuth angle Q0 of the initial point P1 is between -330° and -360°). After that, it is confirmed that the obstacle 940 is an isolated obstacle 940, and it is learned that the self-propelled device 200 has not found the wall in the virtual area. In other words, when walking to point P1 again, the self-propelled device 200 detects that ΔA<-180° and has been walked or cleaned (for example, the current grid PG is marked with C) (step S28), and continues to walk in a bow shape (step S20). More specifically, the self-propelled device 200 rotates counterclockwise again, and walks a distance before walking to point P2. When it is found that there is no obstacle in the direction FD at point P2, it continues to walk in the direction FD. When it reaches point P3, it hits the wall. At this time, it is determined that it has hit the edge and has not been walked, and point P3 is reset to the initial point (step S24). Condition 1: PG=C and ΔA>=300, or, Condition 2: PG=C and ΔA<=-180.
[0108] When the virtual area is the second virtual area D2 or the first virtual area D1 after correction, the self-propelled device 200 performs edge walking (step S26), that is, the self-propelled device 200 walks a distance along the wall in a counterclockwise direction. When returning to point P3, it is measured that ΔA>300° and has been passed (step S28), and the bow-shaped walking (step S20) is continued.
[0109] When the virtual area is the first virtual area D0, the control module 340 sets a first virtual area D0 in the map information 361 of the surface 900 of the room floor. At this time, the self-propelled device 200 walks along the edge (step S26), that is, the self-propelled device 200 walks a distance along the wall in a counterclockwise direction. When returning to point P3, it is measured that ΔA>300° and has been walked (step S28), and the bow-shaped walking continues (step S20). In one embodiment, since the path after point P3 is an area that cannot be walked in the direction FD, it can be judged that point P3 is a wall. After walking for a period of time, when it is found that there is no need to move the first virtual area D0, walk around the wall and the first virtual area D0. For example, when the self-propelled device 200 finds that its current position has exceeded point P3 in the x direction, the first side initial boundary 931 is farther away from the current position of the self-propelled device 200 than the first side updated boundary 932, that is, when the first side initial boundary 931 is the farthest boundary, the position of the first virtual area D0 is not moved, and the first virtual area D0 is directly regarded as the corrected first virtual area D1. In other embodiments, after walking for a period of time, when it is found that the first virtual area D0 needs to be moved, the corrected first virtual area D1 is formed, and then walking along the wall and the corrected first virtual area D1.
[0110] Please refer to Figure 5B When the self-propelled device 200 encounters a wall, a W is marked in the grid where the wall is located to indicate the boundary, and a C is marked in the grid it has cleaned to indicate that it has passed through or cleaned. After the self-propelled device 200 walks in a counterclockwise direction for a period of time, it moves the position of the first virtual area D0 when necessary to form a corrected first virtual area D1. When the self-propelled device 200 finds that it has walked 360 degrees counterclockwise and its current position is approximately point P3, or in one embodiment, when the self-propelled device 200 finds that its current position and point P3 are within a predetermined range, more specifically, when ΔA is measured between 330° and 360° and point P3 has been passed (step S28), it is known that it has roughly surrounded the corrected first virtual area D1 or the second virtual area D2, and then begins to walk in a bow shape (step S20). In one embodiment, the marks of the cleaned areas other than along the wall or near the wall can be removed, and in another embodiment, they can also be retained. The self-propelled device 200 marks the grid of the area that has been passed or cleaned as C, and after passing point P4, marks the grid of point P4 as C, and then walks to point P5 and encounters obstacle 940. At this time, it is determined that the edge has been hit and the obstacle has not been passed, and point P5 is set as the initial point (step S24).
[0111] At point P5, the self-propelled device 200 walks along the edge (step S26), more specifically, the right side of the self-propelled device 200 walks along the edge of the obstacle 940 to go around the edge of the obstacle 940 in a clockwise direction. Then it will walk to point P4 again, at which time it is measured that ΔA<-180° and it has been walked (step S28), and it is found that point P4 is a walked area or a cleaned area, that is, it is known that the grid of point P4 is marked as C, then it stops walking along the edge and stops the step of going around the edge of the obstacle 940. Subsequently, the area in the map information 361 that has not been walked or cleaned and is closest to point P4 is scanned, and it is found that the grid above point P6 has not been walked or cleaned and is closest to point P4, so after the self-propelled device 200 moves to point P6, it continues to walk in a bow shape (step S20). In this embodiment, the walking along the edge is stopped at point P4, and the robot will not walk to point P5 to repeatedly clean the cleaned area between point P4 and point P5, thereby improving the cleaning efficiency.
[0112] Assume that when the self-propelled device 200 walks to point P7, it has preliminarily cleaned the current virtual area, and then scans the uncleaned (i.e., not walked) area in the current virtual area, and finds that the grid to the right of point P8 is not clean (step S22). The self-propelled device 200 walks to point P8 and cleans the uncleaned area. In addition, in another embodiment, at point P7, when the self-propelled device 200 finds that there are multiple uncleaned areas (step S22), it walks to the uncleaned area closest to point P7, and after completing the cleaning of the area, it cleans the next uncleaned area (step S30). The cleaning procedure is not completed until all uncleaned areas in the current virtual area have been cleaned. Then, the virtual boundary of the current virtual area is closed and enters the next virtual area. In this embodiment, since the uncleaned area is searched in the virtual area, the distance between point P7 and point P8 is limited to the virtual area, not the entire room, so the walking distance is shorter, which can improve the cleaning efficiency. In addition, the area of the virtual area is smaller than the area of the entire room, so the uncleaned area will be relatively small, thereby reducing the distance of repeated walking.
[0113] like Figure 6 and Figure 5C As shown, Figure 5C Example and Figure 5AThe difference between the embodiments is that the position of the self-propelled device 200 in the virtual area is different. In this embodiment, the self-propelled device 200 first performs a bow-shaped walk (step S20) and determines whether the traversal is completed (step S22). When it is determined that the traversal is not completed, the self-propelled device 200 walks from the position of point P0 in the direction FD in front of it, and hits the wall when it reaches point P3. At this time, it is determined that it hits the edge and has not passed through, and point P3 is reset to the initial point (step S24). Subsequently, the self-propelled device 200 walks along the edge (step S26), that is, the self-propelled device 200 walks a distance along the wall in a counterclockwise direction. When returning to point P3, it is measured that ΔA>300° and has passed through (step S28), and continues to walk in a bow shape (step S20) and determines whether the traversal is completed (step S22). If the traversal is not completed, it continues to walk and will pass through point P4. When the self-propelled device 200 walks to point P5 and then encounters obstacle 940, it is determined that it has hit the edge and has not passed through, and point P5 is set as the initial point (step S24). At point P5, the self-propelled device 200 walks along the edge (step S26). In this embodiment, the self-propelled device 200 goes around the edge of obstacle 940 in a clockwise direction, and then walks to point P4 again. At this time, ΔA<-180° is measured and it has passed through (step S28). When it is found that point P4 is a passed area, it stops walking along the edge, and it is found that the grid above point P6 has not been passed or is not cleaned, and is closest to point P4. Therefore, after the self-propelled device 200 moves to point P6, it continues to walk in a bow shape (step S20). The process of the self-propelled device 200 walking to points P7 and P8 is the same as the previous embodiment, so the relevant description is omitted.
[0114] According to one embodiment of the present invention, when walking along the edge of a virtual area and an obstacle, it is not necessary to circle around the virtual area and the obstacle. The self-propelled device 200 only needs to measure that its direction angle is greater than a first predetermined angle or less than a second predetermined angle, and it is found that the current position has been passed. In this way, repeated walking or cleaning can be avoided as much as possible, thereby increasing the efficiency of walking and cleaning.
[0115] In summary, according to an embodiment of the present invention, a virtual area is set in a surface, and the self-propelled device is controlled to walk a path in the virtual area, and a boundary data is measured by a distance sensor, and then the position of the virtual area is moved according to the boundary data to form a calibrated virtual area, so as to improve the cleaning efficiency. In one embodiment, after encountering an obstacle, the self-propelled device 200 walks clockwise along the edge of the obstacle, and in the process of walking along the edge of the obstacle, if it encounters a cleaned area, it stops the step of walking along the edge of the obstacle, and performs a scanning step to find nearby untraveled or uncleaned areas, and then continues to clean the room according to the "bow-shaped" path walking method, so as to improve the cleaning efficiency.
Claims
1. A self-propelled device, characterized in that: Include: a walking device for moving the self-propelled device on a surface; a sensing module, comprising a distance sensor and configured to identify the position of the self-propelled device within the surface using data measured by the distance sensor; and A control module is electrically connected to the sensing module and the walking device. The control module further performs: forming a first virtual area D0 in the map information of the surface, wherein the first virtual area D0 includes a first side virtual boundary; and Control the self-propelled device to walk an initial path in the first virtual area D0, wherein the control module uses a distance sensor to measure a boundary data corresponding to the initial path, and then moves the position of the first virtual area D0 according to the boundary data to form a corrected first virtual area D1; A buffer distance h exists between the first side virtual boundary of the first virtual area D0 and a first side initial boundary measured by the sensing module; The self-propelled device also includes: When the self-propelled device encounters an isolated obstacle while walking straight ahead, it rotates counterclockwise along the edge of the isolated obstacle and walks for a certain distance. When it is detected that there is no isolated obstacle in its direction, it continues to walk in that direction until it encounters a wall. After it continues to walk counterclockwise along the wall and continues to detect that its direction = cannot walk for a preset time, it is confirmed that the initial boundary of the first side has been encountered; The control module further performs: During the process of the self-propelled device following the edge, it is determined whether the current position has been passed and the difference angle ΔA between the azimuth angle Q of the current position and the azimuth angle Q0 of the initial point of the edge following is greater than 300°; or it is determined whether the current position has been passed and ΔA<-180°; After the sensing module detects a concave area C1 in the first virtual area D0, the control module causes the self-propelled device to enter the concave area C1, and uses the sensing module to detect a first side update boundary of the concave area C1, and The position of the first virtual area D0 is moved so that the first side virtual boundary of the corrected first virtual area D1 moves toward the direction close to the first side update boundary of the concave area C1.
2. The self-propelled device according to claim 1, characterized in that: The control module is used to perform an edge following step, wherein the edge following step controls the self-propelled device to walk to a boundary of the surface and regards the boundary as the first side initial boundary.
3. The self-propelled device according to claim 1, characterized in that: The control module also performs: At least one second virtual area D2 is set in the surface according to the corrected first virtual area D1.
4. The self-propelled device according to claim 3, characterized in that: The control module further performs: after the self-propelled device traverses the corrected first virtual area D1, the virtual boundary of the corrected first virtual area D1 is removed to enter the at least one second virtual area D2, and the corrected first virtual area D1 overlaps with the at least one second virtual area D2 in part.
5. The self-propelled device according to claim 1, characterized in that: A buffer distance w exists between a second virtual boundary of the first virtual area D0 and a second initial wall measured by the sensing module.
6. The self-propelled device according to claim 1, characterized in that: When the self-propelled device encounters an obstacle, it moves along the edge of the obstacle. When the self-propelled device detects that it has walked to an area that it has walked through, it stops walking along the edge of the obstacle and searches for an area that it has not walked through in the corrected first virtual area D1, and When there is an untraveled area in the first virtual area D1 after correction, the self-propelled device moves to the untraveled area to clean it.
7. The self-propelled device according to claim 6, characterized in that: The control module forms a plurality of grids in the first virtual area D1 after correction. The control module marks the grids that have been cleaned by the self-propelled device, and When the self-propelled device detects that it has walked to a grid marked with a mark that has been walked, it is detected that the self-propelled device has walked to the area that has been walked.
8. A method for controlling a self-propelled device, characterized in that: Applicable to a self-propelled device, The self-propelled device comprises: a walking device for moving the self-propelled device on a surface; a sensing module comprising a distance sensor and for identifying the position of the self-propelled device on the surface using data measured by the distance sensor; and a control module electrically connected to the sensing module and the walking device. The control method of the self-propelled device includes: forming a first virtual area D0 in the map information of the surface, wherein the first virtual area D0 includes a first side virtual boundary; and Control the self-propelled device to walk an initial path in the first virtual area D0, wherein the control module uses a distance sensor to measure a boundary data corresponding to the initial path, and then moves the position of the first virtual area D0 according to the boundary data to form a corrected first virtual area D1; A buffer distance h exists between the first side virtual boundary of the first virtual area D0 and a first side initial boundary measured by the sensing module; The control method also includes: When the self-propelled device encounters an isolated obstacle while walking straight ahead, it rotates counterclockwise along the edge of the isolated obstacle and walks for a certain distance. When it is detected that there is no isolated obstacle in its direction, it continues to walk in that direction until it encounters a wall. After it continues to walk counterclockwise along the wall and continues to detect that its direction = cannot walk for a preset time, it is confirmed that the initial boundary of the first side has been encountered; The control method also includes: During the process of the self-propelled device following the edge, it is determined whether the current position has been passed and the difference angle ΔA between the azimuth angle Q of the current position and the azimuth angle Q0 of the initial point of the edge following is greater than 300°; or it is determined whether the current position has been passed and ΔA<-180°; The step of controlling the self-propelled device to walk an initial path in the first virtual area D0 includes: After a recessed area C1 in the first virtual area D0 is detected by the sensing module, the self-propelled device enters the recessed area C1 and a first side updated boundary of the recessed area C1 is detected by the sensing module; and The position of the first virtual area D0 is moved so that the first side virtual boundary of the corrected first virtual area D1 moves toward the direction close to the first side update boundary of the concave area C1.
9. The control method of the self-propelled device according to claim 8, characterized in that: Also includes: An edge following step is used to control the self-propelled device to walk to a boundary of the surface and regard the boundary as the initial boundary of the first side.
10. The control method of the self-propelled device according to claim 8, characterized in that: Also includes: At least one second virtual area D2 is set in the surface according to the corrected first virtual area D1.
11. The control method of the self-propelled device according to claim 10, characterized in that: Also includes: Allowing the self-propelled device to traverse the corrected first virtual area D1; Then, the virtual boundary of the corrected first virtual area D1 is removed, and the at least one second virtual area D2 is entered. The corrected first virtual area D1 at least partially overlaps with the at least one second virtual area D2.
12. The control method of the self-propelled device according to claim 8, characterized in that: A buffer distance w exists between a second virtual boundary of the first virtual area D0 and a second initial wall measured by the sensing module.
13. The control method of the self-propelled device according to claim 8, characterized in that: Also includes: When the self-propelled device encounters an obstacle, it moves along the edge of the obstacle; When the self-propelled device detects that it has walked to an area that it has walked through, it stops walking along the edge of the obstacle and searches for an area that it has not walked through in the corrected first virtual area D1; and When there is an untraveled area in the first virtual area D1 after correction, the self-propelled device moves to the untraveled area to clean it.
14. The control method of the self-propelled device according to claim 13, characterized in that: Also includes: In the corrected first virtual area D1, a plurality of grids are formed; After the grid that the self-propelled device has cleaned, a mark is marked indicating the grid that has been cleaned; and When the self-propelled device detects that it has walked to a grid marked with a mark that has been walked, it is detected that the self-propelled device has walked to the area that has been walked.
Citation Information
Patent Citations
Automatic walking floor-sweeping machine and its operation method
CN1535646A
Automatic cleaner and controlling method of the same
CN108354524A
A path planning method of intelligent robot
US20190129433A1
