Method and device for generating cleaning route of sweeping machine
By dividing the sweeper into non-integer grids and calculating the offset to generate a cleaning route, the problem of low efficiency and poor effect caused by improper spacing of the cleaning route in the existing technology is solved, and a more efficient and better cleaning effect is achieved. .
Patent Information
- Application Number
- CN201910189395.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-13
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-03-13
AI Technical Summary
When existing sweeping machines plan cleaning routes, they usually plan with integer grid precision values, resulting in inappropriate spacing between cleaning routes, resulting in low cleaning efficiency and poor cleaning effects.
By allocating a memory map to the sweeper, divide the grid with the accuracy value of the first threshold * the first threshold, calculate the offset of each grid according to the preset cleaning route spacing (not an integer multiple), and generate cleaning based on the offset Routes, get coverage maps.
The generated cleaning routes are more precise, which improves the sweeping efficiency and effect of the sweeper and avoids the problems of incomplete cleaning of the space environment and omission of some areas due to excessive spacing between cleaning routes.
Smart Images

Figure CN111693045B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for generating a cleaning route of a sweeping machine. Background Art
[0002] With the development of science and technology, machines that can replace people's work have been greatly developed, especially in household appliances. In daily life, the cleaning of the floor of the room is generally done manually, but with the popularization of various intelligent machines, sweepers that replace manual cleaning are accepted and used by more and more families or businesses. Sweepers can automatically complete the cleaning of the floor in the room, freeing users from tedious cleaning work.
[0003] At present, when planning the cleaning route of a sweeper, it is generally planned according to an integer multiple of the grid accuracy value. For example, if the grid accuracy value is 5cm*5cm, then when planning the cleaning route, the spacing between the cleaning routes is generally 10cm or 15cm. The cleaning route planned in this way will lead to problems such as low cleaning efficiency or poor cleaning effect of the sweeper due to inappropriate spacing between the cleaning routes. Summary of the invention
[0004] In view of the above problems, the present invention is proposed to provide a method and device for generating a cleaning route for a sweeping machine that overcomes the above problems or at least partially solves the above problems.
[0005] According to one aspect of the present invention, a method for generating a cleaning route of a sweeping machine is provided, comprising:
[0006] A memory map is pre-allocated to the sweeping machine, wherein the memory map is divided into grids with a precision value of a first threshold value*a first threshold value;
[0007] According to the preset cleaning route spacing, calculating the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeper, wherein the preset cleaning route spacing is not an integer multiple of the first threshold;
[0008] Based on the offset, the sweeping route generation operation is performed in the memory map to obtain the coverage map.
[0009] According to another aspect of the present invention, a cleaning route generating device for a sweeping machine is provided, comprising:
[0010] An allocation module is adapted to allocate a memory map to the sweeping machine in advance, wherein the memory map is divided into grids with a precision value of a first threshold value*a first threshold value;
[0011] A calculation module, adapted to calculate the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeper according to a preset cleaning route spacing, wherein the preset cleaning route spacing is not an integer multiple of the first threshold;
[0012] The execution module is adapted to perform a sweeping route generation operation in the memory map according to the offset to obtain a coverage map.
[0013] According to another aspect of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0014] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned method for generating a cleaning route of the sweeping machine.
[0015] According to another aspect of the present invention, a computer storage medium is provided, in which at least one executable instruction is stored, and the executable instruction enables a processor to execute operations corresponding to the cleaning route generation method of the above-mentioned sweeping machine.
[0016] According to the solution provided by the present invention, a memory map is pre-allocated to the sweeper, wherein the memory map is divided into grids with a precision value of the first threshold * the first threshold; according to the preset cleaning route spacing, the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeper is calculated, wherein the preset cleaning route spacing is not an integer multiple of the first threshold; according to the offset, the cleaning route generation operation is performed in the memory map to obtain a coverage map. Based on the solution provided by the present invention, the generated cleaning route is more refined, and when the sweeper cleans according to this cleaning route, the cleaning efficiency is higher and the cleaning effect is better. In addition, it can also avoid the defects of incomplete cleaning of the spatial environment and some areas being omitted and not cleaned due to the large spacing between the cleaning routes.
[0017] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0019] Figure 1A schematic diagram showing a flow chart of a method for generating a cleaning route of a sweeping machine according to an embodiment of the present invention;
[0020] Figure 2A A schematic flow chart of a method for generating a cleaning route of a sweeping machine according to another embodiment of the present invention is shown;
[0021] Figure 2B A schematic diagram showing bidirectional dynamic detection of obstacles along the extended line of the cleaning route;
[0022] Figure 3 A schematic diagram of the structure of a cleaning route generating device for a sweeping machine according to an embodiment of the present invention is shown;
[0023] Figure 4 A schematic diagram of the structure of a computing device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0024] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0025] Figure 1 FIG. 1 is a flow chart showing a method for generating a cleaning route of a sweeping machine according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0026] Step S100, pre-allocating a memory map for the sweeping machine, wherein the memory map is divided into grids with a precision value of a first threshold*a first threshold.
[0027] Before generating a cleaning route, you need to allocate a corresponding memory map for the sweeper. The memory map is used to generate the cleaning route. Generally, the memory of the sweeper is limited. For example, the memory of the sweeper is 640,000 bytes, and the maximum memory occupied by the sweeper's memory map is 640,000 bytes.
[0028] In this embodiment, the memory map is divided into grids with a precision value of the first threshold * the first threshold, that is, the memory map is composed of a plurality of such grids. For example, the memory map is divided into grids of 5 cm x 5 cm.
[0029] Step S101, calculating the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeper according to the preset cleaning route spacing, wherein the preset cleaning route spacing is not an integer multiple of the first threshold.
[0030] In the prior art, the distance between two cleaning routes is an integer multiple of a first threshold. For example, the first threshold is 5 cm, and the distance between the cleaning routes is generally 10 cm or 15 cm. When the sweeper cleans according to the cleaning route generated in this way, there will be problems of low cleaning efficiency or some areas being missed and not cleaned.
[0031] In order to overcome the above problems, technicians in this field set the cleaning route spacing based on cleaning experience, wherein the preset cleaning route spacing is the distance between two cleaning routes. In this embodiment, the preset cleaning route spacing is not an integer multiple of the first threshold. For example, when the first threshold is 5 cm, the preset cleaning route spacing can be set to 13 cm. Thereby, by finely setting the cleaning route spacing, the cleaning efficiency of the sweeper is improved, and the problem of some areas being missed and not cleaned is overcome.
[0032] The sweeping direction of the sweeper indicates the direction in which the sweeper performs cleaning when cleaning the spatial environment. The sweeping direction of the sweeper is divided into a horizontal cleaning direction or a vertical cleaning direction. Different cleaning directions determine different generated cleaning routes.
[0033] The operation of generating a cleaning route is performed on the grid of the memory map. Therefore, before executing the cleaning route generation operation, it is necessary to calculate the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeper according to the preset cleaning route spacing. The offset here refers to the corresponding position of the cleaning route in the grid when the cleaning route is generated. Specifically, when calculating the offset of the cleaning route to be generated, it can be calculated in combination with the previous cleaning route and the preset cleaning route spacing.
[0034] For different cleaning routes, the calculated offsets may be different. For example, the offset corresponding to grid 3 is 3 cm, and the offset corresponding to grid 6 is 1 cm. This is only an example and does not have any limiting effect.
[0035] Step S102, performing a cleaning route generation operation in the memory map according to the offset to obtain a coverage map.
[0036] After calculating the offset, a cleaning route generation operation can be performed at the corresponding grid in the memory map according to the calculated offset. After completing the cleaning route generation operation, a corresponding coverage map can be obtained, wherein the coverage map records all cleaning routes.
[0037] According to the method provided by the above embodiment of the present invention, a memory map is pre-allocated to the sweeping machine, wherein the memory map is divided into grids with a precision value of the first threshold * the first threshold; according to the preset cleaning route spacing, the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeping machine is calculated, wherein the preset cleaning route spacing is not an integer multiple of the first threshold; according to the offset, the cleaning route generation operation is performed in the memory map to obtain a coverage map. Based on the scheme provided by the present invention, the generated cleaning route is more refined, and when the sweeping machine cleans according to this cleaning route, the cleaning efficiency is higher and the cleaning effect is better. In addition, it can also avoid the defects of incomplete cleaning of the spatial environment and some areas being omitted and not cleaned due to the large spacing between the cleaning routes.
[0038] Figure 2A FIG. 2 is a flow chart showing a method for generating a cleaning route of a sweeping machine according to another embodiment of the present invention. Figure 2A As shown, the method comprises the following steps:
[0039] Step S200, pre-allocating a memory map for the sweeping machine, wherein the memory map is divided into grids with a precision value of a first threshold*a first threshold.
[0040] Step S201, calculating the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeper according to the preset cleaning route spacing, wherein the preset cleaning route spacing is not an integer multiple of the first threshold.
[0041] Step S202, performing a cleaning route generation operation in the memory map according to the offset to obtain a coverage map.
[0042] Figure 2A In the embodiment shown, steps S200 to S202 are Figure 1 Steps S100 to S102 in the illustrated embodiment are similar and will not be described in detail here.
[0043] Step S203, dynamically detect whether there are obstacles on the extension line of the cleaning route from both ends of the cleaning route in both directions. If not, execute step S204; if yes, the method ends.
[0044] In real life, when planning a cleaning route, there may be dynamic obstacles in the spatial environment corresponding to the cleaning route. After the cleaning route planning is completed, the dynamic obstacles no longer exist in the spatial environment. In order to plan the cleaning route more accurately, this embodiment needs to further detect the cleaning route after generating the cleaning route. Specifically, it is necessary to perform bidirectional dynamic detection from both ends of the cleaning route to see whether there are obstacles on the extension line of the cleaning route.
[0045] The following is an illustration. Figure 2BThis is a schematic diagram of bidirectional dynamic detection of obstacles on the extended line of the cleaning route. Figure 2B In the figure, the solid line is the generated cleaning route, and the dotted line is the extension of the cleaning route. When performing detection, the cleaning route is detected from both ends along the cleaning route. Figure 2B The direction of the middle arrow detects the extension line of the cleaning route (i.e. Figure 2B Check whether there are any obstacles on the dashed line part.
[0046] Step S204, dynamically expanding the cleaning route in both directions along the extension line of the cleaning route.
[0047] If the detection result shows that there is no obstacle on the extension line of the cleaning route, it can be considered that the obstacle has disappeared. At this time, the cleaning route should be dynamically adjusted so that the sweeper can clean this place during the cleaning work. Specifically, the cleaning route can be dynamically adjusted by the following method: the cleaning route is dynamically expanded in both directions along the extension line of the cleaning route. Figure 2B The dashed line portion will be expanded to become part of the cleaning route.
[0048] In this embodiment, when the cleaning route is dynamically expanded bidirectionally along the extension line of the cleaning route, it is not necessary to consider whether the cleaning route is too close to an obstacle or too close to a restricted area during the expansion, and the cleaning route of the expanded portion will be detected in subsequent method steps.
[0049] Step S205, deleting the corresponding part of the cleaning route generated when the obstacle exists.
[0050] Since the cleaning route has been dynamically expanded bidirectionally along the extension line of the cleaning route in step S204, the sweeper will no longer clean according to the cleaning route generated when the obstacle exists in the subsequent cleaning. Therefore, it is necessary to delete the corresponding part of the cleaning route generated when the obstacle exists. Figure 2B Explanation can be considered as deletion Figure 2B The middle arc part.
[0051] Step S206, detecting whether the distance between the extended cleaning route and the obstacle and / or restricted area is less than or equal to a second threshold, if so, executing step S207; if not, the method ends.
[0052] In order to avoid the cleaning route of the expanded part being too close to obstacles or too close to restricted areas, which may cause the sweeper to easily hit obstacles or walk into restricted areas during cleaning, affecting the normal cleaning work of the sweeper, after the cleaning route is dynamically expanded in both directions along the extension line of the cleaning route, the cleaning route of the expanded part needs to be detected. Specifically, it is detected whether the distance between the cleaning route of the expanded part and the obstacles and / or restricted areas is less than or equal to a second threshold, wherein the second threshold is flexibly set based on actual experience.
[0053] If the distance between the cleaning route of the extended part and the obstacle and / or the restricted area is less than or equal to the second threshold, it indicates that the cleaning route of the extended part is too close to the obstacle and / or the restricted area. When the sweeper is cleaning, it is easy to hit the obstacle or enter the restricted area, which is not conducive to the cleaning work of the sweeper; if the distance between the cleaning route of the extended part and the obstacle and / or the restricted area is greater than the second threshold, it indicates that the sweeper can clean normally along the cleaning route of the extended part and will not hit the obstacle or enter the restricted area.
[0054] Step S207, deleting the extended cleaning route.
[0055] If the distance between the extended cleaning route and the obstacle and / or restricted area is less than or equal to the second threshold, it can be determined that the extended cleaning route is not suitable for the cleaning work of the sweeper, and the extended cleaning route needs to be deleted.
[0056] Step S208, combining the obstacles and / or restricted areas to splice the remaining cleaning routes after the deletion process.
[0057] After deleting the expanded part of the cleaning route, in order to ensure the smooth cleaning work of the sweeper, the remaining cleaning route after the deletion needs to be spliced in combination with the obstacles and / or restricted areas. When splicing, the distance to the obstacles and / or restricted areas will be taken into consideration, so that the spliced cleaning route is more conducive to the cleaning work.
[0058] This embodiment does not specifically limit the execution order of steps S206-S208 and step S205. For example, steps S206-S208 may be executed first, and then step S205, or step S205 may be executed first, and then step S206-S208, or steps S206-S208 and step S205 may be executed simultaneously.
[0059] In an optional embodiment of the present invention, when the cleaning route is dynamically expanded in both directions along the extension line of the cleaning route, the dynamic expansion in both directions can be performed in combination with obstacles or restricted areas. This can prevent the expanded cleaning route from being too close to obstacles or restricted areas, thereby avoiding the defect that the sweeper easily hits obstacles or walks into restricted areas during cleaning, affecting the normal cleaning of the sweeper.
[0060] According to the method provided by the above-mentioned embodiment of the present invention, for each cleaning route to be generated, the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeper is calculated, and the cleaning route generated according to the offset is more precise. When the sweeper cleans according to this cleaning route, the cleaning efficiency is higher and the cleaning effect is better. In addition, it can also avoid the defects of incomplete cleaning of the spatial environment and some areas being omitted and not cleaned due to the large spacing between the cleaning routes; after the cleaning route is generated, the extension line of the cleaning route is dynamically detected from both ends of the cleaning route in both directions to see if there are obstacles. If not, the cleaning route is dynamically adjusted to ensure that the sweeper can clean in place, avoiding the defect that the sweeper fails to clean the corresponding area in time after the dynamic obstacles on the cleaning route no longer exist, resulting in poor cleaning effect and poor user experience.
[0061] Figure 3 FIG. 2 shows a schematic diagram of a cleaning route generating device for a sweeping machine according to an embodiment of the present invention. Figure 3 As shown, the device includes: an allocation module 300, a calculation module 301, and an execution module 302.
[0062] An allocation module 300 is adapted to allocate a memory map to the sweeping machine in advance, wherein the memory map is divided into grids with a precision value of a first threshold value*a first threshold value;
[0063] The calculation module 301 is adapted to calculate the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeper according to a preset cleaning route spacing, wherein the preset cleaning route spacing is not an integer multiple of the first threshold;
[0064] The execution module 302 is adapted to execute a cleaning route generation operation in the memory map according to the offset to obtain a coverage map.
[0065] Optionally, the device further comprises: a detection module 303 adapted to dynamically detect whether there are obstacles on the extension line of the cleaning route from both ends of the cleaning route in both directions;
[0066] The adjustment module 304 is adapted to dynamically adjust the cleaning route if there are no obstacles on the extension line of the cleaning route.
[0067] Optionally, the adjustment module 304 is further adapted to: dynamically expand the cleaning route in both directions along the extension line of the cleaning route;
[0068] Delete the corresponding part of the cleaning route generated when obstacles exist.
[0069] Optionally, the adjustment module 304 is further adapted to: detect whether the distance between the cleaning route of the extended portion and the obstacle and / or the restricted area is less than or equal to a second threshold;
[0070] If so, the expanded cleaning route is dynamically adjusted.
[0071] Optionally, the adjustment module 304 is further adapted to: delete the cleaning route of the extended part;
[0072] The remaining cleaning routes after the deletion process are spliced in combination with obstacles and / or restricted areas.
[0073] According to the device provided by the above embodiment of the present invention, a memory map is pre-allocated to the sweeping machine, wherein the memory map is divided into grids with a precision value of the first threshold * the first threshold; according to the preset cleaning route spacing, the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeping machine is calculated, wherein the preset cleaning route spacing is not an integer multiple of the first threshold; according to the offset, the cleaning route generation operation is performed in the memory map to obtain a coverage map. Based on the scheme provided by the present invention, the generated cleaning route is more refined, and when the sweeping machine cleans according to this cleaning route, the cleaning efficiency is higher and the cleaning effect is better. In addition, it can also avoid the defects of incomplete cleaning of the spatial environment and some areas being omitted and not cleaned due to the large spacing between the cleaning routes.
[0074] An embodiment of the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the cleaning route generation method of the sweeping machine in any of the above method embodiments.
[0075] Figure 4 The schematic diagram of the structure of a computing device according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computing device.
[0076] like Figure 4 As shown, the computing device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .
[0077] in:
[0078] The processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .
[0079] The communication interface 404 is used to communicate with other devices such as clients or other servers.
[0080] The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above-mentioned embodiment of the cleaning route generation method of the sweeping machine.
[0081] Specifically, the program 410 may include program codes, which include computer operation instructions.
[0082] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0083] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0084] Program 410 can be specifically used to enable processor 402 to execute the method for generating a cleaning route for a sweeping machine in any of the above-mentioned method embodiments. The specific implementation of each step in program 410 can refer to the corresponding descriptions in the corresponding steps and units in the above-mentioned embodiment for generating a cleaning route for a sweeping machine, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described equipment and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0085] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0086] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0087] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0088] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0089] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0090] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the cleaning route generation device of the floor sweeper according to an embodiment of the present invention. The present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0091] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
Claims
1. A method for generating a cleaning route of a sweeping machine, comprising: Allocating a memory map to the sweeping machine in advance, wherein the memory map is divided into grids with a precision value of a first threshold value*a first threshold value; According to the preset cleaning route spacing, the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeper is calculated, wherein the preset cleaning route spacing is related to the first threshold and is not an integral multiple of the first threshold; According to the offset, a cleaning route generation operation is performed in the memory map to obtain a coverage map; After generating the cleaning route, the method further includes: Bidirectionally dynamically detecting whether there are obstacles on the extension line of the cleaning route from both ends of the cleaning route, the cleaning route is an obstacle avoidance route generated when an obstacle is detected when planning the cleaning route, the two ends of the cleaning route are the starting end and the ending end of the cleaning route, and the extension line of the cleaning route is a straight line between the starting end and the ending end of the cleaning route; If not, the cleaning route is dynamically adjusted.
2. The method according to claim 1, wherein: The dynamic adjustment of the cleaning route further includes: Performing bidirectional dynamic expansion of the cleaning route along the extension line of the cleaning route, wherein the bidirectional dynamic expansion refers to adding the extension line to the cleaning route based on both ends of the cleaning route; Delete the corresponding part of the cleaning route generated when obstacles exist.
3. The method according to claim 2, wherein: After dynamically expanding the cleaning route in both directions along the extension line of the cleaning route, the method further includes: Detecting whether the distance between the cleaning route of the extended portion and the obstacle and / or the restricted area is less than or equal to a second threshold; If so, the expanded cleaning route is dynamically adjusted.
4. The method according to claim 3, wherein: The dynamic adjustment of the expanded cleaning route further includes: Delete the cleaning route of the expanded part; The remaining cleaning routes after the deletion process are spliced in combination with obstacles and / or restricted areas.
5. A cleaning route generating device for a sweeping machine, comprising: An allocation module, adapted to allocate a memory map to the sweeping machine in advance, wherein the memory map is divided into grids with a precision value of a first threshold value*a first threshold value; A calculation module, adapted to calculate the offset of each grid corresponding to the cleaning route to be generated in the cleaning direction of the sweeper according to a preset cleaning route spacing, wherein the preset cleaning route spacing is related to the first threshold and is not an integral multiple of the first threshold; An execution module, adapted to execute a cleaning route generation operation in the memory map according to the offset to obtain a coverage map; A detection module, adapted to dynamically detect whether there are obstacles on the extension line of the cleaning route from both ends of the cleaning route in both directions, wherein the cleaning route is an obstacle avoidance route generated when an obstacle is detected when planning the cleaning route, wherein the two ends of the cleaning route are the starting end and the ending end of the cleaning route, and the extension line of the cleaning route is a straight line between the starting end and the ending end of the cleaning route; The adjustment module is adapted to dynamically adjust the cleaning route if there are no obstacles on the extension line of the cleaning route.
6. The device according to claim 5, wherein: The adjustment module is further adapted to: Performing bidirectional dynamic expansion of the cleaning route along the extension line of the cleaning route, wherein the bidirectional dynamic expansion refers to adding the extension line to the cleaning route based on both ends of the cleaning route; Delete the corresponding part of the cleaning route generated when obstacles exist.
7. The device according to claim 6, wherein: The adjustment module is further adapted to: Detecting whether the distance between the cleaning route of the extended portion and the obstacle and / or the restricted area is less than or equal to a second threshold; If so, the expanded cleaning route is dynamically adjusted.
8. The device according to claim 7, wherein: The adjustment module is further adapted to: Delete the cleaning route of the expanded part; The remaining cleaning routes after the deletion process are spliced in combination with obstacles and / or restricted areas.
9. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the cleaning route generation method of the sweeping machine as described in any one of claims 1-4.
10. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the method for generating a cleaning route for a sweeping machine as described in any one of claims 1-4.
Citation Information
Patent Citations
Cleaning robot and cleaning method thereby
CN102138769A
Self moving ground-handling robot and cleaning control method thereof
CN103376801A
Robot path planning method under home environment
CN104808671A
Control method and device for automatic sweeper
CN105388900A
Guide path determination method and device based on indoor map
CN105424046A
