Path planning method and device for approaching moving target, equipment and storage medium

By splitting the path and combining the path planning algorithm and steering capability optimization, the complexity of path planning for approaching moving targets is solved, and effective path planning and steering capability are achieved.

CN118707941APending Publication Date: 2024-09-27THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310409850.6
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

Technical Problem

It is difficult to directly solve the optimal path planning problem for approaching moving targets with existing technology, because the target position to be reached is uncertain and traditional path planning algorithms cannot be used.

Method used

The path planning for approaching the moving target is split into two sub-paths: the second movement path of the second moving object from the first starting position to the target area surrounded by the first moving object, and the second movement path from the second starting position in the target area. The third motion path whose starting position is close to the first moving object is optimized through iteration and path planning algorithms, and the path is calculated under the constraints of the shortest path and steering ability.

Benefits of technology

It reduces the complexity of the overall processing process, realizes effective planning of paths approaching moving targets, and meets the steering ability and path optimization requirements of moving objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118707941A
    Figure CN118707941A
Patent Text Reader

Abstract

The invention relates to a path planning method and device for approaching a moving target, equipment and a storage medium. Determining a second motion path of a second motion object from the first initial position to a target area, wherein the target area is a closed area enclosed by the first motion path of the first motion object; a third motion path of the second motion object moving in the target area from a second initial position to approach the first motion object is determined, and the second initial position is the final position of the second motion path; the total motion path of the second motion object approaching the first motion object from the initial position is composed of a second motion path and a third motion path. Therefore, by splitting the total motion path approaching the first motion object into the second motion path from the first initial position to the target area and the third motion path moving in the target area to approach the first motion object, the complexity of the whole processing flow can be reduced.
Need to check novelty before this filing date? Find Prior Art

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 approaching a moving target. 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 an optimal path from the initial position to the target position is planned in an environment with obstacles.

[0003] In the path planning problem of approaching a moving target, since the moving target is moving, the target position to be reached is uncertain, and thus the path planning algorithm cannot be used to directly obtain the optimal path to approach the moving target.

[0004] Therefore, there is a need for a path planning solution that can solve the path planning problem approaching a moving target. Summary of the invention

[0005] A technical problem to be solved by the present disclosure is how to design a path planning solution that can solve the path planning problem of approaching a moving target.

[0006] According to a first aspect of the present disclosure, a path planning method for approaching a moving target is provided, comprising: determining a second motion path for a second moving object to reach a target area from a first starting position, wherein the target area is a closed area surrounded by the first motion path of the first moving object; determining a third motion path for the second moving object to move from a second starting position within the target area and approach the first moving object, wherein the second starting position is an end position of the second motion path, and the total motion path of the second moving object from the starting position to the first moving object is composed of the second motion path and the third motion path.

[0007] Optionally, determining a third motion path of the second moving object moving from a second starting position within the target area to approach the first moving object includes: iteratively executing the following steps until the length of the first time interval is less than a predetermined threshold: selecting a first moment within the first time interval; using a path planning algorithm to determine whether the second moving object can reach the second target position at the first moment, and the motion path when it can reach the second target position at the first moment, the second target position being the position of the first moving object at the first moment; if the second moving object can reach the second target position at the first moment, updating the right boundary of the first time interval based on the first moment, and if the second moving object cannot reach the second target position at the first moment, updating the left boundary of the first time interval based on the first moment; and using the motion path corresponding to the earliest first moment at which the second moving object can reach the second target position as the third motion path.

[0008] Optionally, determining a second motion path for a second moving object to reach a target area from a first starting position includes: setting multiple first target positions on the first motion path; determining the motion paths of the second moving object from the first starting position to each of the first target positions; and selecting a motion path from the multiple motion paths as the second motion path for the second moving object to reach the target area from the first starting position.

[0009] Optionally, selecting a motion path from the multiple motion paths as the second motion path for the second moving object to reach the target area from the first starting position, including: selecting a motion path whose second projection direction is the same as the first projection direction from the multiple motion paths as the second motion path for the second moving object to reach the target area from the first starting position, wherein the second projection direction is the projection direction of the second motion direction on the tangent, the first projection direction is the projection direction of the first motion direction on the tangent, the second motion direction is the motion direction of the second moving object at the first target position, the first motion direction is the motion direction of the first moving object when the second moving object reaches the first target position, and the tangent is the tangent at the first target position on the first motion path.

[0010] Optionally, determining the motion paths of the second moving object from the first starting position to each of the first target positions includes: using a single-source motion path algorithm to determine the motion paths of the second moving object from the same first starting position to each of the first target positions.

[0011] 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 single-source shortest path algorithm, wherein the single-source shortest path algorithm is used to determine the shortest path for the second moving object from the same first starting position to each of the first target positions, including: determining the shortest path for the second moving object from the same first starting position to each of the first target positions based on the optimized single-source shortest path algorithm.

[0012] Optionally, 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 a first starting position to the second node based on the distance between the first node and the second node.

[0013] Optionally, the optimized single-source shortest path algorithm is configured to calculate the shortest path length from the first starting position to the second node based on the following formula:

[0014]

[0015] Where i is the second node, j is the first node, dist[i][dir] represents the shortest path length from the first starting 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 first starting position and the entry direction is dir k The 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.

[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 using a single-source shortest path algorithm to determine the shortest path of the second moving object from the first starting position to each of the first target positions, the method also includes: enlarging the prohibited motion area; and determining the safe motion area based on the enlarged prohibited motion area.

[0018] According to the second aspect of the present disclosure, a path planning device for approaching a moving target is also provided, including: a first planning module, used to determine a second motion path for a second moving object to reach a target area from a first starting position, wherein the target area is a closed area surrounded by the first motion path of the first moving object; a second planning module, used to determine a third motion path for the second moving object to move from a second starting position within the target area and approach the first moving object, wherein the second starting position is the end position of the second motion path, and the total motion path of the second moving object from the starting position to the first moving object is composed of the second motion path and the third motion path.

[0019] Optionally, the second planning module iteratively performs the following steps until the length of the first time interval is less than a predetermined threshold: selecting a first moment within the first time interval; using a path planning algorithm to determine whether the second moving object can reach the second target position at the first moment, and the motion path when it can reach the second target position at the first moment, the second target position being the position of the first moving object at the first moment; if the second moving object can reach the second target position at the first moment, updating the right boundary of the first time interval based on the first moment; if the second moving object cannot reach the second target position at the first moment, updating the left boundary of the first time interval based on the first moment; the second planning module uses the motion path corresponding to the earliest first moment at which the second moving object can reach the second target position as the third motion path.

[0020] Optionally, the first planning module sets multiple first target positions on the first motion path, determines the motion paths of the second moving object from the first starting position to each of the first target positions, and selects a motion path from the multiple motion paths as the second motion path for the second moving object to reach the target area from the first starting position.

[0021] Optionally, the first planning module selects a motion path whose second projection direction is the same as the first projection direction from the multiple motion paths as the second motion path for the second moving object to reach the target area from the first starting position, wherein the second projection direction is the projection direction of the second motion direction on the tangent, the first projection direction is the projection direction of the first motion direction on the tangent, the second motion direction is the motion direction of the second moving object at the first target position, the first motion direction is the motion direction of the first moving object when the second moving object reaches the first target position, and the tangent is the tangent at the first target position on the first motion path.

[0022] Optionally, the first planning module uses a single-source motion path algorithm to determine the motion paths of the second moving object from the same first starting position to each of the first target positions.

[0023] 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 single-source shortest path algorithm based on the shortest straight-line driving distance and / or the steering limit angle, wherein the first planning module determines the shortest path for the second moving object from the same first starting position to each of the first target positions based on the optimized single-source shortest path algorithm.

[0024] Optionally, 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 a first starting position to the second node based on the distance between the first node and the second node.

[0025] Optionally, the optimized single-source shortest path algorithm is configured to calculate the shortest path length from the first starting position to the second node based on the following formula:

[0026]

[0027] Where i is the second node, j is the first node, dist[i][dir] represents the shortest path length from the first starting 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 first starting position and the entry direction is dirk The 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.

[0028] 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.

[0029] Optionally, the device also includes: a safe motion area calculation module, which is used to enlarge the prohibited motion area before using a single-source shortest path algorithm to determine the shortest path of the second moving object from the first starting position to each of the first target positions, and determine the safe motion area based on the enlarged prohibited motion area.

[0030] According to a third aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes the method described in the first aspect above.

[0031] According to a fourth aspect of the present disclosure, a computer program product is provided, comprising an executable code, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described in the first aspect above.

[0032] According to a fifth 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 above.

[0033] Therefore, for a first moving object moving along a closed path (such as a circular path), the present disclosure can reduce the complexity of the overall processing flow by splitting the motion path approaching the first moving object into a second motion path from a first starting position to a target area and a third motion path moving within the target area and approaching the first moving object. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] 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.

[0035] Figure 1 A schematic flowchart of a path planning method according to an embodiment of the present disclosure is shown.

[0036] Figure 2 A schematic diagram of an implementation flow of step S11 is shown.

[0037] Figure 3 A schematic diagram of an implementation flow of step S12 is shown.

[0038] Figure 4 A schematic diagram of the angle formed by the steering trajectory is shown.

[0039] Figure 5 A schematic diagram showing the division of directions is shown.

[0040] Figure 6 A schematic diagram of path planning for approaching a circular moving target is shown.

[0041] Figure 7 A schematic diagram of the overall process of a motion planning method according to an embodiment of the present disclosure is shown.

[0042] Figure 8 Shown with Figure 7 Schematic diagram of the algorithm input and algorithm output corresponding to the process shown.

[0043] Fig. 9 A schematic structural diagram of a path planning device according to an embodiment of the present disclosure is shown.

[0044] Fig.10 A schematic diagram of the structure of a computing device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0045] 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.

[0046] The present disclosure relates to two moving objects, namely a first moving object and a second moving object.

[0047] The first moving object refers to the moving object to be approached, that is, the moving target to be approached. 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. The path trajectory of the first motion path can be a closed path connected end to end. The first moving object can make a reciprocating motion along the first motion path. For example, the first motion path can be a circular path, that is, the moving target to be approached is a target moving around a circle.

[0048] The second moving object refers to a moving object used to approach the first 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 different types. For example, the first moving object and / or the second moving object can be boats, such as unmanned boats.

[0049] The purpose of the present disclosure is to perform path planning for a second moving object to approach a first moving object, so that the second moving object can approach the first moving object based on the planned movement path.

[0050] In view of the fact that the first motion path of the first moving object is a closed path, the present disclosure proposes to split the motion path of the second moving object approaching the first moving object from the starting position into two sub-paths: the motion path of the second moving object from the starting position to the closed area formed by the first motion path (i.e., the second motion path described below); and the motion path of the second moving object passing through the closed area and approaching the first moving object (i.e., the third motion path described below). By splitting the path, the complexity of the overall processing flow can be reduced.

[0051] Figure 1 A schematic flowchart of a path planning method according to an embodiment of the present disclosure is shown.

[0052] See also Figure 1 In step S11, a second moving path of the second moving object from the first starting position to the target area is determined.

[0053] The first starting position is the initial position of the second moving object. The target area is a closed area surrounded by the first motion path of the first moving object. Arriving at the target area may refer to any of the three situations of arriving outside the target area, arriving on the boundary line of the target area, or arriving inside the target area. That is, the end position of the second motion path may be located outside the target area, on the boundary line of the target area, or inside the target area.

[0054] Step S11 can be regarded as a path planning problem. Therefore, a path planning algorithm can be used to determine the second motion path of the second moving object from the first starting position to the target area. As an example, multiple first target positions can be selected as the end positions near the target area, and the path planning algorithm can be used to solve the motion paths from the first starting position to each first target position, and the most suitable motion path (such as the shortest motion path) is selected as the second motion path of the second moving object from the first starting position to the target area. Since solving the motion path from the first starting position to each first target position can be regarded as a single-source shortest path problem, a single-source shortest path algorithm can be used.

[0055] Figure 2 A schematic diagram of an implementation flow of step S11 is shown.

[0056] See also Figure 2 , in step S111, a plurality of first target positions are set on the first motion path.

[0057] There are many ways to set multiple end positions on the first motion path. For example, multiple positions obtained by sampling on the first motion path by random sampling can be used as end positions. For another example, multiple end positions can be set on the first motion path by equidistant sampling, and any two adjacent end positions in the multiple end positions have an equal distance interval. The number of end positions can be set according to actual conditions (such as accuracy requirements).

[0058] In step S112, the motion paths of the second moving object from the first starting position to each first target position are determined.

[0059] A path planning algorithm can be used to determine the second motion path of the second moving object from the same starting position to each end position. From the perspective of algorithm principle, path planning algorithms can be divided into two categories: search-based path planning algorithms and sampling-based path planning algorithms.

[0060] When the nodes of path planning are known (a graph theory model can be built), the path planning algorithm based on search is often used to solve the problem. However, when the path planning scenario is more complex and the search space is large, and it is impossible to do a thorough search 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 perform planning on the sampled search space at the same time.

[0061] From the perspective of algorithm application scenarios, path planning algorithms can be divided into algorithms used to solve the shortest path problem from a single starting point to a single end point (i.e., single-source shortest path algorithm) and algorithms used to solve the shortest path problem between a single starting point and several end points (i.e., point-to-point shortest path algorithm).

[0062] Point-to-point shortest path algorithms may 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* algorithm and the AIT* algorithm.

[0063] The single-source shortest path algorithm may include search-based path planning algorithms such as the Dijkstra algorithm and the SPFA algorithm, and sampling-based path planning algorithms such as the RRT* and FMT* algorithms.

[0064] The present disclosure can use a point-to-point shortest path algorithm to determine the second motion path of the second moving object from the same starting position (i.e., the first starting position) to each end position (i.e., the first target position), or can use a single-source shortest path algorithm to determine the second motion path of the second moving object from the same starting position to each end position.

[0065] Considering that the present disclosure needs to solve the shortest path between a single starting point and several end points at the same time. Therefore, as a preferred embodiment, a single-source shortest path algorithm can be used to determine the second motion path of the second moving object from the same starting position to each end position, so as to improve the solving efficiency. The process of using a single-source shortest path algorithm to determine the second motion path of the second moving object from the same starting position to each end position is a mature technology in this field.

[0066] Single-source shortest path algorithms usually rely on an important property, namely the optimal substructure. The optimal substructure means that a shortest path between two nodes contains multiple shortest subpaths. In other words, the subpath of the shortest path is also the shortest path. In order to record the nodes on the calculated shortest path, for each node v, its predecessor node pre can be maintained, and the predecessor node chain starting from node v can be reversed, which is the shortest path from the source point s to the node v.

[0067] The core operation in the single-source shortest path algorithm is the relaxation operation. The relaxation operation can be described as comparing the shortest path from source point s to node u (i.e., dist[u]) plus the distance from node u to node v (i.e., edge[u][v]) with the shortest path from the current source point s to node v (i.e., dist[v]). If the former is smaller, dist[v] is updated. The relaxation operation can reduce the estimated value dist[v] of the shortest path from source point s to node v.

[0068] The working principle of the single-source shortest path algorithm is a mature technology in this field. Taking the Dijkstra algorithm as an example, the Dijkstra algorithm is a greedy algorithm for solving the single-source shortest path problem. The single-source shortest path problem can be described as follows: Given a weighted directed graph G = (V, E), where the weight of each edge is a non-negative real number. In addition, a vertex in V is given, called the source. Now, it is necessary to calculate the shortest path lengths from the source to all other vertices. The basic idea of the Dijkstra algorithm is to set a vertex set S and continuously make greedy choices to expand this set. A vertex belongs to the set S if and only if the shortest path length from the source to this vertex is known. Initially, only the source is contained in S. Let u be one of the vertices in G. The path from the source point to u and passing only through the vertices in S in the middle is called the special path from the source point to u, and the array Distance is used to record the shortest special path length corresponding to each vertex currently. Each time the Dijkstra algorithm takes out the vertex u with the shortest special path length from V - S, adds u to S, and makes necessary modifications to the array Distance at the same time. Once S contains all the vertices in V, Distance records the shortest path lengths from the source to all other vertices. The Dijkstra algorithm can be described as follows: The input weighted directed graph is G = (V, E), V = {1, 2,..., n}, and the vertex v is the source. c is a two-dimensional array, and c[i][j] represents the weight of the edge (i, j). When (i, j) does not belong to E, c[i][j] is a large number. dist[i] represents the shortest special path length from the source to the vertex i currently. When making a greedy choice in the Dijkstra algorithm, in fact, it is considered that after adding u to S, there may be a new special path to a vertex. If this new special path first passes through the old S to reach the vertex u, and then directly reaches the vertex i from u through an edge, then the shortest length of this path is dist[u] + c[u][i]. If dist[u] + c[u][i] < dist[i], then the value of dist[i] needs to be updated.

[0069] In step S113, select a motion path from multiple motion paths as the second motion path for the second moving object to reach the target area from the first starting position.

[0070] A motion path with the second projection direction the same as the first projection direction can be selected from multiple motion paths as the second motion path for the second moving object to reach the target area from the first starting position. The second projection direction is the projection direction of the second motion direction on the tangent line, the first projection direction is the projection direction of the first motion direction on the tangent line, the second motion direction is the motion direction of the second moving object at the first target position, the first motion direction is the motion direction of the first moving object when the second moving object reaches the first target position, and the tangent line is the tangent line at the first target position on the first motion path.

[0071] For the motion path whose second projection direction is opposite to the first projection direction, when the second moving object moves in the target area and approaches the first moving object, it is necessary to perform a U-turn in the target area to approach the first moving object, and the U-turn operation will cause extra time consumption and fail to meet the optimal requirements. Therefore, the motion path whose second projection direction is opposite to the first projection direction can be excluded. If multiple motion paths whose second projection direction is the same as the first projection direction are selected, the motion path with the shortest path can be further selected as the second motion path.

[0072] In step S12, a third movement path of the second moving object moving from the second starting position within the target area to approach the first moving object is determined.

[0073] The second starting position is the end position of the second motion path, and the total motion path of the second moving object from the starting position to the first moving object consists of the second motion path and the third motion path.

[0074] There are many ways to determine the third motion path of the second moving object moving from the second starting position in the target area to approach the first moving object. For example, a mathematical model can be constructed based on the attribute information of the target area (such as shape and size), the attribute information of the first moving object (such as the speed of the first moving object, the position information of the first moving object when the second moving object reaches the target area), and the attribute information of the second moving object (such as the speed of the second moving object, the position information of the second moving object when it reaches the target area), and the third motion path can be obtained by obtaining a general solution formula.

[0075] Considering the constraints and interference factors in the actual scene, the method of solving the general solution formula for the mathematical model is not suitable for the iteration of the actual scene. The present disclosure proposes to still use the path finding algorithm (i.e., path planning algorithm) to solve the problem. Since the ordinary path finding algorithm cannot solve the problem of dynamic endpoints, the present disclosure proposes a path planning solution that combines the dichotomy method with the path finding algorithm to solve the problem of dynamic endpoints.

[0076] Figure 3 A schematic diagram of an implementation flow of step S12 is shown.

[0077] See also Figure 3 , steps S121 to S123 are an iterative process. Step S124 is an iteration stop judgment step after each round of iterative process ends, which is used to judge whether the iteration end condition is met. If the iteration end condition is met, step S125 is executed. If the iteration end condition is not met, the next round of iterative process is executed.

[0078] In step S121, a first moment is selected within a first time interval.

[0079] The first time interval is used to represent the time range that the second moving object may need to move from the second starting position in the target area to approach the first moving object. The length of the first time interval can be equal to the time required for the first moving object to move along the first moving path. If the first moving path is a circle, the length of the first time interval can be equal to 2* π*r o / v t , where r o is the radius of the circle, v t is the speed of the first moving object.

[0080] The first moment can be selected in the first time interval according to the dichotomy method. The selected first moment can be equal to half of the sum of the left boundary value and the right boundary value of the first time interval. That is, the first moment can be the middle moment in the first time interval.

[0081] In step S122, a path planning algorithm is used to determine whether the second moving object can reach the second target position at the first moment, and the moving path when the second moving object can reach the second target position at the first moment.

[0082] The second target position is the position of the first moving object at the first moment. The second target position can be regarded as a dynamic terminal position determined based on dichotomy. By using a path planning algorithm to determine whether the second moving object can reach the second target position at the first moment, it can be determined whether the second target position is available as a dynamic terminal position. Specifically, if the second moving object cannot reach the second target position at the first moment, it indicates that the second target position cannot be used as the terminal position. If the second moving object cannot reach the second target position at the first moment, it indicates that the second target position can be used as the terminal position (but this position is not necessarily the optimal terminal position).

[0083] When using a path planning algorithm to determine whether the second moving object can reach the second target position at the first moment, the path planning algorithm (such as a point-to-point path planning algorithm) can be used to solve the shortest path and arrival time of the second moving object from the second starting position to the second target position. If the arrival time of the shortest path is later than the first moment, it indicates that the second moving object cannot reach the second target position at the first moment. Conversely, if the arrival time of the shortest path is not later than the first moment, it indicates that the second moving object can reach the second target position at the first moment.

[0084] In step S123, if the second moving object can reach the second target position at the first moment, the right boundary of the first time interval is updated based on the first moment; if the second moving object cannot reach the second target position at the first moment, the left boundary of the first time interval is updated based on the first moment.

[0085] In step S124, it is determined whether the length of the current first time interval is less than a predetermined threshold. The predetermined threshold is a value greater than zero. The specific value of the predetermined threshold can be flexibly set.

[0086] If the length of the first time interval is less than the predetermined threshold, it indicates that the third motion path with the shortest time has been obtained by using the binary search method. On the contrary, if the length of the first time interval is greater than or equal to the predetermined threshold, it indicates that the third motion path with the shortest time has not been obtained by using the binary search method, and the binary search process of step S121 to step S123 can be returned to continue.

[0087] After the binary search process is completed, that is, when the length of the first time interval is less than the predetermined threshold, step S125 can be executed to use the movement path corresponding to the earliest first moment when the second moving object can reach the second target position as the third movement path. Thus, by using the binary search algorithm to determine the dynamic end position, and at the same time converting the problem into a determination problem, calling the path finding algorithm to determine whether the end position is available, the shortest planning path can be obtained.

[0088] So far combined Figures 1 to 3 A detailed explanation is given on how to solve the path planning problem of approaching a moving target.

[0089] The following is a further description of various details of the present disclosure.

[0090] 1. Optimize the path planning algorithm based on the turning ability of the second moving object

[0091] 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.

[0092] 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.

[0093] 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.

[0094] 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 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.

[0095] 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 optimized path planning algorithm can take into account the turning ability of the moving object when determining the second motion path from the starting position to the end position, thereby ensuring that the determined second motion path does not exceed the turning ability of the second moving object.

[0096] 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.

[0097] 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:

[0098] dist[i]:=min(dist[j]+edge[j][i])

[0099] 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.

[0100] According to the above formula, it can be seen 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 will not exceed the steering capability of the second moving object.

[0101] As an example, the calculation formula of dist[i][dir] can be expressed as:

[0102] or

[0103]

[0104] 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, 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 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[j][i]) can also be replaced by edge[j][i].

[0105] 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.

[0106] It should be noted that in the above formula, |dir k -dir| represents the angle between the turning trajectories corresponding to the two entry directions. Figure 4 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 -dir|.

[0107] 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 -dir| represents the angle between the two entry directions, that is, from the direction dir k The angle to turn to dir.

[0108] 2. Slicing direction

[0109] 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.

[0110] Figure 5 FIG. 2 shows a schematic diagram of dividing the direction. Figure 5As 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 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 object's direction into multiple directions, the state space can be reduced while ensuring the accuracy error, and the algorithm solution speed can be accelerated.

[0111] 3. Obstacle expansion

[0112] Before using the single-source shortest path algorithm to determine the shortest paths of the second moving object from the first starting position to each first target position, the prohibited motion area can be enlarged, and the safe motion area can be determined based on the enlarged prohibited motion area. Thus, the single-source shortest path algorithm can be used to plan the path for the safe motion area. Among them, the prohibited motion area can be enlarged by using but not limited to the polygon scaling algorithm.

[0113] The polygon scaling algorithm is a method in the field of computational geometry that reduces or expands polygons according to the scaling distance and type requirements. The prohibited motion area refers to the area that the second moving object needs to avoid during the movement, such as the area where the obstacle is located. By enlarging the prohibited motion area, the safety factor can be improved.

[0114] Figure 6 A schematic diagram of path planning for approaching a circular moving target is shown.

[0115] See also Figure 6 , the moving path of the moving target to be approached (ie, the first moving object) is circular.

[0116] The path planning for the second moving object is divided into two parts: A->B and B->C.

[0117] The A->B part mainly plans the path of the second moving object from the starting position A into the circle.

[0118] Part B->C mainly plans the path of how the second moving object moves within the circle to approach the moving target.

[0119] B shown in the figure is the position of the second moving object entering the circle, B' is the position of the circular moving target when the second moving object enters the circle, C is the end position of the second moving object moving in the circle, and C' is the position of the circular moving target when it reaches position C. Ideally, C' coincides with C, or C is located after C' and is adjacent to C'.

[0120] The A->B part and the B->C part can be handled by different path planning modules.

[0121] The A->B part can be simply regarded as a single-source path planning problem. At the same time, there is a direction requirement for the end point. It is required that the projection of the entry direction on the circular tangent of the entry point is in the same direction as the target movement (if it is in the opposite direction, it is equivalent to making a U-turn within the circle, which will take extra time and cannot meet the optimal requirements). The processing method of the A->B part can refer to the description of step S11 above.

[0122] Part B->C takes into account that there are no obstacles inside the circle, and there can be multiple solutions. Under the current relatively simple mathematical model, there is a solution that directly calculates the general solution formula; but the general solution method is not suitable for iteration in actual scenarios (there may be more restrictions and interference factors in the future), so the pathfinding algorithm is still considered for solution. Since ordinary pathfinding algorithms cannot solve the problem of dynamic end points, the present disclosure proposes that a binary search algorithm can be used to determine the dynamic end point position, and at the same time, the problem is converted into a deterministic problem, and the pathfinding algorithm is called to determine whether the end point position is available, so as to obtain the shortest planning path. The processing method of part B->C can refer to the description of step S12 above.

[0123] Figure 7 A schematic diagram of the overall process of a motion planning method according to an embodiment of the present disclosure is shown.

[0124] Figure 8 Shown with Figure 7 Schematic diagram of the algorithm input and algorithm output corresponding to the process shown.

[0125] See also Figure 7 , firstly, step S710 may be executed to calculate the safety area.

[0126] like Figure 8 As shown in the getSaveArea section, you can use the task area Area, the forbidden area set {Obs i} and the safety adjustment parameter to calculate the safety area. For example, the prohibited area set {Obs i Each prohibited area (i.e. prohibited area) in the task area Area is enlarged (i.e. expanded), and the area in the task area Area minus the enlarged prohibited area is used as the safe area. i} may include but is not limited to a polygonal prohibited area set and the set of circular forbidden areas 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.

[0127] In step S720, the fastest path P1 is calculated through path planning.

[0128] The fastest circle path P1 corresponds to the second motion path mentioned above. Figure 7 As shown in the GetPathBySearch and GetPathBySampling sections in , we can first determine whether the map can be discretized. If it can be discretized, the search-based path planning algorithm (i.e., GetPathBySearch) is used to perform path planning based on the discretized map (discreteMap) to obtain P1. For example, based on the discretized map (discreteMap), the starting point S (corresponding to the first starting position mentioned above), the target T, the target path Route, and the target threat radius r t , calculate the fastest path P1. The target T is also the target point. The target path corresponds to the first motion path mentioned above. The target threat radius can refer to the radius of the area to be avoided that can pose a threat to the target during the motion of the moving target to be pursued (corresponding to the first moving object mentioned above). The target T mentioned here can be multiple target positions (corresponding to the first target position mentioned above) obtained by sampling the target path Route. The data format of the starting point S and the target position can be expressed as<lat,lng,v,direction> . Among them, lat represents longitude, lng represents latitude, v represents speed, and direction represents the direction of movement. For the calculation process of the fastest circle path P1, please refer to the relevant description above.

[0129] In step S730, the minimum time to reach the destination after entering the circle is obtained by using the binary method. The specific execution process of step S730 can refer to step S361, determining the target followable area according to the binary time; judging whether the target followable area can be reached within the binary time; if it can be reached, outputting the arrival path P2.

[0130] Step S731 is the binary search algorithm flow. Figure 8 In the WhileTime r -Time l ≥∈do” part, Time r -Time l Indicates the first time interval, Time l Indicates the left boundary of the first time interval, Time r represents the right boundary of the first time interval, ∈ corresponds to the predetermined threshold mentioned above, Time mid Indicates the half time (corresponding to the first moment mentioned above). r -Time lWhen ≥∈, step S631 will be executed.

[0131] Target can follow area Sector mid Corresponding to the second target position mentioned above. In this embodiment, the target followable area can be based on the binary time Time mid , target path Route, and target followable sector range sector. The target followable sector range is used to characterize the range within which the target is allowed to follow. The target followable sector range sector can be characterized by two parameters: the opening angle range [rad_l, rad_r] and the radius range [r_low, r_high]. Target followable area Sector mid It can be regarded as the final position that the second moving object wants to reach. The final position B of the fastest circle path P1 can be used as the new starting position, and the path planning algorithm can be used to find out whether the second moving object can reach the second moving object in the binary time Time mid Move from B to the target followable area Sector mid , the found motion path Path mid That is Path2 (ie P2). P2 corresponds to the third motion path mentioned above.

[0132] In step S740, the final planned path P1+P2 is obtained.

[0133] like Figure 8 Path all 、Time all As shown, Path all =Path1+Path2,Time all =Time1+Time2. Path1 is also P1, Path all Indicates the final planned path. Time1 indicates the arrival time of the second moving object after moving along Path1, and Time2 indicates the minimum time to reach the destination (i.e., the target followable area) after entering the circle obtained by using the binary search method.

[0134] The following briefly describes the design specifications of each algorithm involved in the present disclosure in response to performance requirements.

[0135] The algorithms involved in the present disclosure mainly include an obstacle expansion algorithm, a discretization method, a search-based obtuse angle restricted path planning algorithm (A->B), a sampling-based obtuse angle restricted path planning algorithm (A->B) and a search-based obtuse angle restricted path planning algorithm (B->C).

[0136] 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.

[0137] 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 points in the polygon. The discretization method is run 1 times.

[0138] The single-shot time complexity of the search-based obtuse angle restricted path planning algorithm (A->B) is O(NlogN), where N is the number of discretized nodes. The number of runs of the search-based obtuse angle restricted path planning algorithm is 1.

[0139] The single-shot time complexity of the sampling-based obtuse angle restricted path planning algorithm (A->B) is O(KN). N is the number of sampling nodes, which is related to the size of the region. K is a relatively large constant, which is the number of potential transfer nodes adjacent to the node. The sampling-based obtuse angle restricted path planning algorithm runs once. The search-based obtuse angle restricted path planning algorithm (A->B) and the sampling-based obtuse angle restricted path planning algorithm (A->B) will be used one by one and will not be reused.

[0140] The single-shot time complexity of the search-based obtuse angle restricted path planning algorithm (B->C) is O(NlogN). N is the number of nodes after discretization. The number of executions of the search-based obtuse angle restricted path planning algorithm (B->C) is equal to the number of times the binary search method is used, which is LogT times. T is the initial time domain size set in the binary search method, that is, the size of the first time interval in the initial case.

[0141] 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, the shortest navigation path approaching the circular moving target can be pre-planned according to the current navigation equipment status, environmental status and mission objectives. The present disclosure mainly consists of two path planning parts, and the final result is obtained by splicing the planned paths of the two path planning parts.

[0142] The path planning method disclosed herein may also be implemented as a path planning device. Fig. 9FIG. 1 is a schematic diagram showing the structure of a path planning device according to an 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 Fig. 9 The 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.

[0143] See also Fig. 9 , the path planning device 900 may include a first planning module 910 and a second planning module 920 .

[0144] The first planning module 910 is used to determine a second motion path of the second moving object from the first starting position to the target area, where the target area is a closed area surrounded by the first motion path of the first moving object. For the process of determining the second motion path by the first planning module 910, please refer to the description of step S11 above.

[0145] The second planning module 920 is used to determine a third motion path of the second moving object moving from the second starting position in the target area to approach the first moving object, wherein the second starting position is the end position of the second motion path, and the total motion path of the second moving object from the starting position to the first moving object consists of the second motion path and the third motion path. For the process of determining the third motion path by the second planning module 920, please refer to the description of step S12 above.

[0146] The path planning device 900 may also include a setting module and an optimization module. The setting module is used to set the shortest straight-line driving distance and / or the turning 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 turning limit angle is used to characterize the angle restriction condition that the second moving object needs to meet to achieve turning. The optimization module is used to optimize the single-source shortest path algorithm based on the shortest straight-line driving distance and / or the turning limit angle. The first planning module can determine the shortest path for the second moving object from the same first starting position to each first target position based on the optimized single-source shortest path algorithm.

[0147] The path planning device 900 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 the preset multiple directions.

[0148] The path planning device 900 may further include a safe motion region calculation module. The safe motion region calculation module is used to amplify the prohibited motion region before determining the shortest path from the first starting position to each first target position of the second moving object using a single-source shortest path algorithm, and determine the safe motion region based on the amplified prohibited motion region.

[0149] Fig.10 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.

[0150] See also Fig.10 , the computing device 1000 includes a memory 1010 and a processor 1020 .

[0151] The processor 1020 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 1020 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 1020 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0152] The memory 1010 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 1020 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 1010 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 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a 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.

[0153] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute the path planning method mentioned above.

[0154] The path planning method, device and apparatus according to the present invention have been described in detail above with reference to the accompanying drawings.

[0155] 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.

[0156] 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.

[0157] 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.

[0158] 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.

[0159] 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 approaching a moving target, characterized in that: include: Determine a second motion path of the second moving object from the first starting position to a target area, wherein the target area is a closed area surrounded by the first motion path of the first moving object; Determine a third motion path of the second moving object moving from a second starting position within the target area to approach the first moving object, wherein the second starting position is the end position of the second motion path, and the total motion path of the second moving object moving from the starting position to the first moving object is composed of the second motion path and the third motion path.

2. The method according to claim 1, characterized in that Determining a third movement path of the second moving object moving from a second starting position within the target area to approach the first moving object includes: Iteratively perform the following steps until the length of the first time interval is less than a predetermined threshold: select a first moment in the first time interval; use a path planning algorithm to determine whether the second moving object can reach a second target position at the first moment, and a movement path when the second moving object can reach the second target position at the first moment, the second target position being the position of the first moving object at the first moment; if the second moving object can reach the second target position at the first moment, then update the right boundary of the first time interval based on the first moment, and if the second moving object cannot reach the second target position at the first moment, then update the left boundary of the first time interval based on the first moment; The motion path corresponding to the earliest first moment at which the second moving object can reach the second target position is used as the third motion path.

3. The method according to claim 1, characterized in that: Determining a second motion path of the second moving object from the first starting position to the target area includes: Setting a plurality of first target positions on the first motion path; determining a motion path of the second moving object from the first starting position to each of the first target positions; A motion path is selected from the plurality of motion paths as a second motion path for the second moving object to reach the target area from the first starting position.

4. The method according to claim 3, characterized in that Selecting a motion path from the plurality of motion paths as a second motion path for the second moving object to reach the target area from the first starting position includes: A motion path having a second projection direction that is the same as the first projection direction is selected from the multiple motion paths as the second motion path for the second moving object to reach the target area from the first starting position, wherein the second projection direction is the projection direction of the second motion direction on the tangent, the first projection direction is the projection direction of the first motion direction on the tangent, the second motion direction is the motion direction of the second moving object at the first target position, the first motion direction is the motion direction of the first moving object when the second moving object reaches the first target position, and the tangent is the tangent at the first target position on the first motion path.

5. The method according to claim 3, characterized in that: Determining the motion paths of the second moving object from the first starting position to each of the first target positions includes: A single-source motion path algorithm is used to determine the motion paths of the second moving object from the same first starting position to each of the first target positions.

6. The method according to claim 5, 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; Based on the shortest straight-line driving distance and / or the turning limit angle, a single-source shortest path algorithm is optimized, Among them, using a single-source shortest path algorithm to determine the shortest path of the second moving object from the same first starting position to each of the first target positions includes: determining the shortest path of the second moving object from the same first starting position to each of the first target positions based on an optimized single-source shortest path algorithm.

7. The method according to claim 6, characterized in that 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 a first starting position to the second node based on the distance between the first node and the second node.

8. A path planning device for approaching a moving target, characterized in that: include: A first planning module is used to determine a second motion path of the second moving object from the first starting position to a target area, where the target area is a closed area surrounded by the first motion path of the first moving object; The second planning module is used to determine a third motion path of the second moving object moving from a second starting position within the target area to approach the first moving object, wherein the second starting position is the end position of the second motion path, and the total motion path of the second moving object moving from the starting position to the first moving object is composed of the second motion path and the third motion path.

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.