CN114840947A - A constrained three-degree-of-freedom manipulator dynamic model - Google Patents
A constrained three-degree-of-freedom manipulator dynamic model Download PDFInfo
- Publication number
- CN114840947A CN114840947A CN202210569131.6A CN202210569131A CN114840947A CN 114840947 A CN114840947 A CN 114840947A CN 202210569131 A CN202210569131 A CN 202210569131A CN 114840947 A CN114840947 A CN 114840947A
- Authority
- CN
- China
- Prior art keywords
- particle
- optimal
- trajectory
- vector
- fitness value
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/17—Mechanical parametric or variational design
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
- B25J9/1628—Programme controls characterised by the control loop
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J9/00—Programme-controlled manipulators
- B25J9/16—Programme controls
- B25J9/1628—Programme controls characterised by the control loop
- B25J9/163—Programme controls characterised by the control loop learning, adaptive, model based, rule based expert control
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/04—Constraint-based CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/08—Probabilistic or stochastic CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/14—Force analysis or force optimisation, e.g. static or dynamic forces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T90/00—Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Robotics (AREA)
- Mechanical Engineering (AREA)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Mathematical Optimization (AREA)
- Life Sciences & Earth Sciences (AREA)
- Mathematical Analysis (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Pure & Applied Mathematics (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Computational Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Feedback Control In General (AREA)
Abstract
Description
技术领域technical field
本发明涉及工业机器人技术领域,具体涉及一种带约束的三自由度机械臂动力学模型。The invention relates to the technical field of industrial robots, in particular to a constrained three-degree-of-freedom mechanical arm dynamics model.
背景技术Background technique
机械臂在生产和生活中用途广泛,作为机电一体化设备,能够高效完成各种复杂和危险的作业,提高生产效率,在工业、航天、医疗等领域中得到广泛的应用。机械臂运动控制本质上是用于机械臂关节动作控制的多轴位置随动系统,其被控量(输出量)是负载机械空间位置的角位移,当位置给定量(输入量)做特定任务变化时,系统要能使输出量快速而准确地跟踪给定量变化。因此,机械臂运动控制系统包括轨迹规划和轨迹跟踪两个部分,其任务是不仅要对机械臂的行走轨迹进行规划,还需要对其每个轴的伺服驱动机构的角位移、角速度以及角加速度进行闭环控制,以实现机械臂整体的位姿联合控制。机械臂轨迹规划是根据任务要求计算轨迹并研究运动中机械臂关节的位移、角速度和角加速度的生成方法。这些轨迹既可以在关节空间生成,也可以在笛卡尔空间生成。在关节空间中进行轨迹规划,是用关节变量来描述机械臂的运动,实时性好,但很难确定连杆和末端执行器的姿态;在笛卡尔空间进行轨迹规划,是将路径约束映射成关节空间坐标,然后确定满足参数约束的关节轨迹。相比较而言,在关节空间中进行轨迹规划计算量小,实时性高,而且能够避免奇异点现象。The robotic arm is widely used in production and life. As a mechatronics device, it can efficiently complete various complex and dangerous operations and improve production efficiency. It has been widely used in industry, aerospace, medical and other fields. The motion control of the robotic arm is essentially a multi-axis position follow-up system used for the motion control of the robotic arm joints. The controlled quantity (output quantity) is the angular displacement of the spatial position of the load machine. When the position given quantity (input quantity) does a specific task When changing, the system needs to make the output quickly and accurately track the change of the given amount. Therefore, the motion control system of the robot arm includes two parts: trajectory planning and trajectory tracking. Its task is not only to plan the walking trajectory of the robot arm, but also the angular displacement, angular velocity and angular acceleration of the servo drive mechanism of each axis. Closed-loop control is performed to realize joint control of the overall pose of the manipulator. Robotic arm trajectory planning is a method of calculating the trajectory according to the task requirements and studying the displacement, angular velocity and angular acceleration of the robotic arm joints in motion. These trajectories can be generated either in joint space or in Cartesian space. For trajectory planning in joint space, joint variables are used to describe the motion of the manipulator, which has good real-time performance, but it is difficult to determine the posture of the connecting rod and end effector; for trajectory planning in Cartesian space, the path constraints are mapped into joint space coordinates, and then determine joint trajectories that satisfy the parametric constraints. In comparison, trajectory planning in joint space requires less computation, high real-time performance, and can avoid singularity.
现有技术中,一部分从模型的准确性以及模型参数的不确定性出发,研究其对控制精度的影响,例如“基于多层神经网络的模型不确定性机械臂运动控制方法”、“一种多自由度机械臂柔性控制方法和系统”;一部分只对轨迹设计的是否合理进行了研究,如“一种机械臂多点运动轨迹规划方法”等,但在轨迹规划过程中,对于满足具体任务需求的轨迹函数及其约束条件的讨论还需要进一步细化;还有一部分专利专门研究轨迹跟踪控制器的设计,如“一种机械臂分散化神经鲁棒控制的轨迹跟踪算法”,这些专利没有考虑轨迹合理性的因素,忽略了机械臂惯性力的影响,降低了其适用性,同时在跟踪精度和系统稳定性方面也有待进一步提高。In the prior art, some of them start from the accuracy of the model and the uncertainty of the model parameters to study its influence on the control accuracy, such as "Model Uncertainty Manipulator Motion Control Method Based on Multi-layer Neural Network", "A Flexible control method and system for multi-degree-of-freedom manipulators”; part of the research only studies whether the trajectory design is reasonable, such as “a multi-point motion trajectory planning method for manipulators”, etc., but in the process of trajectory planning, for specific tasks The discussion of the required trajectory function and its constraints needs to be further refined; there are also some patents dedicated to the design of trajectory tracking controllers, such as "A trajectory tracking algorithm for decentralized neural robust control of robotic arms", these patents do not Considering the factors of the rationality of the trajectory, the influence of the inertial force of the manipulator is ignored, which reduces its applicability, and at the same time, it needs to be further improved in terms of tracking accuracy and system stability.
发明内容SUMMARY OF THE INVENTION
为了克服现有技术的不足,本发明设计一套合理的一种带约束的三自由度机械臂动力学模型,所述模型具有以下四个基本特征:具备快速响应能力;能够获得准确的位置偏差;控制方法具有较强的鲁棒性和自适应性;调速范围和力矩输出范围足够大。In order to overcome the deficiencies of the prior art, the present invention designs a reasonable three-degree-of-freedom manipulator dynamic model with constraints. The model has the following four basic characteristics: fast response capability; accurate position deviation can be obtained ; The control method has strong robustness and adaptability; the speed regulation range and torque output range are large enough.
本发明技术方案为:一种带约束的三自由度机械臂动力学模型,利用欧拉-拉格朗日法建立所述机械臂动力学模型,给出其状态空间的动力学方程表达形式,基于粒子群算法对所述机械臂动力学模型的运动规划进行计算,所述机械臂动力学模型的动力学方程为:The technical scheme of the present invention is as follows: a constrained three-degree-of-freedom manipulator dynamic model, the Euler-Lagrange method is used to establish the manipulator dynamic model, and the dynamic equation expression form of its state space is given, Based on the particle swarm algorithm, the motion planning of the dynamic model of the manipulator is calculated, and the dynamic equation of the dynamic model of the manipulator is:
其中:q=[q1,q2,q3]T是系统的角度向量;τ=[τ1,τ2,τ3]T是控制力矩向量;M(q)∈R3×3是惯性矩阵,具有正定性和对称性;是哥氏力和离心力的结合向量;Where: q=[q 1 , q 2 , q 3 ] T is the angle vector of the system; τ=[τ 1 , τ 2 , τ 3 ] T is the control torque vector; M(q)∈R 3×3 is the inertia Matrix, with positive definiteness and symmetry; is the combination vector of Coriolis force and centrifugal force;
则所述机械臂动力学模型的状态空间形式为:Then the state space form of the dynamic model of the manipulator is:
其中:in:
f(x)=[x4,x5,x6,f1,f2,f3]f(x)=[x 4 ,x 5 ,x 6 ,f 1 ,f 2 ,f 3 ]
g(x)=[g1(x),g2(x),g3(x)]T g(x)=[g 1(x) ,g 2(x) ,g 3(x) ] T
x为状态向量变量,f(x)为状态目标函数,g(x)为关于x的非线性约束关联函数,g1(x)为3阶零矩阵,gij为关于g(x)为的分量函数;令则有:x is the state vector variable, f(x) is the state objective function, g(x) is the nonlinear constraint correlation function about x, g 1(x) is the third-order zero matrix, g ij is about g(x) component function; let Then there are:
所述M(q)和的具体分别为如下形式:The M(q) and The specific forms are as follows:
粒子群优化算法是一种基于群体的随机优化算法,所述群体中的每个个体称为粒子,所述群体的规模为N,每个粒子在D维空间中的位置向量为Xi=(xi1,xi2,xi3,xi4,...,xid,...,xiD);速度向量为Vi=(vi1,vi2,vi3,vi4,...,vid,...,viD);个体的最优位置为Pi=(pi1,pi2,pi3,pi4,...,pid,...,piD);所述群体的最佳位置表示为Pg=(pg1,pg2,pg3,pg4,...,pgd,...,pgD),个体最优位置的更新模型为:The particle swarm optimization algorithm is a stochastic optimization algorithm based on a population, each individual in the population is called a particle, the size of the population is N, and the position vector of each particle in the D-dimensional space is X i =( x i1 ,x i2 ,x i3 ,x i4 ,...,x id ,...,x iD ); the velocity vector is V i =(v i1 ,v i2 ,v i3 ,v i4 ,..., v id ,...,v iD ); the optimal position of the individual is P i =( pi1 , pi2 , pi3 , pi4 ,..., pid ,..., piD ); the The best position of the group is expressed as P g = (p g1 ,p g2 ,p g3 ,p g4 ,...,p gd ,...,p gD ), and the update model of the individual optimal position is:
所述群体的最佳位置是所有个体的最佳位置,其速度和位置的更新模型如下式所示:The best position of the group is the best position of all individuals, and the update model of its speed and position is as follows:
其中,ω为惯性权重,决定了算法收敛速度的强弱。ω越大收敛速度越强,反之越弱。实验证明ω在0.8-1.2之间粒子群算法有更快的收敛速度。c1和c2为学习因子,也称加速常数;r1和r2为[0,1]范围内的均匀随机数。Among them, ω is the inertia weight, which determines the strength of the algorithm's convergence speed. The larger the ω, the stronger the convergence speed, and vice versa. Experiments show that the particle swarm algorithm has a faster convergence speed when ω is between 0.8 and 1.2. c 1 and c 2 are learning factors, also called acceleration constants; r 1 and r 2 are uniform random numbers in the range of [0,1].
多约束下的时间最优粒子群规划的步骤为:The steps of time-optimal particle swarm programming under multiple constraints are:
(1)确定粒子的维度,确定粒子群的初始种群数量,初始化粒子的位置和速度,设定最优适应度值;(1) Determine the dimension of the particle, determine the initial population size of the particle swarm, initialize the position and speed of the particle, and set the optimal fitness value;
(2)设定适应度函数,并初步筛选具有更优适应度值的粒子,计算多项式的系数;(2) Set a fitness function, and initially screen particles with better fitness values, and calculate the coefficients of the polynomial;
(3)由已得多项式系数计算关节速度、加速度轨迹,并检验是否超出所设定的最大限制值,即满足式(7)和式(8);(3) Calculate the joint velocity and acceleration trajectory from the obtained polynomial coefficients, and check whether the set maximum limit value is exceeded, that is, equations (7) and (8) are satisfied;
(4)遍历所有粒子,计算出每个粒子的适应度值,并检验每次的适应度值是否相比更新的最优适应度值更小,同时检验由该粒子计算得到的多项式系数所对应的关节速度、加速度轨迹是否存在超过限制的值。若不存在,则更新最优粒子,同时更新最优适应度值;若存在,跳过该粒子,对下一粒子进行检测,直至检测完所有粒子;(4) Traverse all particles, calculate the fitness value of each particle, and check whether each fitness value is smaller than the updated optimal fitness value, and at the same time check the corresponding polynomial coefficient calculated by the particle. Whether there is a value exceeding the limit of the joint velocity and acceleration trajectory of . If it does not exist, the optimal particle is updated, and the optimal fitness value is updated at the same time; if it exists, the particle is skipped, and the next particle is detected until all particles are detected;
(5)每个粒子与更新的最优粒子的适应度值相比较,并得到当前整体最优粒子,再与群体所经历的全局最优粒子比较,若出现适应度值更小的情况,则更新全局最优粒子和最优适应度值;(5) Each particle is compared with the fitness value of the updated optimal particle, and the current overall optimal particle is obtained, and then compared with the global optimal particle experienced by the group. If the fitness value is smaller, then Update the global optimal particle and optimal fitness value;
(6)一直迭代至终止次数,停止更新,并根据全局最优粒子得到对应的多项式系数,计算相对应的关节角度、角速度、角加速度轨迹。(6) Iterate until the number of terminations, stop updating, and obtain the corresponding polynomial coefficients according to the global optimal particle, and calculate the corresponding joint angle, angular velocity, and angular acceleration trajectory.
本发明有益效果:Beneficial effects of the present invention:
1)本发明所述模型具备快速响应能力;1) The model of the present invention has the ability to respond quickly;
2)本发明所述模型能够获得准确的位置偏差;2) The model of the present invention can obtain accurate position deviation;
3)本发明所述模型控制方法具有较强的鲁棒性和自适应性;3) The model control method of the present invention has strong robustness and adaptability;
4)本发明所述模型调速范围和力矩输出范围足够大。4) The model speed regulation range and torque output range of the present invention are sufficiently large.
附图说明:Description of drawings:
图1为本发明在系统方案的结构示意图;Fig. 1 is the structural representation of the present invention in the system scheme;
图2为本发明的三关节角度轨迹图;2 is a three-joint angle trajectory diagram of the present invention;
图3为本发明的粒子群算法在轨迹规划方法中的流程图;Fig. 3 is the flow chart of the particle swarm algorithm of the present invention in the trajectory planning method;
图4为本发明三关节角速度轨迹图;4 is a three-joint angular velocity trajectory diagram of the present invention;
图5为本发明三关节加速度轨迹图;5 is a three-joint acceleration trajectory diagram of the present invention;
图6为本发明三关节力矩曲线图;6 is a three-joint moment curve diagram of the present invention;
图7为本发明三关节轨迹跟踪误差曲线图。FIG. 7 is a curve diagram of three-joint trajectory tracking error according to the present invention.
具体实施方式:Detailed ways:
参见图1至图7所示,本发明涉及一种带约束的三自由度机械臂动力学模型,利用欧拉-拉格朗日法建立所述机械臂动力学模型,给出其状态空间表达形式,基于粒子群算法对所述机械臂动力学模型的运动规划进行计算,所述机械臂动力学模型的动力学方程为:Referring to FIGS. 1 to 7 , the present invention relates to a constrained three-degree-of-freedom manipulator dynamic model. The Euler-Lagrange method is used to establish the manipulator dynamic model, and its state space expression is given. Form, based on particle swarm algorithm to calculate the motion planning of the dynamic model of the manipulator, the dynamic equation of the dynamic model of the manipulator is:
其中:q=[q1,q2,q3]T是系统的角度向量;τ=[τ1,0,τ3]T是控制力矩向量;M(q)∈R3 ×3是惯性矩阵,具有正定性和对称性;是哥氏力和离心力的结合向量。Where: q=[q 1 , q 2 , q 3 ] T is the angle vector of the system; τ=[τ 1 ,0,τ 3 ] T is the control torque vector; M(q)∈R 3 ×3 is the inertia matrix , with positive definiteness and symmetry; is the combined vector of Coriolis force and centrifugal force.
则系统模型的状态空间形式为:Then the state space form of the system model is:
其中:in:
f(x)=[x4,x5,x6,f1,f2,f3]f(x)=[x 4 ,x 5 ,x 6 ,f 1 ,f 2 ,f 3 ]
g(x)=[g1(x),g2(x),g3(x)]T g(x)=[g 1(x) ,g 2(x) ,g 3(x) ] T
x为状态向量变量,f(x)为状态目标函数,g(x)为关于x的非线性约束关联函数,g1(x)为3阶零矩阵,gij为关于g(x)为的分量函数;令则有:x is the state vector variable, f(x) is the state objective function, g(x) is the nonlinear constraint correlation function about x, g 1(x) is the third-order zero matrix, g ij is about g(x) component function; let Then there are:
优选的,所述M(q)和的具体分别为如下形式:Preferably, the M(q) and The specific forms are as follows:
所述粒子群优化算法是一种基于群体的随机优化算法,所述群体中的每个个体称为粒子,所述群体的规模为N,每个粒子在D维空间中的位置向量为Xi=(xi1,xi2,xi3,xi4,...,xid,...,xiD);速度向量为Vi=(vi1,vi2,vi3,vi4,...,vid,...,viD);个体的最优位置为Pi=(pi1,pi2,pi3,pi4,...,pid,...,piD);所述群体的最佳位置表示为Pg=(pg1,pg2,pg3,pg4,...,pgd,...,pgD),个体最优位置的更新模型为:The particle swarm optimization algorithm is a group-based random optimization algorithm, each individual in the group is called a particle, the size of the group is N, and the position vector of each particle in the D-dimensional space is X i. =(x i1 ,x i2 ,x i3 ,x i4 ,...,x id ,...,x iD ); the velocity vector is V i =(v i1 ,v i2 ,v i3 ,v i4 ,.. .,v id ,...,v iD ); the optimal position of the individual is P i =( pi1 , pi2 , pi3 , pi4 ,..., pid ,..., piD ); The optimal position of the group is expressed as P g =(p g1 ,p g2 ,p g3 ,p g4 ,...,p gd ,...,p gD ), and the update model of the individual optimal position is:
所述群体的最佳位置是所有个体的最佳位置,其速度和位置的更新模型如下式所示:The best position of the group is the best position of all individuals, and the update model of its speed and position is as follows:
其中,ω为惯性权重,决定了算法收敛速度的强弱。ω越大收敛速度越强,反之越弱。实验证明ω在0.8-1.2之间粒子群算法有更快的收敛速度。c1和c2为学习因子,也称加速常数;r1和r2为[0,1]范围内的均匀随机数。Among them, ω is the inertia weight, which determines the strength of the algorithm's convergence speed. The larger the ω, the stronger the convergence speed, and vice versa. Experiments show that the particle swarm algorithm has a faster convergence speed when ω is between 0.8 and 1.2. c 1 and c 2 are learning factors, also called acceleration constants; r 1 and r 2 are uniform random numbers in the range of [0,1].
本发明根据机械臂系统连杆间的约束关系设计轨迹跟踪控制器。The invention designs the trajectory tracking controller according to the constraint relationship between the links of the robotic arm system.
构造滑模面为公式:The sliding surface is constructed as the formula:
对滑模面求导可得公式:The formula can be obtained by derivation of the sliding mode surface:
其中:β1,β2,β3为常数。in: β 1 , β 2 , and β 3 are constants.
设计滑模趋近律为公式:The sliding mode reaching law is designed as the formula:
其中ki>1,ηi>0,ζi>0,双幂次趋近律以|Si|=1为界,将系统分为两个阶段:in ki > 1, η i > 0, ζ i > 0, the bi-power reaching law is bounded by |S i |=1, dividing the system into two stages:
第一阶段:当|Si|<1时系统功能主要取决于前一项此时越大,趋近速度越快,但带来的抖振也相应增大,ηi越小系统速度和抖振同时减小。The first stage: when |S i | < 1, the system function mainly depends on the previous term at this time The larger the value is, the faster the approach speed is, but the chattering also increases accordingly. The smaller η i is, the system speed and chattering decrease at the same time.
第二阶段:当|Si|>1时,系统功能主要取决于第二项ki越大,趋近速度越快的同时抖振也增大;ζi越小,抖振和速度同时变小。因此,采用这种方法需要根据实验选择合适的参数。同时,引入边界层使系统状态控制在一定范围内,并用饱和函数来定义,选取的饱和函数为公式:The second stage: when |S i |>1, the system function mainly depends on the second term The larger the k i is, the faster the approach speed is and the chattering also increases; the smaller the ζ i is, the smaller the chattering and the speed are at the same time. Therefore, adopting this method requires the selection of appropriate parameters according to the experiment. At the same time, a boundary layer is introduced to control the state of the system within a certain range, and is defined by a saturation function. The selected saturation function is the formula:
其中,为保证系统稳定性,令1<γ<2。此时系统整体趋近律为公式:Among them, in order to ensure the stability of the system, let 1<γ<2. At this time, the overall approach law of the system is the formula:
由上述公式可得各关节的控制律τ=[τ1,τ2,τ3]Τ。The control law of each joint τ=[τ 1 , τ 2 , τ 3 ] Τ can be obtained from the above formula.
给出如下设定条件:The following set conditions are given:
|vi,j|≤1.57rad/s|v i,j |≤1.57rad/s
|ai,j|≤2.09rad/s2 |a i,j |≤2.09rad/s 2
关节1、2、3的起始点和三个固定点的关节向量分别为:The starting points of
q1=[0.50,1.54,0.32,-0.55]rad,q 1 =[0.50,1.54,0.32,-0.55]rad,
q2=[-1.20,-1.51,-1.02,0.2798]rad,q 2 =[-1.20,-1.51,-1.02,0.2798]rad,
q3=[1.70,0.04,-2.20,-1.09]rad;q 3 =[1.70,0.04,-2.20,-1.09]rad;
粒子群算法的迭代次数为200。The number of iterations of the particle swarm algorithm is 200.
据此得到三个关节的角度、角速度、角加速度轨迹如图3-图5所示。本专利采用的所述基于粒子群优化的三-五-三组合多项式插值法结构框图如图2所示。According to this, the angle, angular velocity and angular acceleration trajectory of the three joints are obtained as shown in Figure 3-Figure 5. The structural block diagram of the three-five-three combination polynomial interpolation method based on particle swarm optimization adopted in this patent is shown in FIG. 2 .
本发明利用三次多项式函数为每两固定点进行轨迹规划。The invention uses the cubic polynomial function to perform trajectory planning for every two fixed points.
首先在笛卡尔空间中确定机械臂的起始点和三个固定点的空间位置,再通过机械臂逆运动学模型得到对应的关节位置。由于轨迹中有一个起始点和三个路径点,故有三段轨迹插值。设置如下参数:i=1,2,3表示关节数;j=1,2,3表示插值轨迹段数;θi,j表示第i个关节的插值角度向量。Firstly, the starting point of the manipulator and the spatial positions of the three fixed points are determined in the Cartesian space, and then the corresponding joint positions are obtained through the inverse kinematics model of the manipulator. Since there is one starting point and three waypoints in the trajectory, there are three segments of trajectory interpolation. Set the following parameters: i=1,2,3 represents the number of joints; j=1,2,3 represents the number of interpolation trajectory segments; θ i,j represents the interpolation angle vector of the ith joint.
建立第i个关节角度关于时间的3-5-3多项式函数,如公式(3)所示:Establish the 3-5-3 polynomial function of the i-th joint angle with respect to time, as shown in formula (3):
其中,li,1(t)表示第i个关节角度的第一段三次多项式插值轨迹;li,2(t)为第i个关节角度的第二段五次多项式插值轨迹;li,3(t)表示第i个关节角度的第三段三次多项式插值轨迹;系数ai为多项式对应的相关系数。Among them, l i,1 (t) represents the first segment of the cubic polynomial interpolation trajectory of the ith joint angle; li ,2 (t) is the second segment of the quintic polynomial interpolation trajectory of the ith joint angle; li , 3 (t) represents the third segment of the cubic polynomial interpolation trajectory of the ith joint angle; the coefficient a i is the correlation coefficient corresponding to the polynomial.
令多式的系数ai为向量a=[ai,13,ai,12,ai,11,ai,10,ai,25,...,ai,20,ai,33,...,ai,30]Τ,设多项式函数的时间矩阵为T,则对应的矩阵解为T14×14a14×1=θ14×1,其中T和θ公式(4)和公式(5)所示。当由于第二段轨迹规划时关节的起始速度和加速度与第一段轨迹末端关节的速度与加速度一致,所以在第二段五次多项式插值轨迹规划前需要做完第一段轨迹。在时间矩阵T中,每一行都与列向量a的元素相对应:一至三行表示第一段三次多项式插值,需消除初始时刻所对应的第二段五次多项式所对应初始时刻的轨迹,四行至九行同理。Let the coefficients a i of the polynomial be a vector a=[a i,13 ,a i,12 ,a i,11 ,a i,10 ,a i,25 ,...,a i,20 ,a i,33 ,...,a i,30 ] Τ , let the time matrix of the polynomial function be T, then the corresponding matrix solution is T 14×14 a 14×1 =θ 14×1 , where T and θ formula (4) and Equation (5) is shown. When the initial velocity and acceleration of the joint during the second segment trajectory planning are consistent with the velocity and acceleration of the joint at the end of the first segment trajectory, the first segment trajectory needs to be completed before the second segment quintic polynomial interpolation trajectory planning. In the time matrix T, each row corresponds to the element of the column vector a:
θ=[0,0,0,0,0,0,x3,0,0,x0,0,0,x2,x1]Τ θ=[0,0,0,0,0,0,x 3 ,0,0,x 0 ,0,0,x 2 ,x 1 ] Τ
其中,x3对应T的第七行和a的第七元素,表示第三段三次多项式插值轨迹规划的位移;x0表示时间为0时第一段三次多项式插值规划的初始位移;x2表示时间为0时第三段三次多项式插值规划的初始位移;x1表示时间为0时第二段五次多项式插值规划的初始位移。Among them, x 3 corresponds to the seventh row of T and the seventh element of a, which represents the displacement of the third stage of cubic polynomial interpolation trajectory planning; x 0 represents the initial displacement of the first stage of cubic polynomial interpolation planning when time is 0; x 2 represents When the time is 0, the initial displacement of the third-stage cubic polynomial interpolation plan; x 1 represents the initial displacement of the second-stage quintic polynomial interpolation plan when the time is 0.
本发明设计一种多约束条件下基于时间最优的联合轨迹规划方法,对固定路径点间的轨迹进行时间最优规划。具体方案如下:The invention designs a time-optimized joint trajectory planning method under multiple constraints, and performs time-optimal planning on the trajectory between fixed path points. The specific plans are as follows:
对于多固定路径点轨迹规划任务,时间最优指标应为多段时间之和最小,则适应度函数应定义如公式(6):For the multi-fixed waypoint trajectory planning task, the optimal time index should be the minimum sum of multiple time periods, then the fitness function should be defined as formula (6):
f(t)=(t1+t2+t3)min f(t)=(t 1 +t 2 +t 3 ) min
由于机械臂系统构造、材料结构和电机选型等多种原因,机械臂会存在关节速度、加速度的极限。如果在轨迹规划中没有将这类限制因素充分考虑在内,得到的轨迹通常既会产生速度、加速度短时内急剧变化的现象,又不符合机械臂实际工作情况。这种不稳定的轨迹在实际执行过程中不仅会对周围环境产生安全隐患,而且会对机械臂的系统构造产生不可逆的影响甚至损坏,同时对轨迹跟踪控制的要求也更高,控制难度也更大。为了保证任务的安全性和准确性,同时符合机械臂系统的实际要求,因此在轨迹规划任务中引入速度和加速度的双约束条件。设置速度约束:Due to various reasons such as the structure of the manipulator system, material structure and motor selection, the manipulator will have the limit of joint speed and acceleration. If such limiting factors are not fully taken into account in trajectory planning, the resulting trajectory usually produces rapid changes in speed and acceleration in a short period of time, and does not conform to the actual working conditions of the manipulator. In the actual execution process, this kind of unstable trajectory will not only cause safety hazards to the surrounding environment, but also irreversibly affect or even damage the system structure of the manipulator. At the same time, the requirements for trajectory tracking control are higher, and the control difficulty is also higher big. In order to ensure the safety and accuracy of the task and meet the actual requirements of the manipulator system, the dual constraints of speed and acceleration are introduced in the trajectory planning task. Set speed constraints:
其中vi,j表示第i个关节的第j段轨迹的速度,Vi,j为第i个关节的第j段轨迹的速度最大限制。设置加速度约束:where v i,j represents the velocity of the j-th trajectory of the i-th joint, and V i,j is the maximum speed limit of the j-th trajectory of the i-th joint. Set acceleration constraints:
其中ai,j表示第i个关节的第j段轨迹的加速度,aai,j为第i个关节的第j段轨迹的加速度最大限制。where a i,j represents the acceleration of the j-th trajectory of the i-th joint, and aa i,j is the maximum acceleration limit of the j-th trajectory of the i-th joint.
多约束下的时间最优粒子群规划的步骤为:The steps of time-optimal particle swarm programming under multiple constraints are:
(1)确定粒子的维度,确定粒子群的初始种群数量,初始化粒子的位置和速度,设定最优适应度值;(1) Determine the dimension of the particle, determine the initial population size of the particle swarm, initialize the position and speed of the particle, and set the optimal fitness value;
(2)设定适应度函数,并初步筛选具有更优适应度值的粒子,计算多项式的系数;(2) Set a fitness function, and initially screen particles with better fitness values, and calculate the coefficients of the polynomial;
(3)由已得多项式系数计算关节速度、加速度轨迹,并检验是否超出所设定的最大限制值,即满足式(7)和式(8);(3) Calculate the joint velocity and acceleration trajectory from the obtained polynomial coefficients, and check whether the set maximum limit value is exceeded, that is, equations (7) and (8) are satisfied;
(4)遍历所有粒子,计算出每个粒子的适应度值,并检验每次的适应度值是否相比更新的最优适应度值更小,同时检验由该粒子计算得到的多项式系数所对应的关节速度、加速度轨迹是否存在超过限制的值。若不存在,则更新最优粒子,同时更新最优适应度值;若存在,跳过该粒子,对下一粒子进行检测,直至检测完所有粒子;(4) Traverse all particles, calculate the fitness value of each particle, and check whether each fitness value is smaller than the updated optimal fitness value, and at the same time check the corresponding polynomial coefficient calculated by the particle. Whether there is a value exceeding the limit of the joint velocity and acceleration trajectory of . If it does not exist, the optimal particle is updated, and the optimal fitness value is updated at the same time; if it exists, the particle is skipped, and the next particle is detected until all particles are detected;
(5)每个粒子与更新的最优粒子的适应度值相比较,并得到当前整体最优粒子,再与群体所经历的全局最优粒子比较,若出现适应度值更小的情况,则更新全局最优粒子和最优适应度值;(5) Each particle is compared with the fitness value of the updated optimal particle, and the current overall optimal particle is obtained, and then compared with the global optimal particle experienced by the group. If the fitness value is smaller, then Update the global optimal particle and optimal fitness value;
(6)一直迭代至终止次数,停止更新,并根据全局最优粒子得到对应的多项式系数,计算相对应的关节角度、角速度、角加速度轨迹。(6) Iterate until the number of terminations, stop updating, and obtain the corresponding polynomial coefficients according to the global optimal particle, and calculate the corresponding joint angle, angular velocity, and angular acceleration trajectory.
从如图3-图5所示的实验结果可以看到:每个关节的角速度和角加速度轨迹均未超出最大绝对值,关节轨迹满足所有约束条件。关节角速度轨迹和关节角加速度轨迹在第二段轨迹中更接近所限制最大值,表明关节整体第二段轨迹在加速收敛。另外,由于三次多项式插值法和五次多项式插值法需要设置时间,若时间设置不当,会导致关节速度和加速度不稳定,使得系统稳定性下降,任务完成效率变低甚至无法完成。而本专利设计的基于粒子群优化的轨迹规划方法在保证时间最短的前提下,同时能够保证各关节角度、角速度、角加速度轨迹的平滑性和连续性,提高任务完成的效率和准确性。From the experimental results shown in Figures 3-5, it can be seen that the angular velocity and angular acceleration trajectory of each joint does not exceed the maximum absolute value, and the joint trajectory satisfies all constraints. The joint angular velocity trajectory and the joint angular acceleration trajectory are closer to the restricted maximum value in the second segment of the trajectory, indicating that the overall second segment of the joint trajectory is accelerating and converging. In addition, since the cubic polynomial interpolation method and the quintic polynomial interpolation method need to set the time, if the time is not set properly, the joint speed and acceleration will be unstable, the system stability will be reduced, and the task completion efficiency will become low or even impossible. The trajectory planning method based on particle swarm optimization designed in this patent can ensure the smoothness and continuity of each joint angle, angular velocity, and angular acceleration trajectory under the premise of ensuring the shortest time, and improve the efficiency and accuracy of task completion.
针对图3给出的期望轨迹,专利采用改进滑膜控制器对其进行跟踪控制,得出的控制律如图6所示,其轨迹跟踪误差曲线如图7所示。For the desired trajectory given in Figure 3, the patent uses an improved synovial controller to track and control it. The obtained control law is shown in Figure 6, and its trajectory tracking error curve is shown in Figure 7.
由图6可以看出采用双幂次饱和趋近律的滑模控制得出的力矩比较平稳,并且无明显抖振,能够使电机输出保持在额定功率内,保证了机械臂执行任务的精度。It can be seen from Figure 6 that the torque obtained by the sliding mode control using the double-power saturation reaching law is relatively stable, and there is no obvious chattering, which can keep the motor output within the rated power and ensure the accuracy of the robot arm to perform tasks.
由图7可以看出三个关节的轨迹跟踪误差均较小,最大幅值为0.015rad,并在一定时间内收敛到0附近,具有较高的轨迹跟踪精度。It can be seen from Figure 7 that the trajectory tracking errors of the three joints are all small, the maximum amplitude is 0.015rad, and it converges to near 0 within a certain period of time, with high trajectory tracking accuracy.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210569131.6A CN114840947A (en) | 2022-05-24 | 2022-05-24 | A constrained three-degree-of-freedom manipulator dynamic model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210569131.6A CN114840947A (en) | 2022-05-24 | 2022-05-24 | A constrained three-degree-of-freedom manipulator dynamic model |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114840947A true CN114840947A (en) | 2022-08-02 |
Family
ID=82571819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210569131.6A Withdrawn CN114840947A (en) | 2022-05-24 | 2022-05-24 | A constrained three-degree-of-freedom manipulator dynamic model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114840947A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116038712A (en) * | 2023-02-06 | 2023-05-02 | 上海大学 | A New Approach Rate Based Adaptive Sliding Mode Control Method for Manipulator RBF Network |
CN117590754A (en) * | 2024-01-18 | 2024-02-23 | 北京理工大学 | Intelligent learning output regulation and control method of robot system |
-
2022
- 2022-05-24 CN CN202210569131.6A patent/CN114840947A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116038712A (en) * | 2023-02-06 | 2023-05-02 | 上海大学 | A New Approach Rate Based Adaptive Sliding Mode Control Method for Manipulator RBF Network |
CN117590754A (en) * | 2024-01-18 | 2024-02-23 | 北京理工大学 | Intelligent learning output regulation and control method of robot system |
CN117590754B (en) * | 2024-01-18 | 2024-05-03 | 北京理工大学 | Intelligent learning output regulation and control method of robot system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110421547B (en) | Double-arm robot cooperative impedance control method based on estimation dynamics model | |
CN112757306B (en) | Inverse solution multi-solution selection and time optimal trajectory planning algorithm for mechanical arm | |
CN111152212B (en) | Mechanical arm movement track planning method and device based on optimal power | |
CN108621158B (en) | A time optimal trajectory planning control method and device for a manipulator | |
CN107891424A (en) | A kind of finite time Neural network optimization for solving redundant mechanical arm inverse kinematics | |
CN115157238B (en) | A dynamic modeling and trajectory tracking method for multi-degree-of-freedom robots | |
CN105598968B (en) | A kind of motion planning and control method of parallel mechanical arm | |
CN114840947A (en) | A constrained three-degree-of-freedom manipulator dynamic model | |
Fischer et al. | Dynamic Task Space Control Enables Soft Manipulators to Perform Real‐World Tasks | |
CN107450317A (en) | A kind of space manipulator self-adapting power control method for coordinating | |
CN113927592B (en) | Mechanical arm force position hybrid control method based on self-adaptive reduced order sliding mode algorithm | |
CN107398903B (en) | Trajectory control method of the executive end of industrial manipulator | |
Furukawa | Time-subminimal trajectory planning for discrete non-linear systems | |
CN114952838B (en) | A trajectory planning method for manipulator joints based on end measurement feedback | |
CN114800521A (en) | Three-degree-of-freedom mechanical arm fixed path point motion control system with constraint | |
CN116736748A (en) | Method for constructing controller of robot and robot | |
Andaluz et al. | Robust control with redundancy resolution and dynamic compensation for mobile manipulators | |
CN109015657A (en) | A kind of final state network optimized approach towards redundant mechanical arm repeating motion planning | |
CN113867157B (en) | Optimal trajectory planning method and device for control compensation and storage device | |
Zürn et al. | Kinematic trajectory following control for constrained deformable linear objects | |
WO2022201377A1 (en) | Robot control device and robot control method | |
Yovchev | Finding the optimal parameters for robotic manipulator applications of the bounded error algorithm for iterative learning control | |
CN115741723A (en) | Precision compensation method for multi-degree-of-freedom snake-shaped mechanical arm | |
Fernandez et al. | Multi-surface admittance control approach applied on robotic assembly of large-scale parts in aerospace manufacturing | |
Kali et al. | Non-singular terminal sliding mode with time delay control for uncertain 2 nd order nonlinear systems |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220802 |