Plant protection spraying path planning method and device and unmanned aerial vehicle
By dividing the target plot into multiple areas and optimizing the access sequence using the TSP algorithm, the problem of increasing flights and power consumption when the drone sprays pesticides on the fruit trees is solved, and more efficient spray path planning is achieved.
Patent Information
- Application Number
- CN202411981731.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-15
AI Technical Summary
When existing drones spray pesticides on fruit trees and other plants, the conventional bow-shaped route leads to an increase in the number of flights and power consumption, which makes them inefficient.
By dividing the target plot into multiple areas, determining the geometric center point of each plant, dividing the plants into different areas, using the traveler problem TSP algorithm to determine the access order of the areas and plants, and optimizing the spray flight route of the drone.
The total number of flights and power consumption of the drone is reduced, and the spraying efficiency is improved.
Smart Images

Figure CN119828731A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of path planning, and more specifically, to a method, device and drone for path planning of crop protection spraying. Background Art
[0002] Drones are a widely used type of unmanned aerial vehicle. As the industry continues to mature, drones have made in-depth developments in various fields. Among them, drones can be used in agriculture and forestry to spray pesticides, fertilize, pollinate, and more.
[0003] Compared with the traditional manual plant protection spraying method, the use of drones to spray pesticides has the advantages of high work efficiency and high drug utilization rate, while reducing labor costs. However, when existing drones spray pesticides on fruit trees and other plants, they generally fly in a "bow"-shaped route. However, due to the irregular distribution of fruit trees in the plot and the different shapes of each fruit tree, this conventional spraying method will increase the number of drone flights and the power consumption of drones.
[0004] Based on this, it is necessary to provide a plant protection spraying path planning solution to solve the above problems. Summary of the invention
[0005] The present application provides a method, device and drone for plant protection spraying path planning, which can reduce the total number of flights of the drone and reduce the power consumption of the drone, thereby improving the spraying efficiency of the drone.
[0006] In a first aspect, a method for planning a plant protection spraying path is provided, which can be applied to a drone, and the method includes: dividing a target plot into multiple areas, wherein the target plot includes multiple plants; determining the geometric center point of each plant in the target plot; dividing the multiple plants into different areas according to the geometric center point of each plant; determining a visiting order of the multiple areas using a traveling salesman problem (TSP) algorithm; determining a visiting order of the plants in each area using the TSP algorithm; and determining a spraying flight route of the drone according to the visiting order of the multiple areas and the visiting order of the plants in each area.
[0007] Exemplarily, the method provided in the embodiment of the present application is applicable to the spraying path planning of plants (such as fruit trees) in a flat mode (or a two-dimensional scene). In the embodiment of the present application, the fixed-point spraying problem of fruit trees in a single operation in a flat mode can be abstracted as a traveling salesman problem (TSP), and the shortest spraying operation path of the fruit trees can be calculated using the TSP algorithm.
[0008] For example, the geometric center point of different plants may be determined in different ways. For example, when the outer contour of the plant is a circle, its geometric center point may be the center of the circle; for another example, when the outer contour of the plant is a rectangle, its geometric center point may be the center of the rectangle; for another example, when the outer contour of the plant is an ellipse, its geometric center point may be the center of the ellipse; for another example, when the outer contour of the plant is an irregular shape, its geometric center point may be the centroid of the irregular shape.
[0009] In an embodiment of the present application, for the spraying path planning of plants in a target plot, the target plot can be first segmented, and then the TSP algorithm is used to determine the access order of multiple segments and the access order of plants in each area, and finally the spraying flight route of the UAV is determined based on these two access orders, thereby optimizing the traversal order of plants (such as fruit trees), reducing the total number of flights of the UAV, reducing the power consumption of the UAV, and thus improving the spraying efficiency of the UAV.
[0010] In one possible implementation, determining the spraying flight route of the UAV based on the visiting order of multiple areas and the visiting order of plants in each area includes: connecting the visiting order of multiple areas and the visiting order of plants in each area in sequence to obtain the visiting order of all fruit trees in the entire target plot, and connecting all fruit trees in sequence according to the visiting order to obtain the spraying flight route of the UAV.
[0011] In combination with the first aspect, in certain implementations of the first aspect, dividing the target plot into multiple areas includes: according to obstacles in the target plot, using a preset method to divide the target plot into multiple independent areas, and none of the multiple independent areas contain obstacles. The preset method may include any one of the following: boustrophedon cell decomposition method (also known as boustrophedon regional decomposition method, boustrophedon regional decomposition method, Boustrophedon decomposition method, etc.), trapezoidal partitioning method, Morse decomposition method, etc.
[0012] In an embodiment of the present application, considering that there may be obstacles in the target plot, it is necessary to avoid the obstacles in the target plot when dividing the target plot. For example, the plot can be decomposed according to the boustrophedon region decomposition method, and the decomposed plot is divided into multiple independent regions that do not intersect with each other and do not contain obstacles.
[0013] In combination with the first aspect, in some implementations of the first aspect, before using the TSP algorithm to determine the access order of the multiple regions, the method further includes: using a convex hull algorithm to update boundaries of the multiple regions.
[0014] Considering that the distribution of plants in the target plot may be uneven, such as there are no plants distributed in the upper part of the first area, if the area divided by the boustrophedon regional decomposition method is still used for planning, the actual operation area and the estimated operation area are quite different, which may cause the planned operation path to have a detour. Therefore, in an embodiment of the present application, the convex hull algorithm can be used to update the boundaries of multiple areas. Specifically, the circle can be converted into a regular N-gon (such as a regular hexagon), and then a convex hull is calculated for all regular N-gons in the first area, and the convex hull is updated as the boundary of the first area. When the TSP algorithm is used for spraying path planning later, the spraying path planning is performed with reference to the updated boundary of the first area. In this way, the phenomenon of the drone taking a detour can be avoided, thereby reducing the power consumption of the drone and improving the spraying efficiency of the drone.
[0015] In combination with the first aspect, in certain implementations of the first aspect, before using the TSP algorithm to determine the access order of multiple areas, the method also includes: determining the take-off point of the drone; determining the geometric center point of the area containing the plants; using the TSP algorithm to determine the access order of multiple areas includes: using the TSP algorithm to determine the access order of multiple areas based on the take-off point of the drone and the geometric center point of the area containing the plants.
[0016] In a possible implementation, the method may further include: deleting the area not containing the plant, saving the area containing the plant, and then determining the geometric center point of the area containing the plant. Exemplarily, the geometric center point may be the centroid of the area containing the plant.
[0017] In an embodiment of the present application, when using the TSP algorithm to determine the access order of multiple areas, the location of the take-off point of the drone can be considered. For example, the area closest to the take-off point is the area where the drone starts spraying first. The access starting point is fixed, and the geometric center of the area is abstracted. The geometric center is used instead of the area. The TSP algorithm is used to calculate the access order of each area. A relatively optimal area access order can be obtained, thereby reducing the total number of flights of the drone and reducing the power consumption of the drone.
[0018] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: recording the spraying status of a single plant, the spraying status of the single plant including at least one of the following: spraying not started, spraying completed, sprayed range, or range to be sprayed.
[0019] Exemplarily, the spraying status of a single plant may include spraying not started, spraying completed, or spraying in progress, which can be represented by 0, 1, and 2, respectively, 0: spraying not started, 1: spraying completed, 2: spraying in progress. Among them, for a plant in the state of being sprayed, the sprayed range and / or the range to be sprayed of the plant should also be recorded, for example, the sprayed range is [0, pi], and the range to be sprayed is [pi, 2*pi]; for another example, the plant being sprayed will be updated with the information of the unsprayed part, such as updating the spraying range from [0, 2*pi] to [pi, 2*pi]. When the drone is used for drug spraying again in the future, the range to be sprayed of the plant can be sprayed directly, such as taking the end point of the first spraying as the starting point of the second spraying, and continuing to spray the drug.
[0020] In an embodiment of the present application, when using a drone to spray medicine on plants, the spraying status of each plant can be recorded so that subsequent drones can continue to spray unsprayed plants, thereby avoiding problems such as missed spraying or incomplete spraying, and ensuring that each plant is protected.
[0021] In combination with the first aspect, in certain implementations of the first aspect, when the UAV needs to return to the take-off point, the method also includes: determining an unfinished work area; determining a visit order of the unfinished work area using a TSP algorithm based on the take-off point of the UAV and the unfinished work area; determining a visit order of plants in the unfinished work area using a TSP algorithm based on the spraying status of a single plant; and replanning the UAV's spraying flight route based on the visit order of the unfinished work area and the visit order of plants in the unfinished work area.
[0022] Exemplarily, situations where the drone needs to return to the take-off point include, but are not limited to, the following situations: the drone is low on battery, the drone is loaded with insufficient medicine, the drone malfunctions and is unable to spray medicine, etc.
[0023] In the embodiment of the present application, the drone may run out of power or medicine during the spraying process, and needs to return to the take-off point to refill medicine or recharge. Every time it returns to the take-off point to complete the refilling or recharging, it updates the fruit tree operation information of the current plot (including updating the spraying status of the unfinished operation area and the single plant), re-calls the TSP algorithm to determine the new drone's spraying flight route, and plans the next operation sequence, which can reduce the energy consumption of full-load flying to a certain extent, and further improve the drone's spraying efficiency.
[0024] In combination with the first aspect, in certain implementations of the first aspect, the multiple plants include a first plant, and when spraying the first plant, the method further includes: obtaining the diameter of the first plant, the height of the first plant, and the coordinates of the center point of the first plant; if the diameter of the first plant is less than or equal to the spray width of the drone, the drone performs in-situ spinning spraying at the coordinates of the center point of the first plant; or, if the diameter of the first plant is greater than the spray width of the drone, and the height of the first plant is less than or equal to a preset height, the drone sprays the first plant using a concentric circle spraying method; or, if the diameter of the first plant is greater than the spray width of the drone, and the height of the first plant is greater than a preset height, the drone sprays the first plant using a spiral rising spraying method. The preset height can be set manually.
[0025] In an embodiment of the present application, when spraying a single plant (such as a fruit tree), the corresponding spraying mode can be determined based on the diameter, height, center point coordinates, spray width of the drone, etc. of the single plant to ensure that each plant can be completely and evenly sprayed with medicine, thereby better protecting the plants.
[0026] In one possible implementation, the coverage area of the fruit tree can be abstracted as a circle, and the drone can move to the center of the circle and spin a circle at the center of the fruit tree to complete the spraying of the fruit tree. This spraying mode is suitable for the scene where the coverage area of the fruit tree is less than or equal to the coverage area of the drone spraying (or the diameter of the fruit tree is less than or equal to the spray width of the drone, or the radius of the fruit tree is less than or equal to half the spray width of the drone), and the height difference of the fruit tree is not too large.
[0027] In one possible implementation, the drone can adopt a concentric circle rotating spraying mode. This spraying mode is suitable for scenes where the coverage area of the fruit trees is larger than the coverage area of the drone spraying (that is, the diameter of the fruit trees is larger than the spray width of the drone, or the radius of the fruit trees is larger than half the spray width of the drone), and the height difference of the fruit trees is not too large. It should be understood that when constructing concentric circles, starting from the outermost working circle, a series of concentric working circles with the center of the fruit tree as the center are generated from the outside to the inside with one width of the drone as the interval. Among them, the radius of the outermost working circle is the difference between the radius of the fruit tree and half the spray width, so that when the drone sprays in the outermost circle, it can ensure that the spraying edge just coincides with the edge of the fruit tree.
[0028] In one possible implementation, the drone can adopt a spiral-ascending spraying mode. For example, for fruit trees that are cone-shaped and have a large height, the above two spraying modes are not applicable, which may result in a higher amount of medicine sprayed at the top and a smaller amount of medicine sprayed at the bottom. For such conical fruit trees with a high drop, a spiral-ascending spraying mode can be adopted. The reason for using spiral ascent instead of spiral descent is that the drone has a higher amount of medicine loaded before spraying, and climbing to the top of the tree at the beginning will result in higher power consumption. In the spiral ascent mode, the amount of medicine gradually decreases as the drone climbs, so the total power consumption will be less.
[0029] In a second aspect, a drone is provided, which includes a segmentation module, a processing module and a route planning module, wherein the segmentation module is used to: segment a target plot into multiple areas, wherein the target plot includes multiple plants; the processing module is used to: determine the geometric center point of each plant in the target plot; divide the multiple plants into different areas according to the geometric center point of each plant; determine the visiting order of the multiple areas using a TSP algorithm; determine the visiting order of the plants in each area using the TSP algorithm; the route planning module is used to: determine the spraying flight route of the drone according to the visiting order of the multiple areas and the visiting order of the plants in each area.
[0030] In combination with the second aspect, in certain implementations of the second aspect, the processing module is also used to: determine the take-off point of the drone; determine the geometric center point of the area containing the plants; and determine the order of visiting the multiple areas using the TSP algorithm based on the take-off point of the drone and the geometric center point of the area containing the plants.
[0031] In combination with the second aspect, in certain implementations of the second aspect, the drone also includes a storage module, which is used to record the spraying status of a single plant, and the spraying status of the single plant includes any of the following: spraying not started, spraying completed, sprayed range, or range to be sprayed.
[0032] In combination with the second aspect, in certain implementations of the second aspect, the processing module is also used to: determine an unfinished work area; determine a visit order of the unfinished work area using a TSP algorithm based on the take-off point of the UAV and the unfinished work area; determine a visit order of the plants in the unfinished work area using the TSP algorithm based on the spraying status of the single plant; the route planning module is also used to: re-plan the spraying flight route of the UAV according to the visit order of the unfinished work area and the visit order of the plants in the unfinished work area.
[0033] In combination with the second aspect, in certain implementations of the second aspect, the segmentation module is also used to: according to the obstacles in the target plot, use a preset method to segment the target plot into multiple independent areas, and none of the multiple independent areas contains the obstacles. The preset method includes any one of the following: boustrophedon regional decomposition method, trapezoidal division method, and Morse decomposition method.
[0034] In combination with the second aspect, in some implementations of the second aspect, the processing module is further used to: update the boundaries of the multiple regions using a convex hull algorithm.
[0035] In combination with the second aspect, in certain implementations of the second aspect, the drone also includes an acquisition module and a control module, and the multiple plants include a first plant. When spraying the first plant, the acquisition module is used to: acquire the diameter of the first plant, the height of the first plant and the center point coordinates of the first plant; the control module is used to: if the diameter of the first plant is less than or equal to the spray width of the drone, control the drone to perform in-situ spinning spraying at the center point coordinates of the first plant; or, if the diameter of the first plant is greater than the spray width of the drone and the height of the first plant is less than or equal to the preset height, control the drone to spray the first plant using a concentric circle spraying method; or, if the diameter of the first plant is greater than the spray width of the drone and the height of the first plant is greater than the preset height, control the drone to spray the first plant using a spiral rising spraying method.
[0036] In a third aspect, a device for planning a plant protection spraying path is provided, the device comprising a segmentation module, a processing module and a route planning module, wherein the segmentation module is used to: segment a target plot into multiple areas, wherein the target plot includes multiple plants; the processing module is used to: determine the geometric center point of each plant in the target plot; divide the multiple plants into different areas according to the geometric center point of each plant; determine the visiting order of the multiple areas using a TSP algorithm; determine the visiting order of the plants in each area using the TSP algorithm; the route planning module is used to: determine the spraying flight route of the UAV according to the visiting order of the multiple areas and the visiting order of the plants in each area.
[0037] In combination with the third aspect, in certain implementations of the third aspect, the processing module is also used to: determine the take-off point of the drone; determine the geometric center point of the area containing the plants; and determine the order of visiting the multiple areas using the TSP algorithm based on the take-off point of the drone and the geometric center point of the area containing the plants.
[0038] In combination with the third aspect, in certain implementations of the third aspect, the drone also includes a storage module, which is used to record the spraying status of a single plant, and the spraying status of the single plant includes any of the following: spraying not started, spraying completed, sprayed range, or range to be sprayed.
[0039] In combination with the third aspect, in certain implementations of the third aspect, the processing module is also used to: determine the unfinished work area; determine the visit order of the unfinished work area using the TSP algorithm according to the take-off point of the UAV and the unfinished work area; determine the visit order of the plants in the unfinished work area using the TSP algorithm according to the spraying status of the single plant; the route planning module is also used to: re-plan the spraying flight route of the UAV according to the visit order of the unfinished work area and the visit order of the plants in the unfinished work area.
[0040] In combination with the third aspect, in certain implementations of the third aspect, the segmentation module is also used to: according to the obstacles in the target plot, use a preset method to segment the target plot into multiple independent areas, and the multiple independent areas do not contain the obstacles. The preset method includes any one of the following: boustrophedon area decomposition method, trapezoidal division method, and Morse decomposition method.
[0041] In combination with the third aspect, in some implementations of the third aspect, the processing module is further used to: update the boundaries of the multiple regions using a convex hull algorithm.
[0042] In combination with the third aspect, in certain implementations of the third aspect, the device also includes an acquisition module and a control module, and the multiple plants include a first plant. When spraying the first plant, the acquisition module is used to: acquire the diameter of the first plant, the height of the first plant and the center point coordinates of the first plant; the control module is used to: if the diameter of the first plant is less than or equal to the spray width of the UAV, control the UAV to perform in-situ spinning spraying at the center point coordinates of the first plant; or, if the diameter of the first plant is greater than the spray width of the UAV and the height of the first plant is less than or equal to the preset height, control the UAV to spray the first plant in a concentric circle spraying manner; or, if the diameter of the first plant is greater than the spray width of the UAV and the height of the first plant is greater than the preset height, control the UAV to spray the first plant in a spiral rising spraying manner.
[0043] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a computer, the computer implements the method in the first aspect and any possible implementation thereof.
[0044] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method in the first aspect and any possible implementation thereof.
[0045] In a sixth aspect, a chip is provided, comprising a processor for reading instructions stored in a memory, wherein when the processor executes the instructions, the chip implements the method in the first aspect and any possible implementation thereof.
[0046] It should be noted that the beneficial effects of the second to sixth aspects mentioned above can refer to the beneficial effects of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a schematic flow chart of a method for crop protection spraying path planning provided in an embodiment of the present application.
[0048] Figure 2 It is a schematic diagram of the result of segmentation of a target plot provided in an embodiment of the present application.
[0049] Figure 3 It is a schematic diagram of the spraying flight routes of drones in different areas provided in an embodiment of the present application.
[0050] Figure 4 It is a schematic diagram of the result of updating the region boundary based on the convex hull algorithm provided in an embodiment of the present application.
[0051] Figure 5 It is a schematic diagram of the results of plant protection spraying path planning for plants in a partial area provided in an embodiment of the present application.
[0052] Figure 6 This is a schematic diagram of a drone provided in an embodiment of the present application spraying a single plant multiple times.
[0053] Figure 7 It is a schematic flow chart of another method for crop protection spraying path planning provided in an embodiment of the present application.
[0054] Figure 8 It is a schematic diagram of a spraying flight route of a UAV provided in an embodiment of the present application.
[0055] Fig. 9 This is a schematic diagram of a spraying path of a single plant by a drone provided in an embodiment of the present application.
[0056] Fig.10 This is a schematic diagram of another spraying path of a single plant by a drone provided in an embodiment of the present application.
[0057] Fig.11 This is a schematic diagram of another spraying path of a single plant by a drone provided in an embodiment of the present application.
[0058] Fig.12 It is a schematic structural block diagram of a device for crop protection spraying path planning provided in an embodiment of the present application.
[0059] Fig.13 It is a schematic structural block diagram of a drone provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0061] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated with each other are in an "or" relationship. In addition, in the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more, and "at least one" means one or more. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" can explicitly or implicitly include one or more of the features.
[0062] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include, for example, "one or more" such expressions, unless there is a clear contrary indication in the context. The reference "one embodiment" or "some embodiments" described in this specification means that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Thus, the statements "one embodiment", "some embodiments", "another embodiment", "some other embodiments" etc. that appear in the differences in this specification are not necessarily all referenced to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0063] In the flatland scenario, the distribution of plants (such as fruit trees) in the plot is irregular, and each tree has a different shape and is high. Manual spraying is time-consuming, labor-intensive, inefficient, and has a high economic cost. Considering the use of drones to automatically spray pesticides, it can significantly reduce the operation time and improve the spraying efficiency, and the economic cost is low. Considering the limitations of the drone's load and power, optimizing the traversal order of fruit trees can effectively reduce the drone's power consumption and reduce the total number of flights.
[0064] Therefore, a method, device and drone for plant protection spraying path planning are provided in an embodiment of the present application. The method provided in the embodiment of the present application is suitable for spraying path planning of plants (such as fruit trees) in flat ground mode, which can reduce the total flight times and power consumption of the drone, and further improve the work efficiency of the drone.
[0065] Figure 1 1 is a schematic flow chart of a method for crop protection spraying path planning provided in an embodiment of the present application. The method 100 can be applied in a drone, and the method 100 includes the following steps:
[0066] S110, dividing the target plot into multiple areas, wherein the target plot includes multiple plants.
[0067] Among them, the target plot is the plot where the user needs to use the drone for plant protection. The altitude difference of the target plot is within a certain range and can be considered as a flat land mode. The plant can include a growing plant body including roots, stems, leaves, etc., for example, it can include various trees (fruit trees, tea trees, etc.) and various crops (wheat, rice, etc.). In the following embodiments, the scheme of this application is mainly introduced with the plant being a fruit tree.
[0068] Considering that there may be obstacles in the target plot, when the target plot is segmented, it is necessary to avoid the obstacles in the target plot. In this way, when the drone is operating in the target plot, it is not necessary to consider avoiding static obstacles. It is only necessary to perform obstacle avoidance planning when operating across the area, which greatly saves planning time. In some embodiments, segmenting the target plot into multiple areas may include: according to the obstacles in the target plot, using a preset method to segment the target plot into multiple independent areas, and none of the multiple independent areas contain obstacles. Among them, the preset method may include any of the following: ox-plowed regional decomposition method (or boustrophedon cell decomposition method, boustrophedon regional decomposition method, Bouchard decomposition method, etc.), trapezoidal partitioning method, Morse decomposition method, etc. For example, the target plot can be segmented according to the boustrophedon regional decomposition method, and the segmented plot is divided into multiple independent areas, and the multiple independent areas do not intersect each other and do not contain obstacles.
[0069] For example, Figure 2 is a schematic diagram of the result of segmenting a target plot provided in an embodiment of the present application. Figure 2 As shown in Figure 2, when segmenting the target plot, obstacles within the target plot (such as Figure 2 The target plot is divided into 10 areas, which are marked as area 1, area 2, area 3, area 4, area 5, area 6, area 7, area 8, area 9, and area 10. The target plot may include multiple fruit trees (such as Figure 2 ).
[0070] In some embodiments, before executing S110, the method may further include: obtaining map image information corresponding to the target plot. For example, the map image information corresponding to the target plot may be collected by a drone. The map image information may include the target plot, plants in the target plot, etc., and the target plot information (such as the coordinate information of the target plot), plant information (such as the coordinate information of the plant), etc. may be obtained based on the map image information.
[0071] S120, determining the geometric center point of each plant in the target plot.
[0072] For example, the geometric center points of different plants may be determined in different ways.
[0073] For example, when the outer contour of the plant is a circle, its geometric center point can be the center of the circle; for another example, when the outer contour of the plant is a rectangle, its geometric center point can be the center of the rectangle; for another example, when the outer contour of the plant is an ellipse, its geometric center point can be the center of the ellipse; for another example, when the outer contour of the plant is an irregular shape, its geometric center point can be the centroid of the irregular shape.
[0074] Taking into account that there is no need to consider the height information (z) of the plant in the flat ground mode, and only the plane coordinate information (x, y) of the plant is considered, in an embodiment of the present application, the plant can be abstracted as a circle of different sizes, and the geometric center point of the plant is the center of the circle, that is, the center position of the circle can be used as the actual position of the plant.
[0075] S130, dividing the multiple plants into different areas according to the geometric center point of each plant.
[0076] In this step, the plants can be divided into different regions (cells) by combining the multiple regions obtained after segmentation in S110 and the geometric center point of each plant obtained in S120. Furthermore, the regions that do not contain plants (such as Figure 2 9), only the region containing plants (such as Figure 2 When the access order of multiple regions is determined later, there is no need to sort region 9, and only other regions containing plants are sorted.
[0077] For example, for a plant that spans two regions, it can be determined in which region the geometric center point of the plant is located, and the plant can be divided into corresponding regions according to the geometric center point of the plant. For example, if a plant spans region 1 and region 2, and the geometric center point of the plant is located in region 2, then the plant can be divided into region 2.
[0078] S140, using the traveling salesman problem (TSP) algorithm to determine the order of visiting multiple areas.
[0079] For example, in the embodiment of the present application, the fixed-point spraying problem of fruit trees in a single operation in the flat mode can be abstracted as a traveling salesman problem (TSP), and the shortest spraying path of the fruit trees can be calculated using the TSP algorithm. It should be understood that in the embodiment of the present application, the TSP algorithm can be used to calculate the shortest spraying paths of multiple areas first, and then the TSP algorithm can be used to calculate the shortest spraying path of the fruit trees in each area.
[0080] When using the TSP algorithm to calculate the shortest spraying path for multiple areas, assuming that the total number of multiple areas is N, an energy consumption matrix (N×N symmetric triangular matrix) is constructed. The energy consumption matrix Eij The formula can be:
[0081]
[0082] Among them, E ij It can be expressed as the Euclidean distance from region i to region j, E ij =E ji , when i=j, E ij =∞.
[0083] In a two-dimensional scenario, the geometric center of each area can be used to simply represent the area, and the Euclidean distance between the geometric centers is used as the cost value from area i to area j. Calling the TSP algorithm can obtain a relatively small cost value, thereby saving the power consumption of the drone.
[0084] In some embodiments, when the TSP algorithm is used to sort the access order of multiple regions, the serial numbers of the regions that do not contain plants can be deleted, and the regions that contain plants can be sorted. Figure 2 As shown, when determining the access order of multiple areas, area 1, area 2, area 3, area 4, area 5, area 6, area 7, area 8 and area 10 can be sorted without considering area 9.
[0085] In some embodiments, before using the TSP algorithm to determine the order of visiting multiple areas, the method further includes: determining a take-off point of the drone; and determining a geometric center point of the area containing the plants. Exemplarily, the geometric center point may be the centroid of the area containing the plants. For example, Figure 3 As shown, Figure 3 The black dots in the middle are the geometric center points of different areas. Figure 3 The white dot in the figure is the take-off point of the drone.
[0086] In some examples, using the TSP algorithm to determine the order of accessing multiple areas may specifically include: using the TSP algorithm to determine the order of accessing multiple areas based on the take-off point of the drone and the geometric center point of the area containing the plants. Specifically, the energy consumption matrix E can be constructed based on the plane coordinates of the take-off point and the plane coordinates of the geometric center point of the area containing the plants. ij , based on the energy consumption matrix E ij The TSP algorithm can be used to solve the access order of multiple regions. Figure 3 As shown, the Euclidean distances between the geometric center point of area 1 and the geometric center points of other areas can be calculated, and then area 2 with the shortest distance to area 1 is selected as the next spraying area.
[0087] For example, Figure 3Schematic diagram of the spraying flight routes of drones in different areas provided in an embodiment of the present application, such as Figure 3 As shown in the direction of the dotted arrows in the figure, the access order of multiple areas can be {1, 2, 4, 3, 6, 7, 10, 8, 5}, that is, when the drone sprays medicine in multiple areas, it can spray area 1 first, and then spray area 2, area 4, area 3, area 6, area 7, area 10, area 8, and area 5 in sequence.
[0088] In an embodiment of the present application, when using the TSP algorithm to determine the access order of multiple areas, the location of the take-off point of the drone can be considered. For example, the area closest to the take-off point (such as area 1) is the area where the drone starts spraying first. The access starting point is fixed, and the geometric center of the area is abstracted. The geometric center is used instead of the area. The TSP algorithm is used to calculate the access order of each area. A relatively optimal area access order can be obtained, thereby reducing the total number of flights of the drone and reducing the power consumption of the drone.
[0089] In some embodiments, before determining the access order of the multiple regions using the TSP algorithm, the method may further include: updating the boundaries of the multiple regions using a convex hull algorithm.
[0090] For example, Figure 4 As shown, considering that the distribution of plants in the target plot may be uneven, there are no plants distributed in the upper part of the first area (such as area 4). If the area divided by the boustrophedon regional decomposition method is still used for planning, the actual operation area and the estimated operation area are quite different, which may cause the planned operation path to have a detour. Therefore, the convex hull algorithm can be used to update the boundaries of multiple areas (including area 4), convert the circle into a regular N-gon (such as a regular hexagon), and then calculate a convex hull for all regular N-gons in the first area, and update the convex hull as the boundary of the first area. When the TSP algorithm is used for spraying path planning later, the updated boundary of the first area is used as a reference for spraying path planning. In this way, the phenomenon of drones taking detours can be avoided, thereby reducing the power consumption of drones and improving the spraying efficiency of drones.
[0091] S150, using the TSP algorithm to determine the order of visiting plants in each area.
[0092] It should be understood that after the multiple regions are sorted in S140, the access sequence of the plants in each region can still be solved using the TSP algorithm.
[0093] When using the TSP algorithm to calculate the shortest spraying path for fruit trees in each area, assuming that the total number of fruit trees is M, an energy consumption matrix (M×M symmetric triangular matrix) can be constructed based on the TSP algorithm. The energy consumption matrix E mn The formula can be:
[0094]
[0095] Among them, E mn It can be expressed as the Euclidean distance from fruit tree m to fruit tree n, E mn =E nm , when m=n, E mn =∞.
[0096] In a two-dimensional scenario, the geometric center of each fruit tree can be used to simply represent the area, and the Euclidean distance between the geometric centers can be used as the cost value from fruit tree m to fruit tree n. Calling the TSP algorithm can obtain a relatively small cost value, thereby saving the power consumption of the drone.
[0097] In some examples, based on S120, the plane coordinates of the geometric center point of each plant can be obtained, and the above energy consumption matrix E can be constructed according to the plane coordinates of the geometric center point of the plant in each area. mn , based on the energy consumption matrix E mn The TSP algorithm can be used to solve the order of visiting plants in each area. For example, Figure 5 is a schematic diagram of a spraying flight route of a drone provided in an embodiment of the present application, such as Figure 5 As shown, you can follow Figure 5 The plants in area 1 and area 2 are operated in turn in the direction of the dotted arrows.
[0098] S160, determining a spraying flight route of the drone according to a visiting sequence of the multiple areas and a visiting sequence of the plants in each area.
[0099] According to the above S140 and S150, the access order of multiple areas and the access order of plants in each area can be obtained. Exemplarily, the access order of all fruit trees in the entire target plot can be obtained by sequentially connecting the access order of multiple areas and the access order of plants in each area. The spraying flight route of the drone can be obtained by sequentially connecting all fruit trees according to the access order. Furthermore, the drone can spray drugs on plants (such as fruit trees) according to the spraying flight route to perform corresponding protection.
[0100] It should be noted that when the drone sprays each plant, the spraying status of the single plant can be recorded, and the spraying status of the single plant includes at least one of the following: spraying not started, spraying completed, sprayed range or range to be sprayed.
[0101] Exemplarily, the spraying status of a single plant may include spraying not started, spraying completed or spraying in progress, which can be represented by 0, 1, and 2 respectively, 0: spraying not started, 1: spraying completed, 2: spraying in progress. Among them, for the plant in the state of being sprayed, the sprayed range and / or the range to be sprayed of the plant should also be recorded. For example, the sprayed range is [0, pi], and the range to be sprayed is [pi, 2*pi]; for another example, the plant being sprayed will be updated with the information of the unsprayed part, such as updating the spraying range from [0, 2*pi] to [pi, 2*pi]. When the drone is used for drug spraying again in the future, the range to be sprayed of the plant can be sprayed directly, such as taking the end point of the first spraying as the starting point of the second spraying, and continuing to spray the drug, thereby avoiding problems such as missed spraying or incomplete spraying, and ensuring that each plant is protected.
[0102] For example, when a drone is spraying pesticides on a circular fruit tree, due to various reasons such as insufficient pesticide or insufficient drone battery, only a part of the tree may be sprayed. Therefore, a fruit tree may need to be sprayed multiple times (such as three times), and the unsprayed area can be recorded each time it is sprayed. Figure 6 is a schematic diagram of a drone provided in an embodiment of the present application spraying a single plant multiple times, such as Figure 6 As shown, the angle range of the first spraying of the drone is θ1, and the end point of the first spraying is the starting point of the second spraying; the angle range of the second spraying of the drone is θ2, and the end point of the second spraying is the starting point of the third spraying; the angle range of the third spraying of the drone is θ3, and the end point of the third spraying is the starting point of the first spraying. The fruit trees that have not been sprayed can be fully covered by multiple sprayings, so that the full range of spraying of the fruit trees can be achieved.
[0103] In an embodiment of the present application, for the spraying path planning of plants in a target plot, the target plot can be first segmented, and then the TSP algorithm is used to determine the access order of multiple segments and the access order of plants in each area, and finally the spraying flight route of the UAV is determined based on these two access orders, thereby optimizing the traversal order of plants (such as fruit trees), reducing the total number of flights of the UAV, reducing the power consumption of the UAV, and thus improving the spraying efficiency of the UAV.
[0104] It should be understood that the above method 100 can be used to plan the spraying path of the drone for plant protection. However, in some cases, such as insufficient power of the drone, insufficient amount of medicine loaded on the drone, failure of the drone resulting in failure to spray medicine, etc., the drone needs to return to the take-off point for refilling, charging or repair, and thus cannot complete the full range spraying of the target plot according to the route planned by the method 100. In this case, it is necessary to update the spraying information of the plants in the target plot, re-plan the spraying route, and continue to operate in the unsprayed area, which can reduce the energy consumption of full-load empty flight to a certain extent.
[0105] Figure 7 200 is a schematic flow chart of another method for crop protection spraying path planning provided in an embodiment of the present application. The method 200 mainly involves a situation where the drone needs to return to the take-off point, and the method 200 includes the following steps:
[0106] S210, determining the unfinished operation area, the spraying status of a single plant, and the take-off point of the UAV.
[0107] For example, the unfinished operation area can be determined based on the spraying status of a single plant recorded by the drone, as well as the spraying status of a single plant and the take-off point of the drone, and a new flight route can be replanned. Figure 8 is a schematic diagram of another spraying flight route of a drone provided in an embodiment of the present application, such as Figure 8 As shown, area 1 is the area where spraying has been completed, and other areas are unfinished operation areas or unfinished spraying areas, and the flight routes for these areas need to be replanned.
[0108] S220, according to the take-off point of the UAV and the unfinished operation area, a TSP algorithm is used to determine the visit order of the unfinished operation area.
[0109] In some embodiments, this step may specifically be: according to the take-off point of the drone and the geometric center point of the unfinished operation area, the TSP algorithm is used to determine the access order of the unfinished operation area. For example, the energy consumption matrix E can be constructed according to the plane coordinates of the take-off point and the plane coordinates of the geometric center point of the unfinished operation area. ij , based on the above energy consumption matrix E ij The TSP algorithm can be called to obtain the access order of multiple areas.
[0110] For example, Figure 8 As shown ( Figure 8The direction of the dotted arrow in the figure is the regional flight direction of the drone. Area 1 has been sprayed, and the coordinate information of the geometric center point of area 1 can be deleted and does not participate in route planning. Other areas are unfinished spraying areas and need to be replanned. The access sequence of the unfinished operation area obtained by the above TSP algorithm can be {3, 4, 2, 5, 8, 10, 7, 6}, that is, when the drone sprays the unfinished operation area, it can spray area 3 first, and then spray area 4, area 2, area 5, area 8, area 10, area 7, and area 6 in turn.
[0111] For other contents of this step, please refer to the relevant description in S140 and will not be repeated here.
[0112] S230: Determine the order of visiting plants in the unfinished operation area by using the TSP algorithm according to the spraying status of each plant.
[0113] Exemplarily, in this step, the energy consumption matrix E can be constructed based on the plane coordinates of the geometric center points of the plants that have not been sprayed or not fully sprayed in the unfinished operation area. mn , based on the above energy consumption matrix E mn The TSP algorithm can be used to solve the order of visiting plants in the unfinished operation area. Figure 8 As shown, you can follow Figure 8 The plants in area 3 are operated in the direction of the dotted arrow.
[0114] For other contents of this step, please refer to the relevant description in S150 and will not be repeated here.
[0115] S240: replanning the spraying flight route of the UAV according to the visiting sequence of the unfinished operation areas and the visiting sequence of the plants in the unfinished operation areas.
[0116] According to the above S220 and S230, the access order of the unfinished operation area and the access order of the plants in the unfinished operation area can be obtained. Exemplarily, the access order of the unfinished operation area and the access order of the plants in the unfinished operation area can be connected in sequence to obtain the access order of the unfinished sprayed fruit trees in the entire target plot, and all the unfinished sprayed fruit trees can be connected in sequence according to the access order to obtain the new UAV spraying flight route. Furthermore, the UAV can spray the plants (such as fruit trees) with drugs according to the spraying flight route and perform corresponding protection.
[0117] For other contents of this step, please refer to the relevant description in S160 and will not be repeated here.
[0118] In the embodiment of the present application, the drone may run out of power or medicine during the spraying process, and needs to return to the take-off point to refill medicine or recharge. Every time it returns to the take-off point to complete the refilling or recharging, it updates the fruit tree operation information of the current plot (including updating the spraying status of the unfinished operation area and the single plant), re-calls the TSP algorithm to determine the new drone's spraying flight route, and plans the next operation sequence, which can reduce the energy consumption of full-load flying to a certain extent, and further improve the drone's spraying efficiency.
[0119] When spraying a single plant (such as a fruit tree), the corresponding spraying mode can be determined based on relevant parameters such as the diameter of the fruit tree (or the radius of the fruit tree, the coverage area of the fruit tree), the height of the fruit tree, the coordinates of the center point of the fruit tree, the spray width of the drone, etc., to ensure that each plant can be sprayed with the medicine completely and evenly, thereby better protecting the plants.
[0120] In some embodiments, if the diameter of the first plant (such as a fruit tree) is less than or equal to the spray width of the drone, the drone performs in-situ spinning spraying at the center point coordinates of the first plant.
[0121] For example, Fig. 9 is a schematic diagram of a spraying path of a single plant by a drone provided in an embodiment of the present application, such as Fig. 9 As shown, the coverage area of the fruit tree can be abstracted as a circle, and the drone can move to the center of the circle and rotate at the center of the fruit tree to complete the spraying of the fruit tree. This spraying mode is suitable for the scene where the coverage area of the fruit tree is less than or equal to the coverage area of the drone spraying (or the diameter R1 of the fruit tree is less than or equal to the spray width of the drone, or the radius of the fruit tree is less than or equal to half the spray width of the drone), and the height difference of the fruit tree is not too large.
[0122] In some embodiments, if the diameter of the first plant (such as a fruit tree) is larger than the spray width of the drone, and the height of the first plant is less than or equal to a preset height, the drone can spray the first plant using a concentric circle spraying method, wherein the preset height can be set manually.
[0123] Exemplarily, the drone can adopt a concentric circle rotating spraying mode. This spraying mode is suitable for scenes where the coverage area of the fruit trees is larger than the coverage area of the drone spraying (that is, the diameter of the fruit trees is larger than the spray width of the drone, or the radius of the fruit trees is larger than half the spray width of the drone), and the height difference of the fruit trees is not too large. It should be understood that when constructing concentric circles, starting from the outermost working circle, a series of concentric working circles with the center of the fruit tree as the center are generated from the outside to the inside with a width d of the drone as the interval. Among them, the radius of the outermost working circle is the difference between the radius of the fruit tree and half the spray width, so that when the drone sprays in the outermost circle, it can ensure that the spraying edge just coincides with the edge of the fruit tree.
[0124] It should be noted that when constructing recursive circles with a width interval inward, the drone operation is double-spraying. When spraying on the i-th circle, half the width is sprayed on both sides. Therefore, when operating the i-1th circle inward, only by shrinking 1 width inward can the spraying range be guaranteed not to overlap. When the radius of the innermost circle is less than 1 / 2 of the width, open the single-side nozzle to avoid re-spraying, otherwise it is double-spraying under normal circumstances. In other words, if the radius of the innermost circle is less than 1 / 2 of the width, opening the double-sided spraying will cause re-spraying of the central area; for the spraying of the innermost circle, the drone can move to the center of the fruit tree and open the outward nozzle for spraying. According to the ratio N of the area of the inner working circle to the spraying area of the drone, select N nozzles to open for fixed-point spraying to complete the leak detection and filling of the inner circle. The number N is not greater than the total number of nozzles of the drone.
[0125] For example, Fig.10 As shown in (a), Fig.10 (a) in the figure shows the spraying path of a single fruit tree by a drone. It should be understood that the fruit tree coverage area can be abstracted as a circle. When the diameter R2 of the fruit tree is larger than the spray width of the drone, the outermost working circle radius can be the radius of the fruit tree minus half the width (i.e. R2 / 2-d / 2) from the outside to the inside. The remaining working circle radius is based on the outermost planned working circle radius and decreases at intervals of a width d. When the drone sprays the fruit tree, it can start spraying from the outermost first circle working position. When spraying, the drone turns on the two-way nozzle so that the inside and outside of the first circle working position are sprayed with drugs; after spraying a circle at the first circle working position, it runs to the second circle working position (i.e. the center of the fruit tree) for spraying. Considering that only the outside of the second circle working position is not sprayed with drugs, when spraying drugs at the second circle working position (i.e. the center of the fruit tree), the drone can turn on the one-way nozzle (half the width d / 2) to spray the outside of the second circle working position. As shown Fig.10 As shown in (b), Fig.10 (b) in the figure shows the spraying coverage of a single fruit tree by the UAV. When the UAV is spraying at the first circle operating position, the nozzles on both sides are turned on for spraying, and the obtained operating area is the first circle operating spraying range of the UAV; when the UAV is spraying at the second circle operating position (i.e. the center position of the fruit tree), the outer nozzles are turned on for spraying, and the obtained operating area is the second circle operating spraying range of the UAV.
[0126] In some embodiments, if the diameter of the first plant (such as a fruit tree) is larger than the spray width of the drone (or the coverage area of the fruit tree is larger than the spray coverage area of the drone, or the radius of the fruit tree is larger than half the spray width of the drone), and the height of the first plant is greater than a preset height, the drone can use a spiral rising spraying method to spray the first plant. The preset height can be set manually.
[0127] For example, Fig.11 As shown, Fig.11 The top view and front view of the fruit tree are shown. Fig.11 As can be seen from the right picture, the fruit tree is cone-shaped. For cone-shaped fruit trees, due to the large height of the fruit tree, the above two spraying modes are not applicable, which may result in a higher amount of spray at the top and less at the bottom. For such high-drop cone fruit trees, a spiral spraying mode can be used. Among them, the planned drone route can be referred to Fig.11 The left picture shows a series of concentric circles, where the radius of the outermost circle is half a width away from the edge of the fruit tree, and the adjacent concentric circles are separated by a width d. The reason for using spiral ascent instead of spiral descent is that the drone has a higher load of medicine before spraying, and climbing to the top of the tree at the beginning will result in higher power consumption. In the spiral ascent mode, the amount of medicine gradually decreases as the drone climbs, so the total power consumption will be less.
[0128] Combination of the above Figures 1 to 11 The method embodiment of the present application is described in detail. Fig.12 and Fig.13 The device embodiment of the present application is described. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.
[0129] Fig.12 This is a schematic structural block diagram of a device for crop protection spraying path planning provided in an embodiment of the present application. The device may have the functions of the drone in the above method embodiment, and may be used to execute the steps performed by the drone in the above method embodiment. The function may be implemented by hardware, or by software or hardware executing corresponding software implementation. The hardware or software includes one or more modules corresponding to the above functions.
[0130] like Fig.12 As shown, the device 500 for planning the plant protection spraying path may include a segmentation module 510, a processing module 520 and a route planning module 530, wherein the segmentation module 510 is used to: segment the target plot into multiple areas, and the target plot includes multiple plants; the processing module 520 is used to: determine the geometric center point of each plant in the target plot; divide the plants into different areas according to the geometric center point of each plant; determine the visiting order of multiple areas by using the TSP algorithm; determine the visiting order of the plants in each area by using the TSP algorithm; the route planning module 530 is used to: determine the spraying flight route of the drone according to the visiting order of the multiple areas and the visiting order of the plants in each area.
[0131] In some embodiments, the processing module 520 is also used to: determine the take-off point of the drone; determine the geometric center point of the area containing the plants; and determine the access order of multiple areas using the TSP algorithm based on the take-off point of the drone and the geometric center point of the area containing the plants.
[0132] In some embodiments, the device 500 for planning plant protection spraying paths may further include a storage module for recording the spraying status of a single plant. The spraying status of a single plant includes any of the following: spraying not started, spraying completed, sprayed range, or range to be sprayed.
[0133] In some embodiments, the processing module 520 is also used to: determine the unfinished work area; determine the visit order of the unfinished work area using the TSP algorithm based on the take-off point of the drone and the unfinished work area; determine the visit order of plants in the unfinished work area using the TSP algorithm based on the spraying status of a single plant; the route planning module 530 is also used to: re-plan the spraying flight route of the drone based on the visit order of the unfinished work area and the visit order of the plants in the unfinished work area.
[0134] In some embodiments, the segmentation module 510 is also used to: divide the target plot into multiple independent areas using a preset method according to the obstacles in the target plot, and the multiple independent areas do not contain obstacles. The preset method includes any one of the following: boustrophedon area decomposition method, trapezoidal division method, and Morse decomposition method.
[0135] In some embodiments, the processing module 520 is further configured to: update boundaries of the plurality of regions using a convex hull algorithm.
[0136] In some embodiments, the device 500 for planning a plant protection spraying path may further include an acquisition module and a control module. The multiple plants include a first plant. When spraying the first plant, the acquisition module is used to: acquire the diameter of the first plant, the height of the first plant and the coordinates of the center point of the first plant; the control module is used to: if the diameter of the first plant is less than or equal to the spray width of the drone, then control the drone to perform in-situ spinning spraying at the coordinates of the center point of the first plant; or, if the diameter of the first plant is greater than the spray width of the drone, and the height of the first plant is less than or equal to the preset height, then control the drone to spray the first plant in a concentric circle spraying manner; or, if the diameter of the first plant is greater than the spray width of the drone, and the height of the first plant is greater than the preset height, then control the drone to spray the first plant in a spiral rising spraying manner.
[0137] Fig.13 A schematic structural block diagram of a drone provided in an embodiment of the present application.
[0138] like Fig.13As shown, the UAV 600 may include a segmentation module 610, a processing module 620 and a route planning module 630, wherein the segmentation module 610 is used to: segment the target plot into multiple areas, wherein the target plot includes multiple plants; the processing module 620 is used to: determine the geometric center point of each plant in the target plot; divide the plants into different areas according to the geometric center point of each plant; determine the visiting order of multiple areas by using the TSP algorithm; determine the visiting order of the plants in each area by using the TSP algorithm; the route planning module 630 is used to: determine the spraying flight route of the UAV according to the visiting order of the multiple areas and the visiting order of the plants in each area.
[0139] In some embodiments, the processing module 620 is also used to: determine the take-off point of the drone; determine the geometric center point of the area containing the plants; and determine the access order of multiple areas using the TSP algorithm based on the take-off point of the drone and the geometric center point of the area containing the plants.
[0140] In some embodiments, the drone 600 may further include a storage module for recording the spraying status of a single plant. The spraying status of a single plant includes any of the following: spraying not started, spraying completed, sprayed range, or range to be sprayed.
[0141] In some embodiments, the processing module 620 is also used to: determine the unfinished work area; determine the visit order of the unfinished work area using the TSP algorithm based on the take-off point of the drone and the unfinished work area; determine the visit order of plants in the unfinished work area using the TSP algorithm based on the spraying status of a single plant; the route planning module 630 is also used to: re-plan the spraying flight route of the drone based on the visit order of the unfinished work area and the visit order of the plants in the unfinished work area.
[0142] In some embodiments, the segmentation module 610 is also used to: divide the target plot into multiple independent areas according to the obstacles in the target plot using a preset method, and the multiple independent areas do not contain obstacles. The preset method includes any one of the following: boustrophedon area decomposition method, trapezoidal division method, and Morse decomposition method.
[0143] In some embodiments, the processing module 620 is further configured to: update the boundaries of the plurality of regions using a convex hull algorithm.
[0144] In some embodiments, the drone 600 may also include an acquisition module and a control module. The multiple plants include a first plant. When spraying the first plant, the acquisition module is used to: acquire the diameter of the first plant, the height of the first plant and the coordinates of the center point of the first plant; the control module is used to: if the diameter of the first plant is less than or equal to the spray width of the drone, then control the drone to perform in-situ spinning spraying at the coordinates of the center point of the first plant; or, if the diameter of the first plant is greater than the spray width of the drone, and the height of the first plant is less than or equal to the preset height, then control the drone to spray the first plant in a concentric circle spraying manner; or, if the diameter of the first plant is greater than the spray width of the drone, and the height of the first plant is greater than the preset height, then control the drone to spray the first plant in a spiral rising spraying manner.
[0145] An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method of plant protection spraying path planning in the above-mentioned embodiment.
[0146] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the method for plant protection spraying path planning in the above-mentioned embodiment.
[0147] In addition, an embodiment of the present application further provides a device, which may be a chip, a component or a module, and the device may include a connected processor and a memory. The memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory, so that the chip executes the method of plant protection spraying path planning in the above-mentioned method embodiments.
[0148] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
[0149] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0150] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0151] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0154] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0155] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for crop protection spraying path planning, characterized in that: Applications in drones include: Dividing a target plot into a plurality of regions, wherein the target plot includes a plurality of plants; Determining the geometric center point of each plant in the target plot; Dividing the plurality of plants into different areas according to the geometric center point of each plant; Determine the visiting order of the plurality of regions by using the traveling salesman problem (TSP) algorithm; Determine the order of visiting plants in each area using the TSP algorithm; The spraying flight route of the UAV is determined according to the visiting order of the multiple areas and the visiting order of the plants in each area.
2. The method according to claim 1, characterized in that Before determining the access order of the plurality of regions by using the TSP algorithm, the method further includes: determining a take-off point for the drone; determining the geometric center point of the area containing the plant; Determining the access order of the plurality of regions by using the TSP algorithm comprises: The access order of the multiple areas is determined by using a TSP algorithm according to the take-off point of the drone and the geometric center point of the area containing the plants.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: The spraying status of a single plant is recorded, wherein the spraying status of the single plant includes at least one of the following: spraying not started, spraying completed, spraying in progress, sprayed range, or to-be-sprayed range.
4. The method according to claim 3, characterized in that In the case where the drone needs to return to the take-off point, the method further includes: Identify areas of unfinished work; Determine the order of visiting the unfinished operation area by using the TSP algorithm according to the take-off point of the UAV and the unfinished operation area; According to the spraying status of the single plant, the TSP algorithm is used to determine the visiting order of the plants in the unfinished operation area; The spraying flight route of the UAV is replanned according to the visiting sequence of the unfinished operation areas and the visiting sequence of the plants in the unfinished operation areas.
5. The method according to any one of claims 1 to 4, characterized in that The step of dividing the target plot into a plurality of regions comprises: According to the obstacles in the target plot, the target plot is divided into multiple independent areas using a preset method, and the multiple independent areas do not contain the obstacles. The preset method includes any one of the following: ox-plowing area decomposition method, trapezoidal division method, and Morse decomposition method.
6. The method according to any one of claims 1 to 5, characterized in that Before determining the access order of the plurality of regions by using the TSP algorithm, the method further includes: The boundaries of the plurality of regions are updated using a convex hull algorithm.
7. The method according to any one of claims 1 to 6, characterized in that The plurality of plants include a first plant, and when spraying the first plant, the method further includes: Acquire the diameter of the first plant, the height of the first plant and the coordinates of the center point of the first plant; If the diameter of the first plant is less than or equal to the spray width of the drone, the drone performs in-situ spinning spraying at the coordinates of the center point of the first plant; or, If the diameter of the first plant is larger than the spray width of the drone, and the height of the first plant is less than or equal to the preset height, the drone sprays the first plant in a concentric circle spraying manner; or, If the diameter of the first plant is larger than the spray width of the drone, and the height of the first plant is larger than the preset height, the drone sprays the first plant in a spiral rising spraying manner.
8. A drone, characterized in that: Comprising means for performing the method as claimed in any one of claims 1 to 7.
9. A device for crop protection spraying path planning, characterized in that: Comprising means for performing the method as claimed in any one of claims 1 to 7.
10. A chip, characterized in that: The chip comprises a processor and a memory, wherein the processor is used to read instructions stored in the memory, and when the processor executes the instructions, the chip implements the method according to any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a computer, the computer is caused to implement the method according to any one of claims 1 to 7.
12. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.