Route planning method and apparatus, mowing robot, and storage medium
By detecting and planning the movement route of the lawn mower robot in multiple areas, the problem of low multi-region recharge efficiency of the lawn mower robot in the existing technology is solved, automatic recharging across regions is realized, and the working efficiency of the lawn mower robot is improved.
Patent Information
- Application Number
- PCT/CN2024/083556
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2024-03-25
- Publication Date
- 2024-10-03
AI Technical Summary
Existing route planning solutions for lawn mowing robots are mainly suitable for a single area and cannot achieve multi-area recharging, and the recharging and return efficiency of edge-seeking and line-burying methods is poor.
By detecting whether the charging pile is located in the preset operation map, the position information of the lawn mower robot and the charging pile is obtained, the movement cost is calculated, and the movement route is planned based on this, so as to achieve cross-regional control of the lawn mower robot for recharging, and avoid searching for piles along the edge. Buried wire method.
It improves the efficiency of recharging and returning the lawn mower robot, and can automatically recharge in multiple areas without the need for fixed routes, improving work efficiency.
Smart Images

Figure CN2024083556_03102024_PF_FP_ABST
Abstract
Description
Route planning method, device, lawn mowing robot and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 27, 2023, with application number 202310339673.9 and application name “Route planning method, device, lawn mowing robot and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the technical field of lawn mowing robots, and in particular to a route planning method, device, lawn mowing robot, and storage medium. Background Art
[0003] Robotic lawn mowers are widely used for maintaining lawns in home gardens and mowing large lawns. They integrate motion control, multi-sensor fusion, and path planning technologies. To ensure continuous operation, they must switch to route planning mode after completing a mowing task or when the battery is low, allowing them to automatically return to the charging station for recharging.
[0004] However, most current route planning solutions are only applicable to a single area and cannot be used for recharging in multiple areas. Solutions for multi-area recharging require setting up a charging station in each work area. In addition, the use of a fixed route using the method of searching for charging stations along the edge and burying cables has poor recharging and return efficiency.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a route planning method, device, lawn mower robot, and storage medium, which can control the lawn mower robot to recharge across regions without the need to use edge-searching and wire-laying methods, thereby improving the efficiency of recharging and returning.
[0007] In a first aspect, an embodiment of the present application provides a route planning method, which is applied to a lawn mowing robot, comprising:
[0008] Detect whether the charging pile is located within the preset operation map;
[0009] When it is detected that the charging pile is located in a preset operation map, first position information of the lawn mowing robot and second position information of the charging pile are obtained;
[0010] Calculating a movement cost of the mowing robot to the charging pile in the operation map according to the first position information and the second position information;
[0011] A movement route of the lawn mowing robot to the charging pile is planned according to the movement cost.
[0012] Optionally, in some embodiments, calculating the movement cost of the mowing robot moving to the charging pile in the operation map according to the first position information and the second position information includes:
[0013] detecting, based on the first position information and the second position information, whether the mowing robot and the charging pile are located in different working areas on the work map;
[0014] When it is detected that the mowing robot and the charging pile are located in different working areas on the working map, the working areas included in the working map are determined; the determined working areas are converted into area nodes, and a movement path between different area nodes is constructed;
[0015] The movement cost of the mowing robot moving to the charging pile in the operation map is calculated according to the first position information, the regional nodes, and the movement paths between different regional nodes.
[0016] Optionally, in some embodiments, calculating the movement cost of the mowing robot moving to the charging pile in the operation map based on the first location information, the second location information, the regional nodes, and the movement paths between different regional nodes includes:
[0017] Identify the path distances corresponding to the movement paths between nodes in different regions;
[0018] determining a moving path corresponding to the lawn mowing robot according to the first position information;
[0019] Calculating the distance traveled by the mowing robot to the corresponding moving path;
[0020] A movement cost of the mowing robot moving to the charging pile in the operation map is calculated based on the second position information, the path distance, and the movement distance.
[0021] Optionally, in some embodiments, the method further includes:
[0022] When it is detected that the mowing robot and the charging pile are located in the same working area on the work map, determining the same working area as a target area;
[0023] Obtaining a grid map of the target area;
[0024] Based on the first position information, the second position information and a preset algorithm, a movement route of the lawn mowing robot to the charging pile is planned in the grid map.
[0025] Optionally, in some embodiments, planning a movement route of the mowing robot to the charging pile according to the movement cost includes:
[0026] Creating a first node set corresponding to the shortest route and a second node set not traversed according to the movement cost;
[0027] Selecting a node with the minimum moving cost from the second node set and adding it to the first node set to obtain an updated first node set;
[0028] Reverse exploration is performed on the nodes in the updated first node set to obtain a movement route of the lawn mowing robot to the charging pile.
[0029] Optionally, in some embodiments, performing reverse exploration on the nodes in the updated first node set to obtain a movement route of the lawn mowing robot to the charging pile includes:
[0030] Determine a target node in the updated first node set;
[0031] Traversing adjacent nodes of the target node, and determining the adjacent node with the minimum movement cost as the connecting node of the target node;
[0032] Determine the connecting node as a reference node, and return to the step of traversing adjacent nodes adjacent to the target node until a reverse route is output;
[0033] The reverse route is inverted to obtain the moving route of the lawn mowing robot to the charging pile.
[0034] Optionally, in some embodiments, the method further includes:
[0035] When a blockage is detected in the moving route, determining the blocked area as a blocked working area;
[0036] Based on a previous working area of the blocked working area as a reference, a moving route of the lawn mowing robot to the charging pile is planned.
[0037] In a second aspect, an embodiment of the present application provides a route planning device, which is applied to a lawn mowing robot, comprising:
[0038] A detection module is used to detect whether the charging pile is located within the preset operation map;
[0039] an acquisition module, configured to acquire first position information of the mowing robot and second position information of the charging pile when detecting that the charging pile is located in a preset operation map;
[0040] a calculation module, configured to calculate a movement cost of the mowing robot moving to the charging pile in the operation map according to the first position information and the second position information;
[0041] A planning module is used to plan a movement route of the mowing robot to the charging pile according to the movement cost.
[0042] In a third aspect, an embodiment of the present application provides a lawn mowing robot, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the route planning method described above when executing the program.
[0043] In a fourth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the route planning method described above are implemented.
[0044] The present application provides a route planning method, device, lawn mower robot and storage medium. When detecting whether the charging pile is located in a preset operation map, when it is detected that the charging pile is located in the preset operation map, the first position information of the lawn mower robot and the second position information of the charging pile are obtained. Then, based on the first position information and the second position information, the movement cost of the lawn mower robot moving to the charging pile in the operation map is calculated. Finally, based on the movement cost, the movement route of the lawn mower robot moving to the charging pile is planned. The route planning scheme provided by the present application can calculate the movement cost of the lawn mower robot moving to the charging pile in the operation map based on the first position information and the second position information, and use the movement cost for route planning to achieve cross-regional control of the lawn mower robot for recharging, and there is no need to use the method of searching for piles along the edge and burying lines, thereby improving the efficiency of recharging and returning. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0046] FIG1 is a schematic diagram of a scenario of a route planning method provided in an embodiment of the present application;
[0047] FIG2 is a flow chart of a route planning method according to an embodiment of the present application;
[0048] FIG3 is a schematic diagram of jump point planning in the route planning method provided in an embodiment of the present application;
[0049] FIG4 is a directed node graph in the route planning method provided by an embodiment of the present application;
[0050] FIG5 is a schematic structural diagram of a route planning device provided in an embodiment of the present application;
[0051] FIG6 is a schematic diagram of the structure of a calculation module in a route planning device provided in an embodiment of the present application;
[0052] FIG7 is a schematic diagram of the structure of a planning module in a route planning device according to an embodiment of the present application;
[0053] FIG8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0055] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for both fixing and circuit connection.
[0056] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention.
[0057] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, the meaning of "plurality" is two or more, unless otherwise clearly specified.
[0058] Embodiments of the present application provide a route planning method, device, lawn mowing robot, and storage medium.
[0059] The route planning device can be integrated into the robot's microcontroller unit (MCU), or into a smart terminal or server. An MCU, also known as a single-chip microcomputer (MCU), reduces the frequency and specifications of a central processing unit (CPU) and integrates peripheral interfaces such as memory, timers, USB, analog-to-digital conversion / digital-to-analog conversion, UART, PLC, and DMA to form a chip-level computer, enabling diverse control combinations for different applications. The robot can autonomously navigate, avoid collisions, automatically return to recharge within range, and features safety and battery level monitoring. It also has a certain degree of climbing capability, making it particularly suitable for lawn mowing and maintenance in places like home gardens and public green spaces. Its features include automatic mowing, grass clipping removal, rain shelter, automatic charging, obstacle avoidance, a compact design, an electronic virtual fence, and network control.
[0060] The terminal may be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited thereto. The terminal and the server may be connected directly or indirectly via wired or wireless communication. The server may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. This application does not impose any restrictions on this.
[0061] For example, referring to FIG1 , the present application provides a lawn mowing system, including a lawn mower robot 10, a charging station 20, a server 30, and a user device 40, which are communicatively connected to each other. For example, a user can control the lawn mower robot 10 through the user device 40 to detect obstacles and plan a mowing path. When the lawn mower robot 10 completes its mowing operation or is low on power, there may be problems that affect the navigation of the lawn mower robot 10. The server 30 can detect whether the charging station 20 is located within a preset operation map. When the server 30 detects that the lawn mower robot 10 and the charging station 20 are within the preset operation map, it obtains first position information of the lawn mower robot 10 and second position information of the charging station 20. Then, based on the first position information and the second position information, the server 30 calculates the movement cost of the lawn mower robot 10 moving to the charging station 20 in the operation map. Finally, the server 30 plans a movement route for the lawn mower robot 10 to move to the charging station 20 based on the movement cost.
[0062] It should be noted that the order of description of the following embodiments does not limit the priority order of the embodiments.
[0063] A route planning method includes: detecting whether a charging pile is located within a preset operation map; when it is detected that the charging pile is located within the preset operation map, obtaining first position information of a lawn mower robot and second position information of the charging pile; calculating, based on the first position information and the second position information, a movement cost of the lawn mower robot moving to the charging pile in the operation map; and planning a movement route for the lawn mower robot to move to the charging pile based on the movement cost.
[0064] Please refer to Figure 2, which is a flow chart of a route planning method provided in an embodiment of the present application. The specific flow of the route planning method can be as follows:
[0065] 101. Check whether the charging pile is located within the preset operation map.
[0066] Among them, the user can circle at least one work area (mowing area). In this application, all mowing areas are referred to as work maps. The work map can be pre-constructed. For example, the work map may include work area A, work area B and work area C. The work area A, work area B and work area C are interconnected through moving paths. Of course, work area A is connected to work area B through moving path a1, and work area B is connected to work area C through moving path b. The specific settings can be based on actual conditions and will not be elaborated here.
[0067] 102. When it is detected that the charging pile is located in a preset operation map, first position information of the lawn mowing robot and second position information of the charging pile are obtained.
[0068] Among them, the lawn mower robot and the charging pile can be located in the same working area in the preset working map, or in different working areas in the preset working map, or not in the preset working map (that is, the area where the charging pile is located is not divided into the working map and / or the lawn mower robot leaves the working area).
[0069] It should be noted that when the charging pile is not located in the preset operation map, the recharging action will not be performed considering the safety of the recharging procedure.
[0070] When the mowing robot and the charging pile are located in the same working area in a preset work map, a movement route of the mowing robot to the charging pile can be planned according to the grid map corresponding to the working area. That is, optionally, in some embodiments, the process may further include:
[0071] (11) When it is detected that the mowing robot and the charging pile are located in the same working area on the work map, the same working area is determined as the target area;
[0072] (12) Obtaining a grid map of the target area;
[0073] (13) Based on the first position information, the second position information, and a preset algorithm, a movement route of the lawn mowing robot to the charging pile is planned in the grid map.
[0074] For example, when it is detected that the mowing robot and the charging pile are located in the same working area on the work map, the same working area is determined as the target area. Then, a grid map of the target area can be obtained. Then, based on the first position information, the second position information, and the jump point search (JPS) algorithm, a movement route for the mowing robot to move to the charging pile is planned in the grid map. The JPS algorithm is actually an improvement to the A pathfinding algorithm, that is, a more optimized strategy is proposed when expanding the search node. Specifically, please refer to Figure 3. The current node a is first explored horizontally and vertically, and no key node is found. Further diagonal exploration is performed, and the nodes obtained by the first exploration are explored horizontally and vertically, and no key node is found. Further diagonal exploration is performed, and when the nodes obtained by the third exploration are explored horizontally and vertically, a key node b is found, which has a forced node c, and the end point e is found. Thus, an obstacle avoidance path is explored to reach the front of the charging pile. If an obstacle appears in the area, the jump point JPS algorithm will explore a new obstacle avoidance path by replanning to reach the front of the charging pile again. When the robot reaches the front of the charging pile, the infrared signal is more reliable, and it can directly return to the pile for charging through the infrared signal.
[0075] It should be noted that a forced node refers to a node x that has obstacles among its eight adjacent nodes and whose parent node p has a lower distance cost from node n to node n than any path from node n to node n that does not pass through node x. In this case, node n is called a forced node of x.
[0076] When the mowing robot and the charging pile are both located in the preset operation map and in different working areas in the preset operation map, step 103 is executed.
[0077] 103. Calculate a movement cost of the mowing robot moving to the charging station in the operation map based on the first position information and the second position information.
[0078] When the mowing robot and the charging pile are both located in a preset operation map and in different working areas in the preset operation map, the multi-area operation scene can be abstracted into a directed node graph. For example, specifically, refer to FIG4 , wherein the nodes represent working areas, the directed line segments represent the movement paths between the areas, and the costs on the directed line segments represent the actual movement distance across the two areas. The farther the distance between the two areas, the greater the movement cost. That is, optionally, in some embodiments, the step of “calculating the movement cost of the mowing robot moving to the charging pile in the operation map based on the first position information and the second position information” can specifically include:
[0079] (21) detecting, based on the first position information and the second position information, whether the mowing robot and the charging pile are located in different working areas on the work map;
[0080] (22) when it is detected that the mowing robot and the charging pile are located in different working areas on the working map, determining the working areas included in the working map;
[0081] (23) Convert the determined working area into regional nodes and construct the movement paths between different regional nodes;
[0082] (24) Calculate the movement cost of the mowing robot moving to the charging pile in the operation map based on the first position information, the regional nodes, and the movement paths between different regional nodes.
[0083] Please continue to refer to Figure 4. Assume that the lawn mower robot is in area A and the charging station is in area E. The goal of the lawn mower robot to cross areas is to find the shortest path from area A to area E, so as to achieve the effect of short recharging time and low energy consumption.
[0084] Optionally, in some embodiments, the step of “calculating the movement cost of the mowing robot to the charging pile in the operation map based on the first location information, the regional nodes, and the movement paths between different regional nodes” may specifically include:
[0085] (31) Identify the path distances corresponding to the movement paths between nodes in different regions;
[0086] (32) determining a moving path corresponding to the lawn mowing robot according to the first position information;
[0087] (33) calculating the moving distance of the mowing robot to the corresponding moving path;
[0088] (34) Based on the second position information, the path distance, and the moving distance, the moving cost of the lawn mowing robot moving to the charging pile in the work map is calculated.
[0089] The cost of movement (cost) = the length of the path connecting the two work areas + the distance from the mowing robot's current work area to the path node. Furthermore, to avoid excessive pursuit of the shortest path and repeated travel of the same path, which can lead to severe grass abrasion and damage to the lawn, the cost of each path can be optionally changed after each movement is completed, introducing the cost of repeatedly traveling the same path. The cost of movement can be calculated as follows:
[0090] Cost = length of the moving path connecting the two working areas + distance of the mowing robot from the current working area to the moving path node + fixed cost of executing the moving path * number of times the moving path is executed.
[0091] It can be understood that the movement cost of the mowing robot to move to the charging pile in the operation map is the sum of all costs.
[0092] To prevent the mowing robot from driving along the same route multiple times, which would cause severe wear and tear on the same lawn, in some embodiments, when the number of times the mowing robot drives along the same route, n, is greater than a preset value, the movement cost is calculated as follows: y(n) = y + y*(1.03) 2n-1
[0093] Wherein, y(n) is the movement cost of driving along the same route for the nth time, y is the movement cost of the lawn mower robot moving to the charging station for the first time, y = the length of the movement path connecting the two working areas + the distance from the lawn mower robot from the current working area to the movement path node + the fixed cost of executing the movement path * the number of times the movement path is executed. Optionally, n is a positive integer greater than or equal to 3.
[0094] Optionally, when the number of times the mowing robot travels along the same route n is greater than a preset value, the movement cost cost is calculated as follows:
[0095] Wherein, y(n) is the movement cost of traveling along the same route for the nth time, y is the movement cost of the mowing robot moving to the charging station for the first time, y = the length of the movement path connecting the two working areas + the distance from the mowing robot from the current working area to the movement path node + the fixed cost of executing the movement path * the number of times the movement path is executed. Optionally, n is a positive integer greater than or equal to 3, D is the time for performing the mowing operation, and D is a positive integer greater than or equal to 3.
[0096] 104. Plan a movement route for the mowing robot to move to the charging station based on the movement cost.
[0097] For example, specifically, the forward search and reverse search methods can be combined to plan the movement route of the lawn mowing robot to the charging pile based on the movement cost. Among them, the idea of forward search is: in the open set, if it is a neighboring node of the current node, the cost will be updated, and if it is not a neighboring node of the current node, the cost will be infinite. The node with the lowest cost in the open set U will be placed in the closed set S, and the nodes that are not selected will still remain in the open set U. Continuous search iteration until the target point is found or the open set is traversed. The idea of negative search is: reverse search from the set obtained by forward search to obtain the shortest path.
[0098] For example, let cost1=1, cost2=2, cost3=3, cost4=4, cost5=5, cost6=6, cost7=7, cost8=8, cost9=9.
[0099] Create a node set S that has been traversed and the shortest path has been found, and then create a node set U that has not been traversed
[0100] Step 1: Because the current position of the mowing robot must be the starting point of the shortest path, put the node A represented by the area where the mowing robot is located into the set S, and update the costs of the adjacent nodes of node A in the set U to obtain S = {A(0)} U = {B(1), C(2), D(5), E(∞)}
[0101] Note: A(0) means the cost from node A to node A is 0, E(∞) means node E is not a neighboring node of node A, so there is no need to traverse node E, so the cost from node A to node E is considered infinite.
[0102] Step 2: In the set U obtained in step 1, select the node with the minimum cost and add it to the set S. Then update the costs of the nodes adjacent to the minimum cost node again, and get S = {A(0), B(1)} U = {C(2), D(5), E(9)}
[0103] Step 3: Repeat step 2 to get S = {A(0), B(1), C(2)} U = {D(5), E(9)}
[0104] Step 4: Repeat step 2 to get S = {A(0), B(1), C(2), D(5)} U = {E(9)}
[0105] Step 4: Repeat step 2. When the target node E is found or the set U is empty, the forward exploration process ends. S = {A(0), B(1), C(2), D(5), E(9)} U = {}
[0106] It should be noted that this example is a special case. When the target node E is found, the set U is empty. Generally, when the set U is empty and the target node E has not been traversed, it means that no feasible path can be found. When the set U is not empty but the target node E is traversed, it means that a feasible path is found in advance.
[0107] (2) The process of performing a reverse search from the set S to obtain the shortest path.
[0108] After the forward search above, we get the set S = {A(0), B(1), C(2), D(5), E(9)}. We start exploring from the target node E and take the node with the minimum cost among the neighboring nodes of the node as the next node to be explored.
[0109] Step 1: Take node E as the first point of the shortest path and traverse the nodes B and D adjacent to node E.
[0110] Step 2: Compare the costs of node B and node D, take node B with a smaller cost as the second point of the shortest path, and traverse the nodes A, C, and D adjacent to node B.
[0111] Step 3: Compare the costs of nodes A, C, and D, and select node A with the smallest cost as the third point of the shortest path. At this time, node A is the starting node of the mowing robot. The reverse traversal is completed, and the reverse shortest path E->B->A is obtained.
[0112] Step 4: Invert the reverse shortest path E->B->A to obtain the forward shortest path A->B->E.
[0113] Optionally, in some embodiments, the step of “planning a movement route for the lawn mowing robot to move to the charging station according to the movement cost” may specifically include:
[0114] (41) creating a first node set corresponding to the shortest path and a second node set that has not been traversed based on the movement cost;
[0115] (42) Selecting a node with the minimum moving cost in the second node set and adding it to the first node set to obtain an updated first node set;
[0116] (43) Reversely explore the nodes in the updated first node set to obtain the movement route of the lawn mowing robot to the charging pile.
[0117] Optionally, in some embodiments, the step of “reversely exploring the nodes in the updated first node set to obtain a movement route of the lawn mowing robot to the charging pile” may specifically include:
[0118] (51) determining a target node in the updated first node set;
[0119] (52) traversing the adjacent nodes of the target node, and determining the adjacent node with the minimum moving cost as the connecting node of the target node;
[0120] (53) determining the connected node as the reference node, and returning to the step of traversing the adjacent nodes adjacent to the target node until the reverse route is output;
[0121] (54) The reverse route is inverted to obtain the moving route of the lawn mowing robot to the charging pile.
[0122] It should be noted that, when the moving path or the starting point of the moving path in the area is blocked during the movement, the cost between the two nodes is set to infinity. After the mowing robot returns to the previous area, it re-performs the above algorithm to find a new path. Because the cost of the blocked moving path is set to infinity, it is equivalent to being disconnected, and the moving path cannot be searched again. The new suboptimal path is the optimal path explored based on the previous blocked area. That is, optionally, the route planning method provided by the present application may further include:
[0123] (61) When a blockage is detected in the moving route, the blocked area is determined as a blocked working area;
[0124] (62) Based on the previous work area of the blocked work area, the moving route of the lawn mowing robot to the charging pile is planned.
[0125] The above completes the route planning process of this application.
[0126] As can be seen from the above, the route planning method provided in the embodiment of the present application can detect whether the mowing robot and the charging pile are located in the preset work map. When it is detected that the mowing robot and the charging pile are located in the preset work map, the first position information of the mowing robot and the second position information of the charging pile are obtained. Then, based on the first position information and the second position information, the movement cost of the mowing robot moving to the charging pile in the work map is calculated. Finally, based on the movement cost, the movement route of the mowing robot moving to the charging pile is planned. The route planning scheme provided in the present application can calculate the movement cost of the mowing robot moving to the charging pile in the work map based on the first position information and the second position information, and use the movement cost for route planning to achieve cross-regional control of the mowing robot for recharging, and there is no need to use the method of searching for piles along the edge and burying lines, thereby improving the efficiency of recharging and returning.
[0127] To facilitate better implementation of the route planning method of the present application embodiment, the present application embodiment also provides a route planning device based on the above-mentioned route planning method. The meanings of the terms are the same as those in the above-mentioned route planning method, and the specific implementation details can be referred to the description in the method embodiment.
[0128] Please refer to FIG5 , which is a schematic diagram of the structure of a route planning device provided in an embodiment of the present application, wherein the route planning device may include:
[0129] The detection module 201 is used to detect whether the charging pile is located in a preset operation map.
[0130] The user can circle at least one working area (mowing area). In this application, all mowing areas are referred to as work maps. The work map can be pre-built. Please refer to the previous embodiment for details and will not be repeated here.
[0131] The acquisition module 202 is configured to acquire first position information of the lawn mowing robot and second position information of the charging pile when it is detected that the charging pile is located in a preset operation map.
[0132] Among them, the lawn mower robot and the charging pile can be located in the same working area in the preset working map, or in different working areas in the preset working map, or not in the preset working map (that is, the area where the charging pile is located is not divided into the working map and / or the lawn mower robot leaves the working area).
[0133] The calculation module 203 is configured to calculate a movement cost of the mowing robot moving to the charging station in the operation map according to the first position information and the second position information.
[0134] When the lawn mower robot and the charging pile are both located in a preset operation map and in different working areas in the preset operation map, the multi-area operation scene can be abstracted into a directed node graph. Please refer to the previous embodiment for details and will not be repeated here.
[0135] Optionally, in some embodiments, referring to FIG6 , the calculation module 203 of the present application may specifically include:
[0136] The detection unit 2031 is configured to detect, based on the first location information and the second location information, whether the mowing robot and the charging pile are located in different working areas on the work map;
[0137] The determining unit 2032 is configured to determine the working areas included in the working map when it is detected that the mowing robot and the charging pile are located in different working areas on the working map;
[0138] A construction unit 2033 is used to convert the determined working area into regional nodes and construct movement paths between different regional nodes;
[0139] The calculation unit 2034 is configured to calculate a movement cost of the mowing robot moving to the charging pile in the operation map according to the first position information, the regional nodes, and the movement paths between different regional nodes.
[0140] Optionally, in some embodiments, the calculation unit 2034 can be specifically used to: identify the path distance corresponding to the moving path between nodes in different areas; determine the moving path corresponding to the lawn mowing robot based on the first position information; calculate the moving distance of the lawn mowing robot to the corresponding moving path; based on the second position information, the path distance and the moving distance, calculate the moving cost of the lawn mowing robot moving to the charging pile in the work map.
[0141] The planning module 204 is configured to plan a movement route for the mowing robot to move to the charging station according to the movement cost.
[0142] Optionally, in some embodiments, referring to FIG. 7 , the planning module 204 of the present application may specifically include:
[0143] A creating unit 2041 is configured to create a first node set corresponding to the shortest route and an untraversed second node set according to the movement cost;
[0144] An adding unit 2042 is configured to select a node with the minimum moving cost from the second node set and add it to the first node set to obtain an updated first node set;
[0145] The exploration unit 2043 is used to perform reverse exploration on the nodes in the updated first node set to obtain the movement route of the mowing robot to the charging station.
[0146] Optionally, in some embodiments, the exploration unit 2043 can be specifically used to: determine the target node in the updated first node set; traverse the adjacent nodes adjacent to the target node, and determine the adjacent node with the smallest moving cost as the connecting node of the target node; determine the connecting node as the reference node, and return to execute the step of traversing the adjacent nodes adjacent to the target node until the reverse route is output; reverse the reverse route to obtain the moving route of the lawn mowing robot to the charging pile.
[0147] The above completes the route planning process of this application.
[0148] As can be seen from the above, the detection module 201 in the route planning device provided by the present application can detect whether the charging pile is located in the preset operation map. When the acquisition module 202 detects that the charging pile is located in the preset operation map, it acquires the first position information of the lawn mower robot and the second position information of the charging pile. Then, the calculation module 203 calculates the movement cost of the lawn mower robot moving to the charging pile in the operation map based on the first position information and the second position information. Finally, the planning module 204 plans the movement route of the lawn mower robot to the charging pile based on the movement cost. The route planning scheme provided by the present application can calculate the movement cost of the lawn mower robot moving to the charging pile in the operation map based on the first position information and the second position information, and use the movement cost for route planning to achieve cross-regional control of the lawn mower robot for recharging, and there is no need to adopt the method of searching for piles along the edge and burying lines, thereby improving the efficiency of recharging and returning.
[0149] In addition, the embodiment of the present application further provides a lawn mowing robot, as shown in FIG8 , which shows a schematic structural diagram of the lawn mowing robot involved in the embodiment of the present application. Specifically:
[0150] The lawn mowing robot may include a control module 501, a travel mechanism 502, a cutting module 503, and a power supply 504.
[0151] Components. Those skilled in the art will understand that the electronic device structure shown in FIG8 does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0152] The control module 501 is the control center of the lawn mower robot. Specifically, the control module 501 may include components such as a central processing unit (CPU), memory, input / output ports, a system bus, timers / counters, a digital-to-analog converter, and an analog-to-digital converter. The CPU executes or processes software programs and / or modules stored in the memory and accesses data stored in the memory to perform various functions of the lawn mower robot and process data. Preferably, the CPU may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system and application programs, and the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the CPU.
[0153] The memory can be used to store software programs and modules. The CPU executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the CPU with access to the memory.
[0154] The traveling mechanism 502 is electrically connected to the control module 501 and is used to respond to the control signal transmitted by the control module 501 to adjust the traveling speed and traveling direction of the lawn mower robot, thereby realizing the self-moving function of the lawn mower robot.
[0155] The cutting module 503 is electrically connected to the control module 501 and is used to respond to the control signal transmitted by the control module to adjust the height and rotation speed of the cutting disc to achieve mowing operations.
[0156] The power supply 504 can be logically connected to the control module 501 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. The power supply 504 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0157] Although not shown, the lawn mowing robot may further include a communication module, a sensor module, a prompt module, etc., which will not be described in detail here.
[0158] The communication module is used to receive and send signals during the information transmission and reception process. It establishes a communication connection with the user equipment, base station or server to realize the signal transmission and reception between the user equipment, base station or server.
[0159] The sensor module is used to collect internal or external environmental information and feed this data back to the control module for decision-making, enabling the robot mower to accurately position itself and intelligently avoid obstacles. Optionally, the sensor may include an ultrasonic sensor, an infrared sensor, a collision sensor, a rain sensor, a lidar sensor, an inertial measurement unit, a wheel speedometer, an image sensor, a position sensor, or other sensors, without limitation.
[0160] The notification module is used to inform the user of the current operating status of the mower robot. In this solution, the notification module includes, but is not limited to, indicator lights and buzzers. For example, the mower robot can use indicator lights to inform the user of the current power status, motor operating status, sensor operating status, etc. For another example, if the mower robot detects a malfunction or theft, it can use a buzzer to provide an alarm.
[0161] Specifically, in this embodiment, the processor in the control module 501 loads the executable files corresponding to one or more application processes into the memory according to the following instructions, and runs the application stored in the memory to implement various functions as follows:
[0162] Detect whether the charging pile is located in a preset operation map; when it is detected that the charging pile is located in the preset operation map, obtain the first position information of the lawn mower robot and the second position information of the charging pile; calculate the movement cost of the lawn mower robot moving to the charging pile in the operation map based on the first position information and the second position information; and plan the movement route of the lawn mower robot to the charging pile based on the movement cost.
[0163] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0164] The embodiment of the present application can detect whether the charging pile is located in a preset operation map. When it is detected that the charging pile is located in the preset operation map, the first position information of the lawn mower robot and the second position information of the charging pile are obtained. Then, based on the first position information and the second position information, the movement cost of the lawn mower robot moving to the charging pile in the operation map is calculated. Finally, based on the movement cost, the movement route of the lawn mower robot moving to the charging pile is planned. The route planning scheme provided by the present application can calculate the movement cost of the lawn mower robot moving to the charging pile in the operation map based on the first position information and the second position information, and use the movement cost for route planning to achieve cross-regional control of the lawn mower robot for recharging, and there is no need to use the method of searching for piles along the edge and burying lines, thereby improving the efficiency of recharging and returning.
[0165] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0166] To this end, an embodiment of the present application provides a storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps of any of the route planning methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:
[0167] Detect whether the lawn mower robot and the charging pile are located in a preset work map; when it is detected that the lawn mower robot and the charging pile are located in the preset work map, obtain the first position information of the lawn mower robot and the second position information of the charging pile; calculate the movement cost of the lawn mower robot moving to the charging pile in the work map based on the first position information and the second position information; and plan the movement route of the lawn mower robot to the charging pile based on the movement cost.
[0168] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0169] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0170] Since the instructions stored in the storage medium can execute the steps in any route planning method provided in the embodiments of the present application, the beneficial effects that can be achieved by any route planning method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0171] The above is a detailed introduction to a route planning method, device, lawn mowing robot and storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A route planning method, applied to a lawn mowing robot, characterized in that: include: Detect whether the charging pile is located in the preset operation map; When it is detected that the charging pile is located in a preset operation map, first position information of the lawn mowing robot and second position information of the charging pile are obtained; Calculating a movement cost of the lawn mowing robot moving to the charging pile in the operation map according to the first position information and the second position information; According to the movement cost, a movement route of the lawn mowing robot to the charging pile is planned.
2. The method according to claim 1, characterized in that: The calculation of the movement cost of the lawn mowing robot moving to the charging pile in the operation map according to the first position information and the second position information includes: According to the first position information and the second position information, detecting whether the lawn mowing robot and the charging pile are located in different working areas on the working map; When it is detected that the lawn mowing robot and the charging pile are located in different working areas on the working map, determining the working areas included in the working map; Convert the determined working area into regional nodes and construct movement paths between different regional nodes; The movement cost of the lawn mowing robot moving to the charging pile in the operation map is calculated according to the first position information, the regional nodes and the movement paths between different regional nodes.
3. The method according to claim 2, characterized in that The calculating, according to the first position information, the second position information, the regional nodes and the moving paths between different regional nodes, the moving cost of the lawn mowing robot moving to the charging pile in the operation map includes: Identify the path distances corresponding to the moving paths between nodes in different regions; Determining a moving path corresponding to the lawn mowing robot according to the first position information; Calculating the moving distance of the lawn mowing robot to the corresponding moving path; Based on the second position information, the path distance and the moving distance, a moving cost of the lawn mowing robot moving to the charging pile in the operation map is calculated.
4. The method according to claim 2, characterized in that: Also includes: When it is detected that the lawn mowing robot and the charging pile are located in the same working area on the work map, determining the same working area as the target area; Obtaining a grid map of the target area; Based on the first position information, the second position information and a preset algorithm, a moving route of the lawn mowing robot to the charging pile is planned in the grid map.
5. The method according to claim 1, characterized in that The step of planning a movement route of the lawn mowing robot to the charging pile according to the movement cost includes: According to the movement cost, a first node set corresponding to the shortest route and an untraversed second node set are created; Selecting a node with the smallest moving cost in the second node set and adding it to the first node set to obtain an updated first node set; Reverse exploration is performed on the nodes in the updated first node set to obtain the mowing robot moving to the charging The movement route of the pile.
6. The method according to claim 5, characterized in that The reverse exploration of the nodes in the updated first node set to obtain a moving route of the lawn mowing robot to the charging pile includes: Determine a target node in the updated first node set; Traversing the adjacent nodes of the target node, and determining the adjacent node with the minimum moving cost as the connecting node of the target node; Determine the connection node as a reference node, and return to the step of traversing adjacent nodes adjacent to the target node until a reverse route is output; The reverse route is inverted to obtain a moving route of the lawn mowing robot to the charging pile.
7. The method according to claim 6, characterized in that Also includes: When a blockage is identified in the moving route, determining the blocked area as a blocked working area; Based on a previous working area of the blocked working area as a reference, a moving route of the lawn mowing robot to the charging pile is planned.
8. A route planning device, applied to a lawn mowing robot, characterized in that: include: A detection module is used to detect whether the charging pile is located in a preset operation map; An acquisition module, configured to acquire first position information of the lawn mowing robot and second position information of the charging pile when detecting that the charging pile is located in a preset operation map; A calculation module, configured to calculate a movement cost of the lawn mowing robot moving to the charging pile in the operation map according to the first position information and the second position information; A planning module is used to plan a moving route for the lawn mowing robot to move to the charging pile according to the moving cost.
9. A lawn mowing robot, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the route planning method according to any one of claims 1 to 7 are implemented.
10. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the route planning method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Robot path planning method and device and robot
CN111399516A
Robot path planning method based on multiple regions, robot and terminal equipment
CN111750862A
Path planning method for mowing robot and mowing robot
CN113625701A
Map way-finding method and device, terminal and storage medium
CN113827973A
Robot path planning method and device, storage medium and electronic equipment
CN115435793A
