A smooth trajectory planning method for mobile robots based on PSO parameter tuning

By combining the improved A* algorithm and PSO algorithm, we can intelligently debug pure tracking parameters and generate a smooth trajectory that conforms to the kinematic constraints of the robot. This solves the problems of unsmooth trajectories and cumbersome parameter debugging in the existing technology, and achieves high efficiency in dynamic environments. Trajectory planning.

CN114779785BActive Publication Date: 2024-10-18ZHEJIANG UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210486028.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-06
Publication Date
2024-10-18
Estimated Expiration
2042-05-06

AI Technical Summary

Technical Problem

Existing robot path planning algorithms are difficult to generate smooth trajectories that comply with robot kinematic constraints in dynamic environments, and parameter debugging is cumbersome and time-consuming, resulting in poor tracking control effects.

Method used

A pure tracking algorithm based on PSO parameter tuning is used, combined with the improved A* algorithm for global path planning, and the obstacle proportion information is introduced to optimize the heuristic function. The PSO algorithm is used to intelligently debug pure tracking parameters to generate a smooth trajectory that conforms to the characteristics of the robot model.

Benefits of technology

It greatly reduces the curvature of the trajectory, improves the adaptability in different environments, saves parameter debugging time, and generates trajectories that are more in line with actual application requirements and satisfy robot kinematic constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114779785B_ABST
    Figure CN114779785B_ABST
Patent Text Reader

Abstract

A method for smooth trajectory planning of a mobile robot based on PSO parameter tuning comprises the following steps: step 1, obtaining a global static grid map of an indoor scene, establishing a two-dimensional map model of the working environment of the mobile robot, each node of the grid map represents whether the current position is an obstacle or a passable area, and confirming the starting point and the target point; step 2, designing an evaluation function of an improved A* algorithm, and performing path finding based on the improved A* global path planning algorithm to obtain a reference path; step 3, according to the control nodes in the path obtained after path planning, using a pure tracking algorithm of empirical parameters to realize reference trajectory tracking control; step 4, based on the intelligent debugging of the pure tracking parameters of the PSO algorithm, selecting the trajectory with the best fitness in the iterative process, thereby generating a feasible trajectory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of robot trajectory planning, and specifically provides a method for smooth trajectory planning of a mobile robot based on PSO parameter setting. On the basis of globally planning a collision-free reference path to a target point for a mobile robot under different environments, a pure tracking algorithm with PSO parameter setting is used to track the reference path to generate a smooth feasible trajectory that conforms to the characteristics of the robot's own model, and has adaptability to different environments. Background Art

[0002] With the rapid development of global technology and the times, the application fields of intelligent mobile robots are expanding day by day. Mobile robots play an increasingly important role in many areas of life. People expect intelligent mobile robots to serve humans in more areas and replace humans to complete more and more complex tasks. In order to achieve effective methods for producing more reliable and skilled robots, as well as to solve problems in different fields and optimize existing solutions, robot navigation is an important topic in the field of mobile robots in terms of improving the task performance of robots. Robot path planning is one of the main tasks to help robots navigate in the environment and has received widespread attention in the past few decades. The path planning technology of robots actually refers to the index of a certain parameter (such as the lowest work cost value, the shortest path selection, the shortest computing time consumption, etc.), and selects an optimal or suboptimal obstacle avoidance path that can connect from the starting point to the end point in the task area. Its essence is to obtain the optimal or feasible solution under several constraints. The quality of the path planning result will directly affect the real-time performance and the quality of the results of the robot's task completion.

[0003] Path planning algorithms can be divided into two categories: global planning and local planning. Currently, the most widely used algorithms include genetic algorithms, ant colony algorithms, Dijkstra algorithms, A* algorithms, D*Lite algorithms, artificial potential field methods, and improved algorithms of this type. The core idea of ​​the A* algorithm is to use heuristic functions to guide the direction of the algorithm traversal, avoid blind search, and improve the convergence efficiency of the algorithm, but the algorithm is not suitable for environments with dynamic obstacles. The dynamic window algorithm (DWA: Dynamic Window Approach) can estimate the motion trajectory of dynamic obstacles within a certain range within a period of time and plan paths to avoid dynamic obstacles, but the algorithm has a dimensional explosion growth characteristic for global path planning. In addition, the traditional A* algorithm has the problems of long search time for the planned path, many redundant nodes, and "sawtooth" shape, which does not meet actual needs and cannot be directly used for tracking wheeled mobile robots. Smoothing is required. Currently, commonly used path smoothing methods include Bezier curves, polynomial fitting, B-spline curves, etc. However, for complex paths with multiple inflection points, the polynomial order of the fitting curve is generally very high, which is prone to oscillation. High-order polynomials will bring calculation difficulties, and the Bezier curve cannot be modified locally.

[0004] Trajectory tracking control uses a tracking algorithm to analyze the motion heading angle and tracking speed to achieve trajectory tracking control of the mobile robot. Pure tracking control is based on the current rear wheel center position, and matches a pre-aiming point at a distance of Ld (custom) on the reference path as a tracking point. The steering angle of the wheeled mobile robot is adjusted to control the lateral error between the current posture of the vehicle and the target waypoint. However, the tracking effect of this algorithm is completely dependent on the debugged parameters, which is inefficient. In particular, in a dynamically changing environment, constant debugging of parameters is required, which is cumbersome and time-consuming, and easily leads to poor tracking control effects. Summary of the invention

[0005] In order to overcome the shortcomings of the prior art, the present invention provides a mobile robot smooth trajectory planning method based on PSO parameter tuning. On the basis of globally planning a collision-free reference path to the target point for the mobile robot in a static environment, the reference path is tracked by a pure tracking algorithm with PSO parameter tuning to generate a feasible trajectory that conforms to the characteristics of the robot's own model and satisfies the curvature constraints, and has adaptability to different environments.

[0006] In order to achieve the above purpose, the technical solution adopted by this application is:

[0007] A mobile robot smooth trajectory planning method based on PSO parameter tuning includes the following steps:

[0008] Step S1, obtain a global static grid map of the indoor scene, each node of the grid map represents whether the current position is an obstacle or a passable area, and confirm the starting point and the target point, establish a two-dimensional map model of the mobile robot's working environment, and determine the coordinates of the starting point, the target point and the obstacle;

[0009] Step S2: In the two-dimensional map model, in order to avoid collisions between paths in the diagonal direction and obstacles in path planning, an improved A* algorithm is used to perform field search to improve the rationality of the generated path; at the same time, the cost function is improved by introducing obstacle weight information, thereby obtaining a reference path while ensuring search efficiency;

[0010] When using the improved A* path search algorithm to search for the shortest path from the starting point to the target point, the path search only considers the positions of the robot's starting point and the target point, and does not consider the current speed, acceleration, and kinematic constraints of the mobile robot. This will result in the found path not meeting the kinematic constraints of the mobile robot, such as exceeding the robot's maximum speed and discontinuous path curvature, which will cause the underlying controller to be unable to track the trajectory. Therefore, subsequent trajectory optimization work is required;

[0011] Step S3, generating a feasible trajectory: according to the control nodes in the path obtained after the above-mentioned improved A* algorithm path planning, a pure tracking algorithm is used to realize reference trajectory tracking control. The parameters of the control algorithm are intelligently debugged by PSO according to different environments to smoothly optimize the trajectory, that is, to generate a feasible trajectory that meets the characteristics of the robot's own model and satisfies the curvature constraint in an adaptive environment.

[0012] Furthermore, in step S2, the specific evaluation function is designed as follows:

[0013] When expanding the child nodes of the current node, discard the child nodes that are in contact with the obstacles and generate diagonal lines with the previous node, so as to avoid collisions between the paths in the diagonal direction and obstacles in path planning, thereby ensuring a safe distance between the robot and the obstacle nodes;

[0014] The obstacle ratio p(n) is introduced to affect the weight of the heuristic function h(n) in different environments. Assume that the number of obstacles in a local area is b, the number of all grids is B, and the coordinates of the current node are (n x ,n y ), the coordinates of the target point are (g x ,g y ), then B is expressed by formula (1)

[0015] B=[1+abs(n x -g y )]×[1+abs(n y -g y)] (1)

[0016] Then p(n) is expressed as formula (2):

[0017] P(n)=b / B (2)

[0018] The initial evaluation function is shown in formula (3):

[0019] f(n)=g(n)+h(n) (3)

[0020] The improved heuristic function is:

[0021]

[0022] Where n represents the current node, f(n) represents the evaluation function of the mobile robot at the current node, g(n) represents the actual cost of the mobile robot from the starting point to the current point, h(n) is the heuristic function; w1 and w2 represent the distance function weight and obstacle proportion weight respectively.

[0023] Furthermore, the process of step S3 is as follows:

[0024] Step S3.1, obtaining the control node in the full-segment path obtained by full-segment path planning;

[0025] Step S3.2: pure tracking algorithm trajectory tracking fitting,

[0026] Point g is the preview point, l d is the distance from the center of the rear axle of the vehicle to the preview point, that is, the forward distance, and α is the angle between the body posture and the direction of the line between the center of the rear axle and the preview point. f is the front wheel deflection angle, l is the wheelbase, and according to the sine theorem, the following formula holds true:

[0027]

[0028] Simplifying the above formula, we get:

[0029]

[0030] The path curvature So the above formula can be written as:

[0031]

[0032] According to the kinematic model of the wheeled mobile robot,

[0033]

[0034] but

[0035]

[0036] In addition, the lateral error is defined as the error between the robot's current posture and the preview point in the lateral direction, and small angle errors are considered:

[0037]

[0038] Therefore, pure tracking is essentially a P controller, and from formula (10), it can be seen that the look-ahead distance is closely related to the trajectory tracking effect and is an important parameter of the pure tracking algorithm. If the look-ahead distance is too large, the control accuracy will be reduced, but the trajectory generated by the tracking will be smoother; if the look-ahead distance is small, the tracking fitting will be more accurate, but it is easy to produce oscillation. The look-ahead distance is usually defined as a first-order polynomial about the speed, as shown in the following formula:

[0039] l d =k v v+l d0 (11)

[0040] Calculate the acceleration:

[0041] a=k p ×(v s -v) / dt (12)

[0042] Let v s is the target constant speed, v is the current tracking speed;

[0043] Step S3.3, pure tracking parameter tuning optimization based on PSO algorithm, includes:

[0044] According to equations (11), (12), and (13), the parameters that need to be adjusted are: k v ,k p ,l d0

[0045] The PSO algorithm formula is shown in equations (14) and (15):

[0046] v i+1 =w×v i +c1r1(P i -x i )+c2r2(G i -x i ) (13)

[0047] x i+1 =x i +v i+1 (14)

[0048] Where i is the particle number; x i is the position of the ith particle; w is the inertia weight; c1 and c2 are both learning factors; r1 and r2 are random numbers in the range [0,1]; P iis the optimal position that the particle searches for when i arrives; G i is the optimal position searched by the particle swarm at time i;

[0049] In the Cartesian coordinate system, the error between the reference point and the real point in the X and Y axis directions is:

[0050] d x =xx des ,d y =yy des (15)

[0051] Calculate the lateral error:

[0052] f(k)=dy×cosθ des -dx×sinθ des (16)

[0053] The design fitness function is as follows:

[0054]

[0055] Where k represents the sequence points actually tracked, and r represents the average curvature of the sequence points of the trajectory;

[0056] The PSO algorithm process is as follows:

[0057] Step 1: The number of iterations is n = 1, and the particle swarm is randomly initialized in the search space. The position vector of the i-th particle is Velocity Vector 1≤i≤m,1≤d≤D, m is the number of particle populations, and D is the dimension of the search space;

[0058] Step 2: Take the position vector elements of each particle as parameter k in turn v ,k p ,l d0 , and then simulate the system and calculate its fitness function value

[0059] Step 3: Use the current fitness value of each particle Its best fitness value Pbest i For comparison, if but Locally optimal particle

[0060] Step 4: Use the current fitness value of each particle And the global best fitness value Gbest of the particle swarm i For comparison, if but Global optimal particle

[0061] Step 5: Update the particle position according to equations (14) and (15) and speed

[0062] Step 6: Iteration number n = n + 1, return to Step 2 until the maximum number of iterations N is reached;

[0063] According to the above algorithm, iterate to obtain the optimal parameter k of pure tracking control v ,k p ,l d0 .

[0064] The present invention provides a mobile robot smooth trajectory planning method based on PSO parameter tuning. On the basis of globally planning a collision-free reference path to a target point for the mobile robot in a static environment, this method greatly reduces the curvature of the initial path. The robot trajectory generated based on geometric tracking optimization conforms to the characteristics of the robot's own model and satisfies the curvature constraints. In addition, intelligent parameter debugging improves the adaptability in different environments and is more in line with the actual application scenario requirements.

[0065] Compared with the existing robot path planning and trajectory smoothing algorithms, mainly including genetic algorithm, ant colony algorithm, Dijkstra algorithm, A* algorithm, D*Lite algorithm, artificial potential field method, Bezier curve, polynomial fitting, B-spline curve and other methods, the beneficial effect of the present invention is that the intelligent parameter debugging of the tracking algorithm using the PSO algorithm greatly saves the time of tedious parameter debugging, and the parameters debugged by the method make the average curvature of the trajectory after optimization small. At the same time, the method can be applied to intelligent parameter debugging in different environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 It is a flow chart of the smooth trajectory planning method of mobile robot based on PSO parameter tuning.

[0067] Figure 2 It is the path planning diagram of the mobile robot in a static environment.

[0068] Figure 3 is the initial planning path curvature graph.

[0069] Figure 4 It is a schematic diagram of the pure tracking algorithm.

[0070] Figure 5 It is a schematic diagram of lateral error.

[0071] Figure 6 It is an iterative process diagram based on the PSO algorithm.

[0072] Figure 7 It is the trajectory optimization graph of the mobile robot in a static environment.

[0073] Figure 8 It is the curvature map after trajectory optimization.

[0074] Fig. 9 It is a comparison chart of trajectory fitting errors. Specific 1 embodiment

[0076] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0077] Reference Figures 1 to 9 , a mobile robot smooth trajectory planning method based on PSO parameter tuning, comprising the following steps:

[0078] S1. Obtain a global static grid map of the indoor scene. Each node of the grid map represents whether the current position is an obstacle or a passable area, and confirm the starting point and the target point.

[0079] S2. Design an improved A* algorithm evaluation function, and perform path finding based on the improved A* global path planning algorithm to obtain a reference path;

[0080] S3, according to the control nodes in the path obtained after path planning, the reference trajectory tracking control is realized by using the pure tracking algorithm of empirical parameters;

[0081] S4. Intelligent debugging of pure tracking parameters based on PSO algorithm to generate a feasible trajectory.

[0082] In one embodiment of the present invention, the grid map includes 8 neighbor nodes. According to the symmetry principle in the grid map, the movement in the grid map can be divided into linear movement and diagonal movement.

[0083] Step S1: Obtain a global static grid map of the indoor scene. Each node of the grid map represents whether the current location is an obstacle or a passable area, and confirm the starting point and the target point. Create a 25×22 grid map with a unit size of 1×1m, and initially set the starting point coordinates (2, 3), a number of obstacles, and the target point coordinates (22, 20).

[0084] Step S2: design an improved A* algorithm evaluation function, and perform path finding based on the improved A* global path planning algorithm to obtain a reference path.

[0085] Consider the fitness indicators such as the continuity of the motion path of the wheeled mobile robot, turning angle, energy consumption, etc. The traditional A* algorithm is designed for safety. When expanding the child nodes of the current node, the child nodes that generate diagonal lines and contact obstacles with the previous node are discarded to avoid collisions between the diagonal paths and obstacles in path planning, thereby ensuring a safe distance between the robot and the obstacle node. At the same time, the obstacle proportion p(n) is introduced to affect the weight of the heuristic function h(n) in different environments. The improved A* evaluation function is as follows:

[0086]

[0087] Where n represents the current node, f(n) represents the evaluation function of the mobile robot at the current node, g(n) represents the actual cost of the mobile robot from the starting point to the current point, and h(n) is the heuristic function; w1 and w2 represent the distance function weight and obstacle proportion weight respectively;

[0088] The path obtained by using the A* algorithm for path planning on the grid map is as follows Figure 2 As shown, the curvature of the initial planning path is shown in Figure 3 .

[0089] Step S3: According to the control nodes in the path obtained after path planning, a pure tracking algorithm with empirical parameters is used to implement reference trajectory tracking control.

[0090] The model of the wheeled mobile robot is simplified to a bicycle model with Ackerman steering. The schematic diagram of the pure tracking algorithm is as follows: Figure 4 As shown:

[0091] Point g is the preview point, l d is the distance from the center of the rear axle of the vehicle to the preview point, that is, the forward distance, and α is the angle between the body posture and the direction of the line between the center of the rear axle and the preview point. f is the front wheel deflection angle, l = 0.5m is the wheelbase. According to the sine theorem, the following formula holds true:

[0092]

[0093] Simplifying the above formula, we get:

[0094]

[0095] The path curvature So the above formula can be written as:

[0096]

[0097] According to the kinematic model of the wheeled mobile robot,

[0098]

[0099] but

[0100]

[0101] In addition, the lateral error is defined as the error between the robot's current posture and the preview point in the lateral direction, and small angle errors are considered:

[0102]

[0103] Therefore, pure tracking is essentially a P controller, and from formula (10), it can be seen that the look-ahead distance is closely related to the trajectory tracking effect and is an important parameter of the pure tracking algorithm. If the look-ahead distance is too large, the control accuracy will be reduced, but the trajectory generated by the tracking will be smoother; if the look-ahead distance is small, the tracking fitting will be more accurate, but it is easy to produce oscillation. The look-ahead distance is usually defined as a first-order polynomial about the speed, as shown in the following formula:

[0104] l d =k v v+l d0 (8)

[0105] Calculate the acceleration:

[0106] a=k p ×(v s -v) / dt (9)

[0107] Let v s =2m / s is the target constant speed, v is the current tracking speed;

[0108] Step S4: Intelligently debug the pure tracking parameters based on the PSO algorithm to generate a feasible trajectory.

[0109] The PSO algorithm is used to optimize the parameters of the pure tracking algorithm. The process is as follows:

[0110] According to equations (7), (8), and (9), the parameters that need to be adjusted are: k v ,k p ,l d0

[0111] The PSO algorithm formula is shown in formula (10) (11):

[0112] v i+1 =w×v i +c1r1(P i -x i )+c2r2(G i -x i ) (10)

[0113] x i+1=x i +v i+1 (11)

[0114] Where i is the particle number; x i is the position of the ith particle; w∈[0.4,0.9] is the inertia weight; c1=c2=2 are both learning factors; r1, r2 are random numbers in the range [0,1]; P i is the optimal position that the particle searches for when i arrives; G i It is the optimal position searched by the particle swarm at time i.

[0115] Schematic diagram of lateral error Figure 5 As shown:

[0116] First, in the Cartesian coordinate system, the error between the reference point and the real point in the X and Y axis directions is:

[0117] d x =xx des ,d y =yy des (12)

[0118] Calculate the lateral error:

[0119] f(k)=dy×cosθ des -dx×sinθ des (13)

[0120] The design fitness function is as follows:

[0121]

[0122] Where k represents the sequence points actually tracked, and r represents the average curvature of the sequence points of the trajectory;

[0123] The specific process of PSO algorithm is as follows:

[0124] Step 1: The number of iterations is n = 1, and the particle swarm is randomly initialized in the search space. The position vector of the i-th particle is Velocity Vector 1≤i≤m,1≤d≤D,m=15 is the number of particle populations, and D=3 is the dimension of the search space;

[0125] Step 2: Take the position vector elements of each particle as parameter k in turn v ,k p ,l d0 , and then simulate the system and calculate its fitness function value

[0126] Step 3: Use the current fitness value of each particle Its best fitness value Pbest i For comparison, if but Locally optimal particle

[0127] Step 4: Use the current fitness value of each particle And the global best fitness value Gbest of the particle swarm i For comparison, if but Global optimal particle

[0128] Step 5: Update the particle position according to equations (14) and (15) and speed

[0129] Step 6: Iteration number n = n + 1, return to Step 2, until the maximum number of iterations N = 50 is reached;

[0130] According to the above algorithm process, iterate 50 times to obtain the optimal parameters of pure tracking control when the fitness function is the smallest:

[0131] k v =0.0124, k p =0.406, l d0 =0.5

[0132] The fitness function changes during the iteration process. Figure 6 , the trajectory tracking optimization after the pure tracking control parameters are adjusted based on the PSO algorithm is shown in Figure 7 The curvature diagram of the trajectory after optimization is shown in Figure 8 As shown. The tracking error comparison of pure tracking algorithm trajectory tracking based on empirical given parameters and PSO parameter tuning is shown in Fig. 9 .

[0133] From the experimental results ( Figure 4-9) It can be seen that the present invention accurately plans a collision-free, smooth, small-curvature trajectory from the starting point to the target point in a static environment from the perspective of the actual kinematic constraints of the wheeled mobile robot, and the initial path length is 31.15m. After the trajectory optimization by the above method, the path length is 30.5m, which shortens the path length by 2.03%, and the sum of the trajectory curvature is reduced from 207.68 to 86.13, and the sum of the trajectory curvature is reduced by 58.5%, making the robot tracking trajectory smoother. The method uses the PSO algorithm to intelligently debug the parameters of the tracking algorithm, which greatly saves the tedious parameter debugging time, and the parameters debugged based on the PSO make the average curvature of the trajectory after optimization smaller. The kinematic constraints of the mobile robot are met. The results can meet the accuracy and real-time requirements of practical applications.

[0134] The above detailed description and description of the embodiments of the present invention are made in conjunction with the accompanying drawings, but are not limited to the above embodiments. Within the knowledge of those skilled in the art, various changes and improvements can be made based on the concept of the present invention.

Claims

1. A mobile robot smooth trajectory planning method based on PSO parameter tuning, characterized in that: The method comprises the following steps: Step S1, obtain a global static grid map of the indoor scene, each node of the grid map represents whether the current position is an obstacle or a passable area, and confirm the starting point and the target point, establish a two-dimensional map model of the mobile robot's working environment, and determine the coordinates of the starting point, the target point and the obstacle; Step S2: In the two-dimensional map model, in order to avoid collisions between paths in the diagonal direction and obstacles in path planning, an improved A* algorithm is used to perform field search to improve the rationality of the generated path; at the same time, the cost function is improved by introducing obstacle weight information, thereby obtaining a reference path while ensuring search efficiency; Step S3, generating a feasible trajectory: according to the control nodes in the path obtained after the improved A* algorithm path planning, a pure tracking algorithm is used to realize reference trajectory tracking control, and the parameters of the control algorithm are intelligently debugged by PSO according to different environments to smoothly optimize the trajectory, that is, to generate a feasible trajectory that meets the characteristics of the robot's own model and satisfies the curvature constraint in an adaptive environment; In step S2, the evaluation function is designed as follows: When expanding the child nodes of the current node, discard the child nodes that are in contact with the obstacles and generate diagonal lines with the previous node, so as to avoid collisions between the paths in the diagonal direction and obstacles in path planning, thereby ensuring a safe distance between the robot and the obstacle nodes; The obstacle ratio p(n) is introduced to affect the weight of the heuristic function h(n) in different environments. Assume that the number of obstacles in a local area is b, the number of all grids is B, and the coordinates of the current node are (n x ,n y ), the coordinates of the target point are (g x ,g y ), then B is expressed by formula (1) B=[1+abs(n x -g y )]×[1+abs(n y -g y )] (1) Then p(n) is expressed as formula (2): P(n)=b / B (2) The initial evaluation function is shown in formula (3): f(n)=g(n)+h(n) (3) The improved heuristic function is: Where n represents the current node, f(n) represents the evaluation function of the mobile robot at the current node, g(n) represents the actual cost of the mobile robot from the starting point to the current point, and h(n) is the heuristic function; w1 and w2 represent the distance function weight and obstacle proportion weight respectively; The process of step S3 is as follows: Step S3.1, obtaining the control node in the full-segment path obtained by full-segment path planning; Step S3.2: pure tracking algorithm trajectory tracking fitting, Point g is the preview point, l d is the distance from the center of the rear axle of the vehicle to the preview point, that is, the forward distance, α is the angle between the body posture and the direction of the line between the center of the rear axle and the preview point, δ f is the front wheel deflection angle, l is the wheelbase, and according to the sine theorem, the following formula holds true: Simplifying the above formula, we get: The path curvature So the above formula can be written as: According to the kinematic model of the wheeled mobile robot, but In addition, the lateral error is defined as the error between the robot's current posture and the preview point in the lateral direction, and small angle errors are considered: Therefore, pure tracking is essentially a P controller. From formula (10), the foresight distance is closely related to the trajectory tracking effect and is an important parameter of the pure tracking algorithm. If the foresight distance is too large, the control accuracy will be reduced, but the trajectory generated by tracking will be smoother. If the foresight distance is small, the tracking fitting will be more accurate, but it is easy to oscillate. The foresight distance is defined as a first-order polynomial about the speed, as shown in the following formula: l d =k v v+l d0 (11) Calculate the acceleration: a=k p ×(v s -v) / dt (12) Let v s is the target constant speed, v is the current tracking speed; Step S3.3, pure tracking parameter tuning optimization based on PSO algorithm, includes: According to equations (11) and (12), the parameters that need to be adjusted are: k v ,k p ,l d0 The PSO algorithm formula is shown in formula (13) (14): v i+1 =w×v i +c1r1(P i -x i )+c2r2(G i -x i ) (13) x i+1 =x i +v i+1 (14) Where i is the particle number; x i is the position of the ith particle; w is the inertia weight; c1 and c2 are both learning factors; r1 and r2 are random numbers in the range [0,1]; P i is the optimal position that the particle searches for when i arrives; G i is the optimal position searched by the particle swarm at time i In the Cartesian coordinate system, the error between the reference point and the real point in the X and Y axis directions is: d x =x-x des ,d y =y-y des (15) Calculate the lateral error: f(k)=dy×cosθ des -dx×sinθ des (16) The design fitness function is as follows: Where k represents the sequence points actually tracked, and r represents the average curvature of the sequence points of the trajectory; The PSO algorithm process is as follows: Step 1: The number of iterations is n = 1, and the particle swarm is randomly initialized in the search space. The position vector of the i-th particle is Velocity Vector 1≤i≤m,1≤d≤D, m is the number of particle populations, and D is the dimension of the search space; Step 2: Take the position vector elements of each particle as parameter k in turn v ,k p ,l d0 , and then simulate the system and calculate its fitness function value Step 3: Use the current fitness value of each particle Its best fitness value Pbest i For comparison, if but Locally optimal particle Step 4: Use the current fitness value of each particle And the global best fitness value Gbest of the particle swarm i For comparison, if but Global optimal particle Step 5: Update the particle position according to equations (14) and (15) and speed Step 6: Iteration number n = n + 1, return to Step 2 until the maximum number of iterations N is reached; According to the above algorithm, iterate to obtain the optimal parameter k of pure tracking control v ,k p ,l d0 .

Citation Information

Patent Citations

  • Wheeled mobile robot trace tracking method based on quantum behavior particle cluster algorithm

    CN101436073A

  • Mobile robot intelligent path planning method

    CN112631294A