A path planning method for tracking moving targets
By observing the target position in real time and dynamically adjusting the sampling step size, local paths are planned in sections, which solves the problems of complex calculations and too long paths when tracking moving targets in the RRT*-Connect algorithm, achieving shorter path planning and smaller Calculate the amount, adapt to environmental changes, and find the asymptotic optimal solution.
Patent Information
- Application Number
- CN202211124793.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-09-15
AI Technical Summary
The existing RRT*-Connect algorithm has problems in the path planning of tracking moving targets, such as complex calculation process, huge calculation amount, long calculation time, many planning times, and the final planned total path is too long.
Adopting an improved path planning method, by observing the moving direction and position of the target in real time, planning local paths in sections, using temporary target points and dynamically adjusting the sampling step size, reducing the number of global path planning, optimizing local paths, making the path shorter and more efficient. The amount of calculation is small.
It effectively reduces the time and calculation amount of path planning, generates a shorter global path, has fewer overall planning times, adapts to environmental changes, and finds asymptotic optimal solutions.
Smart Images

Figure CN115454071B
Abstract
Description
Technical Field
[0001] The invention relates to the field of wheeled robot path planning, in particular to a path planning method for tracking a moving target. Background Art
[0002] With the rapid development of industrial automation and intelligence, robots are widely used in the fields of intelligent driving, industrial Internet of Things, smart home, etc. Since wheeled robots can plan collision-free paths in complex and changing environments, they can perform corresponding tasks excellently, so they are widely used in these fields.
[0003] There are many different planning methods for wheeled robots, such as grid-based A* and D* algorithms, sampling-based RRT series algorithms and PRM series algorithms, and artificial potential field-based methods. Among them, the sampling-based RRT planning algorithm has been rapidly developed and widely used in path planning algorithms because it can quickly find solutions in multi-dimensional space.
[0004] Since Steven M. LaValle proposed the rapidly-exploring random tree (RRT) algorithm in 1998, it can effectively solve the path planning problem in high-dimensional space and complex constraints because it can quickly find solutions in high-dimensional and complex state spaces and does not require the construction of a mathematical model for the environment. Various improved algorithms for RRT have been continuously proposed, such as RRT-Connect, extended-RRT, Dynamic-RRT and other algorithms.
[0005] Then in 2010, SertacKaraman and Emilio Frazzoli proposed the RRT* algorithm, which improved the way of selecting parent nodes. After finding the initial solution, they continued to sample and increase the number of iterations, so that the path obtained by the RRT* algorithm gradually tended to the optimal path. After that, various improved algorithms of RRT* continued to be proposed, such as LQR-RRT, RRT*FN, Spline-RRT*, RRT*-smart, PQ-RRT and other algorithms.
[0006] Then in 2015, Sebastian Klemm et al. proposed the RRT*-Connect algorithm based on the RRT-Connect algorithm and the RRT* algorithm. Under the same environment and number of iterations, it can find the optimal solution faster than the RRT* algorithm and has a shorter convergence time. Therefore, the RRT*-Connect algorithm and various improved algorithms based on RRT*-Connect have begun to be widely used in various path planning scenarios. However, all kinds of improved algorithms of RRT use real-time planning methods for tracking moving targets. This planning method has problems such as complex calculation process, huge amount of calculation, long calculation time, many planning times, and the total path of the final plan is too long. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a path planning method for tracking a mobile target. The method is mainly used for path planning of tracking a mobile target (and the final destination of the mobile target is unknown), improves the RRT*-Connect algorithm, overcomes the shortcomings of the current RRT*-Connect algorithm for path planning, and enables a wheeled robot to plan a shorter path in a shorter time.
[0008] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0009] A path planning method for tracking a moving target comprises the following steps:
[0010] S1, according to the environment, define the initial sampling step size I0 and the maximum number of iterations n, starting from the starting point S start and the current target point S goal , initialize two random trees at the same time, so that the starting point and the target point are the root nodes of the head and tail trees respectively;
[0011] S2, use the RRT*-Connect algorithm to plan an asymptotically optimal global path, and constantly determine whether the target position changes during planning and moving forward;
[0012] S3: If the position of the initial target moves before the robot reaches the target, the current path planning and movement will be stopped;
[0013] S4, during operation, the robot observes the direction and position of the target movement in real time, and selects the temporary target point and local sampling step size, as well as the maximum number of iterations n / 2 for path planning by observing the current target position;
[0014] S5, use the RRT*-Connect algorithm to start planning a local path from the robot's current position to the temporary target, and then the robot starts moving along the currently planned path;
[0015] S6. Keep moving forward before reaching the temporary target, observe the target's moving direction and position in real time, determine the target's moving direction and position at the current moment, select the next temporary target point and local sampling step size, and the maximum number of iterations of path planning n / 2;
[0016] S7, using the RRT*-Connect algorithm to start planning a local path from the current temporary goal to the next temporary goal, and after reaching the current temporary goal, continue moving toward the next temporary goal;
[0017] S8. Repeat steps S6-S7 until the distance to the moving target is less than 1 meter. The robot is considered to have caught up with the moving target, and the next movement of the robot is determined based on the movement of the target.
[0018] A further improvement of the technical solution of the present invention is that the calculation process of the temporary target mentioned in S4, S5, S6 and S7 is:
[0019] (1) Select a temporary target based on the robot's location and the target's location.
[0020]
[0021] Among them, S′ goal (i) is the temporary target point initially selected for the i-th time; point (x1(i), y1(i)) indicates the coordinates of the robot's position when the temporary target is selected for the first time when i=1, and indicates the temporary target selected for the i-1th time when i>1; point (x2(i), y2(i)) indicates the coordinates of the current target position when the temporary target is selected for the i-th time; d i When i=1, it indicates the Euler distance between the robot's position and the current target when the temporary target is selected for the first time. When i>1, it indicates the Euler distance between the temporary target selected for the i-1th time and the current target:
[0022]
[0023] (2) Determine the location of the temporary target, whether it is inside the obstacle or very close to the obstacle. If it is not in these places, the temporary target value calculated in the previous step remains unchanged; if it is in these places, then the temporary target calculated in the previous step will move α times in the direction of the target movement until it is out of the obstacle;
[0024]
[0025] Among them, S goal(i) is the temporary target point finally selected for the i-th time; (x′(i), y′(i)) is the temporary target point initially selected for the i-th time in step S4.1; l = (x l (i),y l (i)) is the unit vector of the current target moving direction; α is the minimum positive integer of the number of times the temporary target moves out of the obstacle or very close to the obstacle; Q obs This is an area with obstacles or very close to obstacles.
[0026] A further improvement of the technical solution of the present invention is that the calculation process of the local sampling step mentioned in S4 and S6 is:
[0027]
[0028] Among them, I step (i) is the sampling step length after selecting the temporary target point for the i-th time; |S start -S goal | represents the Euler distance between the starting point and the end point at the initial moment; I0 is the sampling step at the initial moment; point (x1(i), y1(i)) represents the coordinates of the robot's position when the temporary target is selected for the first time when i=1, and represents the temporary target selected for the i-1th time when i>1; point (x2(i), y2(i)) represents the coordinates of the temporary target selected for the i-th time.
[0029] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is:
[0030] 1. The present invention applies the RRT*-Connect algorithm to the path planning of tracking moving targets, and cleverly uses temporary targets to divide the path into multiple segments to solve the problem of complex real-time planning after the target moves.
[0031] 2. Before catching up with the moving target, the present invention no longer performs global path planning after discovering the target has moved, but selects a temporary target, performs local planning, and completes the global path planning in sections. The resulting global path has the advantages of short length, less overall planning times, and less calculation amount;
[0032] 3. When performing local planning, the present invention continuously changes the sampling step size according to the ratio of the distance between the starting point and the end point of the local path to the distance between the global starting point and the end point, so as to adapt the sampling step size to the local planning environment, facilitate faster finding of the initial solution and the optimal solution, optimize the local path, and make the local path reach asymptotic optimum. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative labor.
[0034] Figure 1 A flow chart of a path planning method for tracking a mobile target provided by the present invention;
[0035] Figure 2 is an initial state path planning diagram in an embodiment of the present invention;
[0036] Figure 3 It is a local planning map after the temporary target is selected for the first time in the embodiment of the present invention;
[0037] Figure 4 It is a local planning map after the temporary target is selected for the second time in the embodiment of the present invention;
[0038] Figure 5 It is a local planning map after the temporary target is selected for the third time in the embodiment of the present invention;
[0039] Figure 6 It is a local planning map after the temporary target is selected for the fourth time in the embodiment of the present invention;
[0040] Figure 7 It is a local planning map after the temporary target is selected for the fifth time in the embodiment of the present invention;
[0041] Figure 8 It is a local planning map after the temporary target is selected for the sixth time in the embodiment of the present invention;
[0042] Fig. 9 This is a local planning map after the temporary target is selected for the seventh time in the embodiment of the present invention. DETAILED DESCRIPTION
[0043] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0044] An embodiment of the present application provides a path planning method for tracking a mobile target, which is an improved RRT*-Connect path planning method based on a mobile target, and is intended to be applied to path planning for tracking a mobile target (and the final destination of the mobile target is unknown). The RRT*-Connect algorithm is improved to overcome the problems existing in the current RRT*-Connect algorithm for path planning, such as "complex calculation process, huge amount of calculation, long calculation time, many planning times, and the final planned total path is too long". The wheeled robot can reduce the planning frequency and plan a shorter path in a shorter time.
[0045] The present invention is further described in detail below with reference to the accompanying drawings and embodiments:
[0046] like Figure 1-Figure 9 As shown, a path planning method for tracking a moving target comprises the following steps:
[0047] S1. In this embodiment, the range of the planning environment is 70×50, and the initial step size and sampling step size I0=0.8 and the maximum number of iterations n=1000 are defined. start is (2,2) and the current target point S goal is (50,25), and two random trees T1 and T2 are initialized at the same time, so that the starting point and the target point are the root nodes of the head and tail trees respectively;
[0048] S2, such as Figure 2 As shown, the RRT*-Connect algorithm is used to plan an asymptotically optimal global path, and whether the target position changes is constantly determined during planning and moving forward;
[0049] S3: If the position of the initial target moves before the robot reaches the target, the current path planning and movement will be stopped;
[0050] S4, during operation, the robot observes the direction and position of the target movement in real time, and selects the temporary target point and the local sampling step size, as well as the maximum number of iterations for path planning by observing the current target position;
[0051] S5, such as Figure 3 As shown, the robot observed the target point moving from (50,25) to (33.9,31.66) at the starting point (2,2), and the first selected temporary target was (9.97,9.42) and the local sampling step size I step (1) = 0.16, and after the maximum number of path planning iterations is 500, the RRT*-Connect algorithm is used to start planning the path from the current robot position to the temporary target, and then the robot starts moving along the currently planned path;
[0052] S6. Keep moving forward until reaching the temporary target, observe the target's moving direction and position in real time, determine the unit vector l(1) = (-0.924, 0.382) and position (33.9, 31.66) of the target's moving direction at the current moment, and select the next temporary target point (15.95, 14.98) and the local sampling step size I step (2) = 0.12, and the maximum number of iterations of path planning is 500;
[0053] S7, such as Figure 4 As shown, the RRT*-Connect algorithm is used to start planning the path from the current temporary goal (9.97, 9.42) to the next temporary goal (15.95, 14.98). After reaching the current temporary goal (9.97, 9.42), the robot continues to move toward the next temporary goal (15.95, 14.98);
[0054] S8, repeat steps S6-S7 until the distance to the moving target is less than 1 meter, the robot is considered to have caught up with the moving target, and the next movement of the robot is determined according to the movement of the target. Figure 5 As shown in , the target moves to the point (25,35), and the temporary target is determined to be (18.97,21.65); Figure 6-8 As shown in , the target moves to the point (15,45), and the temporary targets are determined to be (16.71,29.79), (16.14,34.86), and (15.57,39.93), respectively, and the local sampling steps are determined to be 0.11, 0.08, and 0.08, respectively; Fig. 9 As shown, the target finally moves to point (12,43), the temporary target is determined to be (12,43), the sampling step is 0.07, and the moving target is finally caught up.
[0055] The implementation process of the method of the present invention is as follows Figure 1 shown. Figure 3-Figure 9 In the figure, the left side (a) shows the local planning map after selecting the temporary target, and the right side (b) shows the enlarged view of the local planning map. Figure 3-Figure 9 In (a), the dotted lines in the upper part of the figure represent the path of the target movement, and the "small squares" on the dotted lines represent the target positions observed when calculating the temporary target. Figure 3-Figure 9 In the figure, the solid lines represent the planned paths, and the “small circles” on the solid lines are the selected temporary targets.
[0056] The path planning described in the above steps of the present invention refers to the path planning completed using the RRT*-Connect algorithm.
[0057] The temporary target mentioned in steps S4-S7 of the present invention is a temporary target selected according to the position of the robot and the position of the target when the target position changes, and the calculation process is:
[0058] S4.1 Select a temporary target based on the robot's location and the target's location
[0059]
[0060] Among them, S′ goal (i) is the temporary target point initially selected for the i-th time; point (x1(i), y1(i)) indicates the coordinates of the robot's position when the temporary target is selected for the first time when i=1, and indicates the temporary target selected for the i-1th time when i>1; point (x2(i), y2(i)) indicates the coordinates of the current target position when the temporary target is selected for the i-th time; d i When i=1, it indicates the Euler distance between the robot's position and the current target when the temporary target is selected for the first time. When i>1, it indicates the Euler distance between the temporary target selected for the i-1th time and the current target.
[0061] S4.2 determines the location of the temporary target, whether it is inside the obstacle or very close to the obstacle. If it is not in these places, the temporary target value calculated in the previous step remains unchanged; if it is in these places, then the temporary target calculated in the previous step will move α times in the direction of the target movement until it is out of the obstacle.
[0062]
[0063] Among them, S goal (i) is the temporary target point finally selected for the i-th time; (x′(i), y′(i)) is the temporary target point initially selected for the i-th time in step S4.1; l = (x l (i), yl(i)) is the unit vector of the current target moving direction; α is the minimum positive integer of the number of times the temporary target moves out of the obstacle or very close to the obstacle; Q obs This is an area with obstacles or very close to obstacles.
[0064] The calculation process of the local sampling step mentioned in steps S4 and S6 of the present invention is:
[0065]
[0066] Among them, I step (i) is the sampling step length after selecting the temporary target point for the i-th time; |S start -S goal| represents the Euler distance between the starting point and the end point at the initial moment; I0 is the sampling step at the initial moment; point (x1(i), y1(i)) represents the coordinates of the robot's position when the temporary target is selected for the first time when i=1, and represents the temporary target selected for the i-1th time when i>1; point (x2(i), y2(i)) represents the coordinates of the temporary target selected for the i-th time.
[0067] In the same environment, the real-time path planning method needs to continuously update the global path because the target is moving, which results in a huge amount of calculation. At the same time, the real-time planning method will generate more "redundant paths", so that the target can only be caught up with by a longer path. Compared with the real-time path planning method, the method of this embodiment has the following advantages: (1) the number of path planning times and the amount of calculation are greatly reduced; (2) the global path generated in the end is shorter.
[0068] Matters not covered by the present invention are known technologies.
[0069] Finally, it should be noted that the above description is only for the purpose of illustrating the technical concept and features of the present invention, and its purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and it cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A path planning method for tracking a moving target, Features: The following steps are involved: S1, define the initial sampling step size I according to the environment 0 And the maximum number of iterations n, starting from the starting point S start and the current target point S goal , initialize two random trees at the same time, so that the starting point and the target point are the root nodes of the head and tail trees respectively; S2, use the RRT*-Connect algorithm to plan an asymptotically optimal global path, and constantly determine whether the target position changes during planning and moving forward; S3: If the position of the initial target moves before the robot reaches the target, the current path planning and movement will be stopped; S4, during operation, the robot observes the direction and position of the target movement in real time, and selects the temporary target point and local sampling step size, as well as the maximum number of iterations n / 2 for path planning by observing the current target position; S5, use the RRT*-Connect algorithm to start planning a local path from the robot's current position to the temporary target, and then the robot starts moving along the currently planned path; S6. Keep moving forward before reaching the temporary target, observe the target's moving direction and position in real time, determine the target's moving direction and position at the current moment, select the next temporary target point and local sampling step size, and the maximum number of iterations of path planning n / 2; S7, using the RRT*-Connect algorithm to start planning a local path from the current temporary goal to the next temporary goal, and after reaching the current temporary goal, continue moving toward the next temporary goal; S8. Repeat steps S6-S7 until the distance to the moving target is less than 1 meter. The robot is considered to have caught up with the moving target, and the next movement of the robot is determined based on the movement of the target.
2. A path planning method for tracking a mobile target according to claim 1, Features: The calculation process of the temporary targets mentioned in S4, S5, S6, and S7 is: (1) Select a temporary target based on the robot's location and the target's location. Among them, S′ goal (i) is the temporary target point initially selected for the i-th time; point (x 1 (i),y 1 (i)) When i=1, it indicates the coordinates of the robot's position when the temporary target is selected for the first time; when i>1, it indicates the temporary target selected for the i-1th time; point (x 2 (i),y 2 (i)) is the coordinate of the current target location when the temporary target is selected for the i-th time; d i When i=1, it indicates the Euler distance between the robot's position and the current target when the temporary target is selected for the first time. When i>1, it indicates the Euler distance between the temporary target selected for the i-1th time and the current target: (2) Determine the location of the temporary target, whether it is inside the obstacle or very close to the obstacle. If it is not in these places, the temporary target value calculated in the previous step remains unchanged; if it is in these places, then the temporary target calculated in the previous step will move α times in the direction of the target movement until it is out of the obstacle; Among them, S goal (i) is the temporary target point finally selected for the i-th time; (x′(i), y′(i)) is the temporary target point initially selected for the i-th time in step S4.1; l = (x l (i),y l (i)) is the unit vector of the current target moving direction; α is the minimum positive integer of the number of times the temporary target moves out of the obstacle or very close to the obstacle; Q obs This is an area with obstacles or very close to obstacles.
3. A path planning method for tracking a mobile target according to claim 1, Features: The calculation process of the local sampling step mentioned in S4 and S6 is: Among them, I step (i) is the sampling step length after selecting the temporary target point for the i-th time; |S start -S goal | represents the Euler distance between the starting point and the end point at the initial moment; I 0 is the sampling step size at the initial moment; point (x 1 (i),y 1 (i)) When i=1, it indicates the coordinates of the robot's position when the temporary target is selected for the first time; when i>1, it indicates the temporary target selected for the i-1th time; point (x 2 (i),y 2 (i)) is the temporary target coordinate selected for the i-th time.
Citation Information
Patent Citations
Fast underwater robot three-dimensional path planning method with target-oriented centralized optimization
CN110196602A
Unmanned surface vessel path planning method
CN112327850A
Path planning method fusing A* and improved RRT-Connect
CN114812555A
Machine Learning based Fixed-Time Optimal Path Generation
US20190184561A1
