CN109343345B - Mechanical arm polynomial interpolation track planning method based on QPSO algorithm - Google Patents

Mechanical arm polynomial interpolation track planning method based on QPSO algorithm Download PDF

Info

Publication number
CN109343345B
CN109343345B CN201811135979.8A CN201811135979A CN109343345B CN 109343345 B CN109343345 B CN 109343345B CN 201811135979 A CN201811135979 A CN 201811135979A CN 109343345 B CN109343345 B CN 109343345B
Authority
CN
China
Prior art keywords
particle
optimal
mechanical arm
algorithm
global optimal
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.)
Active
Application number
CN201811135979.8A
Other languages
Chinese (zh)
Other versions
CN109343345A (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.)
Jiangnan University
Original Assignee
Jiangnan 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 Jiangnan University filed Critical Jiangnan University
Priority to CN201811135979.8A priority Critical patent/CN109343345B/en
Publication of CN109343345A publication Critical patent/CN109343345A/en
Application granted granted Critical
Publication of CN109343345B publication Critical patent/CN109343345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/04Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators
    • G05B13/042Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators in which a parameter or coefficient is automatically adjusted to optimise the performance

Abstract

The invention provides a QPSO algorithm-based mechanical arm polynomial interpolation track planning method, which is used for carrying out time optimal track planning on a 3-5-3 segmented interpolation track of a multi-degree-of-freedom mechanical arm by utilizing the QPSO algorithm and is characterized by comprising the following steps of: step S1, constructing a target function required by the polynomial interpolation track planning of the mechanical arm; and step S2, performing iterative evolution on the particle population according to the individual optimal position and the global optimal position of the particles according to the QPSO algorithm, thereby selecting the positions of the particles with the global optimal fitness and the corresponding fitness values. The invention can ensure that the tail end track of the six-degree-of-freedom mechanical arm meets the principle that the operation process is as smooth as possible and the tail end position, the angular velocity and the angular acceleration have no sudden change; the precision of the simulation result is superior to that of a double-layer PSO optimization algorithm, the convergence rate is higher than that of the traditional PSO optimization algorithm, and the time consumed in the calculation process is less than that of the double-layer PSO algorithm and the PSO algorithm.

Description

Mechanical arm polynomial interpolation track planning method based on QPSO algorithm
Technical Field
The invention relates to the technical field of robot control, in particular to a mechanical arm polynomial interpolation track planning method based on a QPSO algorithm.
Background
A certain configuration requires a set of joint angles of the robot manipulator and all possible sets of joint angles to be referred to as a configuration space, the constraints encompassing the physical constraints of the robot.
The common sectional interpolation methods have 3-3-3-3-3 polynomial interpolation methods and 4-3-4 polynomial interpolation methods mentioned in Wanyan and the like, and for the former, the three-polynomial interpolation method is used, and the track pulsation is easy to be discontinuous due to the low order; compared with the two methods, the 3-5-3 polynomial interpolation method proposed by the xueyinget al has the characteristics of high order, no position, no speed and no acceleration mutation of the track, and the front and rear two sections are three-term interpolation, aiming at the complexity of a mechanical arm model, the formula conversion calculation amount can be greatly reduced, however, the track planning based on the polynomial difference has the characteristics of high order, no convex hull and the like, the traditional method is difficult to optimize, the particle swarm algorithm can just solve the problem, Lixiaet al proposes a PSO time optimal track planning under the speed constraint aiming at a six-degree-of-freedom mechanical arm, but the target value convergence time and the calculation time of the PSO (particle swarm algorithm) are both longer, in order to improve the convergence speed of the particle swarm optimization, a self-adaptive double-layer particle swarm optimization algorithm is provided by Zhongshiwary and the like, but when the self-adaptive double-layer particle swarm optimization algorithm is applied to time optimal trajectory planning of a six-degree-of-freedom mechanical arm, the precision is poor, and the self-adaptive double-layer particle swarm optimization algorithm is easy to precocious and cannot reach an optimal value.
Compared with the general PSO, QPSO (quantum particle swarm optimization) is more suitable for time-optimal trajectory planning of industrial mechanical arms.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, and provides a mechanical arm polynomial interpolation track planning method based on a QPSO algorithm, which solves the problems that the track planning of a polynomial difference has the characteristics of higher order, no convex hull and the like and is difficult to optimize by using a traditional method; the tail end track of the six-degree-of-freedom mechanical arm can be ensured to meet the principle that the operation process is as smooth as possible, and the tail end position, the angular velocity and the angular acceleration do not have sudden change; the precision of the simulation result is superior to that of a double-layer PSO optimization algorithm, the convergence rate is higher than that of the traditional PSO optimization algorithm, and the time consumed in the calculation process is less than that of the double-layer PSO algorithm and the PSO algorithm. The technical scheme adopted by the invention is as follows:
a QPSO algorithm-based mechanical arm polynomial interpolation track planning method is characterized by comprising the following steps of:
step S1, constructing a target function required by the polynomial interpolation track planning of the mechanical arm;
and step S2, performing iterative evolution on the particle population according to the individual optimal position and the global optimal position of the particles according to the QPSO algorithm, thereby selecting the positions of the particles with the global optimal fitness and the corresponding fitness values.
Step S1 specifically includes:
s1.1, constructing a polynomial interpolation function; the general interpolation formula of the 3-5-3 polynomial of the multi-degree-of-freedom mechanical arm joint i is as follows:
Figure BDA0001814673570000021
wherein S isi1(t)、Si2(t)、Si3(t) joints i of the multi-degree-of-freedom mechanical arm are at ti1、ti2、ti3Difference of these three segmentsAngle change locus corresponding to time, aij、bij、cijJ is the jth coefficient of the three sections of polynomial interpolation functions, and j is 0,1, 2, 3, 4 and 5;
step S1.2, conversion of a known condition and an objective function;
the angle change track of the joint i is divided into three sections by a 3-5-3 polynomial, in order to ensure that the joint of the three sections has no sudden change of position, angular velocity and angular acceleration, the joint angle, the angular velocity and the angular acceleration of each section of the end point are equal to those of the starting point of the next section, and the angular velocity and the angular acceleration of the starting point of the first section and the end point of the third section are both 0, so that the following formulas (2), (3) and (4) exist;
Figure BDA0001814673570000022
Figure BDA0001814673570000023
Figure BDA0001814673570000031
wherein theta isi0、θi1、θi2And thetai3Known as ti1、ti2、ti3Respectively representing the time from the starting point to the end point of each three-section angle track;
firstly, two sections of trinomial conversion are carried out, and then, five-item conversion is carried out; firstly, substituting formula (2) into formula (1), and obtaining S through conversion and reductioni1(t) about ai3Expression of (1), ti1In respect of ai3The expression of (1); similarly, formula (4) is substituted into formula (1) to respectively obtain Si3(t) about ci3Expression of (1), ti3In respect of ci3The expression of (1); then, according to the conditions obtained at present, the formula (3) is substituted into the formula (1), and S is obtained through conversion and reductioni2(t) with respect to ti2、ai3、ci3And bi5The expression of (1); finally, as requiredIf the optimization target is time optimal trajectory planning, the fitness value is the sum of three sections of trajectory time, and the objective function is obtained as follows:
fitness=f(ai3,bi5,ci3)=ti1+ti2+ti3 (5)
s1.3, setting constraint conditions;
setting the maximum limits of angular velocity and angular acceleration of each joint, and ai3,bi5,ci3The value range of (a).
Step S2 specifically includes:
step S2.1, the basic idea of the QPSO algorithm includes:
in a target search space of D dimension, a certain range (low)d,highd) D1, 2,.. times, D, let k 1,2,.. times, M, randomly taking M particles to form a particle group X (h) X ═ X1(h),X2(h),...,XM(h) H iteration, where the particle k at any position is denoted Xk(h)={Xk,1(h),Xk,2(h),...Xk,d(h),...Xk,D(h) In the current iteration, the individual optimal position of each particle in the population of particles is denoted as Pk(h)={Pk,1(h),Pk,2(h),...Pk,d(h),...Pk,D(h) }; the globally optimal particle position for all particles in this population is denoted Gk(h)={Gk,1(h),Gk,2(h),...Gk,d(h),...Gk,D(h) And g (h) ═ Pg(h) Wherein g is a particle subscript at a global optimal position, and g belongs to {1, 2.. multidot.M };
at time t, the individual optimal positions of particle k are:
Figure BDA0001814673570000032
at time t, the global optimal position of particle k is:
Figure BDA0001814673570000033
gdparticle index, G, for global optimum position in d-dimensiond(h) The h-th iteration global optimal particle position of the d-th dimension is obtained;
comparing the objective function value corresponding to the current optimal position of the particle with the objective function value corresponding to the global optimal position each time the particle is updated, if the former is more optimal, the former replaces the latter to be the global optimal position, and the updating formula of the particle position is as follows:
Figure BDA0001814673570000041
wherein alpha is a contraction-expansion coefficient;
Figure BDA0001814673570000042
u (0,1) is a random variable;
s2.2, realizing time optimal trajectory planning based on a QPSO algorithm;
realizing a QPSO algorithm-based time optimal trajectory planning for obtaining the target function (5); equation (5) is considered to be a three-dimensional fitness function, i.e., D is 3, and let Xk(h)={ai3,k,bi5,k,ci3,k};
Taking M particles from each dimension for initialization, and setting the optimal position of each particle as the current particle position;
substituting each particle into the objective function, calculating the fitness value of each particle, and taking the particle position corresponding to the optimal fitness value as the initial global optimal position;
the iteration times are accumulated to 1, the positions of the particles are updated by using a formula (11), and the fitness value corresponding to each particle is solved;
respectively updating the individual optimal position and the global optimal position of the particle according to the particle fitness value of the current layer by using the formulas (9) and (10);
when the global optimal fitness value is smaller than a preset threshold value or the iteration times reach the maximum preset times, jumping out of the loop; obtaining the optimal position of the particles as G, namely the global optimal position, and the global optimal fitness value is f (G);
finally, repeating the whole process for a plurality of times, and taking respective average values of the global optimal position and the global optimal fitness value to obtain
Figure BDA0001814673570000043
And
Figure BDA0001814673570000044
the invention has the advantages that: compared with the PSO and the double-layer particle swarm algorithm, the QPSO optimization algorithm of the invention compares the effect of solving the three-section track time optimal value of each joint of the six-degree-of-freedom mechanical arm, and the simulation effect shows that the convergence speed of the QPSO is better than that of the common PSO, the precision of the QPSO is better than that of the double-layer PSO and the common PSO, and the calculation time consumption is the least, so the comprehensive effect of the QPSO is better than that of the common PSO when the complex optimization problem is solved; and the precision and the time consumption of the industrial mechanical arm play a crucial role in the operation efficiency of the industrial mechanical arm, and compared with the general PSO, the QPSO is more suitable for time optimal trajectory planning of the industrial mechanical arm.
Drawings
FIG. 1 is a flow chart of the algorithm of the present invention.
FIG. 2 is a schematic diagram of a simulated joint angle change trajectory according to the present invention.
Fig. 3 is a schematic diagram of the simulated joint angular velocity change trajectory.
FIG. 4 is a schematic diagram of a simulated joint angular acceleration change trajectory according to the present invention.
FIG. 5 is a comparison graph of the iterative evolutionary effects of the three algorithms of the present invention.
Detailed Description
The invention is further illustrated by the following specific figures and examples.
The invention provides a QPSO algorithm-based mechanical arm polynomial interpolation track planning method, which is used for carrying out time optimal track planning on a 3-5-3 segmented interpolation track of a six-degree-of-freedom mechanical arm by utilizing the QPSO algorithm and solves the problems that the track planning of polynomial difference values has the characteristics of higher order, no convex hull and the like and is difficult to optimize by utilizing a traditional method.
Step S1, constructing an objective function;
the QPSO algorithm needs to determine the fitness of each particle according to an objective function, and then can select the particle position with the optimal fitness according to the fitness of each particle in each iteration;
s1.1, constructing a polynomial interpolation function;
the trajectory planning of the six-degree-of-freedom mechanical arm can plan the angular trajectories of 6 joints into 1 joint, namely, the joint i is considered, i is 1,2, n, n is 6, and the spatial coordinates of two intermediate points are introduced under the condition that the spatial coordinates of an initial point and an end point are determined according to a 3-5-3 polynomial interpolation method; based on the mechanical arm model, the joint angle S corresponding to the initial point, the intermediate point 1, the intermediate point 2 and the terminal point of the joint i can be obtained by utilizing inverse kinematics solutioni1(ti0)、Si1(ti1)、Si2(ti2) And Si3(ti3) (ii) a The 3-5-3 polynomial interpolation formula of the joint i is as follows:
Figure BDA0001814673570000051
wherein S isi1(t)、Si2(t)、Si3(t) joints i of the six-DOF robot arm at ti1、ti2、ti3The angle change trace corresponding to the three differential time segments, aij、bij、cijJ is the jth coefficient of the three sections of polynomial interpolation functions, and j is 0,1, 2, 3, 4 and 5;
step S1.2, conversion of a known condition and an objective function;
the angle change track of the joint i is divided into three sections by a 3-5-3 polynomial, because the space coordinates of an initial point, a middle point 1, a middle point 2 and an end point are known, the angles of the starting point and the end point of the three sections of tracks are also known, and in order to ensure that the joint position, the angular velocity and the angular acceleration of the joint at the joint of the three sections of tracks have no sudden change of the position, the angular velocity and the angular acceleration, the joint angle and the angular velocity of the end point of each section and the starting point of the next section are differentSince the angular velocities and angular accelerations at the start point of the first stage and the end point of the third stage are both 0, the following expressions (2), (3), and (4) exist; in the formula Si1(t)、Si2(t)、Si3(t) one point above represents derivation (i.e. angular velocity), and two points represent derivation after derivation (i.e. angular acceleration);
Figure BDA0001814673570000052
Figure BDA0001814673570000061
Figure BDA0001814673570000062
wherein theta isi0、θi1、θi2And thetai3Known as ti1、ti2、ti3Respectively representing the time from the starting point to the end point of each three-section angle track;
in order to simplify the calculation process, two sections of trinomial conversion are firstly carried out, and then quinomial conversion is carried out; firstly, substituting formula (2) into formula (1), and obtaining S through conversion and reductioni1(t) about ai3Expression of (1), ti1In respect of ai3The expression of (1); similarly, formula (4) is substituted into formula (1) to respectively obtain Si3(t) about ci3Expression of (1), ti3In respect of ci3The expression of (1); then, according to the conditions obtained at present, the formula (3) is substituted into the formula (1), and S is obtained through conversion and reductioni2(t) with respect to ti2、ai3、ci3And bi5The expression of (1); and finally, if the optimization target is required to be achieved as the time optimal trajectory planning, the fitness value is the sum of three sections of trajectory time, and the objective function is obtained as follows:
fitness=f(ai3,bi5,ci3)=ti1+ti2+ti3 (5)
s1.3, setting constraint conditions;
this step sets the maximum limits of angular velocity and angular acceleration for each joint, and ai3,bi5,ci3The value range of (a);
considering kinematic constraint, the angular velocity and the angular acceleration of each joint of the six-freedom-degree mechanical arm are subjected to the maximum velocity vmaxWith maximum acceleration amaxThe limitation of (2) should make each joint angular velocity and angular acceleration all be less than the maximum value for guaranteeing the normal operating of arm operation, so, have:
Figure BDA0001814673570000063
according to equation (7) in consideration of t1、t2、t3Are all greater than 0, can respectively obtain ai3,bi5,ci3Within a desirable range of
Figure BDA0001814673570000064
Step S2, path planning of QPSO algorithm;
performing iterative evolution on the particle population according to the individual optimal position and the global optimal position of the particles by the QPSO algorithm, thereby selecting the positions of the particles with global optimal fitness and the corresponding fitness values; the QPSO algorithm has strong global search capability at the beginning and relatively weak local search capability, and the local search capability is enhanced as the global search capability is weakened along with iteration;
step S2.1, the basic idea of the QPSO algorithm includes:
in a target search space of D dimension, a certain range (low)d,highd) D1, 2,.. times, D, let k 1,2,.. times, M, randomly taking M particles to form a particle group X (h) X ═ X1(h),X2(h),...,XM(h) H iteration, where the particle k at any position is denoted Xk(h)={Xk,1(h),Xk,2(h),...Xk,d(h),...Xk,D(h)}In the current iteration, the individual optimal position of each particle in the population of particles is denoted as Pk(h)={Pk,1(h),Pk,2(h),...Pk,d(h),...Pk,D(h) }; the globally optimal particle position for all particles in this population is denoted Gk(h)={Gk,1(h),Gk,2(h),...Gk,d(h),...Gk,D(h) And g (h) ═ Pg(h) Wherein g is a subscript of the particle at the global optimal position, g belongs to {1, 2.. multidot.m }, and if the particle is optimal, an objective function of fitness ═ f (X) needs to be substituted into the subscriptk,1,Xk,2,...,XK,D) The smaller the value, the better;
at time t, the individual optimal positions of particle k are:
Figure BDA0001814673570000071
at time t, the global optimal position of particle k is:
Figure BDA0001814673570000072
gdparticle index, G, for global optimum position in d-dimensiond(h) The h-th iteration global optimal particle position of the d-th dimension is obtained;
comparing the objective function value corresponding to the current optimal position of the particle with the objective function value corresponding to the global optimal position each time the particle is updated, if the former is more optimal, the former replaces the latter to be the global optimal position, and the updating formula of the particle position is as follows:
Figure BDA0001814673570000073
wherein alpha is a contraction-expansion coefficient;
Figure BDA0001814673570000081
u (0,1) is a random variable;
s2.2, realizing time optimal trajectory planning based on a QPSO algorithm;
in order to obtain the QPSO algorithm-based time-optimal trajectory planning implementation of the objective function (5), taking the joint i in the six-degree-of-freedom manipulator as an example, equation (5) can be regarded as a three-dimensional fitness function, i.e., D is 3, and let X bek(h)={ai3,k,bi5,k,ci3,kV is set according to the actual condition of the mechanical armmax=2πrad/s,amax=4πrad/s2And set ai3,bi5,ci3The value range of (a); as shown in fig. 1, h in fig. 1 is the iteration number, and L is the repetition number;
taking M particles from each dimension for initialization, and setting the optimal position of each particle as the current particle position; m ═ 20;
substituting each particle into the objective function, calculating the fitness value of each particle, and taking the particle position corresponding to the optimal fitness value as the initial global optimal position;
the iteration times are accumulated to 1, the positions of the particles are updated by using a formula (11), and the fitness value corresponding to each particle is solved;
respectively updating the individual optimal position and the global optimal position of the particle according to the particle fitness value of the current layer by using the formulas (9) and (10);
when the global optimal fitness value is smaller than a preset threshold value or the iteration times reach the maximum preset times, jumping out of the loop; obtaining the optimal position of the particles as G, namely the global optimal position, and the global optimal fitness value is f (G);
and finally, repeating the whole process for 10 times, namely L is 10, and taking the average value of the global optimal position and the global optimal fitness value to obtain the global optimal position and the global optimal fitness value
Figure BDA0001814673570000082
And
Figure BDA0001814673570000083
modeling and simulating a six-degree-of-freedom mechanical arm;
the selected object is a typical industrial mechanical arm PUMA560 manipulator; kinematic modeling of PUMA560 using a D-H coordinate system; establishing a mechanical arm model by using MATLAB Toolbox, and carrying out related simulation in MATLAB;
the angle change tracks of six joints of the industrial mechanical arm PUMA560 are shown in FIG. 2, and the angle tracks are smooth in the running process of the six joints;
angular velocity change trajectories and angular acceleration change trajectories of six joints can be obtained by performing derivation and secondary derivation on the formula (1), as shown in fig. 3 and 4, at each interpolation point, the angular velocity and the angular acceleration change continuously and have certain smoothness, so that the time optimal trajectory planning based on the QPSO algorithm meets the principle that the tail end position, the angular velocity and the angular acceleration of the mechanical arm do not have sudden change.
In the embodiment, the optimal value solution is performed on the sum of three sections of track time of each joint of the six-degree-of-freedom mechanical arm by using a QPSO optimization algorithm, namely, the formula (5), and simultaneously the same time optimal track planning is performed on the same object by using a double-layer PSO algorithm and a PSO algorithm respectively; performing 100 iterations on 20 particles, circulating the whole process for 10 times in order to observe the accuracy of each algorithm result, and finally taking the average value of 10 results; the three algorithms compare the iterative evolution effects of 6 joints at the optimal time, and the comparison result of the joint 1 is shown in FIG. 5;
according to the invention, the QPSO algorithm is utilized to carry out time optimal trajectory planning on the 3-5-3 segmented interpolation trajectory of the six-degree-of-freedom mechanical arm, the tail end running process is smooth, the tail end position, the angular velocity and the angular acceleration have no mutation, and the trajectory effect is good in the optimal time; in the process of solving the three-section track time optimal value of each joint of the six-degree-of-freedom mechanical arm by utilizing the QPSO optimization algorithm, the optimal value solving effect is compared with the double-layer PSO algorithm and the PSO algorithm, and the simulation effect shows that when the time optimal track planning is carried out on the 3-5-3 segmented interpolation track of the six-degree-of-freedom mechanical arm, the convergence speed of the QPSO is superior to that of the common PSO, the precision of the QPSO is better than that of the double-layer PSO and the common PSO, and the calculation time consumption is the least; therefore, the QPSO has better comprehensive effect than the general PSO when solving the complex optimization problem; the QPSO algorithm can better converge on the global optimal point, is not easy to sink into the local optimal point, has stronger global searching capability and local searching capability, has strong global searching capability at the beginning, has weaker local searching capability, has weakened global searching capability along with iteration, has strengthened local searching capability, plays a vital role in the operation efficiency of the industrial mechanical arm due to the precision and the time consumption of the industrial mechanical arm, and is more suitable for time optimal trajectory planning of the industrial mechanical arm than the general PSO.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention has been described in detail with reference to examples, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, which should be covered by the claims of the present invention.

Claims (1)

1. A QPSO algorithm-based mechanical arm polynomial interpolation track planning method is characterized by comprising the following steps of:
step S1, constructing a target function required by the polynomial interpolation track planning of the mechanical arm;
step S2, according to the QPSO algorithm, carrying out iterative evolution on the particle population according to the individual optimal position and the global optimal position of the particles, thereby selecting the positions of the particles with global optimal fitness and the corresponding fitness values;
step S1 specifically includes:
s1.1, constructing a polynomial interpolation function; the general interpolation formula of the 3-5-3 polynomial of the multi-degree-of-freedom mechanical arm joint i is as follows:
Figure FDA0003204062420000011
wherein S isi1(t)、Si2(t)、Si3(t) joints i of the multi-degree-of-freedom mechanical arm are at ti1、ti2、ti3The angle change trace corresponding to the three differential time segments, aij、bij、cijJ is the jth coefficient of the three sections of polynomial interpolation functions, and j is 0,1, 2, 3, 4 and 5;
step S1.2, conversion of a known condition and an objective function;
the angle change track of the joint i is divided into three sections by a 3-5-3 polynomial, in order to ensure that the joint of the three sections has no sudden change of position, angular velocity and angular acceleration, the joint angle, the angular velocity and the angular acceleration of each section of the end point are equal to those of the starting point of the next section, and the angular velocity and the angular acceleration of the starting point of the first section and the end point of the third section are both 0, so that the following formulas (2), (3) and (4) exist;
Figure FDA0003204062420000012
Figure FDA0003204062420000013
Figure FDA0003204062420000021
wherein theta isi0、θi1、θi2And thetai3Known as ti1、ti2、ti3Respectively representing the time from the starting point to the end point of each three-section angle track;
firstly, two sections of trinomial conversion are carried out, and then, five-item conversion is carried out; firstly, substituting formula (2) into formula (1), and obtaining S through conversion and reductioni1(t) about ai3Expression of (1), ti1In respect of ai3The expression of (1); similarly, formula (4) is substituted into formula (1) to respectively obtain Si3(t) about ci3Expression of (1), ti3In respect of ci3The expression of (1); then, according to the conditions obtained at present, the formula (3) is substituted into the formula (1), and S is obtained through conversion and reductioni2(t) with respect to ti2、ai3、ci3And bi5The expression of (1); and finally, if the optimization target is required to be achieved as the time optimal trajectory planning, the fitness value is the sum of three sections of trajectory time, and the objective function is obtained as follows:
fitness=f(ai3,bi5,ci3)=ti1+ti2+ti3 (5)
s1.3, setting constraint conditions;
setting the maximum limits of angular velocity and angular acceleration of each joint, and ai3,bi5,ci3The value range of (a);
step S2 specifically includes:
step S2.1, the basic idea of the QPSO algorithm includes:
in a target search space of D dimension, a certain range (low)d,highd) D1, 2,.. times, D, let k 1,2,.. times, M, randomly taking M particles to form a particle group X (h) X ═ X1(h),X2(h),...,XM(h) H iteration, where the particle k at any position is denoted Xk(h)={Xk,1(h),Xk,2(h),...Xk,d(h),...Xk,D(h) In the current iteration, the individual optimal position of each particle in the population of particles is denoted as Pk(h)={Pk,1(h),Pk,2(h),...Pk,d(h),...Pk,D(h) }; the globally optimal particle position for all particles in this population is denoted Gk(h)={Gk,1(h),Gk,2(h),...Gk,d(h),...Gk,D(h) And g (h) ═ Pg(h) Wherein g is a particle subscript at a global optimal position, and g belongs to {1, 2.. multidot.M };
at time t, the individual optimal positions of particle k are:
Figure FDA0003204062420000022
at time t, the global optimal position of particle k is:
Figure FDA0003204062420000023
gdparticle index, G, for global optimum position in d-dimensiond(h) The h-th iteration global optimal particle position of the d-th dimension is obtained;
comparing the objective function value corresponding to the current optimal position of the particle with the objective function value corresponding to the global optimal position each time the particle is updated, if the former is more optimal, the former replaces the latter to be the global optimal position, and the updating formula of the particle position is as follows:
Figure FDA0003204062420000031
wherein alpha is a contraction-expansion coefficient;
Figure FDA0003204062420000032
u (0,1) is a random variable;
s2.2, realizing time optimal trajectory planning based on a QPSO algorithm;
realizing a QPSO algorithm-based time optimal trajectory planning for obtaining the target function (5); equation (5) is considered to be a three-dimensional fitness function, i.e., D is 3, and let Xk(h)={ai3,k,bi5,k,ci3,k};
Taking M particles from each dimension for initialization, and setting the optimal position of each particle as the current particle position;
substituting each particle into the objective function, calculating the fitness value of each particle, and taking the particle position corresponding to the optimal fitness value as the initial global optimal position;
the iteration times are accumulated to 1, the positions of the particles are updated by using a formula (11), and the fitness value corresponding to each particle is solved;
respectively updating the individual optimal position and the global optimal position of the particle according to the particle fitness value of the current layer by using the formulas (9) and (10);
when the global optimal fitness value is smaller than a preset threshold value or the iteration times reach the maximum preset times, jumping out of the loop; obtaining the optimal position of the particles as G, namely the global optimal position, and the global optimal fitness value is f (G);
finally, repeating the whole process for a plurality of times, and taking respective average values of the global optimal position and the global optimal fitness value to obtain
Figure FDA0003204062420000033
And
Figure FDA0003204062420000034
CN201811135979.8A 2018-09-28 2018-09-28 Mechanical arm polynomial interpolation track planning method based on QPSO algorithm Active CN109343345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811135979.8A CN109343345B (en) 2018-09-28 2018-09-28 Mechanical arm polynomial interpolation track planning method based on QPSO algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811135979.8A CN109343345B (en) 2018-09-28 2018-09-28 Mechanical arm polynomial interpolation track planning method based on QPSO algorithm

Publications (2)

Publication Number Publication Date
CN109343345A CN109343345A (en) 2019-02-15
CN109343345B true CN109343345B (en) 2021-12-03

Family

ID=65307045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811135979.8A Active CN109343345B (en) 2018-09-28 2018-09-28 Mechanical arm polynomial interpolation track planning method based on QPSO algorithm

Country Status (1)

Country Link
CN (1) CN109343345B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110125927A (en) * 2019-03-18 2019-08-16 中国地质大学(武汉) Mechanical arm method for planning track and system based on self-adapted genetic algorithm
CN109978957B (en) * 2019-03-22 2023-01-31 青岛鑫慧铭视觉科技有限公司 Binocular system calibration method based on quantum behavior particle swarm
CN109877838B (en) * 2019-03-25 2022-03-29 重庆邮电大学 Time optimal mechanical arm track planning method based on cuckoo search algorithm
CN111796516A (en) * 2019-04-03 2020-10-20 北京京东乾石科技有限公司 Method and device for planning a trajectory
CN111002308A (en) * 2019-12-05 2020-04-14 南京理工大学 Industrial mechanical arm path planning method based on segmented multistage polynomial interpolation
CN111221312B (en) * 2020-02-27 2020-10-09 广东工业大学 Method and system for optimizing robot in production line and application of robot in digital twin
CN111409072B (en) * 2020-04-02 2023-03-07 北京航空航天大学杭州创新研究院 Motion trajectory planning processing method and device
CN111906789A (en) * 2020-09-02 2020-11-10 上海电机学院 Robot joint space trajectory planning method
CN111872943B (en) * 2020-09-28 2021-02-19 佛山隆深机器人有限公司 Robot arc track planning method based on sine curve
CN114700960B (en) * 2022-03-02 2023-09-08 西北工业大学 Order-optimized remote control behavior contour planning method
CN115840369A (en) * 2023-02-20 2023-03-24 南昌大学 Track optimization method, device and equipment based on improved whale optimization algorithm
CN116810802B (en) * 2023-08-28 2024-01-26 江苏云幕智造科技有限公司 Offset mechanical arm discrete point track smooth planning method, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012190274A (en) * 2011-03-10 2012-10-04 Kobe Steel Ltd Modelling device and method for the same
CN103235513A (en) * 2013-04-24 2013-08-07 武汉科技大学 Genetic-algorithm-based trajectory planning optimization method for mobile mechanical arm
CN104020665A (en) * 2014-06-25 2014-09-03 北京邮电大学 Minimum saltus trajectory optimization method of mechanical arm based on multi-objective particle swarm optimization algorithm
CN105159096A (en) * 2015-10-10 2015-12-16 北京邮电大学 Redundancy space manipulator joint torque optimization method based on particle swarm algorithm
CN108326852A (en) * 2018-01-16 2018-07-27 西北工业大学 A kind of space manipulator method for planning track of multiple-objection optimization

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012190274A (en) * 2011-03-10 2012-10-04 Kobe Steel Ltd Modelling device and method for the same
CN103235513A (en) * 2013-04-24 2013-08-07 武汉科技大学 Genetic-algorithm-based trajectory planning optimization method for mobile mechanical arm
CN104020665A (en) * 2014-06-25 2014-09-03 北京邮电大学 Minimum saltus trajectory optimization method of mechanical arm based on multi-objective particle swarm optimization algorithm
CN105159096A (en) * 2015-10-10 2015-12-16 北京邮电大学 Redundancy space manipulator joint torque optimization method based on particle swarm algorithm
CN108326852A (en) * 2018-01-16 2018-07-27 西北工业大学 A kind of space manipulator method for planning track of multiple-objection optimization

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Neuro-fuzzy state modeling of flexible robotic arm employing dynamically varying cognitive and social component based PSO;Amitava Chatterjee等;《ScienceDirect》;20060919;第628-643页 *
基于粒子群优化的时间最优机械臂轨迹规划算法;付荣 等;《信息与控制》;20111231;第40卷(第6期);第802-808页 *
量子粒子群优化算法的收敛性分析及控制参数研究;方伟 等;《物理学报》;20100630;第59卷(第6期);第3686-3694页 *

Also Published As

Publication number Publication date
CN109343345A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN109343345B (en) Mechanical arm polynomial interpolation track planning method based on QPSO algorithm
CN110083165B (en) Path planning method of robot in complex narrow environment
CN109782779B (en) AUV path planning method in ocean current environment based on population hyperheuristic algorithm
JP5475629B2 (en) Trajectory planning method, trajectory planning system, and robot
CN108748160B (en) Mechanical arm motion planning method based on multi-population particle swarm algorithm
CN113885535B (en) Impact constraint robot obstacle avoidance and time optimal track planning method
WO2018176596A1 (en) Unmanned bicycle path planning method based on weight-improved particle swarm optimization algorithm
CN112975992B (en) Error-controllable robot track synchronous optimization method
CN112549016A (en) Mechanical arm motion planning method
CN111930121A (en) Mixed path planning method for indoor mobile robot
CN114995431A (en) Mobile robot path planning method for improving A-RRT
CN111123943B (en) Super-redundancy robot track planning method and system based on pseudo-inverse constraint
CN114077258B (en) Unmanned ship pose control method based on reinforcement learning PPO2 algorithm
CN103679271A (en) Collision detection method based on Bloch spherical coordinates and quantum computing
CN113110412B (en) Voronoi-APF algorithm-based group robot path planning method
CN113721622A (en) Robot path planning method
CN117369495A (en) Unmanned aerial vehicle formation track planning method based on model predictive control
CN116627160A (en) Multi-rotor unmanned aerial vehicle online track planning method in unknown environment
CN110968102A (en) Multi-agent collision avoidance method based on deep reinforcement learning
CN113787525B (en) Mechanical arm movement time optimization method based on joint performance limitation
CN114911233A (en) Football robot path planning method based on multi-optimization rapid expansion random tree
CN114545971A (en) Multi-agent distributed flyable path planning method, system, computer equipment and medium under communication constraint
CN113111553A (en) Interpolation deformation grid-based large deformation motion numerical simulation method
CN113534660A (en) Multi-agent system cooperative control method and system based on reinforcement learning algorithm
Du et al. Application of an improved whale optimization algorithm in time-optimal trajectory planning for manipulators

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant