A front task cluster driven unmanned aerial vehicle online coverage path planning method

By clustering frontier task clusters and calculating task execution points and switching points, the problem of frequent task changes in multiple frontier environments in existing technologies is solved, and efficient online coverage path planning for UAVs is achieved.

CN123156908APending Publication Date: 2026-11-24NANJING UNIV OF INFORMATION SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611578888.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-13
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing online coverage path planning methods are prone to frequent changes in the current coverage task or backtracking from inappropriate locations when faced with multiple frontiers, resulting in repeated paths and difficulty in effectively organizing and prioritizing multiple tasks.

Method used

By clustering leading units between covered and uncovered areas into leading task clusters, calculating task execution points, task size, and task switching points, and combining sorting costs and event triggering mechanisms, the current task is maintained or reconfirmed, and the results are converted into the next movement instruction.

Benefits of technology

It enables independent maintenance and priority sorting of multiple separate and uncovered areas, suppresses execution jitter caused by task switching, and improves the efficiency and accuracy of path planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123156908A_ABST
    Figure CN123156908A_ABST
Patent Text Reader

Abstract

This invention discloses an online coverage path planning method for unmanned aerial vehicles (UAVs) driven by leading-edge task clusters, belonging to the technical field of mobile robots and their autonomous navigation and online coverage path planning in unknown environments. The steps are as follows: acquiring the current position and local observations of the UAV and updating the symbolic map; extracting leading-edge units and clustering them into at least one leading-edge task cluster; determining the unique task execution point of the leading-edge task cluster; setting task termination conditions, and classifying tasks that meet the termination conditions as failed tasks; confirming the task switching point and the corresponding switching distance, setting the confirmed task execution point of the current task as the navigation target, searching for a reachable path from the current position to the navigation target, and outputting the next grid movement command based on the reachable path; repeating the above steps until the termination conditions are met. This invention forms an online coverage path by outputting one next movement command in each round within the planning cycle, and the movement positions output at each time point are concatenated chronologically.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of autonomous navigation and online coverage path planning technology for mobile robots and unmanned aerial vehicles (UAVs), specifically to an online coverage path planning method for UAVs driven by cutting-edge mission clusters. Background Technology

[0002] Online coverage path planning involves updating the environmental map based on local observations gradually acquired by the mobile platform, under conditions where environmental information is not fully known, and continuously generating subsequent movement commands to enable the platform to traverse all reachable and permissible coverage areas. During online planning, obstacles, dynamically excluded areas, covered areas, and remaining uncovered areas will continuously change, and multiple separate frontiers may simultaneously form in uncovered spaces.

[0003] Existing online coverage methods typically select the next coverage location based on local candidate cells, potential energy values, or backtracking search. The original epsilon-star method utilizes multi-scale adaptive potential surfaces for local coverage and searches for new uncovered regions when lower-level local candidates fail. While this type of method can achieve online coverage, it primarily uses local candidate cells as the decision-making object and does not explicitly organize different frontiers into a maintainable, switchable, and sortable task.

[0004] When multiple fronts exist simultaneously in the environment, switching immediately upon discovering a new front can easily lead to frequent changes in the current coverage task. Conversely, waiting until the current local candidate point becomes invalid before searching for another front may result in backtracking from inappropriate locations, increasing redundant paths. Existing local decision-making processes struggle to simultaneously determine when to maintain the current task, where the platform switches tasks, and the execution order of multiple tasks. Therefore, a task-level online coverage path planning process, integrated with the underlying mobility planning, is needed. Summary of the Invention

[0005] The purpose of this invention is to provide an online coverage path planning method for unmanned aerial vehicles (UAVs) driven by leading-edge task clusters. This method clusters leading-edge units between covered and uncovered areas into leading-edge task clusters. For each task cluster, it calculates the task execution point, task size, and task switching point. Through sorting costs and event triggering mechanisms, it maintains or reconfirms the current task and converts the task decision result into a next-step movement command. During the planning cycle, one next-step movement command is output in each round. The movement positions output at each time point are concatenated chronologically to form an online coverage path.

[0006] To achieve the above objectives, the present invention provides the following technical solution: A frontier mission cluster-driven online coverage path planning method for unmanned aerial vehicles (UAVs) comprises the following steps: S1. Obtain the current position and local observations of the UAV, map the local observations to a pre-established finite grid set, and update the symbol map; S2. Traverse the covered raster cells in the updated symbol map, extract the uncovered allowed raster cells in the multi-domain of the covered raster cells as frontier cells, and cluster the extracted frontier cells into at least one frontier task cluster; S3. Generate a set of candidate task execution points from the uncovered allowed grid cells in the multi-domain of each frontier unit, and determine the unique task execution point of the frontier task cluster from the set of candidate task execution points; Starting from the task execution point, search only in the uncovered allowed grid cells, extract the uncovered connected component where the task execution point is located, and use the number of grid cells in the uncovered connected component as the task size of the frontier task cluster. S4. Set task termination conditions. Tasks that meet the task termination conditions will be judged as invalid tasks. Invalid tasks will not participate in task sorting. S5. When the current task exists and is not invalid, set the current position as the task switching point of the current task, and construct the candidate advancement space by the union of the uncovered connected components corresponding to the candidate task execution points of the current task; determine the task switching points of each non-current task in the candidate advancement space, and calculate the reachable distance from the task switching point of the non-current task to the task execution point of the non-current task, as the switching distance of the non-current task. S6. Determine whether the current position has hit any valid task switching point that is not the current task. Set the confirmed task execution point of the current task as the navigation target. Search for a reachable path from the current position to the navigation target. Output the next grid movement command based on the reachable path. S7. Repeat the above steps until the termination condition is met.

[0007] Preferably, the symbol map in step S1 is defined as follows: , In the formula, This indicates that no allowed raster cells are covered. This indicates that the grid cells have been covered. Represents obstacle grid cells, Indicates a restricted cache grid cell. It represents the set consisting of all grid cells. Indicates at time Grid cell The corresponding symbol map's state values; The current position of the UAV, local observations, and the current symbolic map are input into the map state update function to update the map state and obtain the symbolic map for the next time step. The formula is as follows: , In the formula, This represents the map state update function. Indicates the current symbol map state. Indicates the current position. Indicates local observation. This indicates the symbol map state at the next moment.

[0008] Preferably, step S2, based on the updated symbol map, also includes determining the task structure update method, specifically: Based on the UAV's current position and propulsion direction, a three-neighbor observation window is constructed. The states of neighboring grid cells in the symbol map are read sequentially, and state signatures are generated. Combining state signature changes and task lifecycle events, a full update flag for the task structure is determined. When a full update of the task structure is triggered, the extraction of leading-edge cells, clustering of leading-edge task clusters, determination of task execution points, calculation of task size, and calculation of task switching points and switching distances are re-executed. When a full update of the task structure is not triggered, only the candidate task execution point set, task execution point determination, and task size calculation of the current task are updated, while the task structure of each non-current task is retained. The task lifecycle events include at least the following: the leading-edge task cluster set is empty; the current task is empty and there are uncovered allowed grid cells; the leading-edge task cluster of the current task disappears or splits; the task execution point of the current task is covered or unreachable; and the candidate task execution point set of the current task is empty.

[0009] Preferably, the step of clustering the frontier mission cluster in step S2 is as follows: Starting with any frontier unit, sequentially search for frontier units adjacent to it in multiple domains. Group the found adjacent frontier units into the same frontier task cluster, until all frontier units have been processed. The resulting set of all frontier task clusters is given by the formula: , In the formula, The set of numbers of frontier mission clusters. for The set of all cutting-edge mission clusters at any given moment. for Time of the first A cluster of cutting-edge missions; Based on the overlapping relationship of the leading units, task identifier matching is performed on the leading task clusters at the previous and next iteration times; leading task clusters marked as failed tasks are deleted.

[0010] Preferably, the process of determining the task execution point in step S3 is as follows: Calculate the reachable distance from the current position to each candidate execution point in the candidate set, integrate the potential energy value output by the underlying single-step planner, and construct the end-point priority; select a unique task execution point from the reachable candidate execution points according to the lexicographical order of reachable distance, potential energy value, and end-point priority; The rule for selecting a unique task execution point is as follows: The grid cell with the smallest reachable distance is selected as the sole task execution point; when the reachable distances are the same, the grid cell with the largest potential energy value is selected as the sole task execution point; when both the reachable distance and potential energy value are the same, the grid cell with the lowest terminal priority is selected as the sole task execution point; when the reachable distance, potential energy value, and terminal priority are all the same, the sole task execution point is determined according to the ascending order of row coordinates and column coordinates.

[0011] Preferably, the determination of each task switching point that is not the current task in step S5 is as follows: Calculate the reachable distance from each grid cell in the candidate propulsion space to the task execution point of the non-current task, and select the grid cell with the smallest reachable distance as the task switching point of the non-current task. The formula is as follows: , In the formula Not the current task At any moment Task switching point, Space for candidate advancement The grid cells in For the task execution point, Grid cells in candidate propulsion space To non-current task Task execution point The reachable distance between them; When there are multiple grid cells with the same reachability distance, the first one to arrive is selected according to the current task's progress order; if the distance to the execution point of a non-current task is unreachable, or if there are no grid cells in the candidate progress space that can reach the execution point of a non-current task, the non-current task will not be considered as a task switching target for this round.

[0012] Preferably, the determination of whether a valid task switching point has been hit in step S6 is as follows: The current position is compared with the task execution points of each non-current task. If the current position coincides with any task switching point of a non-current task, it is determined that a valid task switching point has been hit, the tasks are reordered and the current task is confirmed. If the current position does not match a task switching point of a non-current task, and the current task is still valid, no reordering is performed and the current task continues to be executed.

[0013] Preferably, the search process for a reachable path from the current location to the navigation target in step S6 is as follows: The reachable path is calculated on the known grid cells that are allowed to pass through in the symbol map. Grid cells that are not allowed to pass through are not allowed to be entered. In each round of path planning, only the first grid cell after the current position in the reachable path is output as the movement command for the next grid cell. After executing the movement to the current position, the system returns to reacquire the current position and local observations of the UAV.

[0014] Preferably, the termination conditions in step S7 include normal termination and abnormal termination; The normal termination means that when there are no unfailed tasks and no executable leading edge cells or the number of remaining uncovered allowed grid cells is zero, the online coverage path, the final symbol map and the termination flag are output. The abnormal termination is as follows: after each successful control of the drone to move to the next grid cell, the number of path planning steps is incremented; if the cumulative number of path planning steps reaches the preset maximum number of steps and there are still uncovered allowed grid cells, an abnormal termination flag is output.

[0015] Preferably, the calculation process for the number of remaining uncovered allowable grid cells is as follows: , In the formula, To allow coverage of the grid cell set, For a single grid cell, for Time grid unit status markers, For uncovered allowed raster cells, This represents the number of remaining uncovered raster cells allowed. Among them, assuming that the covered grid cells do not experience state rollback, the remaining uncovered grid cells are allowed to be [number]. Monotonically non-increasing, barrier grid cells and forbidden buffer grid cells are composed of the set of allowed overlay grid cells. The definition excludes the number of remaining uncovered allowed units. To have an impact Compared with the prior art, the beneficial effects of the present invention are as follows: This invention organizes the front edge between covered and uncovered areas into front edge task clusters, calculates the task execution point, task size, and task switching point for each task cluster, maintains or reconfirms the current task through task sorting cost and event triggering mechanism, and converts the confirmation result into the next movement instruction.

[0016] The process involves extracting leading task clusters from a symbolic map, obtaining task execution points and task sizes from these clusters, and determining the task switching points and distances for other tasks from the current task candidate advancement space. Finally, the current task is confirmed through task switching point hit detection and task sorting. As long as the above data dependencies are maintained, the local observation device, grid resolution, reachability distance algorithm, and underlying single-step planner can all be replaced according to the application.

[0017] Based on the three-neighbor grid state signature and task lifecycle event-triggered full task update, when no critical structural changes occur in the local environment, only incremental updates are performed on the current task, avoiding redundant computation caused by repeatedly building all task clusters. Dynamic leading-edge units are encapsulated into leading-edge task clusters with stable identifiers, enabling independent maintenance and prioritization of multiple separate uncovered regions. A unique candidate task execution point is assigned to each leading-edge task cluster, and the task scale is represented by the number of four-connected component units in the uncovered region. The task entry point, advancement target, and remaining coverage are uniformly incorporated into the task-level decision-making. Within the candidate advancement space of the current task, the task switching points and switching distances of other tasks are solved, allowing the UAV to pre-calculate candidate evaluation positions for switching to other tasks while continuously executing the current task. Combining task switching point hit determination with constraints on the current task, task reordering is only performed when the current task fails or reaches a valid switching point, suppressing execution jitter caused by the immediate triggering of task switching by the new leading edge. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of the online coverage path planning algorithm of the present invention; Figure 2 This is a diagram illustrating the coverage results of the algorithm in six Python raster prototype maps; Figure 3 This is a schematic diagram of the coverage results of the present invention in the same 6 Python raster prototype maps; Figure 4 This is a schematic diagram comparing the rough and fine exploration trajectories of the present invention with those of three Gazebo simulation scenarios; Figure 5 This is a schematic diagram comparing the drone trajectory of the present invention with that of a real-world lodged farmland scenario. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be described below with reference to the accompanying drawings. The embodiments described below are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] Combination Figures 1 to 5This invention provides a method for online coverage path planning of unmanned aerial vehicles (UAVs) driven by a frontier mission cluster. The following embodiments are used to illustrate that this invention can be specifically implemented, and do not limit the technical features of this invention to Python language, function names, ROS2 / PX4 platform, UAV model or agricultural scenario.

[0021] The leading-edge cells between covered and uncovered grid cells are organized into leading-edge task clusters. For each leading-edge task cluster, the task execution point, task size, and task switching point are calculated. The current task is maintained or reconfirmed through task sorting costs and event triggering mechanisms, and the confirmation result is converted into the next movement command. Each round of planning outputs one next movement command, forming an online coverage path for the UAV by arranging all movement positions in chronological order. For example... Figure 1 As shown, the technical solution is as follows: S1. Obtain the current position and local observations of the UAV, map the local observations to a pre-established finite grid set, and update the symbol map; in this embodiment, read the UAV's position at time... Current location and local observation Local observation is used at least to determine the uncovered permitted grid cells, obstacle grid cells, and restricted buffer grid cells within the observation range; the sensors used to obtain the current position of the UAV and for local observation can be cameras, lidar, or other information acquisition devices capable of outputting grid status, and the symbolic map records the coverage status of each grid cell in a finite grid set.

[0022] Discretize the area to be covered into a finite set T of H rows and W columns. Each grid cell is represented by row and column coordinates or an equivalent spatial index. Any grid cell is represented by binary coordinates. ,in, For row coordinates, For column coordinates. Multi-domain includes four-domain and eight-domain systems, with the four-domain system predefined. Used to determine vertical and horizontal connectivity, eight domains Used to group obliquely continuous leading-edge units into the same task cluster, four domains Depend on , , and Composition; Eight fields Add four diagonally adjacent units to the four domains. (Exceeding the original text) or The coordinates of the range do not belong to a finite grid set. .

[0023] The online planner must maintain at least the following data: symbol map Current location Coverage path sequence Previous movement direction Three-adjacent-cell state signature Frontier Unit Set Frontier mission clusters The next assignable task identifier, the current task identifier, and the frontier unit, candidate task execution point, unique task execution point, task direct distance, task size, task switching point, switching distance, sorting cost, and valid markers corresponding to each frontier task cluster.

[0024] The symbol map uses four states, among which, the uncovered raster cell is allowed. It is both the object to be covered and the candidate task execution point and the cell that allows for expansion in the search of uncovered connected components; the covered raster cell. Used for extracting the leading edge; barrier grid unit and forbidden cache grid units These are considered impassable raster cells in both reachability distance and A* path search. Therefore, the same blocking criteria are used for map state, task structure, and underlying path search.

[0025] Before starting the process, set the starting point. Set the current position and write the overwrite path sequence. If the starting point is an allowed coverage cell, then update the starting point to an already covered raster cell. The current task identifier and the previous state signature are initialized to empty, and the task identifier counter is initialized to a preset non-negative integer.

[0026] Furthermore, for finite grid sets Each grid cell in Set a state value for the symbol map at time [time]. The definition of is: , In the formula, This indicates that no allowed raster cells are covered. This indicates that the grid cells have been covered. This represents a barrier grid cell formed by obstacles or dynamic coverage exclusion. This represents a no-entry buffer grid cell formed by barrier boundaries, safety distances, or dynamically excluded areas. Represents a finite set of grid cells. Indicates at time Grid cell The corresponding symbol map state value. This state definition ensures that the same map data is used for frontier extraction, reachability calculation, and termination determination.

[0027] The current position of the UAV, local observations, and the current symbolic map are input into the map state update function to update the map state and obtain the symbolic map for the next time step. The formula is as follows: , In the formula, This represents the map state update function. Indicates time Symbol map state, Indicates the current position. Indicates local observation. This indicates the symbol map state at the next time step. If local observations confirm that a certain grid cell is not coverable, then that grid cell is updated to an obstacle grid cell. Or disable cache grid units If the platform reaches and completes coverage of a certain allowed grid cell, then the grid cell is moved from an uncovered allowed grid cell. Update to covered grid cells Units that have not been altered by new observations remain in their original state.

[0028] In this embodiment, the UAV is at the path planning time. Read its current position and obtain local observations Local observations should at least determine whether each grid cell within the observation range is in an allowable coverage, obstruction, or dynamic exclusion state. If the local observations are from images, laser point clouds, or other continuous coordinate data, the observation results should first be mapped to a finite set of grid cells according to the grid cell origin and grid cell side length. The grid coordinates in the data.

[0029] Local observation Input-based state update function, if the observation confirms the grid cell If the area is an obstacle or a dynamically excluded region, then the grid cell should be preferentially set as an obstacle grid cell. If grid cells If it is located within the corresponding safety buffer range, it is set as a prohibited cache grid unit. If the drone has entered a grid cell that is allowed to be covered and has completed the coverage action for that grid cell, then it is set as a covered grid cell. The remaining grid cells retain their state from the previous moment. In this embodiment, the covered grid cells... The state does not revert to an uncovered allowed raster cell. This ensures that the remaining uncovered amount monotonically does not increase; a single grid cell from time... At the time The state update rules for the symbol map are as follows: , In the formula, This is the set of obstacle grid cells confirmed in this round. This is the set of prohibited buffer grid cells confirmed in this round. This refers to the set of allowed grid cells that have been covered up to the current round. For a moment Grid cell The status of the symbol map. If the same grid cell meets multiple conditions at the same time, it is processed in the order of obstacle grid cell, no-entry buffer grid cell, and covered grid cell to prevent drones from entering impassable areas.

[0030] Based on the status of the updated symbol map Generate a blocking mask. Barrier grid cell. and restricted buffer grid units The blocking value at the corresponding position is true, indicating that no grid cell is covered. and covered grid cells The blocking value at the corresponding position is false. Then, the potential energy map used by the underlying epsilon-star algorithm is refreshed: obstacle grid cells. and restricted buffer grid units Position set to unselectable potential energy, already covered grid cell. Position set to completed potential energy, no covered allowed grid cells The location retains background or local potential energy. This potential energy value is only used for secondary comparisons of task execution point candidates and does not replace the task-level ranking of the best priority planning.

[0031] Save the current position, the updated symbol map state, and the covered path sequence. Update the previous movement direction (i.e., the advance direction) based on the difference between the current position and the previous position. If no valid movement direction has been generated, determine a primary direction based on the row and column difference between the current task execution point and the current position; prioritize the lateral direction if the lateral absolute difference is not less than the longitudinal absolute difference, otherwise prioritize the longitudinal direction. Write the current position into the covered path sequence, record the current advance direction and the previous task structure, for use in subsequent three-neighbor state signatures, task identifier matching, and current task maintenance.

[0032] S2. Traverse the covered raster cells in the updated symbol map, extract any uncovered allowed raster cells in the multi-neighborhood of the covered raster cells as frontier cells, and cluster the extracted frontier cells into at least one frontier task cluster. In this example, by traversing the covered raster cells in the updated symbol map, check whether there is at least one uncovered allowed raster cell in the four neighborhoods of the currently covered raster cell, and set the currently examined raster cell that satisfies the condition of having at least one uncovered allowed raster cell as a frontier cell. (Already an obstacle raster cell) Or prohibit buffer grid unit The grid cells are not included in the range of the extraction leading edge cells, and the grid cells are not covered. It is not included in the extraction range of the leading edge unit; thus ensuring that the leading edge unit is located on the side already covered by the UAV.

[0033] Take an unvisited front unit as a seed and search its eight-neighborhood for unvisited front units using a queue or stack until expansion is impossible, resulting in a front task cluster. Repeat this process until all front units are visited, and cluster the results to obtain a set of all front task clusters, where each front unit is added to only one front task cluster.

[0034] Furthermore, the steps for clustering the frontier mission clusters are as follows: Traverse the covered cells in the symbol map; if at least one uncovered allowed raster cell exists in the four neighborhoods of a covered cell, then mark the covered cell as the front cell, and obtain the set of front cells:

[0035] In the formula, The grid cell currently being examined The four areas; It is a set of finite grid cells; for The current grid cell being examined The status is that the grid cell has been covered. ; There is at least one uncovered adjacent grid cell in each of the four neighborhoods. ; for Time-front unit set; For the domain grid unit The status is that the grid cell is not covered. The leading edge unit is located between the covered area and the uncovered area, and serves as the interface for entering the remaining uncovered space.

[0036] Starting with any frontier unit, sequentially search for frontier units adjacent to it in multiple domains. Group the found adjacent frontier units into the same frontier task cluster, until all frontier units have been processed. The resulting set of all frontier task clusters is given by the formula: , In the formula, The set of numbers of frontier mission clusters. for The set of all cutting-edge mission clusters at any given moment. for Time of the first A cluster of cutting-edge missions, Eight-neighbor clustering can preserve the same obliquely continuous front and divide the spatially separated front into different tasks.

[0037] Based on the overlapping relationship of the leading edge units, task identifier matching is performed on the leading edge task clusters at previous and subsequent iterations. In this embodiment, to ensure that the current task maintains the same identifier even when the shape of the leading edge changes slightly as coverage progresses, the leading edge task clusters at the previous time step are calculated. With this round of cutting-edge mission cluster Chebyshev minimum distance between :

[0038] in, , and , They are grid units and The row and column coordinates. When At that time, the two frontier mission clusters are consecutive at adjacent planning moments; At this time, there is no direct contiguity between two frontier mission clusters. This definition is consistent with the eight-adjacency geometry.

[0039] If a given task cluster is contiguous only with the task cluster from the previous time step, and that task cluster from the previous time step is also contiguous only with the task cluster from the current time step, then the old task identifier is inherited; otherwise, a new task identifier is assigned. If the current task cluster splits into multiple sub-task clusters, task identifiers are assigned to each of the split sub-task clusters, and the current position is recorded as the temporary switching evaluation position for these sub-task clusters in order to reconfirm the task.

[0040] Create a task record for each frontier task cluster, write the task identifier and frontier unit set, and initialize the candidate task execution point, task execution point, reachability distance, task size, and task switching point fields. If the frontier unit set is empty, the frontier task cluster set is also empty, and the process will proceed directly to the termination check.

[0041] The leading task cluster marked as a failed task is deleted. In this embodiment, task clusters that no longer have leading elements, no uncovered adjacent grid elements, or cannot be reached from the current position are marked as failed and deleted from the set of valid tasks participating in the sorting. If the deleted task is the current task, the current task identifier is cleared and waiting for reconfirmation.

[0042] Furthermore, the updated symbol map also includes a determination of the task structure update method, specifically: Based on the UAV's current position and direction of advance, a three-neighbor observation window is constructed. The states of neighboring grid cells in the symbol map are read sequentially, and state signatures are generated. In this embodiment, reading the states of neighboring grid cells in the symbol map in a fixed order ensures that the same local structure generates the same signature, avoiding false triggering due to unordered sets. If a neighboring cell goes beyond the map boundary, it is recorded as boundary state B.

[0043] Three-neighbor observation window The definition of is: , In the formula, To advance the direction, This is a vector perpendicular to the direction of advancement. The three neighboring cells in a three-cell observation window are arranged in a fixed order; if a neighboring cell extends beyond the map boundary, a preset boundary state is used. Instead, this three-neighbor observation window is used to compare and detect changes in local structure with low overhead.

[0044] Read the states of three neighboring cells within the observation window on the symbol map, and assemble state signatures in the order of front, left, and right. : , In the formula, The adjacent cell in front, The left adjacent cell, It is the adjacent cell to the right.

[0045] By combining state signature changes and task lifecycle events, a full update flag for the task structure is determined. In this embodiment, task lifecycle events include at least the following: the set of leading task clusters is empty; the current task is empty and there are uncovered allowed grid cells; the leading task clusters of the current task have disappeared or split; the task execution point of the current task has been covered or is unreachable; and the set of candidate task execution points of the current task is empty.

[0046] Sign the state State signature from the previous moment Compare the two values; if they are not equal, it indicates that the locally coverable structure of the adjacent cell in front or to the side of the current direction of advancement has changed, and a full update flag is set. When both are identical and the existing task structure is not empty, set the full update flag. Full update flag The formula is: , in, This is an indicator function; it outputs 1 when the condition is true and 0 when it is false. The current state signature is not the same as the previous state signature, meaning that the local observation environment has changed; A collection consisting of clusters of cutting-edge missions; This indicates that the current task has failed; This indicates that the starting point of the candidate task has been covered, excluded, or invalidated. In practice, the splitting of the current task cluster and an empty candidate set can also be considered as the invalidation of the current task. The specific criteria for determination.

[0047] Even if the state signature remains unchanged, a full update will still be performed as long as any of the following conditions are met: The list of frontier mission clusters is empty; The current task identifier is empty and there are uncovered allowed raster cells; Current frontier mission clusters have disappeared or split up; The current task execution point is no longer in a state where no allowed raster cells are covered; The current task execution point is unreachable; The current set of candidate task execution points is empty; Otherwise, only improve the current task structure.

[0048] When a full update of the task structure is triggered Re-execute the frontier unit extraction, frontier task cluster clustering, task execution point determination, task size calculation, and task switching point and switching distance calculation; when a full update of the task structure is not triggered. It only updates the set of candidate task execution points, task execution point determination, and task size calculation for the current task, while retaining the task structure of each non-current task. After completing the update of the current task, a switch point hit check still needs to be performed to determine whether a reordering is triggered.

[0049] S3. Generate a candidate task execution point set from the uncovered allowed grid cells in the multi-domain of each frontier unit, and determine the unique task execution point of the frontier task cluster from the candidate task execution point set; starting from the task execution point, search only in the uncovered allowed grid cells to extract the uncovered connected component where the task execution point is located, and use the number of grid cells in the uncovered connected component as the task size of the frontier task cluster; in this embodiment, the frontier task cluster... Each leading edge cell in the process examines its four neighborhoods, adds adjacent cells of uncovered allowed grid cells to the candidate task execution point set, and removes duplicate cells. The formula for the candidate task execution point set is: , In the formula, This represents the union of all four domains of frontier units in the frontier mission cluster. This represents the candidate task execution points. The candidate task execution points in the set are sorted by row and column coordinates to ensure deterministic results for subsequent candidate task executions. If the candidate task execution point set is empty, it means that the task currently has no executable entry point in an uncovered allowed raster cell, and the task should be set to invalid.

[0050] The search for candidate task execution points is performed based on the blocking mask, using a four-adjacency breadth-first search on the blocking mask from the current position. The starting distance is 0, and the distance increases by 1 for each adjacent non-blocking grid cell expanded. The first candidate task execution point reached is selected. Time record reachable distance Candidate task execution points not found in the search are considered unreachable and will not be included in the task execution point selection. If a weighted grid is used, then... Calculate the corresponding minimum cumulative cost.

[0051] Read the potential energy value for each reachable candidate task execution point. Endpoint priority The distance to the first non-covered allowed grid cell or map boundary is obtained by searching along the direction above or below the candidate task execution point from the column where the current position is located; when the candidate task execution point is in the same row as the current position, the smaller value of the upward and downward distances can be selected.

[0052] By comparing candidate task execution points, the reachable distance is selected first. For the smaller one, choose the potential energy value. The larger one is selected last based on end priority. The smaller of the three values ​​is used; if all three are still the same, the unique task execution point is determined by ascending order of the row and column coordinates of the candidate points. This final level of coordinate comparison is only used to achieve determinism and does not change the task meaning of the first three values.

[0053] Based on task execution point As a seed, only allow raster cells that are not covered. Perform a four-adjacency search to obtain the uncovered connected components. The formula is: , In the formula, This indicates the four-connected component extraction operation; Next, count the number of raster cells in the uncovered connected components to determine the task size. , represented as: , In the formula, Indicates the cardinality of the set. Task size. It is a lightweight estimate of the remaining coverage of a task, used for task sorting, and is not a strict shortest coverage path length.

[0054] During the search process, each uncovered raster cell can be enqueued at most once. If the set of candidate task execution points... No longer an uncovered allowed raster cell If unreachable, then the connected component is not covered. If empty, set the task's valid flag to invalid. The formula for the valid flag is: , in, This indicates that the task is valid and can participate in switching and sorting; This indicates that the task has failed, lacking a frontier, candidate point, unique execution point, or reachable path. Failed tasks retain their identifiers for debugging purposes but are not added to the set of valid tasks.

[0055] Furthermore, the process for determining the task execution point is as follows: Calculate the reachable distance from the current position to each candidate execution point in the candidate set, fuse the potential energy values ​​output by the underlying single-step planner, and construct the end-point priority; in this embodiment, the unique task execution point in the candidate task execution point set is selected. Calculate the current position To the only mission execution point The reachable distance in the currently known free space Read The potential energy value given by the algorithm's underlying local planner And calculate the end-point priority for handling cases where distance and potential energy are the same. Unreachable candidate points will not be included in subsequent comparisons.

[0056] A unique task execution point is selected from reachable candidate execution points based on a lexicographical order constructed using reachability distance, potential energy value, and endpoint priority. In this embodiment, a unique task execution point is selected based on a lexicographical order constructed using reachability distance, negative potential energy value, and endpoint priority. The formula is: , The rule for selecting a unique task execution point is as follows: The grid cell with the smallest reachable distance is selected as the sole task execution point; when the reachable distances are the same, the grid cell with the largest potential energy value is selected as the sole task execution point; when both the reachable distance and potential energy value are the same, the grid cell with the lowest terminal priority is selected as the sole task execution point; when the reachable distance, potential energy value, and terminal priority are all the same, the sole task execution point is determined according to the ascending order of row coordinates and column coordinates.

[0057] S4. Set task termination conditions. Tasks that meet the task termination conditions are judged as invalid tasks. Invalid tasks do not participate in task sorting. In this embodiment, the task termination conditions include: no frontier unit in the frontier task cluster, empty candidate task execution point set, task execution point is no longer in the uncovered allowed state, task execution point is unreachable or the uncovered connected component where the task execution point is located is empty. Tasks that meet any of the task termination conditions are judged as invalid tasks. Invalid tasks do not participate in task sorting.

[0058] If the task deemed invalid is the current task, the current task identifier is cleared, and the current task awaits reconfirmation: the current task is reconfirmed from the remaining valid tasks according to the task sorting cost; if no valid tasks exist, the process terminates. Task invalidation information also participates in the full update trigger judgment as a task lifecycle event, ensuring that the deletion of invalid tasks is promptly reflected in the task structure.

[0059] S5. When the current task exists and is not invalid, set the current position as the task switching point of the current task, and construct a candidate advancement space by the union of the uncovered connected components corresponding to the candidate task execution points of the current task; determine the task switching points of each non-current task in the candidate advancement space, and calculate the reachable distance from the task switching point of the non-current task to the task execution point of the non-current task, as the switching distance of the non-current task; in this embodiment, if the task is the current task, then set the current position as the task switching point of the current task. As the task switching point for this task and the distance to the switching point Set to 0, the formula is: , This setting indicates that the current task can participate in the evaluation at the current location, but does not mean that the drone must leave the current task; whether to keep the current task is still determined after reordering.

[0060] Then, using the set of each valid candidate task execution point in the current task and the current task as the search seed, the corresponding uncovered four-connected components are extracted from the uncovered allowed grid cells, and the union of these uncovered four-connected components is taken to form the candidate propagation space. The formula is: , In the formula, The set of all uncovered grid cells that the robot can reach, i.e., the candidate propulsion space; This serves as the starting point for candidate tasks in the current task. It is a 4-connected component function. This refers to the entirety of all uncovered grid cells. Candidate advance space. This indicates an approximate uncovered area that the current task may reach when it continues execution, without requiring the full future path to be generated in advance.

[0061] For each valid non-current task, perform a breadth-first search on the non-blocking grid cell to obtain a distance table from the candidate task's starting point to all reachable grid cells. Only the reachable grid cells in the candidate's advancement space are retained, and the task switching point is selected by comparing the distance, row coordinates, and column coordinates in sequence.

[0062] The switching distance between the current position and the selected task switching point is determined and maintained. If the candidate advancement space is empty, or no grid cell can reach the candidate task start point, the task switching point and switching distance are set to empty, and the task will not be considered as a hitable switching target in this round; however, as long as its task execution point is still valid, it can be recalculated in subsequent full updates.

[0063] If the original current task disappears in this round, the current position is temporarily set as the switching evaluation position for other valid tasks, and the current task identifier is cleared. If the original current task splits, the current position is set as the temporary switching position for the split subtasks. Then, the tasks are reordered to avoid using expired current tasks.

[0064] Furthermore, the task switching point for each non-current task is determined as follows: Calculate the reachable distance from each grid cell in the candidate propulsion space to the task execution point of the non-current task, and select the grid cell with the smallest reachable distance as the task switching point of the non-current task. The formula is as follows: , In the formula, Not the current task At any moment Task switching point, Space for candidate advancement The grid cells in For the task execution point, Grid cells in candidate propulsion space Go to a task execution point that is not the current task The reachable distance between them.

[0065] When multiple grid cells with the same reachability distance exist, the first one to arrive is selected according to the current task's progress order.

[0066] Calculate the switching distance from the task switching point to the corresponding non-current candidate task execution point. : , The switching distance from the task switching point to the corresponding non-current task execution point is quantified as the access cost of moving from the current task candidate advancement space to the current task; if the distance to the non-current task execution point is unreachable, or there is no grid cell in the candidate advancement space that can reach the non-current task execution point, the non-current task is not considered as a hitable task switching object in this round.

[0067] S6. Determine whether the current position hits any valid task switching point other than the current task. Set the confirmed task execution point of the current task as the navigation target. Search for a reachable path from the current position to the navigation target. Output the next grid movement command based on the reachable path. In this embodiment, the newly completed coverage unit in this round is marked as a covered grid unit, and the current position is written into the executed area of ​​the current task. Delete covered, uncoverable, and unreachable units from the candidate task execution point set of the current task. If the leading task cluster of the current task has disappeared, the candidate task execution point set is empty, the original task execution point has expired, or the uncovered connected component corresponding to the current task is empty, then set the current task to be reconfirmed; otherwise, retain the current task identifier.

[0068] In the updated set of candidate task execution points for the current task, the reachability distance, negative potential value, and endpoint priority of the candidate task execution points are recalculated, and a unique task execution point is selected. Based on the selected unique task execution point, only the set of candidate task execution points for the current task is updated, without recalculating other leading task clusters, so that the task execution point of the current task moves as coverage progresses.

[0069] Compare the current position with the task switching points of each non-current valid task. If the current position is equal to at least one valid task switching point, it is considered to have hit a valid task switching point, and the tasks are reordered according to their direct distance. If no valid task switching point is hit and the current task is still valid, the sorting is skipped and the current task is kept.

[0070] If the current task is empty or invalid, select the valid task with the smallest sorted tuple as the new current task; if the valid task switching point is hit, the flag is displayed. Then, all valid tasks are reordered and the smallest multi-key sorted tuple is selected; if the valid task switching point hits the flag... If the current task is valid, then place the current task at the beginning of the task sequence and sort only the remaining tasks.

[0071] The system reads several candidate task starting points for the current task and sets them as the navigation target for the current round of underlying path search. It then writes the confirmed execution point of the new current task into the navigation target. During the initial planning phase, when there is no current task yet, the task switching distance is not included in the initial task confirmation because the candidate advancement space for the current task cannot be constructed. The initial current task is determined according to a fixed order of task direct distance, task size, and task identifier. After the initial current task is determined, the task switching points and switching distances for the remaining tasks are calculated.

[0072] If the set of valid tasks is empty, both the current task identifier and the navigation target are set to empty, and it is determined whether the current round of online planning should be terminated. The empty target here is used to distinguish between successful coverage completion and failure of the underlying path search: the former has no valid frontier tasks, while the latter still has valid tasks but cannot generate the next grid.

[0073] Furthermore, the determination of whether a valid task switching point has been hit is as follows: The current position is compared with the task execution points of each non-current task. If the current position coincides with any task switching point of a non-current task, it is determined that a valid task switching point has been hit, the tasks are reordered and the current task is confirmed. If the current position does not match a task switching point of a non-current task, and the current task is still valid, no reordering is performed and the current task continues to be executed.

[0074] In this embodiment, valid non-current tasks are traversed, and the current position is compared with the task switching point. If at least one non-current task satisfies... If the target value is reached, a valid task switching point is considered hit. A hit condition indicates that the UAV has reached the pre-selected task re-evaluation location, rather than being directly forced to switch to the corresponding task. The formula for the valid task switching point hit indicator is: , In the formula, For indicator functions, For the task Is it not the current task? The task number currently being executed. For valid labeling, This indicates a valid task switch point has been hit. At that time, recalculate the sorting cost of valid tasks; valid switch point hit flag. Keep the current task active while it is still active.

[0075] If it is necessary to reconfirm the task, first calculate the current position. To the task execution point reachable distance : , If the task execution point is unreachable, the task is removed from the set of valid tasks in this round. The task's reachability distance, task size, and switching distance are then combined to form the task's sorting cost. The formula is: , In the formula, , and These are the reachable distances of the task. Task Scale and switching distance When the three weights have different dimensions or numerical ranges, they can be normalized before weighting. The specific values ​​of the weights are determined by the grid scale and preferences for proximity distance, coverage size, and handover cost.

[0076] The task size term can be weighted positively or negatively, with the specific sign depending on whether the priority is to complete small tasks quickly or to achieve large-scale continuous coverage. This embodiment uses the equal-weighted positive cost from the source code. ,Right now The formula is: , To eliminate the influence of different dimensions, one can adjust the input without changing the three input quantities and their dependencies. , and Perform scale normalization separately, then set , and .

[0077] To handle multiple cases where the overall positive cost is the same, the total task value, reachable distance, task size, switching distance, whether it is the original current task, and task identifier are compared in sequence to form: , , In the formula, For the task Multi-key sorted tuples. To account for the overall positive costs, i.e., the total value of the task, For the reachable distance of the mission, For the task size, To switch distances, To determine whether it is not the current task, This serves as a task identifier.

[0078] right Perform ascending lexicographical sorting. If all other costs are exactly the same, prioritize keeping the original current task. This is used to obtain a unique and reproducible final order. If a required distance for a task is empty, the corresponding value is treated as infinity or the failed task is directly excluded.

[0079] Furthermore, the process of searching for a reachable path from the current location to the navigation target is as follows: The reachable path is calculated on the known grid cells that are allowed to pass through in the symbol map. Grid cells that are not allowed to pass through are not allowed to be entered. In each round of path planning, only the first grid cell after the current position in the reachable path is output as the movement command for the next grid cell. After executing the movement to the current position, the system returns to reacquire the current position and local observations of the UAV.

[0080] In this embodiment, the current position is taken as the starting point, the candidate task starting point being equal to the navigation target is taken as the ending point, and the blocking mask generated by the obstacle grid cell and the prohibited buffer grid cell is taken as the impassable constraint. If the starting point is equal to the ending point, the coverage state of the execution point is updated first and the current task execution point is recalculated; if the ending point is empty, the process is terminated.

[0081] On known free cells that are allowed to pass through in the symbol map, the reachable path calculation method can be obtained from the current position using the underlying local planning rules of the epsilon-STAR algorithm, A*, Dijkstra's algorithm, or equivalent methods. To the starting point of the candidate task The path. Obstacle grid cells and restricted buffer grid cells are not allowed to enter. Take the first grid cell after the current position from the reachable path as the current position of the next moving target. If the underlying method directly outputs a single-step candidate, then that candidate is used as the current position of the next movement target. The formula is: , In the formula, This represents the first grid cell in the path after the current position. The algorithm outputs only one next grid cell per round, instead of executing the entire path at once, allowing subsequent local observations to promptly change the map and task structure. If there are still valid tasks but the first grid cell in the path is after the current position... If empty, record the path search error and enter the exception handling process.

[0082] Control the drone to move to the current location of the next moving target. Update the allowed raster cells that have completed coverage to covered raster cells, and append the actual arrival location to the coverage path sequence. The direction of advancement will be updated to and put the time Updated to Then, return to the starting step, reacquire the drone's current position and local observations, and proceed to the next round of path planning. If the actual drone does not reach the commanded position, the target grid cell is not marked as a covered grid cell in advance; instead, the actual positioning results are used to replan the path.

[0083] S7. Repeat the above steps until the termination condition is met; in this embodiment, the termination condition includes normal termination and abnormal termination. Normal termination means that if there are no unfailed tasks and no executable leading edge cells or the number of remaining uncovered allowed raster cells is zero, the online coverage path, final symbol map, and termination flag will be output.

[0084] In this embodiment, a set of allowed coverage grids is defined. Defines the set of allowed covered raster cells reachable from the candidate task starting point and not belonging to obstacles, dynamic exclusion zones, or restricted buffer zones, and defines the number of remaining uncovered allowed cells. :

[0085] In the formula, To allow the collection of grid cells to be covered, For a single grid cell, for Time grid unit status markers, For uncovered allowed raster cells, This represents the remaining number of uncovered allowed raster cells; where, assuming no state rollback occurs in covered raster cells, the remaining number of uncovered allowed raster cells is... Monotonically non-increasing, barrier raster cells and forbidden buffer raster cells consist of a set of allowed overlay raster cells. Define exclusions, and do not allow the remaining number of uncovered cells. It has an impact.

[0086] Each valid task execution point is an uncovered allowed grid cell. When executing a valid task, the UAV will either cover other uncovered allowed grid cells before reaching the task execution point, or reach the task execution point within a finite number of steps. Therefore, there is a finite time step. ,make As long as the remaining number of uncovered allowed cells Furthermore, if the task structure is correctly maintained, there will be at least one valid frontier task cluster and task execution point. The remaining number of uncovered units is limited. The number of uncovered allowed cells is finite and strictly reduced after each effective task execution. Under set conditions, the algorithm can reduce the number of uncovered allowed cells after a finite number of task executions and switches. .

[0087] Upon successful completion, the system outputs the coverage path sequence, final symbol map, coverage completion marker, and cumulative planning steps. Depending on the application requirements, it may also output sensor results obtained along the coverage path sequence or identified target areas, but this application data does not alter the BSP task organization and switching process.

[0088] Abnormal termination occurs as follows: after each successful control of the drone to move to the next grid cell, the number of path planning steps is incremented; if the cumulative number of path planning steps reaches the preset maximum number of steps and there are still uncovered allowed grid cells, an abnormal termination flag is output.

[0089] In this embodiment, the path planning step count is incremented by one after each complete single-step movement. If the path planning step count exceeds a preset maximum value and there are still uncovered allowed units, an abnormal termination flag is output to prevent infinite loops caused by implementation failures. The maximum planning step count is set. If the cumulative number of steps executed reaches the maximum planned number of steps The remaining number of uncovered allowed units If an exception occurs, an exception termination flag is output; if a valid task exists but the underlying path search continuously returns empty paths, the corresponding task is set to unreachable and a full task update is triggered. The exception exit point is used to expose map, reachability, or implementation errors, and to prevent partial coverage results from being mistakenly recorded as normal completion.

[0090] The aforementioned termination condition is based on the following conditions: a finite raster set, monotonically updated map state, allowable coverage areas to be reachable from the starting point, bottom-level reachable paths can be obtained within a finite number of steps, and the task structure is correctly maintained. This conclusion is used to illustrate conditional complete coverage and does not represent global optimality in arbitrary continuous space, arbitrary dynamic environment, or environment with kinematic constraints.

[0091] like Figure 2 and Figure 3 As shown, this embodiment runs the present invention and the original on six finite grid maps with the same map, starting point, coverage state definition, and termination conditions. . Figure 2 Give the results of the original method. Figure 3 The method results of this embodiment are given, wherein, Figure 2 and Figure 3 The black areas represent uncovered areas, and the colored tracks indicate the movement sequence. Evaluation metrics for coverage results include coverage rate, path length, and number of turns. Coverage rate... The calculation is as follows: , In the formula, To allow the number of cells in the coverage area whose final state is covered raster cells, The total number of allowed coverage units is not included, except for obstacle, dynamic exclusion units, and restricted buffer units. .

[0092] Path length The calculation is as follows: , In the formula, , For the first in the path For each position, if it needs to be converted to physical length, multiply each item by the corresponding grid side length; if all moves are four-adjacent, then each valid move item is 1.

[0093] Number of turns The calculation is as follows: , In the formula, This is an indicator function; it takes the value 1 if the condition is true, and 0 otherwise. From arrive The direction angle of movement is calculated, and a turn is counted when the direction angle changes after two consecutive steps. Table 1 records the comparison of the coverage results of the original epsilon-star method and the present invention in the same 6 Python raster prototype maps.

[0094] Table 1. Comparison of coverage results of the two methods on the same 6 Python raster prototype maps.

[0095] As shown in Table 1, both methods achieved a coverage rate of 1.000 across the six maps. The total path length of this invention decreased from 2939.0 grids to 2724.0 grids, a reduction of 7.32%; on map 6, it decreased from 524.0 grids to 394.0 grids, a reduction of 24.81%. The total number of turns increased from 708 to 717, indicating that this invention primarily improves task sequence and position switching, but has not directly optimized heading continuity or minimum turning radius.

[0096] like Figure 4 and Figure 5 As shown, this embodiment has 3 In a simulated scenario and a real-world scenario of lodged farmland, the original methods were compared using the same map state, task confirmation, and termination logic. The first drone rough exploration path of the present invention. Figure 4 The top row 4(a)-4(b) shows the original method results for the three simulation scenarios, and the bottom row 4(d)-4(f) shows the BSP method results; Figure 5 (a) and Figure 5(b) The results show the original method and the actual drone trajectory of the present invention in a real farmland scenario, respectively; where the red trajectory represents the online coarse survey trajectory of the first drone, and the blue trajectory represents the fine survey trajectory of the second drone generated based on the output of the first stage. The comparison results of the original method and the drone trajectory of the present invention in the real farmland scenario are recorded in Table 2.

[0097] Table 2 Comparison of UAV trajectories between the original method and the present invention in a real farmland scenario.

[0098] As shown in Table 2, the final number of uncovered grids was 0 for both methods in all four scenarios. The total number of waypoints for the BSP method decreased from 845 to 702, a reduction of 16.92%; the coarse survey path length was also reduced in each scenario. These results demonstrate that this embodiment can operate within the measured perception, mapping, planning, and flight control closed loop, but the aforementioned reduction ratios are not extrapolated to all maps or all UAVs.

[0099] To further illustrate the sequential relationship between the steps, a single planning cycle is executed in the following order: Read the current position and local observations, update the symbol map, and refresh the blocking mask and potential energy map; construct a three-neighbor observation window and state signature according to the advancement direction, and determine the full update flag of the task structure; when a full update is triggered, extract the leading edge cells and perform clustering, matching the task identifier; generate a set of candidate task execution points for each task, select a unique task execution point, and calculate the uncovered connected components and task size; delete invalid tasks; if a current task exists, calculate the switching point and switching distance of each task; if a full update is not triggered, only recalculate the candidate set, execution point, and size of the current task, retaining the structure of other tasks; determine whether a valid task switching point other than the current task has been hit; if the current task is empty, invalid, or hit, calculate the sorting cost and reconfirm the current task; if the current task is valid, search for a reachable path with the current task execution point as the navigation target, and output the next grid movement command; after the UAV arrives, update the coverage path and E-state, and return to start the first step; if there is no valid task, it ends normally; if the preset maximum number of steps is reached, it ends abnormally.

[0100] The core relationship of this invention is as follows: Frontier task clusters are extracted from the symbol map; task execution points and task scales are obtained from these clusters; switching points and distances for other tasks are obtained from the current task candidate advancement space; and the current task is confirmed through switching point hit judgment and task sorting. As long as the above data dependencies are maintained, the local observation device, grid resolution, reachability distance algorithm, and underlying single-step planner can all be replaced according to the application. The grid side length determines the physical scale of the path length: if the side length of each grid is... If the distance is meters, then the physical distance between two adjacent points in a four-adjacent path is... Meters, the total path length can be multiplied by the number of grid steps. The purpose of using four-neighborhood and eight-neighborhood is different: four-neighborhood is used to cover reachability and task size, while eight-neighborhood is used for frontier clustering. They should not be used interchangeably in implementation.

[0101] Embodiments of the present invention have been shown and described. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A method for unmanned aerial vehicle (UAV) online coverage path planning driven by a front task cluster, characterized in that, The steps are as follows: S1. Obtain the current position and local observations of the UAV, map the local observations to a pre-established finite grid set, and update the symbol map; S2. Traverse the covered raster cells in the updated symbol map, extract the uncovered allowed raster cells in the multi-domain of the covered raster cells as frontier cells, and cluster the extracted frontier cells into at least one frontier task cluster; S3. Generate a set of candidate task execution points from the uncovered allowed grid cells in the multi-domain of each frontier unit, and determine the unique task execution point of the frontier task cluster from the set of candidate task execution points; Starting from the task execution point, the search is conducted only in uncovered allowed raster cells to extract the uncovered connected component where the task execution point is located, and the number of raster cells in the uncovered connected component is used as the task size of the frontier task cluster. S4. Set task termination conditions. Tasks that meet the task termination conditions will be judged as invalid tasks. Invalid tasks will not participate in task sorting. S5. When the current task exists and is not invalid, set the current position as the task switching point of the current task, and construct the candidate advancement space by the union of the uncovered connected components corresponding to the candidate task execution points of the current task; determine the task switching points of each non-current task in the candidate advancement space, and calculate the reachable distance from the task switching point of the non-current task to the task execution point of the non-current task, as the switching distance of the non-current task. S6. Determine whether the current position has hit any valid task switching point that is not the current task. Set the confirmed task execution point of the current task as the navigation target. Search for a reachable path from the current position to the navigation target. Output the next grid movement command based on the reachable path. S7. Repeat the above steps until the termination condition is met.

2. The online coverage path planning method for unmanned aerial vehicles driven by a frontier mission cluster according to claim 1, characterized in that, The symbol map in step S1 is defined as follows: , In the formula, This indicates that no allowed raster cells are covered. This indicates that the grid cells have been covered. Represents obstacle grid cells, Indicates a restricted cache grid cell. It represents the set consisting of all grid cells. Indicates at time Grid cell The corresponding symbol map's state values; The current position of the UAV, local observations, and the current symbolic map are input into the map state update function to update the map state and obtain the symbolic map for the next time step. The formula is as follows: , In the formula, This represents the map state update function. Indicates the current symbol map state. Indicates the current position. Indicates local observation. This indicates the symbol map state at the next moment.

3. The online coverage path planning method for unmanned aerial vehicles driven by a frontier mission cluster according to claim 1, characterized in that, Step S2, based on the updated symbol map, also includes determining the task structure update method, specifically: Based on the current position and direction of advance of the UAV, a three-neighbor observation window is constructed, and the status of the neighboring grid cells in the symbol map is read in sequence to generate a status signature; By combining state signature changes and task lifecycle events, a full update flag for the task structure is determined; When a full update of the task structure is triggered, the extraction of leading edge units, clustering of leading edge task clusters, determination of task execution points, calculation of task size, and calculation of task switching points and switching distances are re-executed. When a full update of the task structure is not triggered, only the set of candidate task execution points, the determination of task execution points, and the calculation of task size for the current task are updated, while the task structure of each non-current task is retained. The task lifecycle events include at least the following: the frontier task cluster set is empty; the current task is empty and there are uncovered allowed grid cells; the frontier task cluster of the current task disappears or splits; the task execution point of the current task is covered or unreachable; and the candidate task execution point set of the current task is empty.

4. The online coverage path planning method for unmanned aerial vehicles driven by a frontier mission cluster according to claim 1, characterized in that, The step of clustering the frontier mission cluster in step S2 is as follows: Starting with any frontier unit, sequentially search for frontier units adjacent to it in multiple domains. Group the found adjacent frontier units into the same frontier task cluster, until all frontier units have been processed. The resulting set of all frontier task clusters is given by the formula: , In the formula, The set of numbers of frontier mission clusters. for The set of all cutting-edge mission clusters at any given moment. for Time of the first A cluster of cutting-edge missions; Based on the overlapping relationship of the leading units, task identifier matching is performed on the leading task clusters at the previous and next iteration times; Delete the leading task cluster marked as a failed task.

5. The online coverage path planning method for unmanned aerial vehicles driven by a frontier mission cluster according to claim 1, characterized in that, The process of determining the task execution point in step S3 is as follows: Calculate the reachable distance from the current position to each candidate execution point in the candidate set, integrate the potential energy value output by the underlying single-step planner, and construct the end-point priority; Based on the lexicographical order of reachability distance, potential energy value, and endpoint priority, a unique task execution point is selected from the reachable candidate task execution points. The rule for selecting a unique task execution point is as follows: The grid cell with the smallest reachable distance is used as the sole task execution point; Given the same reachability, the grid cell with the highest potential energy value will be the sole task execution point. When the reachability and potential energy are the same, the grid cell with the lowest priority at the descending end is used as the only task execution point; When the reachability, potential energy, and end-point priority are all the same, a unique task execution point is determined by ascending order of row coordinates and column coordinates.

6. The online coverage path planning method for unmanned aerial vehicles driven by a frontier mission cluster according to claim 1, characterized in that, The task switching point for each non-current task in step S5 is determined as follows: Calculate the reachable distance from each grid cell in the candidate propulsion space to the task execution point of the non-current task, and select the grid cell with the smallest reachable distance as the task switching point of the non-current task. The formula is as follows: , In the formula Not the current task At any moment Task switching point, Space for candidate advancement The grid cells in For the task execution point, Grid cells in candidate propulsion space To non-current task Task execution point The reachable distance between them; When there are multiple grid cells with the same reachability distance, select the first one to arrive according to the current task progress order; If the distance to the execution point of a non-current task is inaccessible, or if there are no grid cells in the candidate propulsion space that can reach the execution point of a non-current task, the non-current task will not be considered as a task switching target for this round.

7. The online coverage path planning method for unmanned aerial vehicles driven by a frontier mission cluster according to claim 1, characterized in that, The determination of whether a valid task switching point has been hit in step S6 is as follows: The current position is compared with the task execution points of each non-current task. If the current position coincides with any task switching point of a non-current task, it is determined that a valid task switching point has been hit, the tasks are reordered and the current task is confirmed. If no task switch point other than the current task is matched at the current position, and the current task is still valid, then no reordering will be performed, and the current task will continue to be executed.

8. The online coverage path planning method for unmanned aerial vehicles driven by a frontier mission cluster according to claim 1, characterized in that, The process of searching for a reachable path from the current location to the navigation target in step S6 is as follows: Calculate reachable paths on known, passable raster cells in the symbol map; do not allow entry into raster cells that are impassable. Each round of path planning outputs only the first grid cell in the reachable path after the current position as the movement command for the next grid cell, and after executing the movement to the current position, returns to reacquire the UAV's current position and local observations.

9. The online coverage path planning method for unmanned aerial vehicles driven by a frontier mission cluster according to claim 1, characterized in that, The termination conditions in step S7 include normal termination and abnormal termination. The normal termination is as follows: If there are no non-failed tasks and no executable leading edge cells or the number of remaining uncovered allowed raster cells is zero, output the online coverage path, final symbol map and end marker; The abnormal termination is as follows: Each time the drone is controlled to move to the next grid, the number of path planning steps is incremented. If the cumulative path planning steps reach the preset maximum number of steps and there are still uncovered allowed grid cells, an abnormal termination flag will be output.

10. The online coverage path planning method for unmanned aerial vehicles driven by a frontier mission cluster according to claim 1 or 9, characterized in that, The calculation process for the remaining uncovered allowable grid cells is as follows: , In the formula, To allow coverage of the grid cell set, For a single grid cell, for Time grid unit status markers, For uncovered allowed raster cells, This represents the number of remaining uncovered raster cells allowed. Among them, assuming that the covered grid cells do not experience state rollback, the remaining uncovered grid cells are allowed to be [number]. Monotonically non-increasing, barrier grid cells and forbidden buffer grid cells are composed of the set of allowed overlay grid cells. The definition excludes the number of remaining uncovered allowed units. It has an impact.