A path planning method, device, electronic device and storage medium
By determining the target constraint set and priority strategy in multi-UAV path planning, the number of conflict detection and path re-planning is reduced, the efficiency of path planning is improved, and the problem of excessive time consuming in large-scale problems is solved.
Patent Information
- Application Number
- CN202211336055.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-10-28
AI Technical Summary
In multi-UAV path planning, the number of conflict detection and path re-planning increases exponentially with the number of planning objects, causing large-scale problem solving to take too long or even fail.
By determining the target constraint set, indicating the occupation of the target grid map by different objects at different times, the paths of UAVs with high priority are determined first, reducing the number of conflict detection and path re-planning, and using UAVs with low priority to avoid The strategy for high-priority drones combines A* algorithm, genetic algorithm, etc. to design parallel algorithms to improve path planning efficiency.
It effectively reduces the number of path re-planning during multi-UAV mission execution, improves path planning efficiency, and solves the problem of excessive time consuming in large-scale data path planning.
Smart Images

Figure CN115711620B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and specifically relates to a path planning method, device, electronic device and storage medium. Background Art
[0002] In recent years, drones have been widely used in agricultural irrigation, disaster relief, power inspection and other fields due to their high maneuverability, good agility and low cost. Compared with a single drone, multiple drones can perform multiple independent tasks at the same time, or perform the same task together, with unique advantages such as high efficiency, good robustness and high fault tolerance.
[0003] Path planning is the core issue and main challenge in the process of multi-UAV mission execution. Multi-UAV path planning can be abstracted as a multi-object path planning problem, among which the relevant conflict-based search (CBS) algorithm is widely used. This algorithm needs to perform conflict detection on the planned paths of each object and re-plan the paths of the conflicting path nodes. The number of path re-planning will increase exponentially with the increase in the number of planned objects. When solving large-scale problems, it takes a long time or even fails to solve. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a path planning method, device, electronic device and storage medium, which can reduce the number of path re-planning times during the execution of tasks by multiple drones and improve the efficiency of path planning.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a path planning method, the method comprising: determining a target constraint set, wherein the target constraint set is used to represent the occupation of a target grid map by different objects at different times; determining a first path of the first object in the target grid map according to the target constraint set, wherein the first object includes at least one object among a plurality of objects to be path planned; and when a priority of the first object is higher than a priority of a second object, determining the first path as a target path of the first object, wherein the second object includes at least one object among the plurality of objects to be path planned except the first object.
[0007] In a second aspect, an embodiment of the present application provides a path planning device, which includes: a first determination module, used to determine a target constraint set, wherein the target constraint set is used to represent the occupation of a target grid map by different objects at different times; a second determination module, used to determine a first path of the first object in the target grid map according to the target constraint set, wherein the first object includes at least one object among a plurality of objects to be path planned; and a third determination module, used to determine the first path as a target path of the first object when a priority of the first object is higher than a priority of a second object, wherein the second object includes at least one object among the plurality of objects to be path planned other than the first object.
[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the path planning method described in the first aspect are implemented.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the path planning method described in the first aspect are implemented.
[0010] In an embodiment of the present application, by determining a target constraint set, wherein the target constraint set is used to represent the occupancy of a target grid map by different objects at different times; determining a first path of the first object in the target grid map according to the target constraint set, wherein the first object includes at least one object among a plurality of objects to be path planned; and when a priority of the first object is higher than a priority of a second object, determining the first path as the target path of the first object, wherein the second object includes at least one object among the plurality of objects to be path planned except the first object, the number of path re-planning times during mission execution of multiple UAVs can be reduced, thereby improving the efficiency of path planning. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 It is a flowchart of a path planning method provided in an embodiment of the present application;
[0012] Figure 2 It is a grid map and a grid identification map containing dynamic objects;
[0013] Figure 3 It is a schematic diagram of the construction of a grid identification map and its corresponding undirected graph;
[0014] Figure 4 It is a comparison chart of conflict descriptions;
[0015] Figure 5 is a schematic diagram of the structure of a path planning device provided in an embodiment of the present application;
[0016] Figure 6 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0018] Figure 1 A schematic flow chart of a path planning method provided by an embodiment of the present application is shown, and the method can be executed by an electronic device, such as a terminal device, a server device, or a network device. In other words, the method can be executed by software or hardware installed in the electronic device. As shown in the figure, the method can include the following steps.
[0019] S101: Determine a target constraint set.
[0020] The target constraint set is used to represent the occupation of the target grid map by different objects at different times.
[0021] For example, considering the representation of dynamic elements and conflict detection during multi-UAV planning, it is necessary to determine the occupancy of the grid at different times. The data structure that can be designed is shown in Table 1, where nonRigidGC represents the encoding of the target grid; envOccupancyTimeSet represents the environmental information occupancy time set, which is used to store the time occupancy information of static buildings, dynamic obstacles and other objects in the environment; and uavOccupancyTimeSet represents the occupancy time set of each UAV.
[0022] Table 1 Spatiotemporal non-rigid grid data structure
[0023]
[0024] Among them, the occupancy of the node units used to identify the static elements in the planning scenario does not change with time, and its occupancy time set contains all the elements in the discretized time series T in the planning problem. The occupancy of the node units used to identify the dynamic elements in the planning scenario changes with time. According to the spatiotemporal parameters of the dynamic elements, it is necessary to add elements t to the envOccupancyTimeSet of the corresponding grid at each discretization time t to realize the spatiotemporal gridding of the dynamic objects.
[0025] S102: Determine a first path of a first object in the target grid map according to the target constraint set.
[0026] The first object includes at least one of the multiple objects to be path planned. In this step, for a single planning object, obstacles and constraint information of the spatiotemporal grid map are considered to find a path from the starting point to the end point. The specific algorithm may include A* algorithm, genetic algorithm, ant colony optimization algorithm, etc.
[0027] S103: When the priority of the first object is higher than the priority of the second object, determine the first path as the target path of the first object.
[0028] The second object includes at least one object among the multiple objects to be path planned except the first object.
[0029] This step adopts the strategy of "low-priority drones need to avoid high-priority drones" to achieve conflict resolution. After the single-object path planning is completed, the path information of the high-priority drones is retained, effectively avoiding the huge path re-planning branch calculations caused by the existing CBS and its improved algorithm using conflict trees for conflict resolution, thereby improving the path planning efficiency; in addition, the solution of the embodiment of the present application can also further improve the efficiency of path planning by designing related parallel algorithms.
[0030] Specifically, in order to resolve path conflicts between agents, different priorities can be assigned to the conflicting agents according to the objective function or cost function of the planning problem.
[0031] In one implementation, the priority is determined based on the impact of each object on the cost function in path planning, wherein the priority of an object with a greater impact on the cost function in path planning is higher than the priority of an object with a smaller impact on the cost function in path planning.
[0032] In one implementation, the above-mentioned step S103 includes: when there is a conflict between the first path and the second path and the priority of the first object is higher than the priority of the second object, determining the first path as the target path of the first object, wherein the second path is at least one path of the second object in the target grid map determined according to the target constraint set.
[0033] In one implementation, the method further includes: if there is no conflict between the first path and the second path, determining the first path as the target path of the first object and determining the second path as the target path of the first object.
[0034] For example, when a conflict occurs, the drone with a lower priority needs to avoid the drone with a higher priority. Therefore, in all detected conflicts, the path information of the drone with a higher priority is retained. For drones whose planned paths do not conflict with the paths of other drones, their paths are retained.
[0035] A path planning algorithm provided by an embodiment of the present application determines a target constraint set, wherein the target constraint set is used to represent the occupation of a target grid map by different objects at different times; determines a first path of the first object in the target grid map according to the target constraint set, wherein the first object includes at least one object among a plurality of objects to be path planned; and when a priority of the first object is higher than a priority of a second object, determines the first path as a target path of the first object, wherein the second object includes at least one object among the plurality of objects to be path planned other than the first object, and the priority is determined according to the influence of each object on a cost function in path planning. The algorithm can reduce the number of path re-planning times during mission execution by multiple UAVs, improve path planning efficiency, and further solve the problem of too long planning time or even inability to solve the path in large-scale data path planning.
[0036] In one implementation, after the above step S103, the method further includes: updating the target constraint set according to the first path; and setting the state of the first object to have been path planned.
[0037] In one implementation, after updating the target constraint set according to the first path, it also includes: determining a third path of the third object in the target grid map according to the updated target constraint set, wherein the third object includes at least one object among the current multiple objects to be path planned.
[0038] Specifically, for the retained high-priority UAVs, it is considered that they have completed path planning, and their planned paths are stored as constraint information in the constraint table of the grid map, forming constraints for the subsequent path planning of other UAVs.
[0039] In one implementation, the priority is determined based on the impact of each object on the cost function in path planning, including:
[0040] The priority β1 of the first object a1 and the priority β2 of the second object a2 satisfy the following conditions:
[0041]
[0042] Among them, f is the cost function in path planning.
[0043] Specifically, in order to measure the quality of the planning results during planning and solving, it is necessary to set a cost function f. The cost function can generally be set to a global cumulative cost function, and information such as mission objectives and drone attributes should be considered during design. For example, in formula (2), the longest path length in the planned path set is used as the cost function value:
[0044] max 1≤i≤k len(p i ) (2)
[0045] For example, when the global cost accumulation function of the problem is as shown in formula (2), the goal of the planning problem is to make the path with the longest path length the shortest among all the planned paths of the agents, and we can get:
[0046]
[0047] Therefore, the global cumulative function is only related to the agent with the longest planning path. The agent with the longest planning path has the highest priority. For example, the priority calculation formula shown below can be used.
[0048] β i = k·len(p i )+i (4)
[0049] Where: k is the total number of UAVs involved in planning, and i represents the index corresponding to the intelligent agent. Formula (4) ensures that the priority of the planning object is positively correlated with the length of the planning path, satisfies the priority specification principle of the planning object corresponding to formula (1), and the priorities of any two planning objects are different, avoiding the situation where the conflicting objects have the same priority when the subsequent constraint rules are formulated.
[0050] In one implementation, before the above-mentioned step S102, it also includes: gridding the target geographic spatial map to obtain the target grid map, wherein the target grid map includes multiple grids; encoding the first grid object corresponding to the first grid to obtain a first coding value of the first grid object, wherein the first grid includes at least one grid among the multiple grids, and the first grid object includes at least one of the grid cells, grid points, grid edges, and grid faces corresponding to the first grid.
[0051] In one implementation, determining the first path of the first object in the target grid map based on the target constraint set includes: determining at least one of the grid objects that the first object passes through from the grid object corresponding to the first starting point to the grid object corresponding to the first end point and the occupancy time of the at least one grid object while satisfying all constraints in the target constraint set.
[0052] In one implementation, updating the target constraint set according to the first path includes: adding at least one mesh object in the first path and the occupation time corresponding to the at least one mesh object to the target constraint set.
[0053] In one implementation, the conflict between the first path and the second path includes: whether a first grid object in the first path and a second grid object in the second path are occupied at the same time, wherein the first grid object and the second grid object belong to the same grid object in the target grid map.
[0054] When solving the path planning problem, we first need to model the planning scene and abstract the actual spatial scene and target into a digital environment that the planning algorithm can handle. In the scene modeling method, the voxel model is constructed through the grid subdivision method, which has the advantages of simple and intuitive adjacency relationship and easy implementation. However, the existing grid subdivision method simply uses the voxels obtained by subdivision to identify the position of the planning object. This identification method has certain discontinuities and cannot accurately express the location information of the planning object. As a result, in the path planning process, it is necessary to perform conflict judgment and conflict resolution based on different types of conflict definitions, which affects the efficiency of large-scale UAV path planning. Specifically, the conflicts that need to be considered include vertex conflicts, edge conflicts, and exchange conflicts. Assume that p i and p j For the planned paths of two UAVs, the three conflicts are defined as follows:
[0055] (1) When two drones occupy the same grid at the same time, it is considered that a vertex conflict has occurred [p i (t) = p j (t)].
[0056] (2) When two drones pass through the same edge in the same direction at the same time, an edge conflict is considered to have occurred. i (t) = p j (t) and p i (t+1)=p j (t+1)].
[0057] (3) When two drones exchange positions during a movement, it is considered that an exchange conflict has occurred. i (t) = p j (t+1) and p i (t+1)=p j (t)].
[0058] Since the definition of edge conflict includes the definition of vertex conflict, avoiding vertex conflict will also lead to avoiding edge conflict. Therefore, in the actual planning process, vertex conflict and exchange conflict are mainly considered. However, in reality, two planned objects may only have vertex conflict during the movement, but not exchange conflict. The reason why two different types of conflicts need to be defined is that there is discontinuity when using traditional grid structure to identify objects. Different types of conflict type definitions will affect the efficiency of the conflict detection process.
[0059] The scene in the embodiment of the present application refers to the spatial area during the flight of the drone. When the scale of the grid at a specific level is comparable to the safe distance of the drone, using a grid to identify the different positions of the drone can greatly reduce the amount of data for target identification. Specifically, the present application expands the hierarchical structure of the grid, fully utilizes the grid elements, grid faces, grid edges, and grid points, and thus improves the identification capability of the grid. First, it is necessary to adopt the voxel modeling of the scene implemented in the traditional way, and then transform the voxel scene to the expanded grid model. During the conversion process, the occupancy of the node units used to identify the static elements in the planning scene does not change with time, and its occupancy time set contains all elements in the discretized time series T in the planning problem. The occupancy of the node units used to identify the dynamic elements in the planning scene changes with time. It is necessary to add element t to the envOccupancyTimeSet in the aforementioned Table 1 at each discretized time t according to the spatiotemporal parameters of the dynamic elements to realize the spatiotemporal gridding of dynamic objects. For example Figure 2 In the grid map containing dynamic objects shown in the figure, grid A is occupied at time T1 and T2, grid C is occupied at time T0 and T2, and grid D is occupied at time T1. In the converted grid identification map, the occupation schedule of each grid identification unit is shown in Table 2.
[0060] Table 2 Dynamic object rigid grid and non-rigid grid occupation time collection table
[0061]
[0062]
[0063] In an embodiment of the present application, when performing path planning in a discrete grid environment, it is necessary to abstract the planning scene into an undirected graph G = (V, E), where the vertex set V represents the positions that the planning object can occupy, and the edge set E represents the paths that the vertices can pass. The traditional grid scene has a simple and intuitive spatial relationship, which can conveniently describe the traversability of the planning scene. The grid modeling scene of the present application, due to the addition of more traversable nodes, can describe a more accurate flight path, but it also brings about the diversity of spatial connectivity methods. Therefore, voxel modeling alone cannot well describe the adjacency relationship between nodes. It is necessary to construct a topological relationship diagram of the drone flight scene based on the results of voxel modeling, that is, a scene undirected graph.
[0064] The UAV flight scene is generally three-dimensional, but for the convenience of description below, the grid undirected graph scene generation method in this application is explained in two-dimensional space.
[0065] (1) Select a grid size that is equivalent to the size of the planning object to voxelize the planning scene and obtain a rigid grid map and an undirected graph as shown in 3(a) and 3(c);
[0066] (2) Based on the obtained rigid grid map, a non-rigid grid map and an undirected graph are constructed: the grid structure is expanded to give cells, grid points, and grid edges identification capabilities (there are no grid faces in a two-dimensional grid), including: ① The starting and ending grids in the original grid map are identified using cells in the corresponding structure; ② For inaccessible grids, all elements of the grid (cells, grid points, grid edges) are set to be inaccessible. The generated identification map is shown in Figure 3(b). The corresponding undirected graph is shown in Figure 3(d), where the black nodes correspond to the rigid grid nodes in the original undirected graph and now represent the cell objects in the non-rigid grid; ③ The white nodes are the nodes generated after the grid structure is expanded, representing the grid points, grid edges, and other objects in the non-rigid grid.
[0067] (3) For each node in the generated non-rigid grid map, a data structure as shown in Table 1 is constructed, and the non-rigid grid code is calculated. The grid occupancy set is obtained by taking the union of the grid occupancy sets in the original undirected graph nodes adjacent to the node.
[0068] (4) Dynamic object identification method: Use a range of the same size as the original grid map for identification, and expand the identification nodes from being located only in grid cells to being located in all elements of the grid.
[0069] In non-rigid grid maps, since the position of moving objects is more accurately identified, both conflicts can be converted into collision conflicts for unified description. Figure 4 As shown in Figure 2, for collision conflicts, the non-rigid grid map is more accurate than the rigid grid map, but the nature of the conflict is the same, that is, the agents occupy the same position at time t, that is, p i (t) = p j (t). For exchange conflicts, in the grid map, it means that the agent exchanges positions between time t and t+1, that is, p i (t+1)=p j (t) and p j (t) = p i (t+1), however, in the non-rigid grid map, the exchange conflict is transformed into a collision conflict because the motion trajectory is expressed more continuously. Since the conflict description is unified, it is only necessary to determine whether there is a grid object (grid element, grid surface, grid edge, grid point) that is repeatedly occupied at the same time. If so, it is considered that the relevant UAVs have a conflict at the grid object, otherwise, there is no conflict. This simplifies the conflict detection process and improves the efficiency of conflict detection.
[0070] It should be noted that the path planning method provided in the embodiment of the present application can be executed by a path planning device or a control module in the path planning device for executing the path planning method. In the embodiment of the present application, the path planning device provided in the embodiment of the present application is described by taking the execution of the path planning method by the path planning device as an example.
[0071] Figure 5 A structural schematic diagram of a data packet processing device provided in an embodiment of the present application is shown, the device 500 comprising: a first determination module 510, for determining a target constraint set, wherein the target constraint set is used to represent the occupation of a target grid map by different objects at different times; a second determination module 520, for determining a first path of a first object in the target grid map according to the target constraint set, wherein the first object includes at least one object among a plurality of objects to be path planned; and a third determination module 530, for determining the first path as a target path of the first object when a priority of the first object is higher than a priority of a second object, wherein the second object includes at least one object among the plurality of objects to be path planned except the first object.
[0072] In one possible implementation, the third determination module 530 is used to determine the first path as the target path of the first object when there is a conflict between the first path and the second path and the priority of the first object is higher than that of the second object, wherein the second path is at least one path of the second object in the target grid map determined according to the target constraint set.
[0073] In a possible implementation, the third determination module 530 is further configured to: when there is no conflict between the first path and the second path, determine the first path as the target path of the first object, and determine the second path as the target path of the first object.
[0074] In a possible implementation, the device 500 further includes: a processing module, configured to: update the target constraint set according to the first path; and set the state of the first object to have been path planned.
[0075] In a possible implementation, the processing module is further used to determine a third path of the third object in the target grid map according to the updated target constraint set, wherein the third object includes at least one object among the current multiple objects to be path planned.
[0076] In one possible implementation, the priority is determined based on the impact of each object on the cost function in path planning, wherein the priority of an object with a greater impact on the cost function in path planning is higher than the priority of an object with a smaller impact on the cost function in path planning.
[0077] In a possible implementation, the priority is determined according to the influence of each object on the cost function in path planning, including:
[0078] The priority β1 of the first object a1 and the priority β2 of the second object a2 satisfy the following conditions:
[0079]
[0080] Among them, f is the cost function in path planning.
[0081] In a possible implementation, the device 500 also includes: a preprocessing module, used to: grid the target geographic spatial map to obtain the target grid map, wherein the target grid map includes multiple grids; encode the first grid object corresponding to the first grid to obtain a first encoding value of the first grid object, wherein the first grid includes at least one grid among the multiple grids, and the first grid object includes at least one of the grid cells, grid points, grid edges, and grid faces corresponding to the first grid; the second determination module 520, used to: determine at least one of the grid objects passed by the first object from the grid object corresponding to the first starting point to the grid object corresponding to the first end point and the occupancy time of the at least one grid object while satisfying all constraints in the target constraint set.
[0082] In a possible implementation manner, the processing module is configured to add at least one mesh object in the first path and an occupation time corresponding to the at least one mesh object to the target constraint set.
[0083] In a possible implementation, the conflict between the first path and the second path includes: whether a first grid object in the first path and a second grid object in the second path are occupied at the same time, wherein the first grid object and the second grid object belong to the same grid object in the target grid map.
[0084] The device 500 provided in the embodiment of the present application can execute the various methods described in the foregoing method embodiments, and realize the functions and beneficial effects of the various methods described in the foregoing method embodiments, which will not be repeated here.
[0085] Figure 6 A schematic diagram of the hardware structure of an electronic device that implements the embodiment of the present application is shown. Referring to the figure, at the hardware level, the electronic device includes a processor, and optionally, an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.
[0086] The processor, the network interface and the memory may be interconnected through an internal bus, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0087] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0088] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a device for locating the target user at the logical level. The processor executes the program stored in the memory and is specifically used to perform: determining a target constraint set, wherein the target constraint set is used to represent the occupation of the target grid map by different objects at different times; determining a first path of a first object in the target grid map according to the target constraint set, wherein the first object includes at least one object among multiple objects to be path-planned; and determining the first path as the target path of the first object when the priority of the first object is higher than the priority of the second object, wherein the second object includes at least one object among the multiple objects to be path-planned except the first object.
[0089] In one implementation, when the priority of the first object is higher than the priority of the second object, determining the first path as the target path of the first object includes: when there is a conflict between the first path and the second path and the priority of the first object is higher than the priority of the second object, determining the first path as the target path of the first object, wherein the second path is at least one path of the second object in the target grid map determined according to the target constraint set.
[0090] In an implementation manner, when there is no conflict between the first path and the second path, the first path is determined as the target path of the first object, and the second path is determined as the target path of the first object.
[0091] After determining the first path as the target path of the first object, the method further includes: updating the target constraint set according to the first path; and setting the state of the first object to have been path planned.
[0092] In one implementation, after updating the target constraint set according to the first path, it also includes: determining a third path of the third object in the target grid map according to the updated target constraint set, wherein the third object includes at least one object among the current multiple objects to be path planned.
[0093] In one implementation, the priority is determined based on the impact of each object on the cost function in path planning, wherein the priority of an object with a greater impact on the cost function in path planning is higher than the priority of an object with a smaller impact on the cost function in path planning.
[0094] In one implementation, the priority is determined according to the influence of each object on the cost function in path planning, including: the priority β1 of the first object a1 and the priority β2 of the second object a2 satisfy the following conditions:
[0095]
[0096] Among them, f is the cost function in path planning.
[0097] In one implementation, before determining the first path of the first object in the target grid map, it also includes: gridding the target geographic spatial map to obtain the target grid map, wherein the target grid map includes multiple grids; encoding the first grid object corresponding to the first grid to obtain a first encoding value of the first grid object, wherein the first grid includes at least one grid among the multiple grids, and the first grid object includes at least one of the grid cells, grid points, grid edges, and grid faces corresponding to the first grid.
[0098] In one implementation, determining the first path of the first object in the target grid map based on the target constraint set includes: determining at least one of the grid objects that the first object passes through from the grid object corresponding to the first starting point to the grid object corresponding to the first end point and the occupancy time of the at least one grid object while satisfying all constraints in the target constraint set.
[0099] In one implementation, updating the target constraint set according to the first path includes: adding at least one mesh object in the first path and the occupation time corresponding to the at least one mesh object to the target constraint set.
[0100] In one implementation, the conflict between the first path and the second path includes: whether a first grid object in the first path and a second grid object in the second path are occupied at the same time, wherein the first grid object and the second grid object belong to the same grid object in the target grid map.
[0101] The methods disclosed in the embodiments shown in the flowcharts of the present application can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0102] The electronic device can also execute the methods described in the foregoing method embodiments, and realize the functions and beneficial effects of the methods described in the foregoing method embodiments, which will not be repeated here.
[0103] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0104] The embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device performs the following operations: Figure 1 The embodiment shown.
[0105] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0106] Furthermore, an embodiment of the present application also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the following process is implemented: Figure 1 The embodiment shown.
[0107] In short, the above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0108] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0109] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0110] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0111] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A path planning method, It is characterized in that The method comprises: Determine a target constraint set, wherein the target constraint set is used to represent the occupation of the target grid map by different objects at different times; Determining a first path of a first object in the target grid map according to the target constraint set, wherein the first object includes at least one object among a plurality of objects to be path planned; When the priority of the first object is higher than that of the second object, the first path is determined as the target path of the first object, wherein the second object includes at least one object other than the first object among the multiple objects to be path planned, and the priority is determined according to the influence of each object on the cost function in path planning, and when the cost function is only related to the object with the longest planned path, the priority of the object is positively correlated with the length of the planned path of the object.
2. The method according to claim 1, It is characterized in that The step of determining the first path as the target path of the first object when the priority of the first object is higher than the priority of the second object includes: In the event that the first path conflicts with the second path and the priority of the first object is higher than that of the second object, the first path is determined as the target path of the first object, wherein the second path is at least one path of the second object in the target grid map determined according to the target constraint set.
3. The method according to claim 2, It is characterized in that Also includes: In the case that there is no conflict between the first path and the second path, the first path is determined as the target path of the first object, and the second path is determined as the target path of the second object.
4. The method according to any one of claims 1 to 3, It is characterized in that After determining the first path as the target path of the first object, the method further includes: updating the target constraint set according to the first path; The state of the first object is set to have path planned.
5. The method according to claim 4, It is characterized in that After updating the target constraint set according to the first path, the method further includes: A third path of a third object in the target grid map is determined according to the updated target constraint set, wherein the third object includes at least one object among the current plurality of objects to be path planned.
6. The method according to claim 1, It is characterized in that in, The priority of an object with a greater impact on the cost function in path planning is higher than the priority of an object with a smaller impact on the cost function in path planning.
7. The method according to claim 1, It is characterized in that The priority is determined based on the impact of each object on the cost function in path planning, including: The first object a 1 Priority β 1 and the second object a 2 Priority β 2 The following conditions are met: Among them, f is the cost function in path planning.
8. The method according to claim 2, It is characterized in that Before determining the first path of the first object in the target grid map, the method further includes: Gridding the target geographic space map to obtain the target grid map, wherein the target grid map includes a plurality of grids; Encode a first grid object corresponding to a first grid to obtain a first encoded value of the first grid object, wherein the first grid includes at least one grid among the plurality of grids, and the first grid object includes at least one of a cell, a grid point, a grid edge, and a grid face corresponding to the first grid; Determining a first path of the first object in the target grid map according to the target constraint set includes: Under the condition that all constraints in the target constraint set are satisfied, at least one mesh object that the first object passes through from the mesh object corresponding to the first starting point to the mesh object corresponding to the first end point and the occupation time of the at least one mesh object are determined.
9. The method according to claim 8, It is characterized in that The updating of the target constraint set according to the first path includes: At least one mesh object in the first path and the occupation time corresponding to the at least one mesh object are added to the target constraint set.
10. The method according to claim 8, It is characterized in that The first path conflicts with the second path, including: Whether a first grid object in the first path and a second grid object in the second path are occupied at the same time, wherein the first grid object and the second grid object belong to the same grid object in the target grid map.
11. A path planning device, It is characterized in that The device comprises: A first determination module is used to determine a target constraint set, wherein the target constraint set is used to represent the occupation of the target grid map by different objects at different times; A second determination module, configured to determine a first path of a first object in the target grid map according to the target constraint set, wherein the first object includes at least one object among a plurality of objects to be path planned; A third determination module is used to determine the first path as the target path of the first object when the priority of the first object is higher than the priority of the second object, wherein the second object includes at least one object other than the first object among the multiple objects to be path planned, and the priority is determined according to the influence of each object on the cost function in path planning, and when the cost function is only related to the object with the longest planned path, the priority of the object is positively correlated with the length of the planned path of the object.
12. An electronic device, It is characterized in that It comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the path planning method as described in any one of claims 1 to 10.
13. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the path planning method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Multi-scale integralization coding method and device of three-dimensional space
CN107341191A
Unmanned aerial vehicle tracking and striking method, server and device
CN112817329A
Multi-robot path planning method based on dynamic time window conflict search
CN113311829A
ST-DQN-based marine unmanned aerial vehicle target searching method, and device, equipment, and medium
CN113505431A
Robot intelligent path planning method in unknown dynamic environment
CN115047880A
