A self-organizing task formation configuration method and device for unmanned aerial vehicle swarm
By setting UAV target points and flight trajectories, real-time detection and self-organizing motion patterns solve the problem of multi-UAV linear motion trajectory mission formation, and achieve efficient UAV formation configuration and energy saving.
Patent Information
- Application Number
- CN202211362159.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-02
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-11-02
Smart Images

Figure CN115639839B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a method and device for configuring a self-organizing task formation of a drone cluster, belonging to the technical field of drone formation. Background Art
[0002] With the advancement and application of global science and technology, the performance of drones has become increasingly comprehensive. In recent years, drones have played an increasingly important role in both military and civilian applications, and their potential has been gradually tapped. Drones capable of autonomous mission execution are an inevitable trend in future development. While there are many drone formation control methods and theories, few algorithms exist for mission formations based on linear motion trajectories. Summary of the Invention
[0003] The purpose of this application is to provide a method and device for self-organizing task formation configuration of a UAV cluster, using the self-organizing method to solve the task formation configuration problem of multiple UAVs based on linear motion trajectories.
[0004] To achieve the above objectives, the present application provides, in a first aspect, a method for configuring a self-organizing task formation of a drone swarm, comprising:
[0005] S100 sets the parameters of the UAVs and the mission formation, and determines the target point of each UAV in the mission formation;
[0006] S200 controls all UAVs to be formed to move toward the corresponding target point until all UAVs reach their target points and complete the mission formation configuration. The control process for each UAV is as follows:
[0007] S210: When the UAV moves toward the corresponding target point, obtain the position information of the UAV in real time, and determine the flight trajectory information of the UAV based on the position information, wherein the flight trajectory of the UAV is a straight line from the initial point to the target point, and the flight trajectory information includes the flight angle and maximum flight speed of the UAV;
[0008] S220 determines whether there are other drones within the preset communication range of the drone. If so, step S230 is executed; otherwise, the drone continues to execute the preset motion mode, wherein the motion mode includes four motion modes: uniform acceleration motion, uniform speed motion, uniform deceleration motion, and stationary motion, and each motion mode requires one time slot;
[0009] S230 performs anti-collision detection on the above-mentioned UAV and other corresponding UAVs. The above-mentioned UAV and / or other corresponding UAVs self-organize and switch to the corresponding motion mode according to the detection results of the above-mentioned anti-collision detection and move towards the corresponding target point.
[0010] In one embodiment, in step S210, determining the flight angle of the UAV according to the position information includes:
[0011] The vertical direction α of drone i i and horizontal direction β i They are shown as follows:
[0012]
[0013]
[0014] Among them, (x i ,y i ,z i ) and (a i ,b,c) are the real-time position coordinates of the above-mentioned UAV i and the position coordinates of the target point of the above-mentioned UAV i respectively.
[0015] In one embodiment, in step S100 , the above-mentioned UAV parameters include: the maximum rated flight speed of the UAV;
[0016] Then, in step S210, determining the flight speed of the UAV according to the position information includes:
[0017] The maximum movement speed set for drone i is as follows:
[0018]
[0019]
[0020] Among them, V m Is the maximum rated flight speed of the drone, the maximum flight speed set by the drone i Less than or equal to the maximum rated flight speed V of the above-mentioned UAV m , is the distance from the initial point to the target point of UAV i, and dt is the length of the position update time slot.
[0021] In one embodiment, in step S230, performing collision avoidance detection on the drone and other corresponding drones includes:
[0022] Perform two consecutive time slot collision detections on the above-mentioned UAV and other corresponding UAVs. If there is no collision problem between the above-mentioned UAV and other corresponding UAVs, perform a road occupation detection on the above-mentioned UAV and other corresponding UAVs to determine whether there is a road occupation problem between the above-mentioned UAV and other corresponding UAVs, and use the judgment result as the detection result of the above-mentioned anti-collision detection.
[0023] In one embodiment, in step S100, the above-mentioned drone parameters further include: the safety sphere radius of the drone;
[0024] Then, in step S230, performing two consecutive time slot collision detection on the above-mentioned UAV and other corresponding UAVs includes:
[0025] Determine whether the distance between the above-mentioned UAV and other corresponding UAVs in two consecutive time slots is less than twice the safety sphere radius. If so, the existence of a collision problem between the above-mentioned UAV and other corresponding UAVs is regarded as the detection result of the anti-collision detection; otherwise, the non-collision problem between the above-mentioned UAV and other corresponding UAVs is regarded as the detection result of the anti-collision detection.
[0026] In one embodiment, in step S230, the above-mentioned detection of the road occupation of the above-mentioned drone and other corresponding drones includes:
[0027] Judgment Vector and vector Is the angle between the two drones greater than or equal to the preset angle? If so, the above drone and other corresponding drones do not have the problem of occupying the road as the detection result of the anti-collision detection; otherwise, it is judged Is it greater than or equal to twice the radius of the safety ball? If so, the above-mentioned UAV and other corresponding UAVs do not have the problem of occupying the road as the detection result of the anti-collision detection; otherwise, judge Is it greater than or equal to twice the safety sphere radius? If so, the above-mentioned UAV and other corresponding UAVs do not have a road-blocking problem as the detection result of the collision avoidance detection; otherwise, the above-mentioned UAV and other corresponding UAVs do have a road-blocking problem as the detection result of the collision avoidance detection;
[0028] Among them, the above vector is the vector pointing from the above UAV to the direction of other corresponding UAVs. is the vector pointing from the above UAV to the corresponding target point, is the vertical distance from other corresponding UAVs to the flight trajectory of the above UAV. is the distance from other corresponding UAVs to the position of the above UAV after two consecutive time slots.
[0029] In one embodiment, in step S230, the UAV and / or other corresponding UAVs self-organize and switch to the corresponding motion mode according to the detection result of the collision avoidance detection, including:
[0030] If the collision avoidance detection result shows that the UAV and other corresponding UAVs do not have collision problems or road occupation problems, the UAV and other corresponding UAVs continue to execute the preset motion mode;
[0031] Otherwise, calculate the number of time slots required for the above-mentioned UAV and other corresponding UAVs to fly to their respective target points without obstacles. The UAV with the largest number of required time slots continues to execute the preset motion mode, and the other corresponding UAVs switch to a uniform deceleration motion or stationary motion mode until there are no collision problems or road occupation problems with the above-mentioned UAV and other corresponding UAVs.
[0032] In one embodiment, in step S220, the preset communication range of the drone is specifically:
[0033] The above-mentioned UAV maintains a two-way communication link with other UAVs in a spherical area centered on its own position and exchanges their respective position information and flight trajectory information. The radius of the above-mentioned spherical area Dr is expressed as follows:
[0034] Dr=Cr+Or+2*Sr
[0035] Cr=3*V m dt+2*Sr
[0036] Or=V m dt+2*Sr
[0037] Among them, Cr is the maximum spherical radius of UAV collision detection in two consecutive time slots, and Or is the maximum spherical radius of UAV lane occupation detection.
[0038] The second aspect of the present application provides a self-organizing task formation configuration device for a drone cluster, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the first aspect or any one of the embodiments of the first aspect when executing the computer program.
[0039] A third aspect of the present application provides a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, it implements the steps of the first aspect or any embodiment of the first aspect.
[0040] As can be seen from the above, the present application provides a method and device for self-organizing task formation configuration of a drone cluster, including setting drone parameters and task formation parameters, and determining the target point of each drone in the task formation; controlling all drones to be formed to move toward the corresponding target point until all drones reach their own target points to complete the task formation configuration. The control process for each drone is: obtaining the drone's position information in real time and determining the drone's flight trajectory information; judging whether there are other drones within the preset communication range of the drone. If so, performing anti-collision detection on the drone and other corresponding drones so that they self-organize and switch to the corresponding motion mode according to the detection results and then move toward the corresponding target point.
[0041] Compared with existing similar technologies, the present application provides a technical solution with a different concept. The self-organizing task formation configuration method and device of the drone cluster provided in the present application can be applied to the task formation configuration of multiple drones based on a straight motion trajectory. The self-organizing method is used to select and switch the drone motion mode, which reduces the time for completing the task formation. The energy consumption of the drone task formation configuration is reduced by setting the straight motion trajectory of the drone. At the same time, anti-collision detection is introduced to ensure that the formation task is completed quickly and smoothly. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0043] Figure 1 A flowchart of a method for configuring a self-organizing task formation of a drone swarm provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of a task formation scenario provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of road occupation geometry provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In the following description, specific details such as specific system structures and technologies are provided for illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present application with unnecessary details.
[0047] It will be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0048] It should also be understood that the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0049] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0050] In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application may also be implemented in other ways different from those described herein. Those skilled in the art may make similar generalizations without violating the connotation of the present application. Therefore, the present application is not limited to the specific embodiments disclosed below.
[0051] Example 1
[0052] The embodiment of the present application provides a method for configuring a self-organizing task formation of a drone cluster, such as Figure 1 As shown, the self-organizing task formation configuration method includes:
[0053] S100 sets the parameters of the UAVs and the mission formation, and determines the target point of each UAV in the mission formation;
[0054] S200 controls all UAVs to be formed to move toward the corresponding target point until all UAVs reach their target points and complete the mission formation configuration. The control process for each UAV is as follows:
[0055] S210: When the UAV moves toward the corresponding target point, obtain the position information of the UAV in real time, and determine the flight trajectory information of the UAV based on the position information, wherein the flight trajectory of the UAV is a straight line from the initial point to the target point, and the flight trajectory information includes the flight angle and maximum flight speed of the UAV;
[0056] S220 determines whether there are other drones within the preset communication range of the drone. If so, step S230 is executed; otherwise, the drone continues to execute the preset motion mode, wherein the motion mode includes four motion modes: uniform acceleration motion, uniform speed motion, uniform deceleration motion, and stationary motion, and each motion mode requires one time slot;
[0057] S230 performs anti-collision detection on the above-mentioned UAV and other corresponding UAVs. The above-mentioned UAV and / or other corresponding UAVs self-organize and switch to the corresponding motion mode according to the detection results of the above-mentioned anti-collision detection and move towards the corresponding target point.
[0058] In one application scenario, such as Figure 2As shown, drones are randomly distributed within the safety zone, ensuring that any drone arriving at the selected target point will not collide with another drone that has already reached the target point. The flight trajectory of multiple drones is set as a straight line connecting the drone's initial point and the assigned target point, ultimately forming a linear formation with the same x-coordinate distance interval. The y- and z-coordinates of this linear formation are also the same, and the x-coordinate distance interval is the same. Each drone is randomly assigned a target point in the linear formation in turn, thus completing the linear formation mission formation.
[0059] Specifically, setting drone parameters in step S100 includes setting the drone's safety sphere radius and maximum rated flight speed. Setting mission formation parameters includes the spacing and location information of each target point in the mission formation. Determining the target points for each drone in the mission formation involves randomly assigning one target point to each drone, with the total number of target points being the same as the number of drones.
[0060] Furthermore, after setting the UAV parameters and the task formation parameters in step S100, the method further includes: setting a three-dimensional motion model of the UAV according to the UAV parameters and the task formation parameters;
[0061] Since the embodiment of the present application does not consider the heading angle of the drone, it only focuses on the changes in its position and speed. Therefore, the three-dimensional motion model of drone i is as follows:
[0062]
[0063] Among them, v is the current speed of UAV i, α i and β i are the vertical and horizontal flight angles of UAV i, respectively. By setting up the UAV’s 3D motion model, we can obtain the UAV’s next real-time position information, and at the same time facilitate more intuitive observation of the situation and effect of each UAV’s mission formation.
[0064] In one application scenario, in step S200, when controlling all drones to be formed to move toward the corresponding target point, the drones can be controlled by other control platforms, such as computers or servers, etc., and the drones can also independently execute the action of moving toward the corresponding target point according to a preset movement mode, which is not limited here.
[0065] Furthermore, in the embodiment of the present application, the flight trajectory of the drone is set as a straight line trajectory connecting the drone's initial point to the assigned target point, that is, the flight trajectory of the drone does not change during the task formation configuration process. Therefore, in step S210, determining the flight angle of the drone based on the position information includes:
[0066] The vertical direction α of drone i iand horizontal direction β i They are shown as follows:
[0067]
[0068]
[0069] Among them, (x i ,y i ,z i ) and (a i ,b,c) are the real-time position coordinates of the above-mentioned UAV i and the position coordinates of the target point of the above-mentioned UAV i respectively.
[0070] Furthermore, in step S100, the above-mentioned UAV parameters include: the maximum rated flight speed of the UAV;
[0071] In this embodiment of the present application, the drone has four motion modes: uniform acceleration from 0 to a set maximum flight speed, uniform speed at a set maximum flight speed, uniform deceleration from a set maximum flight speed to 0, and stationary motion. Each motion mode requires one time slot. Therefore, in step S210, determining the flight speed of the drone based on the position information includes:
[0072] The maximum movement speed set for drone i is as follows:
[0073]
[0074]
[0075] Among them, V m Is the maximum rated flight speed of the drone, the maximum flight speed set by the drone i Less than or equal to the maximum rated flight speed V of the above-mentioned UAV m , is the distance from the initial point to the target point of UAV i, and dt is the length of the position update time slot.
[0076] Furthermore, in step S230, the collision avoidance detection of the UAV and other corresponding UAVs includes:
[0077] Perform two consecutive time slot collision detections on the above-mentioned UAV and other corresponding UAVs. If there is no collision problem between the above-mentioned UAV and other corresponding UAVs, perform a road occupation detection on the above-mentioned UAV and other corresponding UAVs to determine whether there is a road occupation problem between the above-mentioned UAV and other corresponding UAVs, and use the judgment result as the detection result of the above-mentioned anti-collision detection.
[0078] Furthermore, in step S100, the above-mentioned drone parameters also include: the safety sphere radius of the drone;
[0079] In one application scenario, to avoid collisions between drones, during the multi-drone mission formation configuration process, an embodiment of the present application sets a safety sphere area for each drone to avoid collisions between drones. When the distance between drones is less than twice the safety sphere radius, it means that a collision has occurred between the drones; and when the distance between the two is greater than or equal to twice the safety sphere radius, it means that no collision has occurred between the drones. Assuming that the radius of the drone safety sphere is Sr, the conditions for a collision between drone i and drone j are as follows:
[0080]
[0081] Among them, (x i ,y i ,z i ) and (x j ,y j ,z j ) are the coordinate values of UAV i and UAV j respectively.
[0082] Then, in step S230, performing two consecutive time slot collision detection on the above-mentioned UAV and other corresponding UAVs includes:
[0083] Determine whether the distance between the above-mentioned UAV and other corresponding UAVs in two consecutive time slots is less than twice the safety sphere radius. If so, the existence of a collision problem between the above-mentioned UAV and other corresponding UAVs is regarded as the detection result of the anti-collision detection; otherwise, the non-collision problem between the above-mentioned UAV and other corresponding UAVs is regarded as the detection result of the anti-collision detection.
[0084] Specifically, for two consecutive time slots of collision detection, the first time slot is set to the motion mode preset by the individual drone (i.e., the one it most wants to do). For example, if the current flight speed of the drone is 0, then what it most wants to do in the first time slot is uniform acceleration from 0 to the set maximum flight speed; and if the current flight speed of the drone is the set maximum flight speed, then what it most wants to do in the first time slot is uniform motion at the set maximum flight speed. Furthermore, in order to avoid collision problems between drones, the motion mode of the second time slot of the two consecutive time slots of collision detection can be set to uniform deceleration from the set maximum flight speed to 0, that is, to ensure that the drone can stop before collision. The specific process of the two consecutive time slots of collision detection is as follows:
[0085] Set the position coordinates of drone i to (x i (0),y i (0),z i(0)), then during the movement of UAV i in the first time slot, the position at the t-th second (0 < t < dt) is shown as follows:
[0086]
[0087]
[0088]
[0089] According to the above formula, at the t-th second (0 < t < dt), the distance between UAV i and UAV j is shown as follows:
[0090]
[0091] Taking the derivative, we get:
[0092]
[0093] where
[0094]
[0095]
[0096]
[0097] Let and be the zeros of the above formula and satisfy the relationship: Then the minimum distance between UAV i and UAV j during the first time slot is shown as follows:
[0098]
[0099] Set the position coordinates of UAV i as (x i (0), y i (0), z i (0)), then during the movement of UAV i in the second time slot, the position at the t-th second (dt < t < 2dt) is shown as follows:
[0100]
[0101]
[0102]
[0103] During the second time slot, the distance between UAV i and UAV j is shown as follows:
[0104]
[0105] Taking the derivative we get:
[0106]
[0107] in,
[0108]
[0109]
[0110]
[0111] set up and It is the above formula The zeros in , and satisfy the relationship: Then the minimum distance between drone i and drone j in the second time slot is As shown in the following formula:
[0112]
[0113] According to the above formula and the above formula The minimum distance between UAV i and UAV j in two consecutive time slots As shown in the following formula:
[0114]
[0115] if Then, when UAV i and UAV j perform their respective most desired motion modes in the next time slot, there will be no collision problem between the two; otherwise, when UAV i and UAV j perform their respective most desired motion modes in the next time slot, there will be a collision problem, and at least one UAV will need to perform a uniform deceleration motion from the set maximum flight speed to 0 in the next time slot.
[0116] Furthermore, in step S230, the above-mentioned detection of the road occupation of the above-mentioned drone and other corresponding drones includes:
[0117] Judgment Vector and vector Is the angle between the two drones greater than or equal to the preset angle? If so, the above drone and other corresponding drones do not have the problem of occupying the road as the detection result of the anti-collision detection; otherwise, it is judged Is it greater than or equal to twice the radius of the safety ball? If so, the above-mentioned UAV and other corresponding UAVs do not have the problem of occupying the road as the detection result of the anti-collision detection; otherwise, judge Is it greater than or equal to twice the safety sphere radius? If so, the above-mentioned UAV and other corresponding UAVs do not have a road-blocking problem as the detection result of the collision avoidance detection; otherwise, the above-mentioned UAV and other corresponding UAVs do have a road-blocking problem as the detection result of the collision avoidance detection;
[0118] Among them, the above vector is the vector pointing from the above UAV to the direction of other corresponding UAVs. is the vector pointing from the above UAV to the corresponding target point, is the vertical distance from other corresponding UAVs to the flight trajectory of the above UAV, is the distance from other corresponding UAVs to the position of the above UAV after two consecutive time slots.
[0119] Specifically, the above-mentioned lane occupation detection is to determine whether each drone occupies the flight trajectory of the other. Since the flight trajectory of the drones in the embodiment of the present application is fixed, if the drones occupy each other's lane, it may cause the drones to be unable to further complete the mission, resulting in the failure of the formation mission. Therefore, it is necessary to avoid the situation before the drones occupy each other's lanes. That is, if no collision problem occurs in two consecutive time slot collision detections, then further lane occupation detection is required. Among them, lane occupation refers to the vertical distance between the center position of a drone and the flight trajectory of another drone being less than twice the radius of the safety ball. The specific process of the lane occupation detection is as follows:
[0120] Assume that the positions of drones 1 and 2 after two time slots of continuous movement according to their most desired motion patterns are A(x'1, y'1, z'1) and B(x'2, y'2, z'2), and the target point of drone 1 is C(a1, b, c). ∠BAC is the vector and vector The angle between Figure 3 shown.
[0121]
[0122] in,
[0123]
[0124]
[0125]
[0126]
[0127] in, is the vector from point A to point B, is the vector from point A to C, and are vectors and vector The modulus value, is a vector and vector The inner product of .
[0128] If ∠BAC ≥ 90°, UAV 2 does not occupy the flight path of UAV 1; otherwise, the vertical distance between UAV 2 and the flight path of UAV 1 must be calculated according to the following formula: The vertical distance As shown in the following formula:
[0129]
[0130] if Then UAV 2 will not occupy the flight path of UAV 1; if The distance between the position of drone 1 and drone 2 after it moves from speed 0 to the position it wants to move for two consecutive time slots must be calculated, that is, like Figure 3 The distance value is shown. As shown in the following formula:
[0131]
[0132] in,
[0133]
[0134] if Then UAV 2 occupies the track of UAV 1; otherwise, UAV 2 does not occupy the track of UAV 1.
[0135] The method for detecting whether Drone 1 is occupying Drone 2's flight path is the same as the method for detecting whether Drone 2 is occupying Drone 1's flight path, and will not be repeated here. If Drone 1 and Drone 2 are detected to be occupying each other's flight paths, then at most one of Drone 1 and Drone 2 will either perform the desired motion in the next time slot, or both will perform a uniform deceleration motion from the set maximum flight speed to 0, or they will wait in place.
[0136] Furthermore, in step S230, the above-mentioned UAV and / or other corresponding UAVs self-organize and switch to corresponding motion modes according to the detection results of the above-mentioned collision avoidance detection, including:
[0137] If the collision avoidance detection result shows that the UAV and other corresponding UAVs do not have collision problems or road occupation problems, the UAV and other corresponding UAVs continue to execute the preset motion mode;
[0138] Otherwise, calculate the number of time slots required for the above-mentioned UAV and other corresponding UAVs to fly to their respective target points without obstacles. The UAV with the largest number of required time slots continues to execute the preset motion mode, and the other corresponding UAVs switch to a uniform deceleration motion or stationary motion mode until there are no collision problems or road occupation problems with the above-mentioned UAV and other corresponding UAVs.
[0139] Specifically, the selection of the drone's motion mode in the embodiment of the present application is primarily based on the time it takes for multiple drones to complete the formation mission at the current moment, ensuring that the formation mission can be completed quickly and in a shorter time. The process involves a drone detecting other drones that may collide with it or occupy the same lane within two consecutive time slots of collision detection and lane occupation detection; then, based on whether there are other conflicting drones, it determines its own motion mode for the next step. The specific process of the drone's self-organized switching of motion modes is as follows:
[0140] If the drone does not have any other drones that may collide with it or occupy the road with it (i.e., conflict) within the range of two consecutive time slots of collision detection and lane occupation detection, then the drone only needs to continue to execute the movement mode it most wants to do in the next step; otherwise, it is necessary to calculate the number of time slots required for the drone and all other drones with which it conflicts to fly to the target point without obstacles. If the number of time slots required by any drone is greater than or equal to that of the other drones with which it conflicts, then the drone will continue to execute the movement mode it most wants to do in the next step, and all other drones with which it conflicts will decide the next movement form according to its current flight speed, that is, if the current flight speed of all other drones with which it conflicts is the set maximum flight speed, then the next step will be to choose a uniform deceleration movement from the set maximum flight speed to 0; if its current flight speed is 0, it will choose to wait in place.
[0141] It should be noted that in order to complete the formation mission, the first time slot when the drone starts moving must be a uniform acceleration motion from 0 to the set maximum flight speed, and the movement mode of the last time slot when it reaches the target point must be a uniform deceleration motion from the set maximum flight speed to 0.
[0142] Furthermore, in step S220, the preset communication range of the drone is specifically:
[0143] The above-mentioned UAV maintains a two-way communication link with other UAVs in a spherical area centered on its own position and exchanges their respective position information and flight trajectory information. The radius of the above-mentioned spherical area Dr is expressed as follows:
[0144] Dr=Cr+Or+2*Sr
[0145] Cr=3*V m dt+2*Sr
[0146] Or=V m dt+2*Sr
[0147] Where Cr is the maximum spherical radius for two consecutive UAV collision detection times, and Or is the maximum spherical radius for UAV lane occupation detection. In this embodiment, inter-UAV communication delays and UAV computation delays are not considered. Because UAVs do not need to compute collisions with all other UAVs, and if a UAV were to compute collisions with all other UAVs, this would inevitably place a high computational burden on the UAV and delay the formation of a multi-UAV formation. Therefore, setting a reasonable UAV communication radius is essential.
[0148] As can be seen from the above, compared with the existing similar technologies, the embodiments of the present application provide a technical solution with a different conception, specifically providing a self-organizing task formation configuration method for a drone cluster, including setting drone parameters and task formation parameters, and determining the target point of each drone in the task formation; controlling all drones to be formed to move toward the corresponding target point until all drones reach their own target points to complete the task formation configuration. The control process for each drone is: obtaining the drone's position information in real time and determining the drone's flight trajectory information; judging whether there are other drones within the drone's preset communication range. If so, performing anti-collision detection on the drone and other corresponding drones so that they self-organize and switch to the corresponding motion mode according to the detection results and then move toward the corresponding target point. The self-organizing task formation configuration method for a drone cluster provided in the present application can be applied to the task formation configuration of a straight motion trajectory. The self-organizing method is used to select and switch the drone motion mode, which reduces the time for completing the task formation. By setting the drone's straight motion trajectory, the energy consumption of the drone task formation configuration is reduced. At the same time, anti-collision detection is introduced to ensure that the formation task is completed quickly and smoothly.
[0149] Example 2
[0150] An embodiment of the present application provides a self-organizing task formation configuration device for a drone swarm. The self-organizing task formation configuration device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The memory is used to store software programs and modules, and the processor executes various functional applications and data processing by executing the software programs and modules stored in the memory. The memory and processor are connected via a bus. Specifically, the processor implements any step of the above-mentioned embodiment 1 by executing the computer program stored in the memory.
[0151] It should be understood that in the embodiments of the present application, the processor referred to may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0152] The memory may include a read-only memory, a flash memory, and a random access memory, and provides instructions and data to the processor. A portion or all of the memory may also include a non-volatile random access memory.
[0153] As can be seen from the above, compared with the existing similar technologies, the embodiment of the present application provides a technical solution with a different concept. The self-organizing task formation configuration device of the drone cluster provided by the embodiment of the present application can realize setting drone parameters and task formation parameters by running the above-mentioned computer program stored in the memory, and determine the target point of each drone in the task formation; control all drones to be formed to move towards the corresponding target point until all drones reach their own target points to complete the task formation configuration. The control process for each drone is: real-time acquisition of drone position information and determination of drone flight trajectory information; judgment of whether there are other drones within the preset communication range of the drone. If so, anti-collision detection is performed on the drone and other corresponding drones so that they self-organize and switch to the corresponding motion mode according to the detection results and then move towards the corresponding target point. The self-organizing task formation configuration device of the drone cluster provided by the embodiment of the present application can be applied to the task formation configuration of a straight motion trajectory. The self-organizing method is used to select and switch the drone motion mode, which reduces the time for completing the task formation. The energy consumption of the drone task formation configuration is reduced by setting the straight motion trajectory of the drone. At the same time, anti-collision detection is introduced to ensure that the formation task is completed quickly and smoothly.
[0154] It should be understood that if the above-mentioned integrated modules / units are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.
[0155] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
[0156] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0157] It should be noted that the methods and detailed examples provided in the above embodiments can be combined with the devices and equipment provided in the embodiments, and references can be made to each other, and no further details will be given.
[0158] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0159] In the embodiments provided herein, it should be understood that the disclosed apparatus / terminal equipment and methods may be implemented in other ways. For example, the apparatus / device embodiments described above are merely illustrative. For example, the division of the modules or units described above is merely a logical functional division. In actual implementation, other division methods may be used, such as combining or integrating multiple units or components into another system, or ignoring or not implementing certain features.
[0160] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A method for configuring a self-organizing task formation of a drone swarm, characterized in that: include: S100 sets the parameters of the UAV and the task formation, and determines the target point of each UAV in the task formation; S200 controls all the UAVs to be formed to move towards the corresponding target point until all UAVs reach their own target points to complete the task formation configuration. The control process for each UAV is as follows: S210: when the UAV moves toward the corresponding target point, the position information of the UAV is acquired in real time, and the flight trajectory information of the UAV is determined according to the position information, wherein the flight trajectory of the UAV is a straight line trajectory of the UAV from the initial point to the target point, and the flight trajectory information includes the flight angle and the maximum flight speed of the UAV; S220 determines whether there are other drones within the preset communication range of the drone. If so, step S230 is executed; otherwise, the drone continues to execute the preset motion mode, wherein the motion mode includes four motion modes: uniform acceleration motion, uniform speed motion, uniform deceleration motion and stationary motion, and each motion mode requires a time slot; S230 performs anti-collision detection on the drone and other corresponding drones, and the drone and / or other corresponding drones self-organize and switch to corresponding motion modes according to the detection results of the anti-collision detection and then move toward corresponding target points; In step S100, the drone parameters include: the maximum rated flight speed of the drone; Then in step S210, determining the maximum flight speed of the drone according to the position information includes: The maximum flight speed set for drone i is as follows: Among them, V m is the maximum rated flight speed of the drone, the maximum flight speed set by the drone i Less than or equal to the maximum rated flight speed V of the UAV m , is the distance from the initial point to the target point of UAV i, and dt is the length of the position update time slot.
2. The method for configuring a self-organizing task formation according to claim 1, characterized in that: In step S210, determining the flight angle of the drone according to the position information includes: The vertical direction α of drone i i and horizontal direction β i They are shown as follows: Among them, (x i ,y i ,z i ) and (a i , b, c) are the real-time position coordinates of the UAV i and the position coordinates of the target point of the UAV i respectively.
3. The method for configuring a self-organizing task formation according to claim 1, characterized in that: In step S230, the performing collision avoidance detection on the drone and other corresponding drones includes: Perform two consecutive time slot collision detections on the UAV and other corresponding UAVs. If there is no collision problem between the UAV and other corresponding UAVs, perform road occupation detection on the UAV and other corresponding UAVs to determine whether there is a road occupation problem between the UAV and other corresponding UAVs, and use the determination result as the detection result of the anti-collision detection.
4. The method for configuring a self-organizing task formation according to claim 3, characterized in that: In step S100, the drone parameters also include: the safety sphere radius of the drone; Then in step S230, the performing two consecutive time slot collision detection on the drone and other corresponding drones includes: Determine whether the distance between the UAV and other corresponding UAVs in two consecutive time slots is less than twice the radius of the safety ball. If so, the existence of a collision problem between the UAV and other corresponding UAVs is taken as the detection result of the anti-collision detection; otherwise, the non-existence of a collision problem between the UAV and other corresponding UAVs is taken as the detection result of the anti-collision detection.
5. The method for configuring a self-organizing task formation according to claim 4, characterized in that: In step S230, the performing of road occupation detection on the drone and other corresponding drones includes: Judgment Vector and vector Is the angle between the two drones greater than or equal to the preset angle? If so, the absence of a road-occupying problem between the drone and other corresponding drones is regarded as the result of the anti-collision detection; otherwise, it is determined Is it greater than or equal to twice the radius of the safety ball? If so, the UAV and other corresponding UAVs do not have the problem of occupying the road as the detection result of the anti-collision detection; otherwise, it is determined whether it is greater than or equal to twice the radius of the safety ball; if so, the UAV and other corresponding UAVs do not have a road-occupying problem as the detection result of the anti-collision detection; otherwise, the UAV and other corresponding UAVs do have a road-occupying problem as the detection result of the anti-collision detection; Among them, the vector is a vector pointing from the drone to the direction of other corresponding drones, the vector is the vector pointing from the drone to the corresponding target point, is the vertical distance from other corresponding UAVs to the flight trajectory of the UAV, is the distance from other corresponding UAVs to the position of the UAV after two consecutive time slots.
6. The method for configuring a self-organizing task formation according to any one of claims 3 to 5, characterized in that: In step S230, the UAV and / or other corresponding UAVs self-organize and switch to corresponding motion modes according to the detection result of the anti-collision detection, including: If the detection result of the anti-collision detection is that the UAV and other corresponding UAVs do not have a collision problem or a road-occupying problem, the UAV and other corresponding UAVs continue to execute the preset motion mode; Otherwise, the number of time slots required for the UAV and other corresponding UAVs to fly to their respective target points without obstacles is calculated, the UAV with the largest number of required time slots continues to execute the preset motion mode, and the other corresponding UAVs switch to a uniform deceleration motion or a stationary motion mode until there are no collision problems or road occupation problems for the UAV and other corresponding UAVs.
7. The method for configuring a self-organizing task formation according to claim 6, characterized in that: In step S220, the preset communication range of the drone is specifically: The UAV maintains a two-way communication link with other UAVs in a spherical area centered on its own position and exchanges their respective position information and flight trajectory information. The radius Dr of the spherical area is expressed as follows: Dr=Cr+Or+2*Sr Cr=3*V m dt+2*Sr Or=V m dt+2*Sr Among them, Cr is the maximum spherical radius of the UAV collision detection in two consecutive time slots, and Or is the maximum spherical radius of the UAV lane occupation detection.
8. A self-organizing task formation configuration device for a drone swarm, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
