Path planning method and device for avoiding moving target, equipment and storage medium
By identifying conflict types and adopting corresponding avoidance strategies, including reducing speed or re-planning paths, the problem of difficulty in avoiding moving targets in the existing technology is solved, and effective path planning is achieved when moving targets are uncertain.
Patent Information
- Application Number
- CN202310409609.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2024-09-27
AI Technical Summary
Existing path planning technology is difficult to effectively avoid moving targets, especially when the position of the moving target is uncertain, and the path planning algorithm cannot be directly applied to obtain the avoidance path.
By identifying the type of conflict, if it is a cross encounter, it will be judged whether reducing the movement speed can be avoided. If it is not feasible, the path will be re-planned; if it is a confrontation or overtaking, the path will be re-planned directly, and the path planning algorithm will be used to adjust the path based on the detour amplitude. Ensure conflict avoidance.
It achieves effective path avoidance when the moving target is uncertain, improves the flexibility and adaptability of path planning, and can adopt appropriate avoidance strategies according to different conflict types.
Smart Images

Figure CN118707940A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of path planning, and in particular to a path planning method, device, equipment and storage medium for avoiding moving targets. Background Art
[0002] The solution to the general path planning problem is mainly based on performance indicators such as energy consumption and travel time to ensure that the optimal path from the initial position to the target position is planned in an environment with obstacles.
[0003] In the path planning problem of avoiding a moving target, since the moving target to be avoided is moving, the position of the target to be avoided is uncertain, and thus the path to avoid the moving target cannot be directly obtained using the path planning algorithm.
[0004] Therefore, a path planning solution that can avoid moving targets is needed. Summary of the invention
[0005] A technical problem to be solved by the present disclosure is how to avoid moving targets.
[0006] According to the first aspect of the present disclosure, a path planning method for avoiding a moving target is provided, comprising: if a second moving path of a second moving object conflicts with a first moving path of a first moving object, identifying the type of conflict; if the conflict type is an intersection, determining whether the conflict can be avoided by reducing the movement speed of the second moving object; if the conflict cannot be avoided by reducing the movement speed of the second moving object, avoiding the conflict by replanning the second moving path; if the conflict type is a head-on encounter or overtaking, avoiding the conflict by replanning the second moving path.
[0007] Optionally, determining whether the conflict can be avoided by reducing the movement speed of the second moving object includes: if the conflict still cannot be avoided when the movement speed of the second moving object is reduced to a first threshold, determining that the conflict cannot be avoided by reducing the movement speed of the second moving object.
[0008] Optionally, avoiding conflicts by replanning the second motion path includes: iteratively executing the following steps until a second motion path that can avoid conflicts is obtained; based on the first detour amplitude, replanning the second motion path using a path planning algorithm; detecting whether the replanned second motion path can avoid conflicts; if the replanned second motion path cannot avoid conflicts, increasing the first detour amplitude.
[0009] Optionally, the second motion path is used to characterize the motion path of the second moving object from a starting position to an end position; and the replanning of the second motion path based on the first detour amplitude using a path planning algorithm includes: setting an intermediate position based on the first detour amplitude, and the angle between a line connecting the starting position and the intermediate position and a line connecting the starting position and the conflict position is positively correlated with the first detour amplitude; and determining a third motion path of the second moving object from the starting position to the intermediate position and a fourth motion path of the second moving object from the intermediate position to the end position using a path planning algorithm, and the third motion path and the fourth motion path constitute a replanned second motion path.
[0010] Optionally, the method also includes: setting a minimum straight-line driving distance and / or a steering limit angle based on the turning ability of the second moving object, the shortest straight-line driving distance is used to characterize the shortest straight-line distance that the second moving object needs to travel to achieve turning, and the steering limit angle is used to characterize the angle limit condition that the second moving object needs to meet to achieve turning; based on the shortest straight-line driving distance and / or the steering limit angle, optimizing the path planning algorithm, wherein based on the first detour amplitude, the second motion path is replanned using the path planning algorithm, including: based on the first detour amplitude, the second motion path is replanned using the optimized path planning algorithm.
[0011] Optionally, the path planning algorithm is a single-source shortest path algorithm, and the optimized single-source shortest path algorithm is configured to ignore the first node whose distance to the second node is less than the shortest straight-line driving distance or whose entry direction does not comply with the turning limit angle when calculating the shortest path length from an initial position to the second node based on the distance between the first node and the second node.
[0012] Optionally, the optimized single-source shortest path algorithm is configured to calculate the shortest path length from the initial position to the second node based on the following formula:
[0013]
[0014] Where i is the second node, j is the first node, dist[i][dir] represents the shortest path length from the initial position to the second node i and the entry direction is dir, dir k Indicates the entry direction of the first node j, dist[j][dir k ] indicates that the first node j is reached from the initial position and the entry direction is dir kThe shortest path length when edge[j][i] is , edge[j][i] represents the distance between the second node i and the first node j, R represents the obtuse angle limit, and D represents the shortest straight-line driving distance. Length(edge[j][i]) represents the distance between the second node i and the first node j.
[0015] Optionally, the method also includes: traversing each node in the second motion path to determine whether the node meets the constraint conditions, and if so, deleting the node from the second motion path, and connecting the previous node of the node in the second motion path with the next node of the node, wherein the constraint conditions include: the distance between the previous node of the node and the next node of the node in the second motion path is greater than or equal to the shortest straight-line driving distance; and / or the turning angle of the second moving object moving from the previous node of the node to the next node of the node meets the steering limit angle.
[0016] Optionally, the method further includes: mapping the entry direction of the second moving object at each node to one of a plurality of pre-set directions.
[0017] Optionally, before replanning the second motion path by using a path planning algorithm, the method further includes: enlarging the prohibited motion area; and determining a safe motion area based on the enlarged prohibited motion area.
[0018] According to the second aspect of the present disclosure, a path planning method for avoiding moving targets is also provided, including: if the second motion path of the second moving object conflicts with the first motion paths of multiple first moving objects, iteratively calling the method described in the first aspect above in the order of conflicts until a second motion path that can avoid all conflicts is obtained.
[0019] Optionally, in the process of iteratively calling the method described in the first aspect above to obtain a second motion path that can avoid all conflicts, if the previous conflict is avoided by replanning the second motion path based on the first detour amplitude using a path planning algorithm, and when avoiding a subsequent conflict, it is necessary to avoid it by replanning the second motion path, then the first detour amplitude is increased, and based on the increased first detour amplitude, the second motion path is replanned using a path planning algorithm to avoid the subsequent conflict.
[0020] Optionally, a path planning algorithm is used to replan the second motion path based on the first detour amplitude after the increase to avoid the subsequent conflict, including: based on the first detour amplitude after the increase, changing the middle position, the middle position is determined based on the first detour amplitude before the increase, and the angle between the line connecting the starting position and the middle position and the line connecting the starting position and the conflict position is positively correlated with the first detour amplitude; using a path planning algorithm to determine a third motion path of the second moving object from the starting position to the changed middle position, and a fourth motion path of the second moving object from the changed middle position to the end position, the third motion path and the fourth motion path constitute the replanned second motion path.
[0021] According to the third aspect of the present disclosure, a path planning device for avoiding moving targets is also provided, including: an identification module, used to identify the type of conflict if a second moving path of a second moving object conflicts with the first moving path of a first moving object; a first avoidance module, used to determine whether the conflict can be avoided by reducing the movement speed of the second moving object if the conflict type is an intersection; a second avoidance module, used to avoid the conflict by replanning the second moving path if the first avoidance module cannot avoid the conflict by reducing the movement speed of the second moving object, and the second avoidance module is also used to avoid the conflict by replanning the second moving path if the conflict type is a head-on encounter or overtaking.
[0022] Optionally, if the conflict still cannot be avoided when the movement speed of the second moving object is reduced to a first threshold, the first avoiding module determines that the conflict cannot be avoided by reducing the movement speed of the second moving object.
[0023] Optionally, the second avoidance module includes a path planning module, a detection module and a detour amplitude adjustment module, and the path planning module, the detection module and the detour amplitude adjustment module iteratively perform the following operations until a second motion path that can avoid the conflict is obtained; the path planning module re-plans the second motion path based on the first detour amplitude using a path planning algorithm; the detection module detects whether the re-planned second motion path can avoid the conflict; the detour amplitude adjustment module is used to increase the first detour amplitude if the re-planned second motion path cannot avoid the conflict.
[0024] Optionally, the second motion path is used to characterize the motion path of the second moving object from the starting position to the end position; the path planning module sets the intermediate position based on the first detour amplitude, and the angle between the line connecting the starting position and the intermediate position and the line connecting the starting position and the conflict position is positively correlated with the first detour amplitude; the path planning module uses a path planning algorithm to determine a third motion path of the second moving object from the starting position to the intermediate position, and a fourth motion path of the second moving object from the intermediate position to the end position, and the third motion path and the fourth motion path constitute a re-planned second motion path.
[0025] Optionally, the device also includes: a setting module, used to set the shortest straight-line driving distance and / or the steering limit angle based on the turning ability of the second moving object, the shortest straight-line driving distance is used to characterize the shortest straight-line distance that the second moving object needs to travel to achieve turning, and the steering limit angle is used to characterize the angle restriction condition that the second moving object needs to meet to achieve turning; an optimization module, used to optimize the path planning algorithm based on the shortest straight-line driving distance and / or the steering limit angle, wherein the path planning module re-plans the second motion path based on the first detour amplitude using the optimized path planning algorithm.
[0026] Optionally, the path planning algorithm is a single-source shortest path algorithm, and the optimized single-source shortest path algorithm is configured to ignore the first node whose distance to the second node is less than the shortest straight-line driving distance or whose entry direction does not comply with the turning limit angle when calculating the shortest path length from an initial position to the second node based on the distance between the first node and the second node.
[0027] Optionally, the optimized single-source shortest path algorithm is configured to calculate the shortest path length from the initial position to the second node based on the following formula:
[0028]
[0029] Where i is the second node, j is the first node, dist[i][dir] represents the shortest path length from the initial position to the second node i and the entry direction is dir, dir k Indicates the entry direction of the first node j, dist[j][dir k ] indicates that the first node j is reached from the initial position and the entry direction is dir kThe shortest path length when edge[j][i] is , edge[j][i] represents the distance between the second node i and the first node j, R represents the obtuse angle limit, and D represents the shortest straight-line driving distance. Length(edge[j][i]) represents the distance between the second node i and the first node j.
[0030] Optionally, the device also includes: a smoothing processing module, used to traverse each node in the second motion path, determine whether the node meets the constraint conditions, and if so, delete the node from the second motion path, and connect the previous node of the node in the second motion path with the next node of the node, wherein the constraint conditions include: the distance between the previous node of the node and the next node of the node in the second motion path is greater than or equal to the shortest straight-line driving distance; and / or the turning angle of the second moving object moving from the previous node of the node to the next node of the node meets the steering limit angle.
[0031] Optionally, the device further includes: a mapping module, configured to map the entry direction of the second moving object at each node to one of a plurality of preset directions.
[0032] Optionally, the device further includes: a safe motion area determination module, configured to amplify the prohibited motion area before the path planning module replans the second motion path using a path planning algorithm, and determine the safe motion area based on the amplified prohibited motion area.
[0033] According to the fourth aspect of the present disclosure, a path planning device for avoiding moving targets is also provided, including: a conflict handling module, which is used to iteratively call the method described in the first aspect above in the order of conflicts if the second motion path of the second moving object conflicts with the first motion paths of multiple first moving objects, until a second motion path that can avoid all conflicts is obtained.
[0034] Optionally, in the process of the sudden processing device iteratively calling the method described in the first aspect above to obtain the second motion path that can avoid all conflicts, if the previous conflict is avoided by replanning the second motion path based on the first detour amplitude using the path planning algorithm, and when avoiding the subsequent conflict, it is necessary to avoid it by replanning the second motion path, then the first detour amplitude is increased, and based on the increased first detour amplitude, the second motion path is replanned using the path planning algorithm to avoid the subsequent conflict.
[0035] Optionally, the conflict handling module changes the middle position based on the first detour amplitude after adjustment, the middle position is determined based on the first detour amplitude before adjustment, and the angle between the line connecting the starting position and the middle position and the line connecting the starting position and the conflict position is positively correlated with the first detour amplitude; the conflict handling module uses a path planning algorithm to determine a third motion path of the second moving object from the starting position to the changed middle position, and a fourth motion path of the second moving object from the changed middle position to the end position, and the third motion path and the fourth motion path constitute a re-planned second motion path.
[0036] According to a fifth aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory on which executable code is stored, and when the executable code is executed by the processor, the processor executes the method described in the first aspect or the second aspect above.
[0037] According to a sixth aspect of the present disclosure, a computer program product is provided, comprising an executable code. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method described in the first aspect or the second aspect above.
[0038] According to a seventh aspect of the present disclosure, a non-temporary machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the method described in the first aspect or the second aspect above.
[0039] Therefore, the present disclosure proposes different avoidance strategies for different types of conflicts according to the complexity of the conflict scenario. Specifically, if the second motion path of the second moving object conflicts with the first motion path of the first moving object, and the conflict type is a cross encounter, first determine whether the conflict can be avoided by reducing the movement speed of the second moving object; if the conflict cannot be avoided by reducing the movement speed of the second moving object, then avoid the conflict by replanning the second motion path; if the conflict type is a head-on encounter or overtaking, then directly avoid the conflict by replanning the second motion path. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.
[0041] Figure 1 A schematic flowchart of a path planning method for avoiding a moving target according to an embodiment of the present disclosure is shown.
[0042] Figure 2A A schematic diagram showing the three conflict types mentioned above.
[0043] Figure 2B A schematic diagram of avoidance strategies under different conflict types is shown.
[0044] Figure 3 A schematic diagram of the angle formed by the steering trajectory is shown.
[0045] Figure 4 A schematic diagram showing the division of directions is shown.
[0046] Figure 5 A schematic diagram of the overall process of a path planning method according to another embodiment of the present disclosure is shown.
[0047] Figure 6 Shown with Figure 5 Schematic diagram of the algorithm input and algorithm output corresponding to the process shown.
[0048] Figure 7 A schematic structural diagram of a path planning device according to an embodiment of the present disclosure is shown.
[0049] Figure 8 A schematic structural diagram of a path planning device according to another embodiment of the present disclosure is shown.
[0050] Fig. 9 A schematic diagram of the structure of a computing device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0051] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0052] The present disclosure relates to two moving objects, namely a first moving object and a second moving object. The present disclosure does not limit the types of the first moving object and the second moving object. The first moving object and the second moving object can be any object that can move in space. The second moving object and the first moving object can be moving objects of the same type or moving objects of different types. For example, the first moving object and / or the second moving object can be boats, such as unmanned boats.
[0053] The first moving object refers to a moving object that needs to be avoided, that is, a moving target that needs to be avoided. The number of the first moving objects can be one or more. That is, the moving target to be avoided can be one or more. The first motion path is used to characterize the motion trajectory of the first moving object. The first motion path of the first moving object can be pre-set. That is, the first moving object can move along a pre-set path.
[0054] The second moving object refers to a moving object that needs to avoid the first moving object. The second moving path of the second moving object can be a moving path of the second moving object from a starting position to an end position that is predetermined by a path planning algorithm, such as a shortest path. Initially, when planning the second moving path, only the stationary area that needs to be avoided in the mission area can be considered, without considering the moving target that needs to be avoided.
[0055] The purpose of the present disclosure is to adopt a suitable avoidance strategy to avoid the first moving object based on a planned second moving path of the second moving object according to the type of conflict between the second moving path and the first moving path.
[0056] Combine the following Figure 1 The process of avoiding a single moving target (ie, a single first moving object) is exemplified.
[0057] Figure 1 A schematic flowchart of a path planning method for avoiding a moving target according to an embodiment of the present disclosure is shown.
[0058] See also Figure 1 In step S110, if the second motion path of the second moving object conflicts with the first motion path of the first moving object, the conflict type is identified.
[0059] The conflict between the second motion path and the first motion path may refer to the collision between the second moving object and the first moving object when they are moving along their respective motion paths. Specifically, they may occupy the same node at the same time, or swap positions at the same time. The second motion path and the first motion path are pre-planned. When the second motion path and the first motion path are known, it can be determined by detection whether there is a conflict between the second motion path and the first motion path. For example, it can be determined whether the second motion path collides with the first motion path based on the motion parameters (such as motion speed) of the second moving object and the first moving object, and whether there is a conflict can be determined accordingly.
[0060] If there is no conflict between the second motion path and the first motion path, there is no need to adjust the motion strategy of the second moving object, and the second moving object can move according to the original second motion path.
[0061] If the second motion path conflicts with the first motion path, the type of conflict may be identified.
[0062] As shown in Figure 2, according to the complexity of the scene, the conflict types can be divided into three types: intersection, head-on encounter, and overtaking. Intersection refers to the intersection of two moving objects, resulting in a risk of collision. Head-on encounter refers to the encounter of two moving objects in opposite or nearly opposite directions, resulting in a risk of collision. Overtaking, also known as overtaking, refers to a moving object catching up with and overtaking another moving object from behind, resulting in a risk of collision when overtaking.
[0063] In step S120, if the conflict type is an intersection, it is determined whether the conflict can be avoided by reducing the movement speed of the second moving object; if the conflict cannot be avoided by reducing the movement speed of the second moving object, the conflict is avoided by replanning the second movement path.
[0064] For the conflict of the cross-encounter type, the conflict can be avoided by first reducing the speed of movement. That is, it can be determined whether the conflict can be avoided by continuously reducing the speed of movement of the second moving object. If the conflict can be avoided by only reducing the speed of movement, there is no need to re-plan (i.e., adjust) the second motion path. On the contrary, if the conflict cannot be avoided by only reducing the speed of movement (for example, the conflict still cannot be avoided when the speed of movement of the second moving object is reduced to below a predetermined threshold), it is necessary to avoid the conflict by re-planning the second motion path. As an example, the path planning can be re-performed on the basis of the reduced speed of movement, i.e., the second motion path can be re-planned based on the reduced speed of movement.
[0065] In step S130, if the conflict type is a head-on collision or overtaking, the conflict is avoided by replanning the second motion path.
[0066] For conflicts of the type of encounter or overtaking, reducing the speed of movement does not help to avoid such conflicts, so such conflicts can be avoided directly by replanning the second motion path. There are many ways to avoid such conflicts by replanning the second motion path. For example, the conflict position (i.e., the collision position) can be used as a constraint condition, and the motion path of the second moving object from the starting position to the end position can be replanned using a path planning algorithm to obtain a motion path that can avoid the conflict. This motion path is the replanned second motion path.
[0067] Figure 2A A schematic diagram showing the three conflict types mentioned above. Figure 2A The solid arrows in the figure represent the paths that cause conflicts, and the dotted arrows represent the new paths after a detour is made on one of the paths. Figure 2AIt can be seen that the three types of conflicts, namely, cross-meeting, head-on encounter and overtaking, can be avoided by taking a detour. Therefore, the second motion path can also be replanned based on a detour to avoid the conflict. That is, the replanned second motion path can be a motion path after taking a detour.
[0068] Taking the replanning of the second motion path based on a detour as an example, the following steps can be iteratively performed until a second motion path that can avoid conflicts is obtained: based on the first detour amplitude, the second motion path is replanned using a path planning algorithm; whether the replanned second motion path can avoid conflicts is detected; if the replanned second motion path cannot avoid conflicts, the first detour amplitude is increased. Initially, the first detour amplitude can be a smaller value (i.e., an adjustment coefficient). If the second motion path replanned based on the smaller first detour amplitude can avoid conflicts, the second motion path replanned based on the smaller first detour amplitude can be used as the final path. If the second motion path replanned based on the smaller first detour amplitude cannot avoid conflicts, the first detour amplitude can be increased, and the second motion path can be replanned based on the increased first detour amplitude, and it is determined whether the planned second motion path can avoid conflicts, and so on, until the second motion path with the minimum detour amplitude that can avoid conflicts is obtained.
[0069] A feasible implementation method of replanning the second motion path based on the first detour amplitude using a path planning algorithm can be expressed as follows. An intermediate position can be set between the starting position and the end position based on the first detour amplitude. The first detour amplitude can be reflected by the angle between the line connecting the starting position and the intermediate position and the line connecting the starting position and the conflict position. That is, the angle is positively correlated with the first detour amplitude, that is, the larger the first detour amplitude, the larger the angle. The path planning algorithm can be used to determine the third motion path of the second moving object from the starting position to the intermediate position, and the fourth motion path of the second moving object from the intermediate position to the end position, and the third motion path and the fourth motion path constitute the replanned second motion path. That is, the replanned second motion path includes the third motion path and the fourth motion path.
[0070] Figure 2B A schematic diagram of avoidance strategies under different conflict types is shown.
[0071] See also Figure 2BIf it is a meeting or overtaking scenario, an adjustment coefficient w can be set to control the detour amplitude. The detour amplitude can be controlled from small to large, and according to the detour amplitude, the shortest path after the detour can be tried. If it is an intersection meeting scenario, a mixed method of detour and deceleration can be adopted. For example, deceleration can be given priority. If the conflict cannot be avoided even after deceleration to the minimum acceptable range of deceleration, a detour can be tried in the deceleration state. The detour calculation method is the same as the meeting or overtaking scenario.
[0072] So far combined Figure 1 Detailed instructions are given on how to avoid a single first moving object. Figure 1 The method shown for avoiding a single moving target may be referred to as a SingleCBS algorithm.
[0073] If it is necessary to avoid multiple first moving objects, that is, when the second moving path of the second moving object conflicts with the first moving paths of multiple first moving objects, the above combined method can be iteratively called according to the order of conflicts. Figure 1 The described method obtains a second motion path that can avoid all conflicts.
[0074] For example, the shortest path from the starting position S to the ending position T of the second moving object can be calculated in advance using a path planning algorithm, that is, the second moving path; if there are multiple first moving objects whose moving paths conflict with the second moving path of the second moving object, the second moving path can be calculated according to the above combined method. Figure 1 The method described above avoids the first moving object that has a conflict; if the second moving path after avoiding the first moving object does not conflict with the first moving paths of other first moving objects, the iterative process can be stopped to obtain a second moving path that can avoid all conflicts; on the contrary, if the second moving path after avoiding the first moving object conflicts with the first moving paths of other first moving objects, then based on the obtained second moving path, for the first conflict among the remaining conflicts, the above combined method can be used again. Figure 1 The method described above avoids the conflict; and so on, until a second motion path that can avoid all conflicts is obtained.
[0075] Combined with the above iterative call Figure 1 In the process of obtaining the second motion path that can avoid all conflicts by the method described above, a greedy algorithm can be used to call the above combined method multiple times (such as infinite times). Figure 1 The method described above can also be combined with the "search method" recursively calling Figure 1 The method described.
[0076] For example, if we combine the above Figure 1When the described method avoids the first conflict, it is necessary to obtain a path that avoids the conflict by taking a detour, namely S->V_1->T, where S refers to the starting position, V_1 refers to the middle position, and T refers to the end position. S->V_1 corresponds to the third motion path mentioned above, and V_1->T corresponds to the fourth motion path mentioned above. S->V_1->T corresponds to the second motion path obtained after replanning.
[0077] If there is still a conflict on the path V_1->T, the implementation process of the greedy algorithm is as follows: take a detour on the path V_1->T to obtain V_1->V_2->T; if there is still a conflict on the path V_2->T, continue to use the greedy algorithm to obtain V_2->V_3>T, and so on.
[0078] If there is still a conflict on the path V_1->T, the implementation process of the "search method" is: increase the previously set detour range, change the position of V_1, re-plan the path, and obtain S->V_1′->T. V_1′ is the middle position determined based on the increased detour range. This method of backtracking to modify the previous detour range is the "search method".
[0079] Using a greedy algorithm may result in a local optimum or an inability to find a solution; using a search method can reduce the SingleCBS algorithm (i.e. Figure 1 In practical applications, the search method is used to recursively call the SingleCBS algorithm a limited number of times to obtain the second motion path that can avoid all conflicts.
[0080] Thus, in the process of iteratively calling the SingleCBS algorithm to obtain a second motion path that can avoid all conflicts, if the previous conflict is avoided by replanning the second motion path based on the first detour amplitude using the path planning algorithm, and the second motion path needs to be replanned to avoid the subsequent conflict, then as a preferred embodiment, the first detour amplitude can be increased, and the second motion path is replanned based on the increased first detour amplitude using the path planning algorithm to avoid the subsequent conflict. Replanning the second motion path based on the increased first detour amplitude using the path planning algorithm to avoid the subsequent conflict includes: based on the increased first detour amplitude, changing the middle position, the middle position is determined based on the first detour amplitude before the increase, and the angle between the line connecting the starting position and the middle position and the line connecting the starting position and the conflict position is positively correlated with the first detour amplitude; using the path planning algorithm to determine the third motion path of the second moving object from the starting position to the changed middle position, and the fourth motion path of the second moving object from the changed middle position to the end position, the third motion path and the fourth motion path constitute the replanned second motion path.
[0081] The following is a further description of various details of the present disclosure.
[0082] 1. Path planning algorithm
[0083] From the perspective of algorithm principles, path planning algorithms can be divided into two categories: search-based path planning algorithms and sampling-based path planning algorithms. When the nodes of path planning are all known (when a graph theory model can be built), the path planning problem is often solved by a search-based path planning algorithm. When the path planning scenario is more complex, the search space is large, and a thorough search cannot be performed in near real time, the algorithm often selects appropriate samples from the search space to reduce the search space to only the selected samples, and can simultaneously perform planning on the sampled search space.
[0084] From the perspective of algorithm application scenarios, path planning algorithms can be divided into algorithms for solving the shortest path problem from a single starting point to a single end point (i.e., single-source shortest path algorithms) and algorithms for solving the shortest path problem between a single starting point and several end points (i.e., point-to-point shortest path algorithms). Point-to-point shortest path algorithms can include search-based path planning algorithms such as the A* algorithm, the D* algorithm, and the Theta* algorithm, as well as sampling-based path planning algorithms such as the BIT* and AIT* algorithms. Single-source shortest path algorithms can include search-based path planning algorithms such as the Dijkstra algorithm and the SPFA algorithm, as well as sampling-based path planning algorithms such as the RRT* and FMT* algorithms.
[0085] The path planning algorithm used in the present disclosure can be a single-source shortest path algorithm or a point-to-point shortest path algorithm. The single-source shortest path algorithm can be further divided into a single-source shortest path algorithm based on search and a single-source shortest path algorithm based on sampling. Correspondingly, the point-to-point shortest path algorithm can be further divided into a point-to-point shortest path algorithm based on search and a point-to-point shortest path algorithm based on sampling.
[0086] 2. Optimize the path planning algorithm based on the turning ability of the moving object
[0087] The second moving object has certain steering constraints when turning. In order to solve the steering constraint problem while not significantly reducing the performance of the path planning algorithm (such as the single-source shortest path algorithm), the present disclosure proposes setting the shortest straight-line driving distance and / or the steering limit angle based on the steering ability of the second moving object.
[0088] The shortest straight-line driving distance is used to characterize the shortest straight-line distance that the second moving object needs to travel in order to achieve turning. The steering limit angle is used to characterize the angle constraint conditions that the second moving object needs to meet in order to achieve turning. The steering limit angle can be characterized by either of the two constraint indicators, "maximum steering angle" or "obtuse-angle steering limit angle". The maximum steering angle can be used to characterize the maximum steering angle that the second moving object can complete under the shortest straight-line driving distance. The obtuse-angle steering limit angle (such as ≥120°) is used to characterize the need to meet the obtuse-angle turning restriction when the second moving object turns, that is, the steering trajectory is an obtuse angle with a smaller steering inclination, rather than an acute angle with a larger steering inclination.
[0089] It should be noted that the "maximum steering angle" and "obtuse steering limit angle" are used to measure the steering angle limit conditions that the second moving object needs to meet when turning from different angles. The "maximum steering angle" and "obtuse steering limit angle" can be regarded as an equivalent relationship. Therefore, in actual application scenarios, you can choose to use one as needed.
[0090] The specific values of the shortest straight-line driving distance and the steering limit angle can be flexibly set according to the steering ability of the second moving object. Taking the second moving object as a vehicle as an example, the steering limit angle can refer to the maximum steering angle. The turning ability of the vehicle can be represented by the turning radius (i.e., the minimum turning radius of the vehicle). The turning radius refers to the distance from the steering center to the contact point between the front outer steering wheel and the ground during the vehicle's driving. The turning radius can largely characterize the ability of the vehicle to pass through narrow curved areas or bypass insurmountable obstacles. As an example, the minimum turning radius of the vehicle can be calculated by the following formula: R = L / 2 (Sinψ). Among them, R represents the minimum turning radius of the vehicle; L represents the length of the vehicle; Ψ represents the maximum turning angle of the vehicle direction. The path of the vehicle when turning is similar to an arc, and the arc can be represented by several connected line segments within a certain error. The two constraints of the shortest straight-line driving distance and the maximum steering angle correspond to the shortest length of the line segment and the angle between the line segments. Since the method of using line segments to simulate curves is lossy, the smaller the set shortest straight-line driving distance is, the smaller the maximum steering angle will be, and the simulation will be closer to the real scene, that is, the loss will be smaller.
[0091] The path planning algorithm (such as a single-source shortest path algorithm) used in the path planning scheme of the present invention can be optimized based on the shortest straight-line driving distance and the turning limit angle, so that the turning ability of the second moving object can be taken into account during the path planning process using the optimized path planning algorithm, thereby ensuring that the determined path does not exceed the turning ability of the second moving object.
[0092] Taking the path planning algorithm as a single-source shortest path algorithm as an example, the optimized single-source shortest path algorithm can be configured to ignore the first node whose distance to the second node is less than the shortest straight-line driving distance or whose entry direction does not meet the turning limit angle when calculating (i.e. continuously updating) the shortest path length from the starting position to the second node based on the distance between the first node and the second node.
[0093] The single-source shortest path algorithm before optimization (such as the Dijkstra algorithm) uses dist[i] to represent the shortest path length from the source point (i.e., the starting position) to node i. The calculation formula (i.e., the update formula) of dist[i] can be expressed as follows:
[0094] dist[i]:=min(dist[j]+edge[j][i])
[0095] dist[j] represents the shortest path length from the source point (i.e., the starting position) to node j. edge[j][i] represents the distance between node i and node j. Node i corresponds to the second node mentioned above. Node j corresponds to the first node mentioned above. In the single-source shortest path algorithm, if node j and node i are not adjacent, the distance between node j and node i can be considered infinite. The single-source shortest path algorithm can be regarded as continuously updating the shortest path length from the source point to another node (i.e., the second node) for each node based on the distance between two adjacent nodes and the shortest path length from the source point to one of the nodes (i.e., the first node) to continuously improve the shortest path from the source point to another node.
[0096] It can be seen from the above formula that the single-source shortest path algorithm before optimization does not take into account the steering constraint of the second moving object. The single-source shortest path algorithm after optimization disclosed in the present invention will change from dist[i] to dist[i][dir]. dist[i][dir] represents the shortest path length when reaching node i and the entry direction is dir. That is, the present invention adds a "direction" to the node and limits its use of the path in the source direction at the node during path planning, so that the optimized path does not exceed the steering capability of the second moving object.
[0097] As an example, the calculation formula of dist[i][dir] can be expressed as:
[0098] or
[0099]
[0100] Where i is the second node, j is the first node, dist[i][dir] represents the shortest path length from the starting position to the second node i and the entry direction is dir, dirk Indicates the entry direction of the first node j, dist[j][dir k ] indicates that the first node j is reached from the starting position and the entry direction is dir k The shortest path length when edge[j][i] is the distance between the second node i and the first node j, R is the obtuse angle limit, and D is the shortest straight-line driving distance. Length(edge[j][i]) represents the distance between the second node i and the first node j. Length(edge[i][i]) can also be replaced by edge[j][i].
[0101] According to the above formula, when calculating the shortest path length from the starting position to the second node i, the entry direction dir of the first node j is ignored. k The first node whose angle with the entry direction dir of the second node i does not satisfy the obtuse angle limit R, and the first node whose inter-node distance does not satisfy the shortest straight-line driving distance D. Thus, while making the final determined second motion path meet the steering capability constraint of the second moving object, the search space can be reduced and the efficiency can be improved.
[0102] It should be noted that in the above formula, |dir k -ir| represents the angle between the turning trajectories corresponding to the two entry directions. Figure 3 As shown, the two arrows indicate an entry direction respectively, and the angle α formed by the turning trajectory from the previous entry direction to the next entry direction is |dir k -ir|.
[0103] As another example, when optimizing the single-source shortest path algorithm with the maximum steering angle, the calculation formula for dist[i][dir] can be expressed as or The difference from the above formula is that R in this embodiment represents the maximum steering angle, |dir k -ir| represents the angle between the two entry directions, that is, from the direction dir k The angle to turn to dir.
[0104] 3. Cutting direction
[0105] The present disclosure can also pre-set (i.e., divide) multiple (predetermined number, such as 16) directions, and map the entry direction of the second moving object at each node to one of the pre-set multiple directions. In this way, the orientation of the second moving object can be discretized into multiple directions. The number of divided directions can be determined by the sensitivity of the map data and the turning angle requirements. Specifically, the more divided directions, the more accurate the simulation of the real scene will be, but the search space will become larger. Therefore, when the sensitivity requirement is low, the number of divided directions can be reduced to reduce the search space.
[0106] Figure 4 FIG. 2 shows a schematic diagram of dividing the direction. Figure 4 As shown in the figure, the direction range from 0 to 2π can be divided into 16 discrete directions. According to the direction segmentation result, the direction of the second moving object entering the node can be mapped to one of the directions, so as to add a "direction" to the node and restrict its use of the path of the source direction at the node during path planning. Therefore, by discretizing the direction of the second moving object into multiple directions, the state space can be reduced while ensuring the accuracy error, and the algorithm solution speed can be accelerated.
[0107] 4. Obstacle expansion
[0108] Before replanning the second motion path using the path planning algorithm, the prohibited motion area can also be enlarged, and the safe motion area can be determined based on the enlarged prohibited motion area. Thus, the path planning algorithm can be used to perform path planning for the safe motion area.
[0109] As an example, the prohibited motion area may be enlarged by using, but not limited to, a polygon scaling algorithm. The polygon scaling algorithm is a method in the field of computational geometry that reduces or enlarges a polygon according to the scaling distance and type requirements. The prohibited motion area refers to an area that the second moving object needs to avoid during the movement, such as an area where an obstacle is located. By enlarging the prohibited motion area, the safety factor can be improved.
[0110] 5. Path smoothing
[0111] In order to make the path smoother, the motion path obtained by using the path planning algorithm may be subjected to path smoothing processing. For example, the second motion path finally obtained and capable of avoiding all conflicts may be subjected to path smoothing processing.
[0112] The basic processing flow of path smoothing can be described as follows.
[0113] Traverse each node in the path, such as traversing from the end position to the starting position in the path, and determine whether each node in the path can be skipped. If it can be skipped, delete the node from the motion path, and directly connect the previous node of the node in the path with the next node of the node.
[0114] Whether a node can be skipped can be determined by judging whether the node meets the constraint conditions.
[0115] The constraint conditions may include but are not limited to: the distance between the node before the node and the node after the node in the path is greater than or equal to the shortest straight-line driving distance; and / or the turning angle of the second moving object moving from the node before the node to the node after the node is less than or equal to the maximum turning angle. The turning angle is used to represent the angle required for the second moving object to turn from the direction of entering the previous node to the direction of entering the next node.
[0116] In addition, the constraint conditions may also include but are not limited to: the line from the previous node to the next node is the same as the grid (ie, node) that the path initially passes through; and the line from the previous node to the next node will not pass through an obstacle.
[0117] For each node, it can be determined that the node can be skipped only when the node satisfies all constraints.
[0118] The Floyd path smoothing algorithm is a classic straight line drawing method, that is, to find two points in the initial path as endpoints to draw a straight line. If the grid passed by this straight line is the same as the grid passed by the initial path, then the points in the two endpoints are meaningless (can be deleted). The present disclosure combines the existing path smoothing algorithm Floyd to smooth the path based on the shortest straight-line driving distance and the maximum turning angle, so that the processed path can be more in line with the actual law.
[0119] Figure 5 A schematic diagram of the overall process of a path planning method according to another embodiment of the present disclosure is shown.
[0120] Figure 6 Shown with Figure 5 Schematic diagram of the algorithm input and algorithm output corresponding to the process shown.
[0121] See also Figure 5 , firstly, step S51 may be executed to calculate the safety area.
[0122] like Figure 6 As shown in the getSaveArea section, you can use the task area Area, the forbidden area set {s i} and the safety adjustment parameter to calculate the safety area. For example, the prohibited area set {s i Each prohibited area (i.e. prohibited area) in the task area is enlarged (i.e. expanded), and the area in the task area Area minus the enlarged prohibited area is taken as the safe area. i} may include but is not limited to a polygonal prohibited area set and the circular forbidden area set The safety adjustment parameters may include but are not limited to the safety adjustment time t safe , the time t can be adjusted based on safety safe and the moving speed of the second moving object, determine the extent to which the forbidden area is expanded.
[0123] In step S52, an initial planned path is obtained through path planning.
[0124] The initial planning path corresponds to the second moving path mentioned above. The initial planning path can be the shortest path from the starting position to the end position of the second moving object obtained by planning for the safety area using a path planning algorithm without considering the collision of the moving object.
[0125] In step S53, the SingleCBS algorithm is run to optimize the path.
[0126] The SingleCBS algorithm is proposed based on the complexity of the scene and draws on the idea of CBS. The specific implementation process of the SingleCBS algorithm can be found above. Figure 1 describe.
[0127] like Figure 5 As shown in the right part, step S53 may include steps S530 to S539.
[0128] In step S530, collision detection is performed, that is, by detecting whether the initial planned path conflicts with the motion path (ie, the first motion path) of another moving object (ie, the first moving object).
[0129] like Figure 6 As shown in “If willColl==False: Return P” in FIG. 5 , if there is no conflict, the initial planning path obtained in step S52 can be used as the optimal path.
[0130] In step S531, the current conflict situation is determined.
[0131] In step S532, if it is a cross-encounter situation, then try to decelerate and adjust, that is, reduce the speed of the second moving object.
[0132] In step S533, it is determined whether the current conflict can be avoided by deceleration adjustment.
[0133] like Figure 6 As shown in the GetSpeedDownPath part, the acceleration adjustment can be made based on the minimum deceleration limit spd_down_list. If the deceleration reaches the minimum deceleration limit spd_down_list and still cannot avoid the current conflict, it indicates that the current conflict needs to be avoided by taking a detour. At this time, steps S536 to S539 can be executed to avoid the conflict by taking a detour.
[0134] If the current conflict can be avoided by deceleration adjustment, step S534 and step S539 can be executed to recursively call the SingleCBS algorithm to optimize the remaining path, that is, avoid the remaining conflict and output the optimal path. The specific process of recursively calling the SingleCBS algorithm can be referred to the above related description.
[0135] In step S535, if it is a collision or overtaking situation, try to make a detour adjustment. Specifically, steps S536 to S539 can be executed to avoid the conflict by taking a detour.
[0136] In step S536, the detour coefficient w is adjusted from small to large.
[0137] In step S537, it is determined whether the conflict can be avoided under the current detour coefficient.
[0138] If the conflict cannot be avoided under the current detour coefficient, return to step S536 and continue to increase the detour coefficient w.
[0139] If the conflict can be avoided under the current detour coefficient, step S538 and step S539 are executed to recursively call the SingleCBS algorithm to optimize the remaining path, that is, to avoid the remaining conflict and output the optimal path.
[0140] The following briefly describes the design specifications of each algorithm involved in the present disclosure in response to performance requirements.
[0141] The algorithms involved in the present disclosure mainly include an obstacle inflation algorithm, a discretization method, a search-based obtuse angle restricted path planning algorithm, a sampling-based obtuse angle restricted path planning algorithm, a PP-path smoothing algorithm, and a SingleCBS conflict search algorithm.
[0142] The obstacle expansion algorithm, also known as the polygon scaling algorithm, is used to expand the prohibited area. The single-time complexity of the obstacle expansion algorithm is O(N), where N is the number of polygon points in the area. The number of runs of the obstacle expansion algorithm is equal to the number of prohibited areas.
[0143] Discretization method calculation is an algorithm in the field of geometry that maps finite individuals in continuous space to discrete space to simplify the problem and reduce the time and space complexity of subsequent algorithms. Common discretization algorithms include scan line method, grid method, etc. The present disclosure can use the discretization method to discretize the map to divide the map into multiple nodes, each node corresponding to a map area. The single time complexity of the discretization method is O(M+K*N); M is the area size, N is the number of polygons, and K is the number of polygon points of the polygon. The discretization method is run 1 times.
[0144] The single-time complexity of the search-based obtuse angle restricted path planning algorithm is O(NlogN), where N is the number of discretized nodes. The single-time complexity of the sampling-based obtuse angle restricted path planning algorithm is O(KN). N is the number of sampling nodes, which is related to the size of the area. K is a relatively large constant, which is the number of potential transfer nodes adjacent to the node. The search-based obtuse angle restricted path planning algorithm and the sampling-based obtuse angle restricted path planning algorithm are included in SingleCBS, and the number of runs is related to the number of conflicts.
[0145] The PP-path smoothing method is used to smooth the final motion path (i.e., the second motion path) that can avoid all conflicts. The single time complexity of the PP-path smoothing method is O(N), where N is the number of waypoints in the path. The number of runs of the PP-path smoothing method is 1.
[0146] The SingleCBS conflict search algorithm is run once.
[0147] The present disclosure can be applied to, but not limited to, the unmanned watercraft (WRT) scenario. In the WRT scenario, based on the present disclosure, a navigable navigation path that avoids regularly moving targets can be pre-planned based on the current navigation equipment status, environmental status, and mission objectives. The algorithm is constructed by layering and combining multiple basic algorithm modules. This method can further decompose the condition requirements to simplify the problem.
[0148] The path planning method disclosed herein may also be implemented as a path planning device. Figure 7 A schematic structural diagram of a path planning device according to an embodiment of the present disclosure is shown. Figure 8 FIG. 1 is a schematic diagram showing the structure of a path planning device according to another embodiment of the present disclosure. The functional units of the path planning device can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present disclosure. It can be understood by those skilled in the art that Figure 7 , Figure 8The functional units described can be combined or divided into sub-units to implement the principles of the above invention. Therefore, the description herein can support any possible combination, division, or further limitation of the functional units described herein. The following is a brief description of the functional units that the path planning auxiliary device can have and the operations that each functional unit can perform. For the details involved, please refer to the relevant description above, which will not be repeated here.
[0149] Figure 7 The path planning device 700 shown can be implemented by performing the above combined Figure 1 The described method handles a single conflict.
[0150] See also Figure 7 , the path planning device 700 may include an identification module 710, a first avoidance module 720 and a second avoidance module 730. The identification module 710 is used to identify the conflict type if the second motion path of the second moving object conflicts with the first motion path of the first moving object.
[0151] The first avoidance module 720 is used to determine whether the conflict can be avoided by reducing the movement speed of the second moving object if the conflict type is an intersection. If the conflict cannot be avoided when the movement speed of the second moving object is reduced to the first threshold, the first avoidance module 720 determines that the conflict cannot be avoided by reducing the movement speed of the second moving object.
[0152] The second avoidance module 730 is used to avoid the conflict by replanning the second movement path if the first avoidance module cannot avoid the conflict by reducing the movement speed of the second moving object. The second avoidance module 730 is also used to avoid the conflict by replanning the second movement path if the conflict type is a head-on collision or overtaking.
[0153] The second avoidance module may include a path planning module, a detection module and a detour amplitude adjustment module. The path planning module, the detection module and the detour amplitude adjustment module may iteratively perform the following operations until a second motion path that can avoid the conflict is obtained; the path planning module replans the second motion path based on the first detour amplitude using a path planning algorithm; the detection module detects whether the replanned second motion path can avoid the conflict; the detour amplitude adjustment module is used to increase the first detour amplitude if the replanned second motion path cannot avoid the conflict.
[0154] The path planning device 700 may further include a setting module and an optimization module. The setting module is used to set the shortest straight-line driving distance and / or the steering limit angle based on the steering ability of the second moving object. The optimization module is used to optimize the path planning algorithm based on the shortest straight-line driving distance and / or the steering limit angle. The path planning module may replan the second motion path based on the first detour amplitude using the optimized path planning algorithm.
[0155] The path planning device 700 may further include a smoothing processing module. The smoothing processing module is used to traverse each node in the second motion path, determine whether the node meets the constraint condition, and if it meets the constraint condition, delete the node from the second motion path, and connect the previous node of the node with the next node of the node in the second motion path, wherein the constraint condition includes: the distance between the previous node of the node and the next node of the node in the second motion path is greater than or equal to the shortest straight-line driving distance; and / or the turning angle of the second moving object moving from the previous node of the node to the next node of the node meets the turning limit angle.
[0156] The path planning device 700 may further include a mapping module. The mapping module is used to map the entry direction of the second moving object at each node to one of a plurality of preset directions.
[0157] The path planning device 700 may further include a safe motion area determination module, which is used to enlarge the prohibited motion area before the path planning module replans the second motion path using the path planning algorithm, and determine the safe motion area based on the enlarged prohibited motion area.
[0158] Figure 8 The path planning device 800 shown can be used by iteratively calling the above combined Figure 1 The method described here handles multiple conflicts. Figure 8 The path planning device 800 may include a conflict processing module 810. The conflict processing module 810 is used to iteratively call the above combined method according to the order of conflict if the second motion path of the second moving object conflicts with the first motion paths of the plurality of first moving objects. Figure 1 The method described is continued until a second motion path that can avoid all conflicts is obtained.
[0159] The conflict handling module is combined with the above iterative call Figure 1The described method obtains a second motion path that can avoid all conflicts. If the previous conflict is avoided by replanning the second motion path based on the first detour amplitude using a path planning algorithm, and the subsequent conflict needs to be avoided by replanning the second motion path, then the first detour amplitude is increased, and the second motion path is replanned using the path planning algorithm based on the increased first detour amplitude to avoid the subsequent conflict.
[0160] The conflict handling module can change the middle position based on the first detour amplitude after the increase, the middle position is determined based on the first detour amplitude before the increase, and the angle between the line connecting the starting position and the middle position and the line connecting the starting position and the conflict position is positively correlated with the first detour amplitude; the conflict handling module can use the path planning algorithm to determine the third motion path of the second moving object from the starting position to the changed middle position, and the fourth motion path of the second moving object from the changed middle position to the end position, and the third motion path and the fourth motion path constitute the re-planned second motion path.
[0161] Fig. 9 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned path planning method according to an embodiment of the present invention is shown.
[0162] See also Fig. 9 , the computing device 900 includes a memory 910 and a processor 920 .
[0163] The processor 920 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 920 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 920 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
[0164] The memory 910 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 920 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 910 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 910 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0165] The memory 910 stores executable codes, and when the executable codes are processed by the processor 920 , the processor 920 can execute the path planning method mentioned above.
[0166] The path planning method, device and apparatus according to the present invention have been described in detail above with reference to the accompanying drawings.
[0167] In addition, the method according to the present invention may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present invention.
[0168] Alternatively, the present invention may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present invention.
[0169] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.
[0170] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0171] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A path planning method for avoiding a moving target, characterized in that: include: If the second motion path of the second moving object conflicts with the first motion path of the first moving object, identifying the type of conflict; If the conflict type is an intersection, determining whether the conflict can be avoided by reducing the movement speed of the second moving object; if the conflict cannot be avoided by reducing the movement speed of the second moving object, avoiding the conflict by replanning the second movement path; If the conflict type is a head-on collision or overtaking, the conflict is avoided by replanning the second motion path.
2. The method according to claim 1, characterized in that Determining whether the conflict can be avoided by reducing the moving speed of the second moving object includes: If the conflict still cannot be avoided when the moving speed of the second moving object is reduced to the first threshold, it is determined that the conflict cannot be avoided by reducing the moving speed of the second moving object.
3. The method according to claim 1, characterized in that Avoiding the conflict by replanning the second motion path includes: iteratively executing the following steps until a second motion path capable of avoiding the conflict is obtained; Replanning the second motion path using a path planning algorithm based on the first detour amplitude; Detecting whether the replanned second motion path can avoid the conflict; If the re-planned second motion path cannot avoid the conflict, the first detour amplitude is increased.
4. The method according to claim 3, characterized in that The second motion path is used to represent the motion path of the second moving object from a starting position to an end position; The replanning of the second motion path by using a path planning algorithm based on the first detour amplitude includes: The middle position is set based on the first detour amplitude, and the angle between the line connecting the starting position and the middle position and the line connecting the starting position and the conflicting position is positively correlated with the first detour amplitude; A path planning algorithm is used to determine a third motion path of the second moving object from the starting position to the intermediate position, and a fourth motion path of the second moving object from the intermediate position to the end position, the third motion path and the fourth motion path forming a replanned second motion path.
5. The method according to claim 3, characterized in that: Also includes: The shortest straight-line driving distance and / or the steering limit angle are set based on the steering ability of the second moving object, wherein the shortest straight-line driving distance is used to represent the shortest straight-line distance that the second moving object needs to travel to achieve steering, and the steering limit angle is used to represent the angle limit condition that the second moving object needs to meet to achieve steering; Optimizing the path planning algorithm based on the shortest straight-line driving distance and / or the steering limit angle, Among them, based on the first detour amplitude, using a path planning algorithm to replan the second motion path includes: based on the first detour amplitude, using an optimized path planning algorithm to replan the second motion path.
6. The method according to claim 5, characterized in that The path planning algorithm is a single-source shortest path algorithm, and the optimized single-source shortest path algorithm is configured to ignore the first node whose distance to the second node is less than the shortest straight-line driving distance or whose entry direction does not meet the turning limit angle when calculating the shortest path length from an initial position to the second node based on the distance between the first node and the second node.
7. A path planning method for avoiding a moving target, characterized in that: include: If the second motion path of the second moving object conflicts with the first motion paths of multiple first moving objects, the method described in any one of claims 1 to 6 is iteratively called in the order of conflicts until a second motion path that can avoid all conflicts is obtained.
8. A path planning device for avoiding a moving target, characterized in that: include: an identification module, configured to identify a conflict type if a second motion path of the second moving object conflicts with a first motion path of the first moving object; A first avoidance module, configured to determine whether the conflict can be avoided by reducing the movement speed of the second moving object if the conflict type is an intersection; a second avoiding module, configured to avoid the conflict by replanning the second moving path if the first avoiding module cannot avoid the conflict by reducing the moving speed of the second moving object; The second avoidance module is further configured to avoid the conflict by replanning the second motion path if the conflict type is a head-on collision or overtaking.
9. A computing device comprising: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 7.
10. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Path planning method, electronic equipment and storage medium
CN121277179A
