Movatterモバイル変換


[0]ホーム

URL:


CN113805597A - Obstacle self-protection artificial potential field method local path planning method based on particle swarm optimization - Google Patents

Obstacle self-protection artificial potential field method local path planning method based on particle swarm optimization
Download PDF

Info

Publication number
CN113805597A
CN113805597ACN202111146883.3ACN202111146883ACN113805597ACN 113805597 ACN113805597 ACN 113805597ACN 202111146883 ACN202111146883 ACN 202111146883ACN 113805597 ACN113805597 ACN 113805597A
Authority
CN
China
Prior art keywords
obstacle
value
angle
particle
self
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111146883.3A
Other languages
Chinese (zh)
Other versions
CN113805597B (en
Inventor
张卫波
温珍林
封士宇
黄晓军
黄赐坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuzhou University
Original Assignee
Fuzhou University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuzhou UniversityfiledCriticalFuzhou University
Priority to CN202111146883.3ApriorityCriticalpatent/CN113805597B/en
Publication of CN113805597ApublicationCriticalpatent/CN113805597A/en
Application grantedgrantedCritical
Publication of CN113805597BpublicationCriticalpatent/CN113805597B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提出一种基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,引入粒子群算法,并结合智能车在转弯过程中存在最小转弯半径的转弯约束,即在优化过程中加入最大转向角的约束,对初步规划的路线进行曲线优化,并建立相应适应度函数,进一步采用粒子群算法限制寻优范围并找到符合智能车转向特性的航向角,通过粒子不断迭代得到最优的航向角度,从而建立粒子群障碍物自我保护人工势场法避开障碍物,找到符合智能车转向约束的最优路径。

Figure 202111146883

The invention proposes a local path planning method based on the particle swarm algorithm for obstacle self-protection artificial potential field method, introduces the particle swarm algorithm, and combines the turning constraint of the minimum turning radius of the intelligent vehicle during the turning process, that is, adding the minimum turning radius in the optimization process. Constrained by the maximum steering angle, curve optimization is performed on the preliminary planned route, and the corresponding fitness function is established. The particle swarm algorithm is further used to limit the optimization range and find the heading angle that conforms to the steering characteristics of the smart vehicle. The heading angle can be used to establish a particle swarm obstacle self-protection artificial potential field method to avoid obstacles and find the optimal path that meets the steering constraints of the smart car.

Figure 202111146883

Description

Obstacle self-protection artificial potential field method local path planning method based on particle swarm optimization
Technical Field
The invention belongs to the technical field of intelligent driving path planning and autonomous navigation, and local path planning of obstacle avoidance of unmanned vehicles and mobile robots, and particularly relates to a particle swarm algorithm-based local path planning method of an obstacle self-protection artificial potential field method.
Background
In recent years, with the development of computer technology, automobiles gradually develop towards an intelligent direction combining with electronic technology and network communication, and intelligent automobiles are beneficial to improving traffic safety, relieving road congestion, improving social efficiency, advocating low-carbon life and the like. The key technologies of the intelligent vehicle comprise environment perception, navigation positioning, path planning, decision control and the like, and the path planning is a key part of the intelligent vehicle and has great significance for the research of the intelligent vehicle.
The intelligent vehicle is a research hotspot and difficulty in the intelligent field, and the path planning is an important component of the intelligent vehicle, and aims to avoid dynamic and static obstacles through an algorithm under the environment state of a known starting point and a known target point and search for an optimal (shortest distance or shortest time) path. Path planning is further divided into global planning (fixed environment) and local planning (dynamic environment). The global path planning is based on collecting all environment information in the intelligent vehicle driving area, then drawing a map according to the information, and searching a safe and economic path by using an algorithm after inputting a starting point and an end point. And local path planning is to carry out path planning in real time by using environmental information collected by the sensor, and has higher requirements on the vehicle-mounted sensor. In the actual process, the intelligent vehicle simultaneously relates to global planning and local planning, and the quality of the algorithm directly influences the effect of planning the path.
Disclosure of Invention
The invention aims to provide a local path planning method of an obstacle self-protection artificial potential field method based on a particle swarm algorithm, which respectively provides a method for adding a virtual obstacle to solve the local minimum problem and a method for adding a distance factor to solve the problem of unreachable targets on the basis of the traditional artificial potential field method, and provides an obstacle self-protection artificial potential field method based on the particle swarm algorithm to solve the path planning problem of multiple obstacles in a static environment, in order to obtain the optimal rotation angle of an intelligent vehicle, the invention introduces the particle swarm algorithm, combines the turning constraint of the intelligent vehicle with the minimum turning radius in the turning process, namely adds the constraint of the maximum turning angle in the optimization process, performs curve optimization on a preliminarily planned route, establishes a corresponding fitness function, further adopts the particle swarm algorithm to limit the optimizing range and finds a course angle according with the turning characteristics of the intelligent vehicle, and obtaining an optimal course angle through continuous iteration of the particles, thereby establishing a particle swarm barrier self-protection artificial potential field method to avoid the barrier and finding an optimal path which accords with the steering constraint of the intelligent vehicle. And finally, simulating through an MATLAB platform, and verifying the effectiveness of the algorithm.
As a path planning algorithm widely used, the artificial potential field method is often applied to a path planning problem. On the basis of the prior improved artificial potential field method, the invention provides a safer obstacle avoidance strategy in a static environment.
The work performed by the present invention mainly includes: firstly, summarizing feasibility and defects of a predecessor improved artificial potential field method, and aiming at the problem that a distance factor artificial potential field method cannot avoid an obstacle in a complex environment, an obstacle self-protection artificial potential field method (OSPAPF) is provided. Secondly, the method comprises the following steps: in order to find out the optimal course angle, a particle swarm optimization-based obstacle self-protection artificial potential field method (PSO-OSPAPF) is provided, the obstacle is avoided by rotating the course angle, a corresponding fitness function is established, and the course angle which accords with the steering characteristic of the intelligent vehicle is found out in a limited optimizing range by further adopting the Particle Swarm Optimization (PSO).
The invention specifically adopts the following technical scheme:
a local path planning method of an obstacle self-protection artificial potential field method based on a particle swarm optimization is characterized by comprising the following steps:
step S1: initializing parameters of an artificial potential field method, reading the current coordinates, the coordinates of the obstacle and the coordinates of a target point of the intelligent vehicle, and calibrating the irregular obstacle: calibrating the irregular barrier into a rectangular barrier, dividing the rectangle into a plurality of squares, and setting the self-protection radius of the barrier for each square;
step S2: calculating the angle between the current intelligent vehicle and each obstacle, and calculating repulsion, attraction and resultant force: calculating the angle between the obstacle and the current position of the intelligent vehicle, the repulsion of each obstacle to the vehicle and the attraction of the target point to the obstacle, and finally calculating the resultant force;
step S3: judging whether the position of the next step enters the position of the barrier self-protection area: setting a barrier self-protection area with each square barrier as a circle center and a radius of R so as to ensure that the intelligent vehicle does not collide with the barrier; if entering the obstacle self-protection zone, executing the steps S4-S8;
step S4: optimizing by calling a particle swarm algorithm, randomly initializing particles, and calculating the fitness value and the optimal value of the initial particles;
step S5: adding vehicle steering characteristic constraint optimization, updating the speed and position of each particle after iteration, and calculating a function adaptive value of each particle;
step S6: updating the historical optimal value of each particle after iteration, and calculating the global optimal value of the population;
step S7: stopping iteration and outputting an optimal course angle alpha' when the maximum iteration times are reached or the global optimal value is unchanged;
step S8: and returning to the step S3 to judge whether the next position enters the self-protection area of the obstacle after the optimal course angle is obtained.
Further, the intelligent vehicle judges whether the intelligent vehicle falls into a local minimum value point in the motion process: when the intelligent vehicle moves to a certain position, the attractive force and the repulsive force are the same in size and opposite in direction, the resultant force borne by the intelligent vehicle at the path point is zero, and the position of the intelligent vehicle is the lowest position of the potential field in the whole environment;
if the intelligent vehicle is trapped in the local minimum point, the intelligent vehicle jumps out of the local minimum point by arranging the virtual barrier at the intersection of the perpendicular bisector of the connecting line of the barrier and the intelligent vehicle.
Further, by adding a distance factor, the situation that the target point is inaccessible is avoided.
Further, in step S1, the irregular obstacle is calibrated as a rectangular obstacle, and the maximum and minimum values of the abscissa and the ordinate of the obstacle are respectively set as xmax,xmin,ymax,yminThen the coordinates of the four vertices of the rectangle are A (x)min,ymin),B(xmax,ymin),C(xmax,ymax),D(xmin,ymax),LgTo scale the length of the rectangle, WdThe width of the calibrated rectangle is obtained; the rectangle is divided into a plurality of squares, and the number N of the squares0
Figure BDA0003284930710000031
Wherein ceil is an rounding-up function;
side length of square Lo=WdIthoThe center coordinates of each square are:
Figure BDA0003284930710000032
the self-protection radius of the barrier is as follows:
Figure BDA0003284930710000033
further, the specific implementation procedure of step S3 is as follows:
when the intelligent vehicle moves to a position A, according to the resultant force angle value alpha and the step length L of the current path point, the intelligent vehicle arrives at a position B in the next step, if the position B is judged to be in the self-protection area of the obstacle, the resultant force is rotated by theta, the intelligent vehicle can arrive at a position D under the action of the new resultant force angle alpha' and the step length, and the intelligent vehicle is adjusted to be far away from the obstacle to prevent collision; the new resultant force angle determination mode is as follows: the coordinate position of the center of the known obstacle i is
Figure BDA0003284930710000034
The coordinates of the target point are (x)G.yG) The position coordinate of the intelligent vehicle is (x)C,yC) And the position of the next path point is as follows according to the resultant force angle alpha and the step length l:
Figure BDA0003284930710000041
when the next position is judged to enter the barrier self-protection area, the difference value between the position of the intelligent vehicle and the horizontal coordinate of the barrier is calculated
Figure BDA0003284930710000042
Determining a resultant rotation angle theta according to the positive and negative of the delta x, when the delta x is larger than or equal to 0, indicating that the obstacle is positioned at the right side of the next position, and the next position should rotate towards the left, adding the theta on the basis of the resultant angle alpha, wherein the included angle alpha 'between the resultant force and the horizontal axis is alpha + theta, and when the delta x is smaller than 0, indicating that the obstacle is positioned at the left side of the next position, alpha' is alpha-theta, and the next path point is:
Figure BDA0003284930710000043
further, in step S3, the size of the obstacle self-protection zone can be set to different values according to the safety distance between the smart car and different types of obstacles.
Further, step S4 is specifically:
firstly, initializing particles, wherein each particle has two attributes of position and speed; the position represents a new resultant angle alpha ', the speed represents the change size of alpha', each particle calculates a corresponding fitness value according to the updating of the speed and the position, and the quality of the particle is judged according to the fitness value; in the searching process, the optimal value is divided into individual optimal value and global optimal value, and the individual optimal value is recorded as an individual extreme value alpha'pbestThe particle groups share the individual extremum information, and the value with the optimal fitness value in the individual extremums in the particle swarm is selected as a global optimal solution and recorded as a global extremum alpha'qbest(ii) a In an iterative process the particles are according to α'pbestAnd alpha'qbestAdjusting the speed and the position attribute to enable the particles to gradually approach the optimal value, thereby finding the optimal solution; suppose there is NlAnd each particle, in each iteration process, the speed and position expression of the particle is as follows:
Vj(t+1)=wVj(t)+c1r1(α′pbestj(t)-α′j(t))+c2r2(α′gbestj(t)-α′j(t))
α′j(t+1)=α′j(t)+Vj(t+1),j=1,2,…Nl
in the formula, Vj(t +1) and α'j(t +1) are the speed and resultant force angle values of the particle j in the t +1 th iteration respectively, the range of the new resultant force angle is the addition and subtraction of any value on the basis of the original resultant force angle, and the speed value represents the speed of the example; alpha's'pbestj(t) is the individual optimum value, α ', for particle j at the t-th iteration'gbestj(t) is the t-th iteration global optimum; w is an inertia weight and reflects the influence degree of the individual extreme value of the particle on the current value; c. C1And c2Acceleration factors of individuals and groups respectively represent empirical values generated in the optimization process of the particles and accumulated empirical values of other particles, and directly influence the next-step operation track r of each particle1And r2Is a random number between 0 and 1;
step S5 specifically includes:
let L be the front-rear wheel base, (x)c,ycAnd alpha) represents the pose of the intelligent vehicle, (x)c,yc) The coordinate of the intelligent vehicle in the two-dimensional space is shown, alpha is the course angle of the intelligent vehicle at the current moment, and is also the resultant force angle in the artificial potential field method; minimum turning radius R of intelligent vehicle during turningminThe maximum internal angle of the front wheel is alpha2Maximum external rotation angle alpha of front wheel1In the process of turning the vehicle, the inner and outer turning angles are related to the type, the self speed and the acceleration of the vehicle, and v is setxIs the longitudinal speed during movement, ayThe expression of the minimum turning radius and the expression of the maximum turning angle, namely the maximum internal corner, are as follows:
Figure BDA0003284930710000051
Figure BDA0003284930710000052
the inner wheel rotating angle of the intelligent vehicle is larger than the outer wheel rotating angle in the steering process, the rotating angle does not exceed the maximum value of the inner wheel rotating angle and the outer wheel rotating angle in the steering process, namely the relation between the newly searched resultant force angle value alpha' and the inner rotating angle of the front wheel is as follows:
α-α2≤α′≤α+α2
the intelligent vehicle has maximum rotation angle limitation in the turning process, and the obstacle self-protection artificial potential field method optimizing angle value based on particle swarm optimization is limited within the maximum rotation angle range of the intelligent vehicle, so that the path obtained by planning accords with the kinematics model of the intelligent vehicle;
in the calculation of the fitness function, b (i) represents the position (x) at the next momentn,yn) To the ith obstacle center
Figure BDA0003284930710000053
D (i) represents the distance between the next position and the target point, and the mathematical expressions are respectively:
Figure BDA0003284930710000054
Figure BDA0003284930710000061
the next position in the path planning process should be far away from the center of the obstacle, i.e. the larger (b) (i) is, the better the position is, and the distance to the target point is as close as possible, i.e. the smaller (d) (i) is, the better the position is; combining the two distances to establish a fitness function f (i), wherein the larger the fitness value is, the safer the fitness function is, and the expression is as follows:
Figure BDA0003284930710000062
however, in a coordinate system, an intelligent vehicle is close to an obstacle and far away from a target point, a fitness function is represented as b (i) which is small, d (i) which is large, so that the difference between b (i) and c (i) is hundreds of times, the calculation result of the fitness value is biased to a certain value, the fitness value of each particle is not representative, the two are normalized into a dimensionless value, the distance between the two is mapped to a range between [0 and 1], and a mapping expression and a fitness function expression are respectively as follows:
Figure BDA0003284930710000063
Figure BDA0003284930710000064
f(i)=b(i)′+c(i)′;
step S6 specifically includes:
giving the maximum iteration times, the particle speed range and the position optimizing range of the particle swarm algorithm, and giving the number (N) of the particles of the populationl) Randomly generating NlAngularity value alpha'jForming an initial population, j ═ 1,2, … Nl(ii) a Calculating the fitness value f (i) of each individual in the population to the ith obstacle according to the fitness function given in the step S5, and adjusting the speed and the position according to the individual extreme value and the global extreme value to enable the particles to gradually approach the optimal value so as to find the optimal solution; recording the individual extremum α 'of each particle'pbestjAnd global extremum α'gbestj
Step S7 specifically includes:
comparing the global extreme value with the historical optimal value, updating the speed and the position of the particles, stopping iteration when the maximum iteration times is reached or the global optimal value is unchanged, and outputting an optimal course angle alpha';
in step S8, the output optimal heading angle α' and step length are substituted into the path formula of step S3, and the process returns to step S3 to determine whether the next position enters the obstacle self-protected area position.
Further, by setting the path length L within a fixed time interval0Compared with the length L of the path taken by the intelligent vehicle from the position A to the position BIf L is0>And L, judging that the intelligent vehicle falls into the local minimum value in the motion process.
Further, the repulsive force field function after introducing the distance factor is shown as follows:
Figure BDA0003284930710000071
where ρ (X, X)goal)nFor the introduced distance factor, ρ (X, X)goal) Euclidean distance k representing position of intelligent vehicle and target pointrepIs a repulsive force field gain coefficient, N represents the number of obstacles,
Figure BDA0003284930710000072
is the distance between the position of the intelligent vehicle and the ith obstacle, rhooThe influence range of the repulsion force of the obstacle means that the repulsion force potential field is generated only when the intelligent vehicle enters the influence range of the repulsion force. The expression of obtaining the repulsive force by solving the negative gradient of the potential field is as follows:
Figure BDA0003284930710000073
further, the optimized path is connected on the MATLAB, and the motion track of the unmanned vehicle is visualized.
Compared with the prior art, the invention and the optimized scheme thereof respectively provide the virtual barrier for solving the local minimum problem and the distance factor for solving the problem of unreachable targets on the basis of the traditional artificial potential field method, and provide the barrier self-protection artificial potential field method based on the particle swarm algorithm for solving the path planning problem of multiple barriers in the static environment, in order to obtain the optimal rotation angle of the intelligent vehicle, the invention introduces the particle swarm algorithm, combines the turning constraint of the intelligent vehicle with the minimum turning radius in the turning process, namely adds the constraint of the maximum steering angle in the optimization process, performs curve optimization on the preliminarily planned route, establishes the corresponding fitness function, further adopts the particle swarm algorithm to limit the optimization range and find the heading angle according with the steering characteristic of the intelligent vehicle, and obtains the optimal heading angle through continuous particle iteration, therefore, a particle swarm barrier self-protection artificial potential field method is established to avoid the barriers, and an optimal path which accords with steering constraint of the intelligent vehicle is found. And finally, simulating through an MATLAB platform, and verifying the effectiveness of the algorithm.
Drawings
The invention is described in further detail below with reference to the following figures and detailed description:
FIG. 1 is a schematic diagram of irregular obstacle targeting according to an embodiment of the present invention.
Fig. 2 is a schematic view of force analysis under a multi-obstacle environment according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a barrier self-protected area according to an embodiment of the invention.
Fig. 4 is a schematic view of the rotation angle calculation according to the embodiment of the present invention.
FIG. 5 is a schematic diagram of a simple turning model of the intelligent vehicle according to the embodiment of the invention.
Fig. 6 is a schematic diagram of a calculation principle of a fitness function according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of a virtual obstacle according to an embodiment of the present invention.
FIG. 8 is a schematic diagram of an exemplary application of the present invention ((a) a restricted angle path, (b) a local amplification path, (c) a [0,2 ] corner, and (d) a [ alpha-pi/4, alpha + pi/4 ] corner).
Fig. 9 is a schematic diagram of a path planning process of the method according to the embodiment of the present invention.
Detailed Description
In order to make the features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail as follows:
it should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
As shown in fig. 1 to 9, the method for planning local path by obstacle self-protection artificial potential field method based on particle swarm optimization provided in this embodiment includes the following implementation processes:
the method comprises the following steps: initializing parameters of an artificial potential field method, and reading current coordinates, obstacle coordinates and target point coordinates of the unmanned vehicle;
coordinate information of a vehicle in a map is obtained by reading vehicle-mounted sensors such as a camera, a laser radar, a GPS (global positioning system), an Inertial Measurement Unit (IMU) and the like, but obstacles collected by the sensors in the motion of the intelligent vehicle are not regular, the obstacles are simplified into a mass point, stress analysis is carried out on the mass point, a path point obtained by the mass point generates a condition of large corner at the concave-convex part of an irregular obstacle, and the requirement of the motion of the intelligent vehicle cannot be met, so that the invention provides a calibration method of the irregular obstacle, as shown in figure 1, the irregular obstacle is calibrated into a rectangular obstacle, and the maximum value and the minimum value of the horizontal coordinate and the vertical coordinate of the obstacle are respectively xmax,xmin,ymax,yminThen the coordinates of the four vertices of the rectangle are A (x)min,ymin),B(xmax,ymin),C(xmax,ymax),D(xmin,ymax). The value of the self-protection radius R of only one obstacle is set for the elongated obstacle, and the surrounding area without the obstacle is also divided into the self-protection area of the obstacle, so that the optimal path cannot be obtained during path planning of the intelligent vehicle, and the obstacle is divided into a plurality of minimum units more reasonably. L in the figuregTo scale the length of the rectangle, WdIs the width of the rectangle after calibration. The rectangle is divided into a plurality of squares, and the number N of the squares0
Figure BDA0003284930710000091
Where ceil is an upward rounding function (ensuring that fewer than one square is treated as one obstacle), and the side length of the square is Lo=WdIthoThe center coordinates of each square are:
Figure BDA0003284930710000092
radius of self-protection of obstacle (slightly larger than
Figure BDA0003284930710000093
Ensuring that the self-protected zones completely intersect each other surrounding the barrier):
Figure BDA0003284930710000094
on an unstructured road, the shape of an obstacle existing in the road is uncertain, a safety distance can be set between an intelligent vehicle and the minimum unit of the obstacle through calibrating the obstacle, and an optimal path can be found through an algorithm aiming at the rugged obstacle.
Step two: calculating the angle between the current intelligent vehicle and each obstacle, and calculating repulsion, attraction and resultant force;
after reading the obstacle information of the sensor and establishing the obstacle self-protection area, as shown in fig. 2, the angle between the obstacle and the current position of the unmanned vehicle, the repulsive force of each obstacle to the vehicle, and the attractive force of the target point to the obstacle are calculated, and finally the resultant force is obtained.
Step three: calculating whether the next position enters a position of a barrier self-protection area;
an algorithm principle for judging whether the trolley enters the barrier self-protection area in the next step is shown in fig. 3, each barrier is used as a circle center, the radius is R to set the barrier self-protection area, different values can be set according to different barrier types through the radius, and the intelligent trolley is guaranteed not to collide with the barriers. When the intelligent vehicle moves to the position A, the angle value alpha and the step length of the resultant force of the current path point are determinedAnd L, next, the intelligent vehicle arrives at the position B, the algorithm judges that the position B is in the self-protection area of the obstacle, the resultant force is rotated by theta, the position D can be reached under the action of the new resultant force angle alpha' and the step length, and the intelligent vehicle is adjusted to be away from the obstacle to prevent collision. The new resultant angle determination is shown in fig. 4: the coordinate position of the center of the known obstacle i is
Figure BDA0003284930710000101
The coordinates of the target point are (x)G.yG) The position coordinate of the intelligent vehicle is (x)C,yC) And the position of the next path point is as follows according to the resultant force angle alpha and the step length l:
Figure BDA0003284930710000102
when the algorithm judges that the next position enters the barrier self-protection area, calculating the difference value between the position of the intelligent vehicle and the horizontal coordinate of the barrier
Figure BDA0003284930710000103
Determining a resultant rotation angle theta according to the positive and negative of the delta x, when the delta x is larger than or equal to 0, indicating that the obstacle is positioned at the right side of the next position, and the next position should rotate towards the left, therefore, adding the theta (the anticlockwise direction is positive) on the basis of the resultant angle alpha, wherein the included angle alpha 'between the resultant force and the horizontal axis is alpha + theta, and when the delta x is smaller than 0, indicating that the obstacle is positioned at the left side of the next position, the included angle alpha' is alpha-theta, and when the next path point is:
Figure BDA0003284930710000104
the direction of the rotation angle can be determined according to the position relation of the intelligent vehicle and the obstacle, the method can avoid the collinear condition of the intelligent vehicle, the obstacle and the target point, after the obstacle self-protection is added, the direction of the resultant force is changed, namely the direction of the course angle of the intelligent vehicle is changed, in addition, the size of the obstacle self-protection area can be set to different values according to the safety distance between the intelligent vehicle and the obstacles of different types, and the driving safety of the intelligent vehicle is ensured.
Step four: optimizing by calling a particle swarm algorithm, randomly initializing particles, and calculating the fitness value and the optimal value of the initial particles;
the particle swarm algorithm first initializes particles, each having both position and velocity attributes. In this embodiment, the position represents a new resultant force angle α ', the speed represents the variation of α', and each particle calculates a corresponding fitness value according to the update of the speed and the position, and determines the quality of the particle according to the fitness value. In the searching process, the optimal value is divided into individual optimal value and global optimal value, and the individual optimal value is recorded as an individual extreme value alpha'pbestThe particle groups share the individual extremum information, and the value with the optimal fitness value in the individual extremums in the particle swarm is selected as a global optimal solution and recorded as a global extremum alpha'qbest. In an iterative process the particles are according to α'pbestAnd alpha'qbestAnd adjusting the speed and the position attribute to enable the particles to gradually approach the optimal value, thereby finding the optimal solution. Suppose there is NlAnd each particle, in each iteration process, the speed and position expression of the particle is as follows:
Vj(t+1)=wVj(t)+c1r1(α′pbestj(t)-α′j(t))+c2r2(α′gbestj(t)-α′j(t))
α′j(t+1)=α′j(t)+Vj(t+1),j=1,2,…Nl
in the formula, Vj(t +1) and α'j(t +1) are the speed and resultant force angle values of the particle j in the t +1 th iteration respectively, the range of the new resultant force angle is to add or subtract any value on the basis of the original resultant force angle, the speed value represents the movement speed of the example, the too fast speed can cause the particle to directly cross the optimal value, and the too small speed value can cause the optimization time of the algorithm to be increased; alpha's'pbestj(t) is the individual optimum value, α ', for particle j at the t-th iteration'gbestj(t) is the t-th iteration global optimum; w is an inertia weight value which is generally between 0.1 and 0.4 and reflects the influence degree of the individual extreme value of the particle on the current value; c. C1And c2Acceleration factor, table, for individual and group respectivelyThe empirical value generated in the optimization process of the particles and the accumulated empirical values of other particles directly influence the next-step operation track r of each particle1And r2Is a random number between 0 and 1.
Step five: adding vehicle steering characteristic constraint optimization, updating the speed and position of each particle after iteration, and calculating a function adaptive value of each particle;
in the existing path planning algorithm, the intelligent vehicle is generally regarded as a movable mass point, and in actual driving, the planned path should meet the motion characteristics of the intelligent vehicle in order to avoid unsafe actions such as sideslip and the like under the motion conditions such as turning, braking and the like of the intelligent vehicle. Depending on the characteristics of the vehicle steering, the maximum steering angle during steering is limited, as shown in fig. 5. In the figure, L is the front and rear wheel base (x)c,ycAnd alpha) represents the pose of the intelligent vehicle, (x)c,yc) The coordinate of the intelligent vehicle in the two-dimensional space is shown, alpha is the course angle of the intelligent vehicle at the current moment, and is also the resultant force angle in the artificial potential field method. Minimum turning radius R of intelligent vehicle during turningminThe maximum internal angle of the front wheel is alpha2Maximum external rotation angle alpha of front wheel1In the process of turning the vehicle, the inner and outer turning angles are related to the type, the self speed and the acceleration of the vehicle, and v is setxIs the longitudinal speed during movement, ayThe expression of the minimum turning radius and the expression of the maximum turning angle, namely the maximum internal corner, are as follows:
Figure BDA0003284930710000111
Figure BDA0003284930710000121
the inner wheel rotating angle of the intelligent vehicle is larger than the outer wheel rotating angle in the steering process, the rotating angle does not exceed the maximum value of the inner wheel rotating angle and the outer wheel rotating angle in the steering process, namely the relation between the newly searched resultant force angle value alpha' and the inner rotating angle of the front wheel is as follows:
α-α2≤α′≤α+α2
the intelligent vehicle is limited by the maximum rotation angle in the turning process, and the optimization angle value of the obstacle self-protection artificial potential field method based on particle swarm optimization is limited within the maximum rotation angle range of the intelligent vehicle, so that the planned path conforms to the kinematics model of the intelligent vehicle, and a foundation is laid for next-step track tracking.
The fitness function calculation principle is shown in FIG. 6, where b (i) represents the next moment position (x)n,yn) To the ith obstacle center
Figure BDA0003284930710000122
D (i) represents the distance between the next position and the target point, and the mathematical expressions are respectively:
Figure BDA0003284930710000123
Figure BDA0003284930710000124
the next position in the path planning process should be far from the center of the obstacle, i.e. the larger (b) (i) the better, and the closer to the target point as possible, i.e. the smaller (d) (i) the better. Combining the two distances to establish a fitness function f (i), wherein the larger the fitness value is, the safer the fitness function is, and the expression is as follows:
Figure BDA0003284930710000125
however, in a coordinate system, an intelligent vehicle is close to an obstacle and far away from a target point, a fitness function is represented as b (i) which is small, d (i) which is large, so that the difference between b (i) and c (i) is hundreds of times, the calculation result of the fitness value is biased to a certain value, the fitness value of each particle is not representative, the two are normalized into a dimensionless value, the distance between the two is mapped to a range between [0 and 1], and a mapping expression and a fitness function expression are respectively as follows:
Figure BDA0003284930710000126
Figure BDA0003284930710000131
f(i)=b(i)′+c(i)′。
step six: updating the historical optimal value of each particle after iteration, and calculating the global optimal value of the population;
giving the maximum iteration times, the particle speed range and the position optimizing range of the particle swarm algorithm, and giving the number (N) of the particles of the populationl) Randomly generating NlAngularity value alpha'jForming an initial population, j ═ 1,2, … Nl. And calculating the fitness value f (i) of each individual in the population to the ith obstacle according to the fitness function given in the fifth step, and adjusting the speed and the position according to the individual extreme value and the global extreme value to enable the particles to gradually approach the optimal value, thereby finding the optimal solution. Recording the individual extremum α 'of each particle'pbestjAnd global extremum α'gbestj
Step seven: stopping iteration and outputting an optimal course angle alpha' when the maximum iteration times are reached or the global optimal value is unchanged;
and comparing the global extreme value with the historical optimal value, updating the speed and the position of the particles, stopping iteration when the maximum iteration times is reached or the global optimal value is unchanged, and outputting the optimal course angle alpha'.
Step eight: returning to the step three to judge whether the position of the next step enters the barrier self-protection area or not after the optimal course angle is obtained;
substituting the output optimal course angle alpha' and step length into a three-path formula, judging whether the next position is in the barrier self-protection area, and returning to the step three for repeated operation if the next position falls into the barrier self-protection area; and if the obstacle is positioned outside the self-protection area of the obstacle, performing the nine-step operation.
Step nine: judging whether the local minimum value point is trapped or not;
in the moving process of the intelligent vehicle, due to the influence of surrounding obstacles, the attractive force and the repulsive force applied when the intelligent vehicle moves to a certain position are the same in size and opposite in direction, the resultant force applied to the intelligent vehicle at the path point is zero, the algorithm judges that the position of the intelligent vehicle is the lowest position of the potential field in the whole environment, if no external force is applied, the intelligent vehicle does not move to the terminal point or wanders around the path point, and the path point is called as a local minimum point.
For the problem of the local minimum, the principle of the invention is as shown in fig. 7, the algorithm firstly judges whether the intelligent vehicle falls into the local minimum, and the path length L in a fixed time interval is set0Comparing the length L of the path traveled by the intelligent vehicle from the position A to the position B, if L is0>And L, the intelligent vehicle is trapped into the partial minimum value in the movement process, the method of the invention sets a virtual obstacle at the intersection of the obstacle and the perpendicular bisector of the connection line of the intelligent vehicle, and the repulsion force borne by the intelligent vehicle is changed after the virtual obstacle is added, so that the original balance is broken, the partial minimum value point is jumped out, and the intelligent vehicle continues to advance under the guidance of a target point.
Step ten: judging whether the unmanned vehicle can reach a target point, and connecting an optimized path on the MATLAB when the unmanned vehicle reaches the target point to visualize the motion track of the unmanned vehicle;
the reason for the problem of unreachable target is that obstacles exist around the target point, the distance between the intelligent vehicle and the target point is reduced when the intelligent vehicle approaches the target point, the attraction potential field tends to 0 according to the attraction function of the traditional artificial potential field, but the obstacles exist around the target point, namely the repulsion potential field exists, and the potential field of the target point position is not the lowest in the whole environment, so that the intelligent vehicle vibrates near the target point. If the repulsive force potential field is gradually reduced while the intelligent vehicle gradually approaches the target point, the target point becomes the lowest point of the potential field in the whole environment, and the condition that the target point is unreachable can be avoided. Aiming at the problem that the target cannot be reached, the invention adds a distance factor on the basis of a traditional artificial potential field method model, and the repulsive potential field function after introducing the distance factor is shown as a formula:
Figure BDA0003284930710000141
where ρ (X, X)goal)nFor the introduced distance factor, ρ (X, X)goal) The Euclidean distance between the intelligent vehicle and the target point position is shown, N shows the number of obstacles,
Figure BDA0003284930710000142
is the distance between the position of the intelligent vehicle and the ith obstacle, rhooThe influence range of the repulsion force of the obstacle means that the repulsion force potential field is generated only when the intelligent vehicle enters the influence range of the repulsion force. The expression of obtaining the repulsive force by solving the negative gradient of the potential field is as follows:
Figure BDA0003284930710000143
in order to verify the effectiveness of the method, 14 calibrated obstacles are randomly selected from a map shown in fig. 8, and combined with the algorithm path planning of the invention, fig. 8(a) is a path comparison diagram before and after the optimization angle limitation is adopted under the same obstacle environment, and according to the maximum steering angle range of 35-45 degrees of the front wheels corresponding to the passenger car, the maximum steering angle value is set to be pi/4, and the optimization range of the optimization algorithm is not set to be the whole space, namely [0,2 pi ]. For the convenience of observation, a part of the path is enlarged, and as shown in fig. 8(b), the x-axis and y-axis (600,850) interval paths are selected for comparison, and as can be seen from the results in the figure, the path with the optimal angle range [ α -pi/4, α + pi/4 ] is smoother, the turning radian is smooth, and the oscillation is reduced. As shown in fig. 8(c), the calculated angle difference between two adjacent waypoints in 477 waypoints without setting the optimization angle range is the corner of the intelligent vehicle at each waypoint (taking the counterclockwise direction as the positive direction), the corner of the waypoint without setting the optimization range is more, the corner value of the front waypoint and the rear waypoint is larger, and fig. 8(d) shows that the change of the corner size of the optimization angle value is obviously smaller than that before setting, and the route is smoother.
The optimization ranges of [ alpha-pi/4, alpha + pi/4 ] and [0,2 pi ] are respectively obtained after the random operation for 10 times, the path length, the maximum and the minimum of the rotation angle are obtained, and the comparison result of the average values is shown in the following table. The following table shows that after the optimization range is set, the path length is reduced by 7.8%, the maximum rotation angle (taking the counterclockwise direction as the positive direction) is limited to 3.6634 degrees from 51.1182 degrees, the maximum rotation angle in the negative direction is also limited to 3.6169 degrees from 49.8706 degrees, and the path obtained after the optimization range is limited is smoother and accords with the steering characteristic of the intelligent vehicle.
Comparison of simulation results before and after optimization
Figure BDA0003284930710000151
The present invention is not limited to the above-mentioned preferred embodiments, and any other various forms of the local path planning method based on the particle swarm optimization for the obstacle self-protection artificial potential field method can be obtained according to the teaching of the present invention.

Claims (10)

Translated fromChinese
1.一种基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,其特征在于,包括以下步骤:1. a kind of obstacle self-protection artificial potential field method local path planning method based on particle swarm algorithm, is characterized in that, comprises the following steps:步骤S1:初始化人工势场法参数,读取智能车当前坐标、障碍物坐标和目标点坐标,并对不规则障碍物进行标定:将不规则障碍物其标定为矩形障碍物,把矩形分为若干个正方形,并对每个正方形设置障碍物自我保护半径;Step S1: Initialize the parameters of the artificial potential field method, read the current coordinates of the smart car, the coordinates of the obstacle and the coordinates of the target point, and calibrate the irregular obstacles: calibrate the irregular obstacles as rectangular obstacles, and divide the rectangle into Several squares, and set the obstacle self-protection radius for each square;步骤S2:计算智能车当前与每个障碍物的角度,计算斥力、引力、合力:包括计算出障碍物与智能车当前位置的角度以及每个障碍物对车辆的斥力,目标点对障碍物的引力,最终求出合力;Step S2: Calculate the current angle of the smart car and each obstacle, and calculate the repulsive force, gravitational force, and resultant force: including calculating the angle between the obstacle and the current position of the smart car, and the repulsion force of each obstacle to the vehicle, and the target point to the obstacle. Gravity, and finally find the resultant force;步骤S3:判断下一步位置是否进入障碍物自我保护区位置:以每个正方形障碍物为圆心,半径为R设置障碍物自我保护区,以保证智能车与障碍物不发生碰撞;如进入障碍物自我保护区,则执行步骤S4-步骤S8;Step S3: Determine whether the next position enters the obstacle self-protection area. Position: take each square obstacle as the center of the circle and set the obstacle self-protection area as the radius R to ensure that the smart car does not collide with the obstacle; if entering the obstacle Self-protection zone, then execute step S4-step S8;步骤S4:调用粒子群算法寻优,随机初始化粒子,计算初始粒子的适应度值和最优值;Step S4: call the particle swarm algorithm to optimize, initialize the particles randomly, and calculate the fitness value and optimal value of the initial particle;步骤S5:加入车辆转向特性约束寻优,更新迭代后每个粒子的速度和位置,计算每个粒子的函数适应值;Step S5: adding vehicle steering characteristic constraints for optimization, updating the velocity and position of each particle after iteration, and calculating the function fitness value of each particle;步骤S6:更新迭代后每个粒子历史最优值,计算群体的全局最优值;Step S6: update the historical optimal value of each particle after the iteration, and calculate the global optimal value of the group;步骤S7:当达到最大迭代次数或全局最优值不变时停止迭代并输出最优的航向角α′;Step S7: when the maximum number of iterations is reached or the global optimal value remains unchanged, the iteration is stopped and the optimal heading angle α′ is output;步骤S8:得到最优航向角后回到步骤S3判断下一步位置是否进入障碍物自我保护区。Step S8: After obtaining the optimal heading angle, go back to Step S3 to determine whether the next position enters the obstacle self-protection zone.2.根据权利要求1所述的基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,其特征在于:2. the obstacle self-protection artificial potential field method local path planning method based on particle swarm algorithm according to claim 1, is characterized in that:智能车在运动过程中,判断是否陷入局部最小值点:运动至某一位置时所受的引力和斥力大小相同,方向相反,在此路径点智能车所受的合力为零,智能车该处为整个环境中势场最低位置;During the movement of the smart car, it is judged whether it falls into a local minimum point: when it moves to a certain position, the gravitational and repulsive forces are the same in magnitude and opposite in direction. is the lowest position of the potential field in the whole environment;如果陷入局部最小值点,则通过在障碍物和智能车连线的中垂线交点处设置虚拟障碍物,使智能车跳出局部最小值点。If it falls into the local minimum point, set a virtual obstacle at the intersection of the mid-perpendicular line connecting the obstacle and the smart car to make the smart car jump out of the local minimum point.3.根据权利要求1所述的基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,其特征在于:通过加入距离因子,以避免目标点不可达的情形。3. The obstacle self-protection artificial potential field method local path planning method based on the particle swarm algorithm according to claim 1, characterized in that: by adding a distance factor, the situation that the target point is unreachable is avoided.4.根据权利要求1所述的基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,其特征在于:4. the obstacle self-protection artificial potential field method local path planning method based on particle swarm algorithm according to claim 1, is characterized in that:在步骤S1中,将不规则障碍物其标定为矩形障碍物,设障碍物的横坐标、纵坐标最大、最小值分别为xmax,xmin,ymax,ymin,则矩形四个顶点坐标为A(xmin,ymin),B(xmax,ymin),C(xmax,ymax),D(xmin,ymax),Lg为标定后矩形的长度,Wd为标定后矩形的宽度;把矩形分为若干个正方形,正方形的个数N0In step S1, the irregular obstacle is calibrated as a rectangular obstacle, and the maximum and minimum values of the abscissa and ordinate of the obstacle are set as xmax , xmin , ymax , ymin respectively, then the coordinates of the four vertices of the rectangle are is A(xmin , ymin ), B(xmax , ymin ), C(xmax , ymax ), D(xmin , ymax ), Lg is the length of the calibrated rectangle, Wd is the calibration The width of the rear rectangle; the rectangle is divided into several squares, and the number of squares is N0 :
Figure FDA0003284930700000021
Figure FDA0003284930700000021
其中ceil为向上取整函数;where ceil is the round-up function;正方形的边长为Lo=Wd,第io个正方形的中心坐标为:The side length of the square is Lo =Wd , and the center coordinates of the ith square are:
Figure FDA0003284930700000022
Figure FDA0003284930700000022
障碍物自我保护半径为:The obstacle self-protection radius is:
Figure FDA0003284930700000023
Figure FDA0003284930700000023
5.根据权利要求4所述的基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,其特征在于:步骤S3的具体执行过程为:5. the obstacle self-protection artificial potential field method local path planning method based on particle swarm algorithm according to claim 4, is characterized in that: the concrete execution process of step S3 is:设当智能车运动到位置A时,根据当前路径点合力角度值α与步长L,下一步将到达位置B,如果判断位置B在障碍物自我保护区内,则将合力旋转θ,在新合力角α′与步长的作用下可到达位置D,将智能车调整至远离障碍物方向,防止相撞;新合力角度确定方式为:已知障碍物i中心坐标位置为
Figure FDA0003284930700000025
目标点坐标为(xG.yG),智能车位置坐标为(xC,yC),由合力角度α与步长l,下一路径点位置为:
Assume that when the smart car moves to position A, according to the current path point resultant force angle value α and step length L, the next step will reach position B. If it is judged that position B is within the obstacle self-protection area, the resultant force will be rotated by θ. Under the action of the resultant force angle α′ and the step length, the position D can be reached, and the smart car is adjusted to the direction away from the obstacle to prevent collision; the new resultant force angle is determined as follows: the center coordinate position of the known obstacle i is:
Figure FDA0003284930700000025
The coordinates of the target point are (xG .yG ), and the position coordinates of the smart car are (xC , yC ). From the resultant force angle α and the step length l, the position of the next path point is:
Figure FDA0003284930700000024
Figure FDA0003284930700000024
当判断下一位置进入障碍物自我保护区时,计算智能车位置与障碍物横坐标的差值
Figure FDA0003284930700000026
根据Δx正负决定合力旋转角θ,当Δx≥0时,表示障碍物位于下一位置右侧,下一位置应该往左旋转,因此在合力角α基础上加θ,此时合力与横轴夹角α′=α+θ,反之当Δx<0时表示障碍物位于下一位置左侧,则α′=α-θ,此时下一路径点为:
When judging that the next position enters the obstacle self-protection zone, calculate the difference between the position of the smart car and the abscissa of the obstacle
Figure FDA0003284930700000026
The resultant rotation angle θ is determined according to the positive and negative Δx. When Δx≥0, it means that the obstacle is located on the right side of the next position, and the next position should be rotated to the left. Therefore, add θ to the resultant angle α. At this time, the resultant force and the horizontal axis The included angle α′=α+θ, on the contrary, when Δx<0, it means that the obstacle is on the left side of the next position, then α′=α-θ, and the next path point is:
Figure FDA0003284930700000031
Figure FDA0003284930700000031
6.根据权利要求1所述的基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,其特征在于:在步骤S3中,障碍物自我保护区的大小能根据智能车和不同类型的障碍物安全距离设置不同的值。6. The obstacle self-protection artificial potential field method local path planning method based on particle swarm algorithm according to claim 1, it is characterized in that: in step S3, the size of obstacle self-protection zone can be based on the intelligent vehicle and different types The obstacle safety distance is set to different values.7.根据权利要求5所述的基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,其特征在于:7. The obstacle self-protection artificial potential field method local path planning method based on particle swarm algorithm according to claim 5, is characterized in that:步骤S4具体为:Step S4 is specifically:首先初始化粒子,每个粒子具有位置和速度两个属性;其中位置代表的是新合力角α′,速度表示α′变化大小,每个粒子根据速度和位置的更新计算对应适应度值,根据适应度值判断粒子优劣;在搜索过程中最优值分为个体最优与全局最优,个体最优值记为个体极值α′pbest,粒子群体之间通过分享个体极值信息,选出粒子群中个体极值中适应度值最优的值作为全局最优解,记为全局极值α′qbest;在迭代过程中粒子根据α′pbest和α′qbest调整速度和位置属性,使粒子逐渐靠近最优值,从而找到最优解;假设存在Nl个粒子,每次迭代过程中,粒子的速度和位置表达式为:First initialize the particles, each particle has two attributes of position and speed; where the position represents the new resultant angle α', and the speed represents the change of α', each particle calculates the corresponding fitness value according to the update of the speed and position, according to the The degree value judges the quality of the particle; in the search process, the optimal value is divided into individual optimal and global optimal, and the individual optimal value is recorded as the individual extreme value α′pbest . The optimal fitness value of the individual extreme values in the particle swarm is regarded as the global optimal solution, denoted as the global extreme value α′qbest ; in the iterative process, the particles adjust the speed and position attributes according to α′pbest and α′qbest , so that the particle Gradually approach the optimal value to find the optimal solution; assuming there are Nl particles, in each iteration process, the particle velocity and position expressions are:Vj(t+1)=wVj(t)+c1r1(α′pbestj(t)-α′j(t))+c2r2(α′gbestj(t)-α′j(t))Vj (t+1)=wVj (t)+c1 r1 (α′pbestj (t)-α′j (t))+c2 r2 (α′gbestj (t)-α′j ( t))α′j(t+1)=α′j(t)+Vj(t+1),j=1,2,…Nlα′j (t+1)=α′j (t)+Vj (t+1),j=1,2,…Nl式中,Vj(t+1)和α′j(t+1)分别是粒子j在第t+1次迭代时的速度和合力角度值,新合力角度的范围为在原合力角的基础上加减任意值,速度值表示例子的运动快慢;α′pbestj(t)是粒子j在第t次迭代个体最优值,α′gbestj(t)是第t次迭代全局最优值;w为惯性权值,反应粒子的个体极值对现在值的影响程度;c1和c2分别是个体和群体的加速度因子,表示粒子自身的寻优过程中产生的经验值与其他粒子积累经验值,直接影响各粒子的下一步运行轨迹,r1和r2是0到1之间的随机数;In the formula, Vj (t+1) and α′j (t+1) are the velocity and resultant angle of particle j at the t+1th iteration, respectively, and the range of the new resultant angle is based on the original resultant angle. Add or subtract any value, and the speed value represents the speed of the movement of the example; α′pbestj (t) is the individual optimal value of particle j in the t-th iteration, and α′gbestj (t) is the global optimal value of the t-th iteration; w is The inertia weight reflects the influence of the individual extreme value of the particle on the present value; c1 and c2 are the acceleration factors of the individual and the group, respectively, indicating the experience value generated in the optimization process of the particle itself and the accumulated experience value of other particles, Directly affects the next trajectory of each particle, r1 and r2 are random numbers between 0 and 1;步骤S5具体为:Step S5 is specifically:设L为前后轮轴距,(xc,yc,α)表示智能车位姿,(xc,yc)为智能车在二维空间中的坐标,α为当前时刻智能车的航向角,同时也是人工势场法中的合力角;智能车在转弯时存在最小转弯半径Rmin,前轮最大内转角为α2,前轮最大外转角α1,车辆在转弯的过程中,内外转角与车辆的类型、自身速度和加速度有关,设vx为运动过程中的纵向速度,ay为横向加速度,其中最小转弯半径表达式和最大转角即最大内转角表达式为:Let L be the wheelbase of the front and rear wheels, (xc , yc , α) represent the posture of the smart car, (xc , yc ) are the coordinates of the smart car in two-dimensional space, α is the heading angle of the smart car at the current moment, and at the same time It is also the resultant angle in the artificial potential field method; the smart car has a minimum turning radius Rmin when turning, the maximum inner turning angle of the front wheel is α2 , and the maximum outer turning angle of the front wheel is α1 . The type of , its own speed and acceleration are related, let vx be the longitudinal speed during the movement, ay is the lateral acceleration, and the expression of the minimum turning radius and the maximum turning angle, that is, the maximum inner turning angle, are:
Figure FDA0003284930700000041
Figure FDA0003284930700000041
Figure FDA0003284930700000042
Figure FDA0003284930700000042
智能车在转向过程中内轮转角比外轮转角大,在转弯的过程中转角不超过内外轮转角的最大值,即重新寻找的合力角度值α′与前轮内转角之间的关系为式为:During the turning process of the smart car, the rotation angle of the inner wheel is larger than that of the outer wheel, and the rotation angle does not exceed the maximum value of the rotation angle of the inner and outer wheels during the turning process. :α-α2≤α′≤α+α2α-α2 ≤α′≤α+α2智能车在转弯过程有最大转角限制,基于粒子群寻优的障碍物自我保护人工势场法寻优角度值应被限制在智能车最大转角范围内,使规划获得的路径符合智能车运动学模型;The smart car has a maximum turning angle limit during the turning process. The self-protection artificial potential field method for obstacle optimization based on particle swarm optimization should be limited to the maximum turning angle of the smart car, so that the planned path conforms to the smart car kinematics model. ;适应度函数计算中,b(i)表示下一刻位置(xn,yn)与第i个障碍物中心
Figure FDA0003284930700000043
的欧式距离,d(i)表示下一位置与目标点的距离,数学表达式分别为:
In the fitness function calculation, b(i) represents the next moment position (xn , yn ) and the center of the ith obstacle
Figure FDA0003284930700000043
The Euclidean distance of , d(i) represents the distance between the next position and the target point, and the mathematical expressions are:
Figure FDA0003284930700000044
Figure FDA0003284930700000044
Figure FDA0003284930700000045
Figure FDA0003284930700000045
在路径规划过程中下一位置应离障碍物中心远,即b(i)越大越好,且距离目标点尽量近,即d(i)越小越好;将两个距离合并建立适应度函数f(i),适应度值越大越安全,表达式为:In the process of path planning, the next position should be far away from the center of the obstacle, that is, the larger b(i), the better, and the distance to the target point should be as close as possible, that is, the smaller d(i), the better; the fitness function is established by combining the two distances. f(i), the larger the fitness value, the safer, the expression is:
Figure FDA0003284930700000051
Figure FDA0003284930700000051
但坐标系中会出现智能车离障碍物很近,离目标点距离很远,适应度函数表现为b(i)很小,d(i)很大,导致b(i)与c(i)相差几百倍,适应度值计算结果偏向某一数值,每个粒子的适应度值不具代表性,因此将两者进行归一化处理为无量纲的值,把两者的距离都映射到[0,1]之间,映射表达式及适应度函数表达式分别为:However, in the coordinate system, the smart car will be very close to the obstacle and far away from the target point. The fitness function shows that b(i) is very small and d(i) is very large, resulting in b(i) and c(i) The difference is hundreds of times, the calculation result of the fitness value is biased to a certain value, and the fitness value of each particle is not representative, so the two are normalized to a dimensionless value, and the distance of both is mapped to [ 0, 1], the mapping expression and the fitness function expression are:
Figure FDA0003284930700000052
Figure FDA0003284930700000052
Figure FDA0003284930700000053
Figure FDA0003284930700000053
f(i)=b(i)′+c(i)′;f(i)=b(i)′+c(i)′;步骤S6具体为:Step S6 is specifically:给定粒子群算法最大迭代次数,粒子速度范围,位置寻优范围,并给定种群粒子数量(Nl),随机产生Nl个角度值α′j构成初始种群,j=1,2,…Nl;根据步骤S5给出的适应度函数计算种群中每个个体对第i个障碍物适应度值f(i),根据个体极值和全局极值调整速度和位置,使粒子逐渐接近最优值,从而找到最优解;记录各个粒子的个体极值α′pbestj及全局极值α′gbestjGiven the maximum number of iterations of the particle swarm algorithm, the range of particle velocity, the range of position optimization, and the number of particles in the population (Nl ), Nl angle values α′j are randomly generated to form the initial population, j=1,2,… Nl ; calculate the fitness value f(i) of each individual in the population to the ith obstacle according to the fitness function given in step S5, adjust the speed and position according to the individual extreme value and the global extreme value, so that the particle gradually approaches the most figure of merit, so as to find the optimal solution; record the individual extremum α′pbestj and the global extremum α′gbestj of each particle;步骤S7具体为:Step S7 is specifically:将全局极值与历史最优值对比,更新粒子的速度与位置,当达到最大迭代次数或全局最优值不变时停止迭代并输出最优的航向角α′;Compare the global extremum with the historical optimal value, update the speed and position of the particle, stop the iteration and output the optimal heading angle α' when the maximum number of iterations is reached or the global optimal value remains unchanged;在步骤S8中,将输出最优的航向角α′和步长带入步骤S3路径公式,并返回步骤S3,判断下一步位置是否进入障碍物自我保护区位置。In step S8, the output optimal heading angle α' and step length are brought into the path formula of step S3, and return to step S3 to determine whether the next step position enters the position of the obstacle self-protection zone.
8.根据权利要求2所述的基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,其特征在于:通过设置固定的时间间隔内的路径长度L0与智能车从位置A运动到位置B走过路径长度L进行比较,如果L0>L,则判断智能车在运动过程中陷入局部最小值。8. The obstacle self-protection artificial potential field method local path planning method based on particle swarm algorithm according to claim2 , it is characterized in that: by setting the path length L in the fixed time interval and the intelligent vehicle moving from position A Go to position B and walk through the path length L for comparison. If L0 >L, it is judged that the smart car falls into the local minimum value during the movement.9.根据权利要求3所述的基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,其特征在于:9. The obstacle self-protection artificial potential field method local path planning method based on particle swarm algorithm according to claim 3, is characterized in that:引入距离因子后斥力势场函数如下式所示:After introducing the distance factor, the repulsive potential field function is as follows:
Figure FDA0003284930700000061
Figure FDA0003284930700000061
其中ρ(X,Xgoal)n为引入的距离因子,ρ(X,Xgoal)表示智能车与目标点位置的欧式距离,krep为斥力场增益系数,N表示障碍物个数,
Figure FDA0003284930700000062
为智能车位置与第i个障碍物的距离,ρo为障碍物斥力的影响范围,表示只有智能车进入斥力影响范围内才产生斥力势场;对势场求负梯度得到斥力的表达式为:
where ρ(X,Xgoal )n is the introduced distance factor, ρ(X, Xgoal ) represents the Euclidean distance between the smart car and the target point, krep is the repulsion field gain coefficient, N represents the number of obstacles,
Figure FDA0003284930700000062
is the distance between the position of the smart car and the i-th obstacle, and ρo is the influence range of the obstacle repulsion, which means that the repulsion potential field is generated only when the smart car enters the influence range of the repulsion force; the expression of the repulsion force obtained by calculating the negative gradient of the potential field is: :
Figure FDA0003284930700000063
Figure FDA0003284930700000063
10.根据权利要求1所述的基于粒子群算法的障碍物自我保护人工势场法局部路径规划方法,其特征在于:采用MATLAB上连线优化后的路径,将无人车运动轨迹可视化。10 . The particle swarm algorithm-based method for local path planning using artificial potential field method for self-protection of obstacles according to claim 1 , wherein the path optimized by the connection on MATLAB is used to visualize the trajectory of the unmanned vehicle.
CN202111146883.3A2021-09-282021-09-28Obstacle self-protection artificial potential field method local path planning method based on particle swarm optimizationExpired - Fee RelatedCN113805597B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111146883.3ACN113805597B (en)2021-09-282021-09-28Obstacle self-protection artificial potential field method local path planning method based on particle swarm optimization

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111146883.3ACN113805597B (en)2021-09-282021-09-28Obstacle self-protection artificial potential field method local path planning method based on particle swarm optimization

Publications (2)

Publication NumberPublication Date
CN113805597Atrue CN113805597A (en)2021-12-17
CN113805597B CN113805597B (en)2023-04-11

Family

ID=78897037

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111146883.3AExpired - Fee RelatedCN113805597B (en)2021-09-282021-09-28Obstacle self-protection artificial potential field method local path planning method based on particle swarm optimization

Country Status (1)

CountryLink
CN (1)CN113805597B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114913708A (en)*2022-07-182022-08-16深圳市华睿智兴信息科技有限公司Parking path guiding system and method for intelligent parking lot
CN115185275A (en)*2022-07-082022-10-14上海交通大学 Method, system and equipment for flexible pipeline path planning in cabin space
WO2022228358A1 (en)*2021-04-252022-11-03广州汽车集团股份有限公司Autonomous driving obstacle avoidance method and system, and storage medium
CN115576333A (en)*2022-12-082023-01-06青岛科技大学 Optimal Obstacle Avoidance Strategy
CN115857444A (en)*2022-11-242023-03-28中国科学院合肥物质科学研究院 A material distribution path optimization method for a digital twin-driven mixed-flow assembly workshop
CN116086454A (en)*2022-12-142023-05-09潍柴动力股份有限公司Unmanned tractor obstacle avoidance path sectional planning method
CN118225105A (en)*2024-05-242024-06-21哈尔滨工业大学(威海) AGV navigation method for textile workshop logistics based on multi-source information perception
CN118443031A (en)*2024-06-132024-08-06汕头大学 A path planning method, system, device and storage medium for unmanned ship
CN118583169A (en)*2024-05-202024-09-03苏州大学 A mobile robot navigation method based on particle swarm optimization to control obstacle function
CN119668290A (en)*2024-12-042025-03-21国网河北省电力有限公司电力科学研究院 Obstacle avoidance method and device for inspection drone
CN120523203A (en)*2025-07-242025-08-22齐鲁空天信息研究院Unmanned agricultural machinery obstacle-detouring operation path optimization method and device in farmland scene
CN120523203B (en)*2025-07-242025-10-17齐鲁空天信息研究院Unmanned agricultural machinery obstacle-detouring operation path optimization method and device in farmland scene

Citations (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2001154706A (en)*1999-11-292001-06-08Japan Atom Energy Res Inst Route generation method for moving objects
US20110166737A1 (en)*2008-09-032011-07-07Murata Machinery, Ltd.Route planning method, route planning device and autonomous mobile device
CN106843235A (en)*2017-03-312017-06-13深圳市靖洲科技有限公司It is a kind of towards the Artificial Potential Field path planning without person bicycle
CN109685286A (en)*2019-01-142019-04-26哈尔滨工程大学USV is based on the collision-avoidance planning method for improving ant group optimization under unknown static-obstacle environment
CN110208819A (en)*2019-05-142019-09-06江苏大学A kind of processing method of multiple barrier three-dimensional laser radar data
FR3084630A1 (en)*2018-07-312020-02-07Psa Automobiles Sa METHOD FOR PLANNING THE OPTIMAL TRAJECTORY OF AN AUTONOMOUS VEHICLE AND AUTONOMOUS VEHICLE EQUIPPED WITH AN ON-BOARD COMPUTER FOR IMPLEMENTING SAID METHOD
US20200150666A1 (en)*2018-11-132020-05-14Zebra Technologies CorporationMethod, system and apparatus for obstacle handling in navigational path generation
CN111736611A (en)*2020-07-062020-10-02中国计量大学 A Path Planning Method for Mobile Robots Based on A* Algorithm and Artificial Potential Field Algorithm
CN112161627A (en)*2020-09-232021-01-01同济大学 An intelligent path planning method for firefighting robots
CN112179367A (en)*2020-09-252021-01-05广东海洋大学 An autonomous navigation method for agents based on deep reinforcement learning
CN112596525A (en)*2020-12-162021-04-02中国地质大学(武汉)Robot path planning method based on genetic algorithm and improved artificial potential field method
CN113189984A (en)*2021-04-162021-07-30哈尔滨理工大学Unmanned ship path planning method based on improved artificial potential field method
CN113342047A (en)*2021-06-232021-09-03大连大学Unmanned aerial vehicle path planning method for improving artificial potential field method based on obstacle position prediction in unknown environment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2001154706A (en)*1999-11-292001-06-08Japan Atom Energy Res Inst Route generation method for moving objects
US20110166737A1 (en)*2008-09-032011-07-07Murata Machinery, Ltd.Route planning method, route planning device and autonomous mobile device
CN106843235A (en)*2017-03-312017-06-13深圳市靖洲科技有限公司It is a kind of towards the Artificial Potential Field path planning without person bicycle
FR3084630A1 (en)*2018-07-312020-02-07Psa Automobiles Sa METHOD FOR PLANNING THE OPTIMAL TRAJECTORY OF AN AUTONOMOUS VEHICLE AND AUTONOMOUS VEHICLE EQUIPPED WITH AN ON-BOARD COMPUTER FOR IMPLEMENTING SAID METHOD
US20200150666A1 (en)*2018-11-132020-05-14Zebra Technologies CorporationMethod, system and apparatus for obstacle handling in navigational path generation
CN109685286A (en)*2019-01-142019-04-26哈尔滨工程大学USV is based on the collision-avoidance planning method for improving ant group optimization under unknown static-obstacle environment
CN110208819A (en)*2019-05-142019-09-06江苏大学A kind of processing method of multiple barrier three-dimensional laser radar data
CN111736611A (en)*2020-07-062020-10-02中国计量大学 A Path Planning Method for Mobile Robots Based on A* Algorithm and Artificial Potential Field Algorithm
CN112161627A (en)*2020-09-232021-01-01同济大学 An intelligent path planning method for firefighting robots
CN112179367A (en)*2020-09-252021-01-05广东海洋大学 An autonomous navigation method for agents based on deep reinforcement learning
CN112596525A (en)*2020-12-162021-04-02中国地质大学(武汉)Robot path planning method based on genetic algorithm and improved artificial potential field method
CN113189984A (en)*2021-04-162021-07-30哈尔滨理工大学Unmanned ship path planning method based on improved artificial potential field method
CN113342047A (en)*2021-06-232021-09-03大连大学Unmanned aerial vehicle path planning method for improving artificial potential field method based on obstacle position prediction in unknown environment

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
J. BATISTA等: "Trajectory Planning Using Artificial Potential Fields with Metaheuristics", 《IEEE LATIN AMERICA TRANSACTIONS》*
XIAO-JIE GU等: "Optimization of Trajectories Based on APF-PSO with Radar Threats", 《2011 IEEE INTERNATIONAL CONFERENCE ON SIGNAL PROCESSING, COMMUNICATIONS AND COMPUTING (ICSPCC)》*
YIFAN CAI等: "A Potential Field-based PSO Approach for Cooperative Target Searching of Multi-robots", 《PROCEEDING OF THE 11TH WORLD CONGRESS ON INTELLIGENT CONTROL AND AUTOMATION》*
张卫波等: "改进RRT算法在复杂环境下智能车路径规划中的应用", 《中国公路学报》*
金敬: "Dijkstra改进算法在机器人避障问题的应用", 《价值工程》*
陈彦杰: "局部环境增量采样的服务机器人路径规划", 《仪器仪表学报》*

Cited By (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2022228358A1 (en)*2021-04-252022-11-03广州汽车集团股份有限公司Autonomous driving obstacle avoidance method and system, and storage medium
CN115185275A (en)*2022-07-082022-10-14上海交通大学 Method, system and equipment for flexible pipeline path planning in cabin space
CN114913708A (en)*2022-07-182022-08-16深圳市华睿智兴信息科技有限公司Parking path guiding system and method for intelligent parking lot
CN114913708B (en)*2022-07-182022-10-28深圳市华睿智兴信息科技有限公司Parking path guiding system and method for intelligent parking lot
CN115857444A (en)*2022-11-242023-03-28中国科学院合肥物质科学研究院 A material distribution path optimization method for a digital twin-driven mixed-flow assembly workshop
CN115576333A (en)*2022-12-082023-01-06青岛科技大学 Optimal Obstacle Avoidance Strategy
CN116086454A (en)*2022-12-142023-05-09潍柴动力股份有限公司Unmanned tractor obstacle avoidance path sectional planning method
CN116086454B (en)*2022-12-142025-07-18潍柴动力股份有限公司 A segmented planning method for obstacle avoidance paths of unmanned tractors
CN118583169A (en)*2024-05-202024-09-03苏州大学 A mobile robot navigation method based on particle swarm optimization to control obstacle function
CN118225105A (en)*2024-05-242024-06-21哈尔滨工业大学(威海) AGV navigation method for textile workshop logistics based on multi-source information perception
CN118225105B (en)*2024-05-242024-08-09哈尔滨工业大学(威海)Textile workshop logistics AGV navigation method based on multi-source information perception
CN118443031A (en)*2024-06-132024-08-06汕头大学 A path planning method, system, device and storage medium for unmanned ship
CN119668290A (en)*2024-12-042025-03-21国网河北省电力有限公司电力科学研究院 Obstacle avoidance method and device for inspection drone
CN120523203A (en)*2025-07-242025-08-22齐鲁空天信息研究院Unmanned agricultural machinery obstacle-detouring operation path optimization method and device in farmland scene
CN120523203B (en)*2025-07-242025-10-17齐鲁空天信息研究院Unmanned agricultural machinery obstacle-detouring operation path optimization method and device in farmland scene

Also Published As

Publication numberPublication date
CN113805597B (en)2023-04-11

Similar Documents

PublicationPublication DateTitle
CN113805597A (en)Obstacle self-protection artificial potential field method local path planning method based on particle swarm optimization
CN113819914B (en) A method and device for constructing a map
CN106406338B (en)Autonomous navigation device and method of omnidirectional mobile robot based on laser range finder
US11498574B2 (en)Learning device, learning method, and storage medium
Zhao et al.Dynamic motion planning for autonomous vehicle in unknown environments
JP7130062B2 (en) Route determination method
CN108106623B (en)Unmanned vehicle path planning method based on flow field
CN113848914A (en)Collision coefficient artificial potential field method local path planning method in dynamic environment
CN112284376A (en)Mobile robot indoor positioning mapping method based on multi-sensor fusion
CN112577506B (en)Automatic driving local path planning method and system
JP2020160603A (en)Route determination device, robot, and route determination method
CN112539750A (en)Intelligent transportation vehicle path planning method
CN114815853A (en)Path planning method and system considering road surface obstacle characteristics
Huang et al.Path tracking based on improved pure pursuit model and pid
CN113608531A (en)Unmanned vehicle real-time global path planning method based on dynamic window of safety A-guiding point
CN115857504A (en)DWA-based robot local path planning method, equipment and storage medium in narrow environment
CN112665592A (en)Space-time path planning method based on multiple intelligent agents
CN114291092A (en)Vehicle lane change control method, vehicle lane change control device, electronic control unit and storage medium
CN114802250A (en)Data processing method, device, equipment, automatic driving vehicle and medium
Park et al.Optimal path planning for autonomous vehicles using artificial potential field algorithm
CN119247959A (en) A method for automatic driving path planning and tracking control
CN118310552A (en)Unmanned planning method and system for expected functional safety
Zhou et al.An improved dynamic window path planning algorithm using multi-algorithm fusion
CN120176674A (en) A path planning method for autonomous mobile robots based on improved A* algorithm
TWI809727B (en)Method for searching a path by using a three-dimensional reconstructed map

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20230411

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp