A flight path planning method for drone swarms
By introducing the repulsion-vortex potential field three-dimensional switching mechanism and the potential field scale factor selection strategy into the local path planning of the UAV, the problems of local minima and unreachable targets in the traditional artificial potential field method are solved, and a better path is achieved. planning effect.
Patent Information
- Application Number
- CN202410815515.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-24
AI Technical Summary
Existing UAV local path planning algorithms are prone to local minima or unreachable targets in complex environments. In particular, the traditional artificial potential field method is difficult to avoid local minima and unreachable targets.
The repulsion-vortex potential field three-dimensional switching mechanism and potential field scale factor selection strategy are used to design the target potential field of the target UAV. By optimizing the gravitational and repulsive potential field functions, combined with UAV dynamics and safe flight constraints, the optimal Local flight path.
It effectively prevents the algorithm from falling into a local minimum, improves the problem of target unreachability, improves the smoothness and obstacle avoidance performance of the path, shortens the total path length and time, and is better than the average obstacle avoidance distance and minimum obstacle avoidance distance of the traditional algorithm.
Smart Images

Figure CN118426489B
Abstract
Description
Technical Field
[0001] The present application relates to the field of drone control technology, and in particular to a method for planning the flight path of a drone cluster. Background Art
[0002] UAV local path planning refers to the dynamic generation of a short-term path from the current position to the target position based on the perception and analysis of real-time environmental information during the flight of the UAV. It aims to cope with instant changes in complex or unknown environments and ensure the safe flight of the UAV. Typical local path planning algorithms are mainly based on the dynamic window method and the artificial potential field method.
[0003] However, the dynamic window method has limited predictive ability in local path planning and is not suitable for application scenarios that predict environmental changes in the distant future. The traditional artificial potential field method has the disadvantage of being easily trapped in local minima. In a complex environment, when the drone reaches a certain location, the resultant force of the repulsive forces of several obstacles is equal in magnitude and opposite in direction to the attractive force of the target point, and the resultant force is zero, causing the drone to be subjected to zero force, thus falling into the trap of local minima. The existing artificial potential field method has the disadvantage of being easily trapped in the unreachable target. When an obstacle is close to the target point, the repulsive force may cover the attractive force, making it impossible for the drone to reach the target point, resulting in the problem that although it reaches the target point, it cannot stop under the action of the repulsive potential field, resulting in the unreachable target point. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a method for planning the flight path of a drone cluster, which can effectively solve the problems of falling into local minima and unreachable target points.
[0005] The present application provides a method for planning a flight path of a drone cluster, the planning method comprising:
[0006] For each target UAV in the UAV swarm, a flight environment model of the target UAV is established;
[0007] Identifying the type of the target drone;
[0008] According to the identified type of the target UAV, the target potential field of the target UAV is designed by combining the repulsion-eddy current potential field three-dimensional switching mechanism and the potential field proportional factor selection strategy;
[0009] The designed target potential field is used to plan the local flight path of the target UAV based on the flight environment model to determine the optimal local flight path of the target UAV.
[0010] Optionally, the target potential field of the target UAV is designed according to the identified type of the target UAV, in combination with the repulsion-eddy current potential field three-dimensional switching mechanism and the potential field proportional factor selection strategy, including:
[0011] Set constraints for potential field conversion around obstacles, and determine the three-dimensional switching mechanism of repulsion-eddy current potential field based on the set constraints;
[0012] Threshold parameters are introduced to optimize the initial gravitational potential field function and the repulsive potential field function respectively, and the optimized gravitational potential field and the optimized repulsive force are determined;
[0013] Based on the constraints of UAV dynamics and safe flight, a first proportional factor of the gravitational potential field and a second proportional factor of the repulsive potential field are determined;
[0014] According to the three-dimensional switching mechanism of the repulsion-eddy current potential field and the type of the target UAV, the first proportional factor and the second proportional factor are correspondingly introduced into the optimized gravitational potential field and the optimized repulsive potential field to determine the target potential field of the target UAV.
[0015] Optionally, the setting of constraint conditions for potential field conversion around obstacles includes:
[0016] Set the allowed safe distance between the UAV and the obstacle, the vortex distance when the obstacle potential field of the UAV is completely switched to the eddy potential field, and the repulsion distance when the obstacle potential field of the UAV is completely switched from the repulsion potential field and the eddy potential field to the repulsion potential field.
[0017] Optionally, the repulsion-eddy current potential field three-dimensional switching mechanism includes:
[0018] When the relative distance between the target UAV and the obstacle is less than the safety distance or greater than the repulsion distance, the obstacle generates a repulsion potential field;
[0019] When the relative distance between the target UAV and the obstacle is greater than the safety distance but less than the repulsion distance, the obstacle generates a repulsion potential field and an eddy current potential field;
[0020] When the relative distance between the target UAV and the obstacle is equal to the vortex distance, the obstacle generates an eddy potential field.
[0021] Optionally, the function formula corresponding to the optimized gravitational potential field is:
[0022]
[0023] in, To optimize the gravitational potential field, is the first scaling factor, is the relative distance between the UAV’s location and the target location; is the threshold distance.
[0024] Optionally, the function formula corresponding to the optimized repulsive potential field is:
[0025]
[0026] in, is the repulsive gravitational potential field; is the second scale factor; is the actual distance between the target UAV and the obstacle; The obstacle influence range.
[0027] Optionally, the function formula corresponding to the first proportional factor is:
[0028]
[0029] in, is the first scaling factor, is the threshold distance; is the maximum acceleration.
[0030] Optionally, the function formula corresponding to the second proportional factor is:
[0031]
[0032] in, is the second scale factor, For a safe distance, is the obstacle influence range, is the maximum speed of the drone when it turns back. is the threshold distance, is the first scaling factor.
[0033] Optionally, when the target UAV is a pilot UAV, the target potential field of the target UAV includes: a first gravitational potential field of the target point on the target pilot UAV, a first repulsive potential field affected by obstacles during flight, and a first obstacle potential field after the three-dimensional switching mechanism of repulsion-eddy current potential field is introduced;
[0034] The function formula corresponding to the first gravitational potential field is:
[0035]
[0036] in, is the first gravitational potential field, is the first scaling factor, is the relative distance between the pilot UAV and the target point, is the threshold distance, is the location of the target point, The position of the pilot drone;
[0037] The function formula corresponding to the first repulsive potential field is:
[0038]
[0039] in, is the first repulsive potential field, is the second scale factor, To navigate drones and obstacles The relative distance is the impact range of the obstacle;
[0040] The function formula corresponding to the first obstacle potential field is:
[0041]
[0042] in, is the first obstacle potential field, is the rotation matrix for switching between repulsive potential field and vortex potential field, is the first repulsive potential field, and m is the number of obstacles.
[0043] Optionally, when the target UAV is a follower UAV, the target potential field of the target UAV includes: a first formation potential field at a relative distance, a second formation potential field at a relative angle, a total potential field of the follower UAV, a second repulsive potential field affected by obstacles during flight, a second obstacle potential field after introducing a three-dimensional switching mechanism of a repulsion-eddy current potential field, and a collision potential field between follower UAVs;
[0044] The function formula corresponding to the first formation potential field is:
[0045]
[0046] in, is the potential field of the first formation, is the distance scale factor, For the i The expected distance between the following drone and the pilot drone, For the i The relative distance between the following drone and the pilot drone;
[0047] The function formula corresponding to the second formation potential field is:
[0048]
[0049] in, is the potential field of the second formation, is the angle scale factor, For the i The relative angle between the follower drone and the pilot drone, For the i The desired angle between the follower drone and the pilot drone;
[0050] The function formula corresponding to the total potential field of the following drone is:
[0051]
[0052] in, is the total potential field, ;
[0053] The function formula corresponding to the second repulsive potential field following the drone is:
[0054]
[0055] in, is the second repulsive potential field, is the second scale factor, For the i Follow drones and obstacles The relative distance is the impact range of the obstacle;
[0056] The function formula corresponding to the second obstacle potential field is:
[0057]
[0058] in, is the second obstacle potential field, is the rotation matrix for switching between repulsive potential field and vortex potential field, is the second repulsive potential field, m is the number of obstacles;
[0059] The function formula corresponding to the collision potential field is:
[0060]
[0061] in, is the second collision potential field, is the second scale factor, is the i-th follower drone and the The relative distance between the following drones, is the safety distance, and N is the number of following drones.
[0062] The present application also provides a device for planning a flight path of a drone cluster, the planning device comprising:
[0063] Establishing a module for establishing a flight environment model of each target UAV in the UAV cluster;
[0064] An identification module, used to identify the type of the target drone;
[0065] A design module is used to design a target potential field of the target UAV according to the identified type of the target UAV, combined with a repulsion-eddy current potential field three-dimensional switching mechanism and a potential field proportional factor selection strategy;
[0066] The planning module is used to plan the local flight path of the target UAV by using the designed target potential field and based on the flight environment model to determine the optimal local flight path of the target UAV.
[0067] An embodiment of the present application also provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the planning method described above are performed.
[0068] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the planning method described above are executed.
[0069] An embodiment of the present application provides a method for planning the flight path of a drone cluster, the planning method comprising: establishing a flight environment model of the target drone for each target drone in the drone cluster; identifying the type of the target drone; designing a target potential field for the target drone based on the identified type of the target drone, in combination with a repulsion-eddy current potential field three-dimensional switching mechanism and a potential field proportional factor selection strategy; using the designed target potential field, based on the flight environment model, planning the local flight path of the target drone, and determining the optimal local flight path of the target drone.
[0070] Thus, the beneficial effects that can be achieved based on the technical solution of the present invention are as follows:
[0071] (1) The improved artificial potential field method designed in the present invention can solve the problem of unreachable targets and local minima in the traditional artificial potential field method. The designed repulsive potential field and vortex potential field superposition switching can avoid the algorithm from falling into the local minimum, causing the target to fall into "stagnation" and "oscillation", effectively improving the problem of unreachable targets.
[0072] (2) The present invention designs artificial potential fields for both the pilot UAV and the follower UAV, including the gravitational field of the target on the pilot UAV, the repulsive field of the obstacle on the pilot UAV, the gravitational field of the pilot UAV on the follower UAV, the repulsive field of the obstacle on the follower UAV, and the repulsive field between the follower UAVs. It has excellent performance in multi-UAV formation path planning, obstacle avoidance between formation aircraft, and formation maintenance during obstacle avoidance.
[0073] (3) The present invention introduces a three-dimensional switching mechanism of repulsion-potential field. The repulsion potential field and eddy current potential field can be switched smoothly, so that the total path length, time and smoothness are shortened in the process of generating local paths. The parameters of average obstacle avoidance distance and minimum obstacle avoidance distance are significantly better than other algorithms.
[0074] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0076] Figure 1 A flowchart of a method for planning a flight path of a drone cluster provided in an embodiment of the present application;
[0077] Figure 2 A schematic diagram of the principle of a three-dimensional switching mechanism of a repulsion-eddy current potential field provided in this application;
[0078] Figure 3 A schematic diagram of the repulsive force between following drones provided in this application;
[0079] Figure 4 A schematic diagram of the structure of a UAV cluster flight path planning device provided in an embodiment of the present application;
[0080] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0081] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0082] In order to better illustrate the present invention, the relevant terms are explained as follows:
[0083] Path planning: UAV path planning refers to planning the flight path of the UAV from the starting point to the target point and satisfying constraints such as safe flight, path distance, fuel consumption, etc. The "optimal" in the optimal path refers to maximizing the distance between the starting point and the end point of the UAV, thereby shortening the flight time and reducing consumption.
[0084] Local optimum: refers to the optimal value of the objective function in a specific area. This value may be the minimum or maximum value in the area. The local optimal solution is to find the optimal solution within the scope of the local search relative to a specific starting point or local search process.
[0085] Global Optimum: Relative to the entire problem space, it finds the optimal solution among all possible solutions, with the minimum or maximum objective function value.
[0086] APF: Artificial Potential Field Method, refers to a method that simulates the movement of UAVs under the combined effects of attraction from targets and repulsion from obstacles to achieve safe and efficient path planning.
[0087] First, the application scenarios to which this application is applicable are introduced. This application can be applied in drone navigation scenarios.
[0088] UAV local path planning refers to the dynamic generation of a short-term path from the current position to the target position based on the perception and analysis of real-time environmental information during the flight of the UAV. It aims to cope with real-time changes in complex or unknown environments and ensure the safe flight of the UAV. Typical local path planning algorithms are mainly dynamic window method and artificial potential field method. At present, the local path planning problem of UAV is solved by iterating technology in each algorithm or adding other algorithms for fusion to solve various algorithm performance problems and local minimum, unreachable target and other problems. For example:
[0089] The patent application number 201910602244.X discloses a local path planning algorithm. This method changes the evaluation item of the predicted trajectory direction to the angle between the trajectory end direction and the moving direction, excludes the group of speeds where obstacles block the predicted trajectory, and uses the minimum distance between the obstacle point and the trajectory within the trajectory safety range as the evaluation item. By improving the dynamic window algorithm, the local optimal situation is optimized.
[0090] Patent application number 202010713255.8 discloses a local path planning method based on dynamic programming. This method divides the current reference path into multiple layers and selects the first target arc curve through evaluation value. In the process of calculating the evaluation value, the length, collision properties and cascade screening of the arc curve are considered to make the first target arc curve conform to the kinematic rules, thereby reducing the amount of calculation.
[0091] The patent with application number 202211265053.7 discloses a local path planning method for UAV. This method uses the dynamic window method and adds a serial feasible domain evaluation function to limit the control space sampling range of the flight scene with large-area cross-sectional obstacles. The dynamic window is bound to the finite feasible domain at the front end to reduce the spiral rotation caused by over-steering or the stationary problem caused by under-steering when the UAV encounters large-area cross-sectional obstacles, thereby improving the flight efficiency of the UAV.
[0092] However, the above methods are implemented based on the dynamic window method, the traditional artificial potential field method and the existing artificial potential field method. However, the dynamic window method has the disadvantage of limited predictive ability in local path planning and is not suitable for application scenarios that predict environmental changes in the distant future. The traditional artificial potential field method has the disadvantage of being easily trapped in the local minimum. In a complex environment, when the drone reaches a certain position, the resultant force of the repulsive forces of several obstacles is equal in magnitude and opposite in direction to the attractive force of the target point, and the resultant force is zero, resulting in the drone being subjected to zero force, thus falling into the trap of the local minimum. The existing artificial potential field method has the disadvantage of being easily trapped in the unreachable target. When the obstacle is close to the target point, the repulsive force may cover the attractive force, making it impossible for the drone to reach the target point, resulting in the problem that although it reaches the target point, it cannot stop under the action of the repulsive potential field, resulting in the unreachable target point.
[0093] Based on this, an embodiment of the present application provides a method for planning the flight path of a drone cluster, which can effectively solve the problems of being trapped in a local minimum and the unreachable target point.
[0094] See also Figure 1 , Figure 1 This is a flow chart of a method for planning a flight path for a drone cluster provided in an embodiment of the present application. Figure 1As shown in , the planning method provided by the embodiment of the present application includes:
[0095] S101. For each target UAV in the UAV cluster, a flight environment model of the target UAV is established.
[0096] S102, identifying the type of the target UAV;
[0097] S103, designing a target potential field for the target UAV according to the identified type of the target UAV and combining a repulsion-eddy current potential field three-dimensional switching mechanism and a potential field proportional factor selection strategy.
[0098] S104: using the designed target potential field and based on the flight environment model, planning the local flight path of the target UAV to determine the optimal local flight path of the target UAV.
[0099] With respect to step S101, each target drone in the drone cluster includes multiple drones, and a flight environment model of the target drone is established according to the timing when local path planning is required.
[0100] With respect to step S102, the types of the drones include a pilot drone and a follower drone.
[0101] With respect to step S103, in one embodiment provided in the present application, the target potential field of the target UAV is designed according to the identified type of the target UAV, in combination with the repulsion-eddy current potential field three-dimensional switching mechanism and the potential field proportional factor selection strategy, including:
[0102] S1031. Set constraints for potential field conversion around obstacles, and determine a three-dimensional switching mechanism of repulsion-eddy current potential field based on the set constraints.
[0103] S1032. Introduce threshold parameters, optimize the initial gravitational potential field function and the repulsive potential field function respectively, and determine the optimized gravitational potential field and the optimized repulsive force.
[0104] S1033. Based on the constraints of drone dynamics and safe flight, determine the first proportional factor of the gravitational potential field and the second proportional factor of the repulsive potential field.
[0105] S1034. According to the three-dimensional switching mechanism of the repulsion-eddy current potential field and the type of the target UAV, the first proportional factor and the second proportional factor are introduced into the optimized gravitational potential field and the optimized repulsive potential field to determine the target potential field of the target UAV.
[0106] For step S1031, the constraint conditions for setting the potential field conversion around the obstacle include: setting the allowed safety distance between the UAV and the obstacle, the vortex distance when the obstacle potential field of the UAV is completely switched to the eddy current potential field, and the repulsion distance when the obstacle potential field of the UAV is completely switched from the repulsion potential field and the eddy current potential field to the repulsion potential field.
[0107] Here, the minimum distance allowed between the drone and the obstacle is defined as the safe distance d safe The threshold distance when the obstacle potential field of the drone is completely switched to the eddy potential field is the eddy distance d vort The threshold distance when the obstacle potential field of the drone completely switches from the repulsive potential field and the eddy current potential field to the repulsive potential field is the repulsive distance d rep ( ), the above three distances determine the switching mechanism of the potential field during path planning, and the relationship is shown in the formula:
[0108] (1)
[0109] It should be noted that the general formula of the traditional APF algorithm is modified as shown below:
[0110] (2)
[0111] in, is the gravitational potential field, Based on repulsive field The obtained obstacle potential field can avoid collision with obstacles.
[0112] (3)
[0113] For step S1031, the repulsion-eddy current potential field three-dimensional switching mechanism includes: when the relative distance between the target UAV and the obstacle is less than the safety distance or greater than the repulsion distance, the obstacle generates a repulsion potential field; when the relative distance between the target UAV and the obstacle is greater than the safety distance but less than the repulsion distance, the obstacle generates a repulsion potential field and an eddy current potential field; when the relative distance between the target UAV and the obstacle is equal to the vortex distance, the obstacle generates an eddy current potential field.
[0114] For examples, see Figure 2 , Figure 2 A schematic diagram of the principle of a three-dimensional switching mechanism of a repulsion-eddy current potential field provided in this application.
[0115] It should be noted that although the traditional APF algorithm can generate effective paths, it is easy to fall into local minima and cause the target to be unreachable, resulting in an incomplete path. To address the above problems, a three-dimensional switching mechanism of repulsive-eddy potential field is introduced to combine the advantages of repulsive potential field and eddy potential field, and replace the repulsive potential field with an obstacle potential field, which is equal to the repulsive potential field, eddy potential field or the superposition of the two, thereby avoiding falling into local minima, maintaining a safe distance from obstacles, and avoiding potential collisions.
[0116] Therefore, according to the constraints set in the initialization, when the drone reaches an obstacle Distance Less than safe distance or greater than the repulsion distance When the obstacle only generates a repulsive potential field; when the drone reaches the obstacle Distance Greater than safe distance When less than the repulsion distance When the obstacle generates a repulsive potential field and an eddy current potential field, The distance is equal to the vortex distance When , the obstacle only generates eddy current potential field.
[0117] For step S1032, the threshold parameter is a switching threshold of a quadratic or conical potential function.
[0118] The reason for function optimization here is to prevent the drone from being attracted too much when it is far away from the target point.
[0119] In one implementation provided in the present application, the function formula corresponding to the optimized gravitational potential field is:
[0120] (4)
[0121] in, To optimize the gravitational potential field, is the first scaling factor, is the relative distance between the UAV’s location and the target location; is the threshold distance.
[0122] In another embodiment provided in the present application, the function formula corresponding to the optimized repulsive potential field is:
[0123] (5)
[0124] in, is the repulsive gravitational potential field; is the second scale factor; is the actual distance between the target UAV and the obstacle; The obstacle influence range.
[0125] For step S1033, based on the constraints of drone dynamics and safe flight, the proportional factors of the gravitational potential field and the repulsive potential field are determined by physical quantities such as critical distance, deceleration when reaching the target, and maximum linear velocity. When the linear velocity decreases to ensure smooth arrival at the target, the drone is analyzed at the threshold distance to the target. Smooth deceleration process at t, in order to calculate the scale factor of the gravitational potential field K att , assuming that the relative position of the UAV and the target point on the y-axis and z-axis is zero, and the environment is a relatively ideal state where there are no obstacles to generate a repulsive potential field, and the UAV only flies under the attraction potential field of the target point.
[0126] (6)
[0127] in, is the potential field of the UAV in the x component, is the distance between the target point and the drone position.
[0128] in, With drone , Regarding the definition, the drone should start from the maximum speed by How much deceleration is needed to reach the target smoothly, that is, the threshold distance Should be greater than or equal to the stopping distance.
[0129] (7)
[0130] Therefore, in an implementation manner provided in the present application, the function formula corresponding to the first proportional factor is:
[0131] (8)
[0132] in, is the first scaling factor, is the threshold distance; is the maximum acceleration.
[0133] Continuing with step S1033, the obstacle impact range Usually determined based on the density of obstacles in the environment and the size of the drone. When the drone turns and moves backwards at maximum speed to avoid collision, and Safety distance to obstacles ( d safe ) and the vortex distance to the obstacle during obstacle avoidance ( d vort)related.
[0134] To simplify the calculation, assume that the distance from the drone to the target point is greater than , the distance to the obstacle is equal to d safe , the relative positions of the drone, target point and obstacle on the y-axis and z-axis are zero. The second proportionality factor associated with the repulsive potential field is calculated by the recursive process K rep The drone moves under the action of the potential field on the x-component of the target point and the obstacle:
[0135] (9)
[0136] because , ,exist , and we get the following formula:
[0137] (10)
[0138] After transformation, in another implementation manner provided in the present application, the function formula corresponding to the second proportional factor is:
[0139] (11)
[0140] in, is the second scale factor, For a safe distance, is the obstacle influence range, is the maximum speed of the drone when it turns back. is the threshold distance, is the first scaling factor.
[0141] With respect to step S1034, the target potential field of the UAV designed in the present application is realized by combining the safety eddy current artificial potential field algorithm (SVAPF).
[0142] In one embodiment provided in the present application, when the target UAV is a pilot UAV, the target potential field of the target UAV includes: a first gravitational potential field of the target point on the target pilot UAV, a first repulsive potential field affected by obstacles during flight, and a first obstacle potential field after the three-dimensional switching mechanism of repulsion-eddy current potential field is introduced;
[0143] The function formula corresponding to the first gravitational potential field is:
[0144] (12)
[0145] in, is the first gravitational potential field, is the first scaling factor, is the relative distance between the pilot UAV and the target point, is the threshold distance, is the location of the target point, The position of the pilot drone;
[0146] When there is an obstacle nearby, the repulsive force on the drone is equal to the distance between the drone and the obstacle. j The function formula corresponding to the first repulsive potential field is:
[0147] (13)
[0148] in, is the first repulsive potential field, is the second scale factor, To navigate drones and obstacles The relative distance is the impact range of the obstacle;
[0149] The function formula corresponding to the first obstacle potential field is:
[0150] (14)
[0151] in, is the first obstacle potential field, is the rotation matrix for switching between repulsive potential field and vortex potential field, is the first repulsive potential field, and m is the number of obstacles. Depends on the rotation vector and the rotation angle.
[0152] Continuing with step S1034, the drone cluster includes not only the pilot drone but also the follower drone, so the target potential field of the follower drone needs to be constructed.
[0153] Here, the construction strategy adopted includes the distance-angle formation control strategy. According to the formation principle of the leader-follower method, the follower UAV autonomously adjusts its own position according to the flight path of the leader UAV, thereby planning its own flight path. During this period, it is affected by three potential fields: the attraction field of the leader UAV, the obstacles, and the repulsion field between the follower UAVs.
[0154] For example, the following drone is attracted by the pilot drone, thereby maintaining a desired distance from the pilot drone. The drone is attracted by the pilot drone at the desired angle, so as to maintain the desired distance from the pilot drone. Expected Angle , and then adjust its own moving direction and speed. The potential field generated by the pilot drone should be composed of two parts. The first part is to adjust the relative distance between each follower drone and the pilot drone. The second part is to adjust the angle between the follower drone and the pilot drone. .
[0155] In another embodiment provided by the present application, when the target drone is a follower drone, the target potential field of the target drone includes: a first formation potential field at a relative distance, a second formation potential field at a relative angle, a total potential field of the follower drone, a second repulsive potential field affected by obstacles during flight, a second obstacle potential field after introducing a three-dimensional switching mechanism of a repulsion-eddy current potential field, and a collision potential field between follower drones;
[0156] The function formula corresponding to the first formation potential field is:
[0157] (15)
[0158] in, is the potential field of the first formation, is the distance scale factor, For the i The expected distance between the following drone and the pilot drone, For the i The relative distance between the following drone and the pilot drone;
[0159] The function formula corresponding to the second formation potential field is:
[0160] (16)
[0161] in, is the potential field of the second formation, is the angle scale factor, For the i The relative angle between the follower drone and the pilot drone, For the i The desired angle between the follower drone and the pilot drone.
[0162] The function formula corresponding to the total potential field of the following drone is:
[0163] (17)
[0164] in, is the total potential field, .
[0165] When the follower drone flies with the pilot drone, when the distance between the two is too close, the obstacle generates a repulsive force on the follower drone by generating this potential field, ensuring that obstacle avoidance can still be achieved in a complex environment. The repulsive field design of the follower drone is the same as that of the pilot drone.
[0166] The function formula corresponding to the second repulsive potential field following the drone is:
[0167] (18)
[0168] in, is the second repulsive potential field, is the second scale factor, For the i Follow drones and obstacles The relative distance is the impact range of the obstacle;
[0169] The function formula corresponding to the second obstacle potential field is:
[0170] (19)
[0171] in, is the second obstacle potential field, is the rotation matrix for switching between repulsive potential field and vortex potential field, is the second repulsive potential field, m is the number of obstacles; the potential fields generated by multiple obstacles on the drone are superimposed to obtain the total repulsive potential field of the obstacles on the drone
[0172] During the UAV formation flight, when the following UAV encounters an obstacle and tries to avoid it, if there are a large number of obstacles around, the following UAVs may collide with each other. Therefore, a repulsive field is designed between the following UAVs to avoid the above situation.
[0173] The function formula corresponding to the collision potential field is:
[0174] (20)
[0175] in, is the second collision potential field, is the second scale factor, is the i-th follower drone and the The relative distance between the following drones, is the safety distance, and N is the number of following drones.
[0176] (twenty one)
[0177] (twenty two)
[0178] is the repulsion angle factor, is the repulsion angle, which is described as the angle between the current heading of the following drone i and the tangent plane of the following drone g. ∈[0,π / 2], other following drones g pose a threat to following drone i. At this time, collision avoidance operations between following drones are required. Otherwise, drone i is considered to be in a safe state. , are the speeds of following drone i and following drone g respectively.
[0179] For examples, see Figure 3 , Figure 3 A schematic diagram of the repulsion between following drones provided in this application. Figure 3 As shown in Figure 2, when the safety areas of the following drone i and the following drone g overlap, and ∈[0,π / 2], the collision avoidance potential field between the two drones begins to take effect, generating acceleration to force the two to maintain a safe distance, thereby avoiding collisions between the following drones.
[0180] With respect to step S104, the flight environment model includes at least information such as a starting point, an end point, obstacles, a safety distance, and a maximum linear speed.
[0181] For example, Matlab is used to simulate, and the three parameters of path length, smoothness and obstacle avoidance distance to reach the end point are used as the main performance indicators to simulate, and the simulated path diagram is obtained, which is the optimal local flight path.
[0182] Thus, the beneficial effects that can be achieved based on the technical solution of the present invention are as follows:
[0183] (1) The improved artificial potential field method designed in the present invention can solve the problem of unreachable targets and local minima in the traditional artificial potential field method. The designed repulsive potential field and vortex potential field superposition switching can avoid the algorithm from falling into the local minimum, causing the target to fall into "stagnation" and "oscillation", effectively improving the problem of unreachable targets.
[0184] (2) The present invention designs artificial potential fields for both the pilot UAV and the follower UAV, including the gravitational field of the target on the pilot UAV, the repulsive field of the obstacle on the pilot UAV, the gravitational field of the pilot UAV on the follower UAV, the repulsive field of the obstacle on the follower UAV, and the repulsive field between the follower UAVs. It has excellent performance in multi-UAV formation path planning, obstacle avoidance between formation aircraft, and formation maintenance during obstacle avoidance.
[0185] (3) The present invention introduces a three-dimensional switching mechanism of repulsion-potential field. The repulsion potential field and eddy current potential field can be switched smoothly, so that the total path length, time and smoothness are shortened in the process of generating local paths. The parameters of average obstacle avoidance distance and minimum obstacle avoidance distance are significantly better than other algorithms.
[0186] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a UAV cluster flight path planning device provided in an embodiment of the present application. Figure 4 As shown in , the planning device 400 includes:
[0187] Establishing module 410, for establishing a flight environment model of each target drone in the drone cluster;
[0188] An identification module 420, used to identify the type of the target drone;
[0189] A design module 430 is used to design a target potential field of the target UAV according to the identified type of the target UAV, in combination with a repulsion-eddy current potential field three-dimensional switching mechanism and a potential field proportional factor selection strategy;
[0190] The planning module 440 is used to plan the local flight path of the target UAV by using the designed target potential field and based on the flight environment model to determine the optimal local flight path of the target UAV.
[0191] Optionally, when the design module 430 is used to design the target potential field of the target UAV according to the identified type of the target UAV, in combination with the repulsion-eddy current potential field three-dimensional switching mechanism and the potential field proportional factor selection strategy, the design module 430 is used to:
[0192] Set constraints for potential field conversion around obstacles, and determine the three-dimensional switching mechanism of repulsion-eddy current potential field based on the set constraints;
[0193] Threshold parameters are introduced to optimize the initial gravitational potential field function and the repulsive potential field function respectively, and the optimized gravitational potential field and the optimized repulsive force are determined;
[0194] Based on the constraints of UAV dynamics and safe flight, a first proportional factor of the gravitational potential field and a second proportional factor of the repulsive potential field are determined;
[0195] According to the three-dimensional switching mechanism of the repulsion-eddy current potential field and the type of the target UAV, the first proportional factor and the second proportional factor are correspondingly introduced into the optimized gravitational potential field and the optimized repulsive potential field to determine the target potential field of the target UAV.
[0196] Optionally, the setting of constraint conditions for potential field conversion around obstacles includes:
[0197] Set the allowed safe distance between the UAV and the obstacle, the vortex distance when the obstacle potential field of the UAV is completely switched to the eddy potential field, and the repulsion distance when the obstacle potential field of the UAV is completely switched from the repulsion potential field and the eddy potential field to the repulsion potential field.
[0198] Optionally, the repulsion-eddy current potential field three-dimensional switching mechanism includes:
[0199] When the relative distance between the target UAV and the obstacle is less than the safety distance or greater than the repulsion distance, the obstacle generates a repulsion potential field;
[0200] When the relative distance between the target UAV and the obstacle is greater than the safety distance but less than the repulsion distance, the obstacle generates a repulsion potential field and an eddy current potential field;
[0201] When the relative distance between the target UAV and the obstacle is equal to the vortex distance, the obstacle generates an eddy potential field.
[0202] Optionally, the function formula corresponding to the optimized gravitational potential field is:
[0203]
[0204] in, To optimize the gravitational potential field, is the first scaling factor, is the relative distance between the UAV’s location and the target location; is the threshold distance.
[0205] Optionally, the function formula corresponding to the optimized repulsive potential field is:
[0206]
[0207] in, is the repulsive gravitational potential field; is the second scale factor; is the actual distance between the target UAV and the obstacle; The obstacle influence range.
[0208] Optionally, the function formula corresponding to the first proportional factor is:
[0209]
[0210] in, is the first scaling factor, is the threshold distance; is the maximum acceleration.
[0211] Optionally, the function formula corresponding to the second proportional factor is:
[0212]
[0213] in, is the second scale factor, For a safe distance, is the obstacle influence range, is the maximum speed of the drone when it turns back. is the threshold distance, is the first scaling factor.
[0214] Optionally, when the target UAV is a pilot UAV, the target potential field of the target UAV includes: a first gravitational potential field of the target point on the target pilot UAV, a first repulsive potential field affected by obstacles during flight, and a first obstacle potential field after the three-dimensional switching mechanism of repulsion-eddy current potential field is introduced;
[0215] The function formula corresponding to the first gravitational potential field is:
[0216]
[0217] in, is the first gravitational potential field, is the first scaling factor, is the relative distance between the pilot UAV and the target point, is the threshold distance, is the location of the target point, The position of the pilot drone;
[0218] The function formula corresponding to the first repulsive potential field is:
[0219]
[0220] in, is the first repulsive potential field, is the second scale factor, To navigate drones and obstacles The relative distance is the impact range of the obstacle;
[0221] The function formula corresponding to the first obstacle potential field is:
[0222]
[0223] in, is the first obstacle potential field, is the rotation matrix for switching between repulsive potential field and vortex potential field, is the first repulsive potential field, and m is the number of obstacles.
[0224] Optionally, when the target UAV is a follower UAV, the target potential field of the target UAV includes: a first formation potential field at a relative distance, a second formation potential field at a relative angle, a total potential field of the follower UAV, a second repulsive potential field affected by obstacles during flight, a second obstacle potential field after introducing a three-dimensional switching mechanism of a repulsion-eddy current potential field, and a collision potential field between follower UAVs;
[0225] The function formula corresponding to the first formation potential field is:
[0226]
[0227] in, is the potential field of the first formation, is the distance scale factor, For the i The expected distance between the following drone and the pilot drone, For the i The relative distance between the following drone and the pilot drone;
[0228] The function formula corresponding to the second formation potential field is:
[0229]
[0230] in, is the potential field of the second formation, is the angle scale factor, For the i The relative angle between the follower drone and the pilot drone, For the i The desired angle between the follower drone and the pilot drone;
[0231] The function formula corresponding to the total potential field of the following drone is:
[0232]
[0233] in, is the total potential field, ;
[0234] The function formula corresponding to the second repulsive potential field following the drone is:
[0235]
[0236] in, is the second repulsive potential field, is the second scale factor, For the i Follow drones and obstacles The relative distance is the impact range of the obstacle;
[0237] The function formula corresponding to the second obstacle potential field is:
[0238]
[0239] in, is the second obstacle potential field, is the rotation matrix for switching between repulsive potential field and vortex potential field, is the second repulsive potential field, m is the number of obstacles;
[0240] The function formula corresponding to the collision potential field is:
[0241]
[0242] in, is the second collision potential field, is the second scale factor, is the i-th follower drone and the The relative distance between the following drones, is the safety distance, and N is the number of following drones.
[0243] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown in , the electronic device 500 includes a processor 510 , a memory 520 and a bus 530 .
[0244] The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 communicates with the memory 520 via the bus 530. When the machine-readable instructions are executed by the processor 510, the above-mentioned Figure 1 The specific implementation of the steps of the planning method in the method embodiment shown can be found in the method embodiment, and will not be repeated here.
[0245] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The specific implementation of the steps of the planning method in the method embodiment shown can be found in the method embodiment, and will not be repeated here.
[0246] 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.
[0247] 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. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0248] 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.
[0249] 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.
[0250] 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 non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0251] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for planning the flight path of a drone cluster, characterized in that: The planning method includes: For each target UAV in the UAV swarm, a flight environment model of the target UAV is established; Identifying the type of the target drone; According to the identified type of the target UAV, the target potential field of the target UAV is designed by combining the repulsion-eddy current potential field three-dimensional switching mechanism and the potential field proportional factor selection strategy; Using the designed target potential field and based on the flight environment model, a local flight path of the target UAV is planned to determine the optimal local flight path of the target UAV; According to the identified type of the target UAV, the target potential field of the target UAV is designed in combination with the repulsion-eddy current potential field three-dimensional switching mechanism and the potential field proportional factor selection strategy, including: Set constraints for potential field conversion around obstacles, and determine the three-dimensional switching mechanism of repulsion-eddy current potential field based on the set constraints; Threshold parameters are introduced to optimize the initial gravitational potential field function and the repulsive potential field function respectively, and the optimized gravitational potential field and the optimized repulsive force are determined; Based on the constraints of UAV dynamics and safe flight, a first proportional factor of the gravitational potential field and a second proportional factor of the repulsive potential field are determined; According to the repulsion-eddy current potential field three-dimensional switching mechanism and the type of the target UAV, the first proportional factor and the second proportional factor are introduced into the optimized gravitational potential field and the optimized repulsive potential field to determine the target potential field of the target UAV; The constraint conditions for setting the potential field conversion around the obstacle include: Set the safe distance allowed between the drone and the obstacle, the vortex distance when the obstacle potential field of the drone is completely switched to the eddy potential field, and the repulsion distance when the obstacle potential field of the drone is completely switched from the repulsion potential field and the eddy potential field to the repulsion potential field; The repulsion-eddy current potential field three-dimensional switching mechanism includes: When the relative distance between the target UAV and the obstacle is less than the safety distance or greater than the repulsion distance, the obstacle generates a repulsion potential field; When the relative distance between the target UAV and the obstacle is greater than the safety distance but less than the repulsion distance, the obstacle generates a repulsion potential field and an eddy current potential field; When the relative distance between the target UAV and the obstacle is equal to the vortex distance, the obstacle generates an eddy potential field.
2. The planning method according to claim 1, characterized in that: The function formula corresponding to the optimized gravitational potential field is: in, To optimize the gravitational potential field, is the first scaling factor, is the relative distance between the UAV’s location and the target location; is the threshold distance.
3. The planning method according to claim 1, characterized in that: The function formula corresponding to the optimized repulsive potential field is: in, is the repulsive gravitational potential field; is the second scale factor; is the actual distance between the target UAV and the obstacle; The obstacle influence range.
4. The planning method according to claim 1, characterized in that: The function formula corresponding to the first proportional factor is: in, is the first scaling factor, is the threshold distance; is the maximum acceleration.
5. The planning method according to claim 1, characterized in that: The function formula corresponding to the second proportional factor is: in, is the second scale factor, For a safe distance, is the obstacle influence range, is the maximum speed of the drone when it turns back, is the threshold distance, is the first scaling factor.
6. The planning method according to claim 1, characterized in that: When the target UAV is a pilot UAV, the target potential field of the target UAV includes: a first gravitational potential field of the target point on the pilot UAV, a first repulsive potential field affected by obstacles during flight, and a first obstacle potential field after the three-dimensional switching mechanism of repulsion-eddy current potential field is introduced; The function formula corresponding to the first gravitational potential field is: in, is the first gravitational potential field, is the first scaling factor, is the relative distance between the pilot UAV and the target point, is the threshold distance, is the location of the target point, The position of the pilot drone; The function formula corresponding to the first repulsive potential field is: in, is the first repulsive potential field, is the second scale factor, To navigate drones and obstacles The relative distance is the impact range of the obstacle; The function formula corresponding to the first obstacle potential field is: in, is the first obstacle potential field, is the rotation matrix for switching between repulsive potential field and vortex potential field, is the first repulsive potential field, and m is the number of obstacles.
7. The planning method according to claim 1, characterized in that: When the target UAV is a follower UAV, the target potential field of the target UAV includes: a first formation potential field at a relative distance, a second formation potential field at a relative angle, a total potential field of the follower UAV, a second repulsive potential field affected by obstacles during flight, a second obstacle potential field after introducing a three-dimensional switching mechanism of a repulsion-eddy current potential field, and a collision potential field between follower UAVs; The function formula corresponding to the first formation potential field is: in, is the potential field of the first formation, is the distance scale factor, For the i The expected distance between the following drone and the pilot drone, For the i The relative distance between the following drone and the pilot drone; The function formula corresponding to the second formation potential field is: in, is the potential field of the second formation, is the angle scale factor, For the i The relative angle between the follower drone and the pilot drone, For the i The desired angle between the follower drone and the pilot drone; The function formula corresponding to the total potential field of the following drone is: in, is the total potential field, is the potential field of the first formation; The function formula corresponding to the second repulsive potential field following the drone is: in, is the second repulsive potential field, is the second scale factor, For the i Follow drones and obstacles The relative distance is the impact range of the obstacle; The function formula corresponding to the second obstacle potential field is: in, is the second obstacle potential field, is the rotation matrix for switching between repulsive potential field and vortex potential field, is the second repulsive potential field, m is the number of obstacles; The function formula corresponding to the collision potential field is: in, is the second collision potential field, is the second scale factor, is the i-th follower drone and the The relative distance between the following drones, is the safety distance, and N is the number of following drones.
Citation Information
Patent Citations
Local path planning algorithm and device
CN111813100A
Local path planning method based on dynamic programming
CN112504288B
A Local Path Planning Method for Unmanned Aerial Vehicles
CN115328211B
Hybrid multi-aircraft conflict resolution method based on artificial potential field method and ant colony algorithm
CN105718997A
Multiple unmanned aerial vehicle formation pattern reliable transformation method based on Voronoi diagram
CN110320930A
