CN111745653A - A planning method for collaborative machining of hull outer plate surface forming based on dual manipulators - Google Patents
A planning method for collaborative machining of hull outer plate surface forming based on dual manipulators Download PDFInfo
- Publication number
- CN111745653A CN111745653A CN202010654350.5A CN202010654350A CN111745653A CN 111745653 A CN111745653 A CN 111745653A CN 202010654350 A CN202010654350 A CN 202010654350A CN 111745653 A CN111745653 A CN 111745653A
- Authority
- CN
- China
- Prior art keywords
- processing
- heating
- heating path
- path
- time
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000003754 machining Methods 0.000 title abstract description 34
- 230000009977 dual effect Effects 0.000 title abstract description 29
- 238000010438 heat treatment Methods 0.000 claims abstract description 157
- 238000012545 processing Methods 0.000 claims abstract description 142
- 230000008569 process Effects 0.000 claims abstract description 20
- 238000005457 optimization Methods 0.000 claims abstract description 15
- 241000257303 Hymenoptera Species 0.000 claims description 23
- 230000001360 synchronised effect Effects 0.000 claims description 12
- 239000000463 material Substances 0.000 claims description 7
- 230000001133 acceleration Effects 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 claims description 4
- 238000000605 extraction Methods 0.000 claims description 3
- 238000012958 reprocessing Methods 0.000 claims 1
- 229910000831 Steel Inorganic materials 0.000 description 4
- 239000010959 steel Substances 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000002860 competitive effect Effects 0.000 description 2
- 238000005065 mining Methods 0.000 description 2
- 230000002028 premature Effects 0.000 description 2
- 238000005452 bending Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000035772 mutation Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- 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/1602—Programme controls characterised by the control system, structure, architecture
- B25J9/1605—Simulation of manipulator lay-out, design, modelling of manipulator
-
- 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/1656—Programme controls characterised by programming, planning systems for manipulators
- B25J9/1664—Programme controls characterised by programming, planning systems for manipulators characterised by motion, path, trajectory planning
-
- 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/1679—Programme controls characterised by the tasks executed
- B25J9/1682—Dual arm manipulator; Coordination of several manipulators
Landscapes
- Engineering & Computer Science (AREA)
- Robotics (AREA)
- Mechanical Engineering (AREA)
- Automation & Control Theory (AREA)
- Manipulator (AREA)
Abstract
本发明提出了一种基于双机械臂的船体外板曲面成形协同加工的规划方法,用以解决目前对多任务规划的方法缺乏统一的分析和任务规划模型,并没有将约束条件考虑到实际的任务分配过程中的问题,具体包括以下步骤:S1、建模分析;S2、通过确定加热路径的加热方向,确定每条加热路径的始末端点,计算出加热路径和加热路径间的距离代价;S3、变量的选择与定义;S4、确定约束条件;S5、确定船体外板曲面成形双机械臂优化目标;S6、对人工蜂群算法进行改进,采用改进的人工蜂群算法进行船体外板曲面成形双机械臂加工任务的分配。本发明采用改进后的人工蜂群算法进行任务规划的求解,有效地解决了双机械臂协同加工的任务分配问题。
The present invention proposes a planning method based on double manipulator arms for hull outer plate surface forming collaborative processing, which is used to solve the lack of a unified analysis and task planning model for the current multi-task planning method, and does not take the constraints into consideration of actual conditions. The problem in the task allocation process includes the following steps: S1, modeling analysis; S2, by determining the heating direction of the heating path, determining the start and end points of each heating path, and calculating the distance cost between the heating path and the heating path; S3 , selection and definition of variables; S4, determine the constraints; S5, determine the optimization goal of the double manipulator arm for the surface forming of the hull outer plate; S6, improve the artificial bee colony algorithm, and use the improved artificial bee colony algorithm to form the surface of the hull outer plate Allocation of machining tasks with dual robotic arms. The invention adopts the improved artificial bee colony algorithm to solve the task planning, and effectively solves the task assignment problem of the cooperative processing of the double mechanical arms.
Description
技术领域technical field
本发明涉及船体外板曲面成形加工规划技术领域,尤其是涉及一种基于双机械臂的船体外板曲面成形协同加工的规划方法。The invention relates to the technical field of hull outer plate curved surface forming processing planning, in particular to a planning method for hull outer plate curved surface forming collaborative processing based on dual robotic arms.
背景技术Background technique
船体是由复杂不可展的空间曲面构成,要将船用钢板加工成船体外板的曲面形状。目前世界各国造船厂采用的方法大都是线状水火船板曲面成形加工工艺。该工艺的原理是,利用钢板局部受高温冷却后产生的热弹塑形变而达到钢板整体的弯曲变形。船体外板曲面成形是利用钢板的弹塑性形变完成加工的一种工艺模式,由于船体外板曲面成形的操作具有一定的危险性,而且对工人的经验要求很高,所以这项技术一直由经验丰富的熟练工手工作业完成。随着现代造船市场竞争的日益激烈,越来越多的造船企业在考虑如何在保证质量的同时,提高造船的速度和效率,显然必须使用熟练工手工操作的船体外板曲面成形工艺是提高造船速度和效率的最大障碍,所以实现船体外板曲面成形工艺的自动化有着重大意义。The hull is composed of complex and non-developable space curved surfaces, and the marine steel plate should be processed into the curved shape of the hull outer plate. At present, most of the methods adopted by shipyards in the world are the curved surface forming process of linear water-fired ship plates. The principle of this process is that the overall bending deformation of the steel plate is achieved by using the thermoelastic plastic deformation generated by the local steel plate being cooled by high temperature. Surface forming of hull outer plate is a process mode that uses the elastic-plastic deformation of the steel plate to complete the processing. Since the operation of the surface forming of the hull outer plate is dangerous and requires high experience of workers, this technology has always been developed by experience. Abundant skilled workers are done by hand. With the increasingly fierce competition in the modern shipbuilding market, more and more shipbuilding enterprises are considering how to improve the speed and efficiency of shipbuilding while ensuring quality. The biggest obstacle to speed and efficiency, so it is of great significance to realize the automation of the hull shell surface forming process.
在船体外板曲面成形工业领域,机械臂以其工作效率高,性能可靠等特点,在船舶制造中得到应用。但是在处理船体外板曲面成形工艺加工中的复杂多样化的任务,单机械臂日益表现出能力不足,而双机械臂通过协同加工,可以完成复杂的工作任务,提高了工作效率。In the field of hull outer plate surface forming industry, the manipulator has been used in shipbuilding due to its high working efficiency and reliable performance. However, in dealing with the complex and diverse tasks in the processing of the surface forming process of the hull outer plate, the single manipulator is increasingly showing insufficient capacity, while the double manipulator can complete complex work tasks through collaborative processing and improve work efficiency.
目前对多任务规划主要通过在工件层面上对任务进行分类,系统中各机械臂的运动通过有协调关系的相关标架的运动变换计算而来,但仍旧缺乏统一的分析和任务规划模型。在实际的任务分配过程中大量的约束条件也并没有考虑进去,如船体外板曲面成形双机械臂在实际加工中的合作、竞争等协同控制问题,因此解决方案不够准确,不能很好地应用到实践中去。因此,研发一种基于双机械臂的船体外板曲面成形协同加工的规划方法显得尤为重要。At present, the multi-task planning is mainly based on the classification of tasks at the workpiece level, and the motion of each manipulator in the system is calculated by the motion transformation of the relevant frames with a coordinated relationship, but there is still a lack of a unified analysis and task planning model. In the actual task assignment process, a large number of constraints have not been taken into account, such as the cooperation and competition of the dual manipulators in the actual processing of the hull outer plate and surface forming. Therefore, the solution is not accurate enough and cannot be applied well. into practice. Therefore, it is particularly important to develop a planning method for the co-processing of hull outer plate surface forming based on dual manipulators.
发明内容SUMMARY OF THE INVENTION
本发明提出一种基于双机械臂的船体外板曲面成形协同加工的规划方法,以解决目前对多任务规划的方法缺乏统一的分析和任务规划模型,并没有将约束条件考虑到实际的任务分配过程中,而导致此解决方案适用性较差的问题,以充分考虑约束条件,以效地解决双机械臂协同加工的任务分配问题,以实现任务规划方法能够很好地应用到实践中去。The present invention proposes a planning method for the co-processing of the hull outer plate surface forming based on double mechanical arms, so as to solve the lack of a unified analysis and task planning model for the current multi-task planning method, and does not take the constraints into account for the actual task assignment In the process, which leads to the problem of poor applicability of this solution, it is necessary to fully consider the constraints to effectively solve the task allocation problem of dual-manipulator collaborative processing, so that the task planning method can be well applied to practice.
本发明的技术方案是这样实现的:The technical scheme of the present invention is realized as follows:
基于双机械臂的船体外板曲面成形协同加工的规划方法,具体包括以下步骤:The planning method for the co-processing of the surface forming of the hull outer plate based on the dual manipulators specifically includes the following steps:
S1、建模分析:根据船体外板曲面成形协加工工艺的要求和对加热路径的提取,获得加热路径的各项特征;S1. Modeling analysis: According to the requirements of the co-processing process of the surface forming of the hull outer plate and the extraction of the heating path, various characteristics of the heating path are obtained;
S2、通过确定加热路径的加热方向,确定每条加热路径的始末端点,计算出加热路径和加热路径间的距离代价;S2, by determining the heating direction of the heating path, determining the start and end points of each heating path, and calculating the distance cost between the heating path and the heating path;
S3、变量的选择与定义:包括已知常量定义、变量定义、机械臂中间变量定义;S3. Selection and definition of variables: including known constant definitions, variable definitions, and intermediate variable definitions of robotic arms;
S4、确定约束条件;S4, determine the constraints;
S5、确定船体外板曲面成形双机械臂优化目标;根据双机械臂加热路径的加工过程中各项中间变量,推导出每台机械臂在工作过程中路径代价,通过路径代价求出空走时间和加工时间,最后确定时间代价,以总时间最小为船体外板曲面成形双机械臂优化目标;S5. Determine the optimization goal of the dual manipulators for the surface forming of the hull outer plate; according to various intermediate variables in the processing of the heating path of the dual manipulators, deduce the path cost of each manipulator during the working process, and obtain the idle time through the path cost. and processing time, and finally determine the time cost, and take the minimum total time as the optimization objective of the double manipulator for surface forming of the hull outer plate;
S6、对人工蜂群算法进行改进,采用改进的人工蜂群算法进行船体外板曲面成形双机械臂加工任务的分配。S6. The artificial bee colony algorithm is improved, and the improved artificial bee colony algorithm is used to allocate the processing tasks of the double manipulators for the surface forming of the hull outer plate.
进一步优化技术方案,所述步骤S1中,加热路径的各项特征包括双机械臂同步加工、依据优化目标竞争加工、错开加工时间、合作加工。To further optimize the technical solution, in the step S1, various features of the heating path include synchronous processing of dual robotic arms, competitive processing according to the optimization target, staggered processing time, and cooperative processing.
进一步优化技术方案,所述步骤S2包括以下步骤:To further optimize the technical solution, the step S2 includes the following steps:
S21、假如s1和s2是在其中一个机械臂的可达范围,隶属于同一机械臂的相邻加热路径,A1、B1为加热路径s1的端点,A2、B2为加热路径s2的端点;S21. If s 1 and s 2 are within the reachable range of one of the manipulators, they belong to the adjacent heating paths of the same manipulator. A 1 and B 1 are the endpoints of the heating path s 1 , and A 2 and B 2 are heating paths. endpoint of path s2 ;
S22、假设先加工加热路径s1,再加工s2;S22. Suppose that the heating path s 1 is processed first, and then the heating path s 2 is processed;
S23、若s1的加工方向为A1→B1,s2的加工方向为A 2→B2,则加热路径的加工次序为B1→A1;S23. If the machining direction of s 1 is A 1 →B 1 , and the machining direction of s 2 is A 2 →B 2 , then the machining order of the heating path is B 1 →A 1 ;
S24、若s1的加工方向为A1→B1,s2的加工方向为B2→A2,则加热路径的加工次序为B1→B2;S24. If the machining direction of s 1 is A 1 →B 1 , and the machining direction of s 2 is B 2 →A 2 , the machining order of the heating path is B 1 →B 2 ;
S25、若s1的加工方向为B1→A1,s2的加工方向为A2→B2,则加热路径的加工次序为A1→A2;S25. If the machining direction of s 1 is B 1 →A 1 , and the machining direction of s 2 is A 2 →B 2 , the machining order of the heating path is A 1 →A 2 ;
S26、若s1的加工方向为B1→A1,s2的加工方向为B2→A2,则加热路径的加工次序为A1→B2。S26. If the machining direction of s 1 is B 1 →A 1 , and the machining direction of s 2 is B 2 →A 2 , the machining order of the heating path is A 1 →B 2 .
进一步优化技术方案,所述步骤S3中,已知变量定义包括定义加工加热路径的ID、每条加工加热路径的长度l、双机械臂定义为R1和R 2、定义机械臂的运动速V;To further optimize the technical solution, in the step S3, the known variable definitions include the ID that defines the processing heating path, the length l of each processing heating path, the dual manipulators are defined as R 1 and R 2 , and the motion speed V of the manipulator is defined. ;
变量定义包括定义加热路径加工方向d、加热路径加工次序x、加热路径所属机械臂ri、加热路径开始加工时间ti、加热路径结束加工时间Ti、加热路径等待时间τi;The variable definition includes defining the processing direction d of the heating path, the processing order x of the heating path, the robot arm ri to which the heating path belongs, the starting processing time t i of the heating path , the finishing processing time Ti of the heating path, and the waiting time τ i of the heating path;
机械臂中间变量定义包括每台机械臂加工的加热路径序列Sj、每台机械臂的加热路径长度序列Lj、每台机械臂的加热路径加工方向序列Dj、每台机械臂的加热路径加工开始、结束时间σj、每台机械臂的等待时间ψj。The definition of the intermediate variables of the manipulator includes the heating path sequence Sj processed by each manipulator, the heating path length sequence L j of each manipulator, the heating path processing direction sequence D j of each manipulator, and the heating path processing of each manipulator. Start and end time σ j , waiting time ψ j of each robot arm.
进一步优化技术方案,所述步骤S4中,约束条件包括同步加工约束条件、安全时间约束条件、可达空间约束条件、碰撞约束条件、运动学约束条件;Further optimizing the technical solution, in the step S4, the constraints include simultaneous processing constraints, safety time constraints, reachable space constraints, collision constraints, and kinematic constraints;
同步加工约束条件是指需要同步加工的两条加热路径开始时间和结束时间一致;安全时间约束条件是指不能在在同一时间内进行加工的两条加热路径,加工中间需要间隔一段时间;可达空间约束条件是指每一台机械臂对于其分配的所有加热路径必须是空间可达的;碰撞约束条件是指机械臂之间的碰撞和机械臂和加工材料之间碰撞;运动学约束条件是指任务规划必须兼顾机械臂实际的速度、加速度约束。The synchronous machining constraint means that the start time and end time of the two heating paths that need to be synchronously processed are the same; the safety time constraint refers to the two heating paths that cannot be processed at the same time, and a period of time is required between processing; The space constraint means that each manipulator must be spatially accessible to all its assigned heating paths; the collision constraint refers to the collision between the manipulators and the collision between the manipulator and the processing material; the kinematics constraints are It means that the task planning must take into account the actual speed and acceleration constraints of the manipulator.
进一步优化技术方案,所述步骤S5中,时间代价包括该机械臂的加工时间、空走时间和等待时间。To further optimize the technical solution, in the step S5, the time cost includes the processing time, idling time and waiting time of the robotic arm.
进一步优化技术方案,所述步骤S6包括以下步骤:To further optimize the technical solution, the step S6 includes the following steps:
S61、初始阶段,先随机生成NP个可行解(x1,x2,…,xNP),作为加工机械臂移动的初始加热路径,机械臂移动的每一组加工路径可以记为Xi,NP表示食物源的数量,引领蜂和跟随蜂的个数等于食物源的数量;S61. In the initial stage, randomly generate NP feasible solutions (x 1 , x 2 ,...,x NP ) as the initial heating path for the movement of the processing robot arm. Each group of processing paths moved by the robot arm can be recorded as X i , NP represents the number of food sources, and the number of leading bees and following bees is equal to the number of food sources;
S62、引领蜂阶段,每一个引领蜂对应一个食物源,并在其周围按式搜索得到一个新的食物源,对加工机械臂移动的加工路径进行实时更新;S62. In the lead bee stage, each lead bee corresponds to a food source, and searches around it to obtain a new food source, and updates the processing path moved by the processing robotic arm in real time;
引领蜂在食物源的位置更新后,比较候选食物源与原始食物源的花蜜丰富程度,如果候选食物源的适应度值高于原始食物源,则用候选食物源替代原始食物源,否则维持原始食物源的位置不发生变化;After the position of the food source is updated, the leading bee compares the nectar abundance of the candidate food source and the original food source. If the fitness value of the candidate food source is higher than that of the original food source, the candidate food source is used to replace the original food source, otherwise the original food source is maintained. The location of the food source does not change;
S63、人工蜂群算法改进,将在人工蜂群算法中引入差分进化搜索策略思想对人工蜂群算法的搜索方程进行改进;S63. Improvement of the artificial bee colony algorithm. The idea of the differential evolution search strategy will be introduced into the artificial bee colony algorithm to improve the search equation of the artificial bee colony algorithm;
S64、跟随蜂阶段,根据引领蜂反馈的食物源丰富程度的信息或者适应度函数值,跟随蜂以轮盘赌的方式选择搜索的食物源,并根据步骤S63中的所述搜索方程搜索机械臂的加工路径;S64. In the follower bee stage, according to the food source abundance information or fitness function value fed back by the lead bee, the follower bee selects the searched food source in a roulette manner, and searches the robotic arm according to the search equation in step S63 processing path;
S65、执行侦查蜂阶段,即所有的引领蜂和跟随蜂完成搜索任务后,判断是否大于开采极限,若是,则引领蜂转化为侦查蜂,在空间随机搜索新的食物源取代原食物源,若不是,则保留原食物源;S65. Execute the scout bee stage, that is, after all the lead bees and follower bees complete the search task, determine whether they are greater than the mining limit. If so, then the lead bees are transformed into scout bees, and randomly search for new food sources to replace the original food sources in the space. No, keep the original food source;
S66、所有的蜜蜂完成搜索任务后,判断是否达到终止条件,如果满足终止条件,则记录机械臂的加工路径,算法终止,否则转步骤S62,则蜂群开始重新搜索,最后将蜂群经过机械臂工作环境中的各条加热路径按顺序连接起来,得到的即为船体外板曲面成形双机械臂任务规划的最优解。S66. After all the bees complete the search task, determine whether the termination condition is met. If the termination condition is met, record the processing path of the robotic arm, and the algorithm terminates. Otherwise, go to step S62, the bee colony starts to search again, and finally the bee colony is passed through the machine The heating paths in the working environment of the arm are connected in sequence, and the optimal solution for the dual manipulator task planning of hull outer plate surface forming is obtained.
进一步优化技术方案,所述步骤S62中,搜索方式如下式:To further optimize the technical solution, in the step S62, the search method is as follows:
vij=xij+rij(xij-xkj)v ij =x ij +r ij (x ij -x kj )
其中,i=1,2,…NP,vij是候选食物源,xkj是随机选择的一只人工蜂,k∈(1,2,…,NP)且k≠i,j∈[1,2,…,D]且是解对应的维数,其余所有变量都将从旧食物源中继承,rij是[-1,1]中的一个随机数,随着迭代次数的不断增加,邻域的半径会逐渐缩小,最终获得最优解。Among them, i=1,2,...NP, v ij is a candidate food source, x kj is a randomly selected artificial bee, k∈(1,2,...,NP) and k≠i,j∈[1, 2,...,D] and is the dimension corresponding to the solution, all other variables will be inherited from the old food source, r ij is a random number in [-1, 1], as the number of iterations increases, the adjacent The radius of the domain will gradually shrink, and finally the optimal solution will be obtained.
进一步优化技术方案,所述步骤S62中,比较候选食物源与原始食物源的花蜜丰富程度为比较机械臂每组加工路径的适应度函数值,通过下式来计算每个食物源的适应度函数值:To further optimize the technical solution, in the step S62, comparing the nectar richness of the candidate food source and the original food source is to compare the fitness function value of each group of processing paths of the robotic arm, and calculate the fitness function of each food source by the following formula value:
进一步优化技术方案,所述步骤S63中,采用的搜索方程如下式:To further optimize the technical solution, in the step S63, the search equation used is as follows:
vij=xij+η[(c1xpj+c2xqj+c3xrj-xij)+(xbj-xij)]v ij =x ij +η[(c 1 x pj +c 2 x qj +c 3 x rj -x ij )+(x bj -x ij )]
其中,xpj、xqj和xrj是随机选取的三个已知解,c1、c2和c3是通过三个已知解的适应度函数值确定的,且c1+c2+c3=1,xbj是当前最优的食物源位置,T表示当前迭代的次数,η是差分变异因子如下式:Among them, x pj , x qj and x rj are three randomly selected known solutions, c 1 , c 2 and c 3 are determined by the fitness function values of the three known solutions, and c 1 +c 2 + c 3 =1, x bj is the current optimal food source location, T represents the current iteration number, and η is the differential variation factor as follows:
式中,a代表一个常数,可以通过调整a的值改变差分变异因子η的变化程度。In the formula, a represents a constant, and the change degree of the differential variation factor η can be changed by adjusting the value of a.
采用了上述技术方案,本发明的有益效果为:Having adopted the above-mentioned technical scheme, the beneficial effects of the present invention are:
本发明将双机械臂的多任务规划建模为一种复杂的多约束的TSP问题,充分考虑船体外板曲面成形双机械臂在实际加工中的合作、竞争等协同控制问题,通过对船体外板曲面成形加热路径的各项特征进行分析,建立双机械臂协同加工任务规划模型,采用改进的人工蜂群算法进行船体外板曲面成形双机械臂加工任务的分配。The invention models the multi-task planning of the dual manipulators as a complex multi-constraint TSP problem, and fully considers the cooperation and competition of the two manipulators in the actual processing of the hull hull plate surface forming. The characteristics of the plate surface forming heating path are analyzed, and the dual-manipulator collaborative processing task planning model is established.
本发明首先通过分析船体外板曲面成形工艺要求,进行双机械臂任务规划建模分析,进而以最短工作时间优化目标,建立船体外板曲面成形双机械臂协同加工任务规划的目标函数。然后针对基本人工蜂群算法存在“早熟”、容易陷入局部最优和迭代后期收敛速度较慢等问题,将在人工蜂群算法中引入差分进化搜索策略思想对人工蜂群算法的搜索方程进行改进,将原始的搜索方程改进成含有当前最优解的复杂多项式形式。由于有当前最优解引导种群,在最优解附近邻域内产生新的候选解,增强了算法的开发能力。The present invention firstly analyzes the process requirements of the hull outer plate surface forming process, carries out the dual manipulator task planning modeling analysis, and then optimizes the target with the shortest working time, and establishes the objective function of the hull outer plate surface forming dual manipulator coordinated processing task planning. Then, aiming at the problems of "premature", easy to fall into local optimum and slow convergence in the late iteration of the basic artificial bee colony algorithm, the differential evolution search strategy idea will be introduced into the artificial bee colony algorithm to improve the search equation of the artificial bee colony algorithm , which improves the original search equation into a complex polynomial form containing the current optimal solution. Since the current optimal solution guides the population, new candidate solutions are generated in the neighborhood of the optimal solution, which enhances the development ability of the algorithm.
而在差分进化思想影响下的迭代初期,差分变异因子较大,有利于扩大搜索空间,提高算法的搜索能力,增加解的多样性,提高种群的开发能力,在迭代后期,差分变异因子逐渐变小,有利于算法收敛到局部最优位置,从而提升收敛精度。采用改进后的人工蜂群算法进行任务规划的求解,有效地解决了双机械臂协同加工的任务分配问题,充分考虑到约束条件,使得任务规划方法能够很好地应用到实践中去,对实现船体外板曲面成形自动化有着重要的意义。In the early stage of the iteration under the influence of the differential evolution idea, the differential variation factor is relatively large, which is conducive to expanding the search space, improving the search ability of the algorithm, increasing the diversity of solutions, and improving the development ability of the population. In the later stage of the iteration, the differential variation factor gradually changes Small, it is beneficial for the algorithm to converge to the local optimal position, thereby improving the convergence accuracy. The improved artificial bee colony algorithm is used to solve the task planning, which effectively solves the task allocation problem of the collaborative processing of the dual manipulators, and fully considers the constraints, so that the task planning method can be well applied in practice. The automation of hull outer plate surface forming is of great significance.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本发明的流程图;Fig. 1 is the flow chart of the present invention;
图2为本发明双机械臂加热路径组合示意图;FIG. 2 is a schematic diagram of the combination of the heating paths of the dual manipulators of the present invention;
图3为本发明加工相邻加热路径组合;FIG. 3 is a combination of adjacent heating paths for processing in the present invention;
图4为本发明确定了加工方向的相邻加热路径;Fig. 4 determines the adjacent heating paths of the processing direction for the present invention;
图5为本发明同步加工示意图;Fig. 5 is the schematic diagram of synchronous processing of the present invention;
图6为本发明改进的人工蜂群算法的具体流程图。FIG. 6 is a specific flow chart of the improved artificial bee colony algorithm of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
一种基于双机械臂的船体外板曲面成形协同加工的规划方法,结合图1至图6所示,具体包括以下步骤:A planning method for co-processing of hull outer plate surface forming based on dual robotic arms, as shown in Figures 1 to 6, specifically includes the following steps:
S1、建模分析。根据船体外板曲面成形协加工工艺的要求和对加热路径的提取,获得加热路径的各项特征。S1, modeling analysis. According to the requirements of the co-processing technology of the surface forming of the hull outer plate and the extraction of the heating path, the characteristics of the heating path are obtained.
步骤S1中,加热路径的各项特征包括双机械臂同步加工、依据优化目标竞争加工、错开加工时间、合作加工。In step S1 , various features of the heating path include synchronous processing with dual manipulators, competitive processing according to the optimization target, staggered processing time, and cooperative processing.
具体地,加热路径之间的特征关系主要有:Specifically, the characteristic relationships between the heating paths are as follows:
1)某些对称的加热路径为了同时变形的目的而需要两台机械臂同步加工;1) Some symmetrical heating paths require simultaneous processing of two robotic arms for the purpose of simultaneous deformation;
2)某些加热路径在双机械臂公共可达区域内,由机械臂依据优化目标竞争加工;2) Some heating paths are in the common reachable area of the dual manipulators, and the manipulators will process them according to the optimization goal;
3)某些加热路径由于工艺的要求(如防止板材变形),不可同时加工,因此需要错开彼此的加工时间;3) Some heating paths cannot be processed at the same time due to process requirements (such as preventing sheet deformation), so it is necessary to stagger each other's processing time;
4)某些加热路径比较长,超过任何一个机械臂的运动运动范围,此时就需要两个机械臂合作加工;4) Some heating paths are relatively long and exceed the motion range of any one robotic arm. At this time, two robotic arms are required to cooperate in processing;
5)某些加热路径存在交叉,就需要将机械臂的加工时间错开。5) Some heating paths are crossed, so it is necessary to stagger the processing time of the robotic arm.
如图2所示,步骤S1具体包括以下内容:As shown in Figure 2, step S1 specifically includes the following contents:
R1、R2分别代表了两台机械臂的专有可达空间,I为两个机械臂的共享可达空间,在共享可达空间中的加热路径中由加工工艺要求分为竞争加热路径、同步加热路径、时间互斥加热路径、交叉加热路径,具体分析如下表:R 1 and R 2 represent the exclusive reachable space of the two manipulators respectively, I is the shared reachable space of the two manipulators, and the heating path in the shared reachable space is divided into competing heating paths according to the processing requirements , synchronous heating path, time exclusive heating path, cross heating path, the specific analysis is as follows:
S2、确定加热路径的加热方向。通过确定各条加热路径的加热方向,确定每条加热路径的始末端点,计算出加热路径和加热路径间的距离代价。本步骤在确定加热路径的加工方向后,就能唯一确定加热路径间的距离代价w(si,sj)。S2. Determine the heating direction of the heating path. By determining the heating direction of each heating path, determining the start and end points of each heating path, and calculating the distance cost between the heating path and the heating path. In this step, after the machining direction of the heating path is determined, the distance cost w(s i , s j ) between the heating paths can be uniquely determined.
如图3和图4所示,步骤S2包括以下步骤:As shown in Figure 3 and Figure 4, step S2 includes the following steps:
S21、假如s1和s2是在其中一个机械臂的可达范围,隶属于同一机械臂的相邻加热路径,A1、B1为加热路径s1的端点,A2、B2为加热路径s2的端点。S21. If s 1 and s 2 are within the reachable range of one of the manipulators, they belong to the adjacent heating paths of the same manipulator. A 1 and B 1 are the endpoints of the heating path s 1 , and A 2 and B 2 are heating paths. endpoint of path s2 .
S22、假设先加工加热路径s1,再加工s2,在图2中所示加热路径。S22. Suppose that the heating path s 1 is processed first, and then the heating path s 2 is processed. The heating path is shown in FIG. 2 .
S23、若s1的加工方向为A1→B1,s2的加工方向为A2→B2,则加热路径的加工次序为B1→A1。S23. If the machining direction of s 1 is A 1 →B 1 , and the machining direction of s 2 is A 2 →B 2 , the machining sequence of the heating path is B 1 →A 1 .
S24、若s1的加工方向为A1→B1,s2的加工方向为B2→A2,则加热路径的加工次序为B1→B2。S24. If the machining direction of s 1 is A 1 →B 1 , and the machining direction of s 2 is B 2 →A 2 , the machining sequence of the heating path is B 1 →B 2 .
S25、若s1的加工方向为B1→A1,s2的加工方向为A2→B2,则加热路径的加工次序为A1→A2。S25. If the machining direction of s 1 is B 1 →A 1 , and the machining direction of s 2 is A 2 →B 2 , the machining sequence of the heating path is A 1 →A 2 .
S26、若s1的加工方向为B1→A1,s2的加工方向为B2→A2,则加热路径的加工次序为A1→B2。S26. If the machining direction of s 1 is B 1 →A 1 , and the machining direction of s 2 is B 2 →A 2 , the machining order of the heating path is A 1 →B 2 .
步骤S26通过确定各条加热路径的方向,就可以确定每条加热路径的始末端点,就可以计算出加热路径s1和加热路径s2间的距离代价,记为w(s1,s2),在确定加热路径的加工方向后,就能唯一确定加热路径间的距离代价。如图3所示,当确定了s1的加热路径的加工方向为A1→B1,s2的加热路径的加工方向为A2→B2,就可以确定s1、s2两条加热路径的加工次序B1→A1。In step S26, by determining the direction of each heating path, the start and end points of each heating path can be determined, and the distance cost between the heating path s 1 and the heating path s 2 can be calculated, which is denoted as w(s 1 , s 2 ) , after determining the processing direction of the heating path, the distance cost between the heating paths can be uniquely determined. As shown in FIG. 3 , when the machining direction of the heating path of s 1 is determined as A 1 →B 1 , and the machining direction of the heating path of s 2 is A 2 →B 2 , the two heating paths s 1 and s 2 can be determined. The machining sequence of the path is B 1 →A 1 .
S3、变量的选择与定义:包括已知常量定义、变量定义、机械臂中间变量定义。S3. Selection and definition of variables: including known constant definitions, variable definitions, and intermediate variable definitions of robotic arms.
步骤S3中,已知变量定义包括定义加工加热路径的ID、每条加工加热路径的长度l、双机械臂定义为R1和R2、定义机械臂的运动速V。In step S3, the known variable definition includes defining the ID of the processing heating path, the length l of each processing heating path, defining the dual robotic arms as R 1 and R 2 , and defining the moving speed V of the robotic arm.
变量定义包括定义加热路径加工方向d、加热路径加工次序x、加热路径所属机械臂ri、加热路径开始加工时间ti、加热路径结束加工时间Ti、加热路径等待时间τi。The variable definition includes defining the heating path processing direction d, the heating path processing order x, the robot arm ri to which the heating path belongs, the heating path start processing time ti , the heating path ending processing time Ti , and the heating path waiting time τ i .
机械臂中间变量定义,每台机械臂加工的加热路径序列、每台机械臂的加热路径长度序列、每台机械臂的加热路径加工方向序列、每台机械臂的加热路径加工开始、结束时间、每台机械臂的等待时间。The definition of the intermediate variables of the manipulator, the heating path sequence processed by each manipulator, the length sequence of the heating path of each manipulator, the processing direction sequence of the heating path of each manipulator, the processing start and end time of the heating path of each manipulator, Waiting time for each robotic arm.
步骤S3具体包括以下步骤:Step S3 specifically includes the following steps:
S31、已知常量定义。主要常量的定义如下表:S31. Definition of known constants. The main constants are defined in the following table:
S32、变量定义。主要变量的定义如下表:S32, variable definition. The main variables are defined in the following table:
S33、机械臂中间变量定义。中间变量的定义如下表:S33, the definition of the intermediate variable of the manipulator. Intermediate variables are defined in the following table:
S4、确定约束条件。步骤S4中,约束条件包括同步加工约束条件、安全时间约束条件、可达空间约束条件、碰撞约束条件、运动学约束条件。S4, determine the constraints. In step S4, the constraints include simultaneous processing constraints, safe time constraints, reachable space constraints, collision constraints, and kinematic constraints.
同步加工约束条件是指需要同步加工的两条加热路径开始时间和结束时间一致;安全时间约束条件是指不能在在同一时间内进行加工的两条加热路径,加工中间需要间隔一段时间;可达空间约束条件是指每一台机械臂对于其分配的所有加热路径必须是空间可达的;碰撞约束条件是指机械臂之间的碰撞和机械臂和加工材料之间碰撞;运动学约束条件是指任务规划必须兼顾机械臂实际的速度、加速度约束。The synchronous machining constraint means that the start time and end time of the two heating paths that need to be synchronously processed are the same; the safety time constraint refers to the two heating paths that cannot be processed at the same time, and a period of time is required between processing; The space constraint means that each manipulator must be spatially accessible to all its assigned heating paths; the collision constraint refers to the collision between the manipulators and the collision between the manipulator and the processing material; the kinematics constraints are It means that the task planning must take into account the actual speed and acceleration constraints of the manipulator.
步骤S4中目标优化中存在包括的约束条件如下表:The constraints included in the objective optimization in step S4 are as follows:
步骤S4包括以下步骤:Step S4 includes the following steps:
S41、同步加工约束的确定。为了保证加工工艺得要求,有些加热路径需要同步加工,如图4所示为同步加工示意图。同步加工要求两条加热路径的开始时间、结束时间一致,对于同步加热路径si,sj,要求ti=tj,Ti=Tj,其中i,j∈S。S41. Simultaneous processing constraints ok. In order to ensure the requirements of the processing technology, some heating paths need to be processed synchronously, as shown in Figure 4 for the schematic diagram of synchronous processing. Simultaneous processing requires the same start time and end time of the two heating paths. For the synchronous heating paths s i , s j , it is required that t i =t j , Ti =T j , where i ,j∈S.
S42、安全时间约束的的确定。由于船体外板曲面成形加工工艺得要求,防止局部温度过高,导致板材的材质受到损坏,某些加热路径不能在在同一时间内进行加工,加热路径的加工时中间需要间隔一段时间。所以在出现这些加热路径同时加工时,则需要其中一台机械臂必须停下来等待其中一台机械臂加工完成后在进行加工。在实际的加工中,对于时间互斥的加热路径,需要满足式(1)。S42. Safety time-constrained ok. Due to the requirements of the surface forming process of the hull outer plate, the local temperature is too high to prevent the material of the plate from being damaged. Some heating paths cannot be processed at the same time, and the processing of the heating paths needs to be separated for a period of time. Therefore, when these heating paths are processed at the same time, one of the robotic arms must stop and wait for one of the robotic arms to complete the processing before processing. In actual processing, it is necessary to satisfy Equation (1) for the mutually exclusive heating paths in time.
Ti<tj‖Tj<ti(i,j∈S) 式(1)T i <t j ‖T j <t i (i,j∈S) Equation (1)
S43、可达空间约束的确定。在双机械臂的任务规划中每一台机械臂,对于它分配所有加热路径必须是空间可达的,对于衡量一条加热路径是否可达,采用的方法是在对加热路径信息提取时所获得的一系列离散的加热路径特征点,然后根据机械臂的D-H参数和逆解,计算每一个点是否在加热路径所分配机械臂的可达空间内,如果每一点都在,此加热路径就在所属机械臂的可达空间内。对于合作加热路径,可以将其分为两段加热路径,然后分别在对应机械臂可达空间即可。记加热路径si所属机械臂可达空间为Rj(q),q为机械臂的关节的运动范围,需要满足:si∈Rj(q),其中i∈S,j=1、2。S43. Reachable space constraints ok. In the task planning of the dual manipulators, each manipulator must be spatially accessible for all the heating paths allocated to it. To measure whether a heating path is reachable, the method used is obtained when extracting the heating path information. A series of discrete heating path feature points, and then according to the DH parameters of the robot arm and the inverse solution, calculate whether each point is within the reachable space of the robot arm assigned by the heating path. If each point is there, the heating path belongs to within the reach of the robotic arm. For the cooperative heating path, it can be divided into two sections of heating path, and then the corresponding robot arm can reach the space respectively. Denote the reachable space of the robotic arm to which the heating path si belongs as R j (q), and q is the motion range of the joint of the robotic arm, which needs to satisfy: s i ∈ R j (q), where i ∈ S, j=1, 2 .
S44、碰撞约束的确定。在实际的加工中机械臂和代加工材料都是刚性物体,一旦发生碰撞将造成机械臂损坏等严重后果,船体外板曲面成形双机械臂的碰撞包括机械臂之间的碰撞和机械臂和加工材料之间碰撞。令加工材料所占用空间为Rwp,机械臂1此时所在的空间为R1(q1),q1为机械臂1当前关节向量,机械臂2此时所在的空间为R2(q2),q2为机械臂2当前关节向量,需要满足式(2)。S44. Collision constraint ok. In actual processing, both the manipulator and the processing material are rigid objects. Once a collision occurs, it will cause serious consequences such as damage to the manipulator. The collision of the double manipulators for the surface forming of the hull outer plate includes the collision between the manipulators and the manipulator and the processing. collisions between materials. Let the space occupied by the processing material be R wp , the space where the
Rwp∩R1(q1)=φ,Rwp∩R2(q2)=φ,R1(q1)∩R2(q2)=φ 式(2)R wp ∩R 1 (q 1 )=φ, R wp ∩R 2 (q 2 )=φ, R 1 (q 1 )∩R 2 (q 2 )=φ Equation (2)
S45、运动学约束的确定,令vij(t)为机械臂i第j关节当前速度,Vij为机械臂i第j关节速度范围,aij(t)为机械臂i第j关节当前加速度,Aij为机械臂i第j关节加速度范围,则需要满足式(3),式中i=1、2,j∈机械臂i关节角个数。S45, kinematic constraints to determine, let v ij (t) be the current speed of the jth joint of the manipulator i, V ij be the speed range of the jth joint of the manipulator i, a ij (t) be the current acceleration of the jth joint of the manipulator i, and A ij be the mechanical The acceleration range of the jth joint of arm i needs to satisfy formula (3), where i=1, 2, j∈ the number of joint angles of arm i.
vij(t)∈Vij,aij(t)∈Aij 式(3)。v ij (t)∈V ij , a ij (t)∈A ij Formula (3).
S5、确定船体外板曲面成形双机械臂优化目标;根据双机械臂加热路径的加工过程中各项中间变量,推导出每台机械臂在工作过程中路径代价,通过路径代价求出空走时间和加工时间,最后确定时间代价,以总时间最小为船体外板曲面成形双机械臂优化目标。本步骤中首先确定每台机械臂在工作过程中路径代价UWj和时间代价UTj,然后再确定双机械臂任务规划的优化目标U。S5. Determine the optimization goal of the dual manipulators for the surface forming of the hull outer plate; according to various intermediate variables in the processing of the heating path of the dual manipulators, deduce the path cost of each manipulator during the working process, and obtain the idle time through the path cost. and processing time, and finally determine the time cost, taking the minimum total time as the optimization objective of the double manipulator for surface forming of the hull outer plate. In this step, first determine the path cost U Wj and time cost U Tj of each manipulator in the working process, and then determine the optimization objective U of the dual manipulator task planning.
步骤S5中,时间代价包括该机械臂的加工时间、空走时间和等待时间。In step S5, the time cost includes the processing time, idle time and waiting time of the robot arm.
步骤S5包括以下步骤:Step S5 includes the following steps:
S51、根据双机械臂加热路径加工过程中的各项中间变量,可以推导出每台机械臂在工作过程中路径代价UWj和时间代价UTj,如式(4)和式(5),其中路程代价为该机械臂所走的路径和,在确定机械臂的路径之后,可以根据机械臂的加工速度和空走速度确定加工时间和空走时间。S51. According to various intermediate variables during the processing of the heating path of the dual manipulators, the path cost U Wj and the time cost U Tj of each manipulator in the working process can be deduced, as shown in formula (4) and formula (5), where The distance cost is the sum of the path traveled by the robot arm. After the path of the robot arm is determined, the processing time and the idle time can be determined according to the processing speed and idle speed of the robot arm.
S52、双机械臂任务规划的优化目标确定,对于某种加热路径路径组合而言,加工时间由两台机械臂中加工时间最长的机械臂决定,该机械臂的加工时间就是整个加工过程的时间如式(6),优化目标是使U最小,即求minU。S52. The optimization goal of the task planning of the dual manipulators is determined. For a certain heating path combination, the processing time is determined by the manipulator with the longest processing time among the two manipulators, and the processing time of the manipulator is the entire processing time. The time is as in formula (6), and the optimization goal is to minimize U, that is, to find minU.
U=maxj=1、2{UTj(r,x,d,l,v,τ)} 式(6)U=max j=1, 2 {U Tj (r,x,d,l,v,τ)} Equation (6)
S6、基本人工蜂群算法存在“早熟”、容易陷入局部最优和迭代后期收敛速度较慢等问题,因此对人工蜂群算法进行改进,采用改进的人工蜂群算法进行船体外板曲面成形双机械臂加工任务的分配。采用改进的人工蜂群算法任务规划求解,算法流程图如图5所示,在人工蜂群算法的跟随蜂阶段引入差分的思想,对人工蜂群算法的搜索方程进行改进,将原始的搜索方程改进成含有当前最优解的复杂多项式形式,通过改进跟随蜂阶段的搜索方式对船体外板曲面成形双机械臂多任务规划进行寻优,求得最优双机械臂加工任务分配方式。S6. The basic artificial bee colony algorithm has problems such as "premature", easy to fall into local optimum and slow convergence in the later stage of iteration. Therefore, the artificial bee colony algorithm is improved, and the improved artificial bee colony algorithm is used to form the hull outer plate surface Allocation of machining tasks for robotic arms. The improved artificial bee colony algorithm is used to solve the task planning. The algorithm flowchart is shown in Figure 5. The idea of difference is introduced in the follower bee stage of the artificial bee colony algorithm, and the search equation of the artificial bee colony algorithm is improved. The original search equation It is improved into a complex polynomial form containing the current optimal solution. By improving the search method in the follower bee stage, the multi-task planning of the hull hull plate surface forming dual manipulator is optimized, and the optimal dual manipulator processing task assignment method is obtained.
步骤S6包括以下步骤:Step S6 includes the following steps:
S61、初始阶段,先随机生成NP个可行解(x1,x2,…,xNP),作为加工机械臂移动的初始加热路径,机械臂移动的每一组加工路径可以记为Xi,如式(5),式中NP表示食物源的数量,引领蜂和跟随蜂的个数等于食物源的数量。每组移动的加工路径Xi中的每个元素与建立的任务规划模型中的加热路径相对应。S61. In the initial stage, randomly generate NP feasible solutions (x 1 , x 2 ,...,x NP ) as the initial heating path for the movement of the processing robot arm. Each group of processing paths moved by the robot arm can be recorded as X i , As in formula (5), where NP represents the number of food sources, and the number of leading bees and follower bees is equal to the number of food sources. Each element in each set of moving machining paths X i corresponds to the heating path in the established task planning model.
Xi=(xi1,xi2,…,xiD)(i=1,2,…,NP) 式(5)。X i =(x i1 ,x i2 ,...,x iD )(i=1,2,...,NP) Formula (5).
S62、引领蜂阶段,每一个引领蜂对应一个食物源,并在其周围按式搜索得到一个新的食物源,对加工机械臂移动的加工路径进行实时更新,其搜索方式如式(6)。S62. In the lead bee stage, each lead bee corresponds to a food source, and searches around it to obtain a new food source, and updates the processing path moved by the processing robotic arm in real time. The search method is as shown in formula (6).
vij=xij+rij(xij-xkj) 式(6)v ij =x ij +r ij (x ij -x kj ) Equation (6)
其中i=1,2,…NP,vij是候选食物源,xkj是随机选择的一只人工蜂,k∈(1,2,…,NP)且k≠i,j∈[1,2,…,D]且是解对应的维数,其余所有变量都将从旧食物源中继承,rij是[-1,1]中的一个随机数,随着迭代次数的不断增加,邻域的半径会逐渐缩小,最终获得最优解。where i=1,2,...NP, v ij is a candidate food source, x kj is a randomly selected artificial bee, k∈(1,2,...,NP) and k≠i,j∈[1,2 ,…,D] and is the dimension corresponding to the solution, all other variables will be inherited from the old food source, r ij is a random number in [-1, 1], with the increasing number of iterations, the neighborhood The radius will gradually shrink, and finally the optimal solution will be obtained.
引领蜂在食物源的位置更新后,比较候选食物源与原始食物源的花蜜丰富程度,如果候选食物源的适应度值高于原始食物源,则用候选食物源替代原始食物源,否则维持原始食物源的位置不发生变化。After the position of the food source is updated, the leading bee compares the nectar abundance of the candidate food source and the original food source. If the fitness value of the candidate food source is higher than that of the original food source, the candidate food source is used to replace the original food source, otherwise the original food source is maintained. The location of the food source does not change.
步骤S62中,比较候选食物源与原始食物源的花蜜丰富程度为比较机械臂每组加工路径的适应度函数值,通过下式来计算每个食物源的适应度函数值:In step S62, comparing the nectar richness of the candidate food source and the original food source is to compare the fitness function value of each group of processing paths of the robotic arm, and the fitness function value of each food source is calculated by the following formula:
S63、人工蜂群算法改进,在原始的人工蜂群算法中,跟随蜂和引领蜂都采用相同的搜索策略,搜索策略具有较好的全局搜索能力,而忽略了算法的局部搜索性能,为了进一步提高人工蜂群算法的搜索能力,增加种群的多样性,将差分进化算法中变异的思想引入到搜索策略中,得到新的搜索方程如式(8);S63. Improvement of the artificial bee colony algorithm. In the original artificial bee colony algorithm, the following bees and the leading bees both use the same search strategy. The search strategy has better global search ability, but ignores the local search performance of the algorithm. In order to further Improve the search ability of the artificial bee colony algorithm, increase the diversity of the population, introduce the idea of mutation in the differential evolution algorithm into the search strategy, and obtain a new search equation such as formula (8);
vij=xij+η[(c1xpj+c2xqj+c3xrj-xij)+(xbj-xij)] 式(8)v ij =x ij +η[(c 1 x pj +c 2 x qj +c 3 x rj -x ij )+(x bj -x ij )] Equation (8)
其中xpj、xqj和xrj是随机选取的三个已知解,c1、c2和c3是通过三个已知解的适应度函数值确定的,且c1+c2+c3=1,xbj是当前最优的食物源位置,T表示当前迭代的次数,η是差分变异因子如式(9)。where x pj , x qj and x rj are three randomly selected known solutions, c 1 , c 2 and c 3 are determined by the fitness function values of the three known solutions, and c 1 +c 2 +c 3 = 1, x bj is the current optimal food source position, T represents the number of current iterations, and η is the differential variation factor as in formula (9).
式(9)中,a代表一个常数,可以通过调整a的值改变差分变异因子η的变化程度。In formula (9), a represents a constant, and the variation degree of the differential variation factor η can be changed by adjusting the value of a.
由新的搜索方程可知,通过根据随机选取的三个已知解的适应度函数值确定c1、c2和c3的值极大地增加种群的多样性;由于有种群当前最优解xbj引导种群,在最优解附近邻域内产生新的候选解,从而更能提高算法的开发能力。差分变异因子η随着迭代次数的增加而逐渐减小,差分变异因子越小,蜂群的搜索范围就越小。在迭代初期,差分变异因子较大,有利于扩大搜索空间,提高算法的全局搜索能力,增加解的多样性,提高算法的开发能力,而在迭代后期,差分变异因子逐渐变小,有利于算法收敛到局部最优位置,从而提升收敛精度。It can be seen from the new search equation that determining the values of c 1 , c 2 and c 3 according to the fitness function values of the three randomly selected known solutions greatly increases the diversity of the population; Guide the population and generate new candidate solutions in the neighborhood of the optimal solution, which can improve the development ability of the algorithm. The differential variation factor η gradually decreases with the increase of the number of iterations. The smaller the differential variation factor is, the smaller the search range of the bee colony is. In the early stage of iteration, the differential variation factor is relatively large, which is conducive to expanding the search space, improving the global search ability of the algorithm, increasing the diversity of solutions, and improving the development ability of the algorithm. Convergence to the local optimal position, thereby improving the convergence accuracy.
S64、跟随蜂阶段,根据引领蜂反馈的食物源丰富程度的信息或者适应度函数值的大小,跟随蜂以轮盘赌的方式选择搜索的食物源,并根据步骤S63中的搜索方程搜索机械臂的加工路径。S64. In the follower bee stage, the follower bee selects the searched food source in a roulette manner according to the food source abundance information or the fitness function value fed back by the lead bee, and searches the robotic arm according to the search equation in step S63 processing path.
S65、执行侦查蜂阶段,即所有的引领蜂和跟随蜂完成搜索任务后,判断是否大于开采极限limit。若是,则引领蜂转化为侦查蜂,在空间随机搜索新的食物源取代原食物源,若不是,则保留原食物源。S65. Execute the reconnaissance bee stage, that is, after all the lead bees and follower bees complete the search task, determine whether it is greater than the mining limit limit. If so, the lead bee will be transformed into a scout bee, and a new food source will be randomly searched in space to replace the original food source. If not, the original food source will be retained.
S66、所有的蜜蜂完成搜索任务后,判断是否达到终止条件。终止条件是达到最大迭代次数或达到目标精度。如果满足终止条件,则记录机械臂的加工路径,算法终止,否则转步骤S62,则蜂群开始重新搜索,最后将蜂群经过机械臂工作环境中的各条加热路径按顺序连接起来,得到的即为船体外板曲面成形双机械臂任务规划的最优解。S66: After all the bees complete the search task, determine whether the termination condition is reached. The termination condition is reaching the maximum number of iterations or reaching the target accuracy. If the termination condition is met, the processing path of the robotic arm is recorded, and the algorithm is terminated; otherwise, go to step S62, the bee colony starts to search again, and finally the bee colony is connected in sequence through the heating paths in the working environment of the robotic arm. It is the optimal solution for the task planning of dual manipulators for hull outer plate surface forming.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the present invention. within the scope of protection.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010654350.5A CN111745653B (en) | 2020-07-09 | 2020-07-09 | Planning method for hull plate curved surface forming cooperative processing based on double mechanical arms |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010654350.5A CN111745653B (en) | 2020-07-09 | 2020-07-09 | Planning method for hull plate curved surface forming cooperative processing based on double mechanical arms |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111745653A true CN111745653A (en) | 2020-10-09 |
CN111745653B CN111745653B (en) | 2022-01-14 |
Family
ID=72710033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010654350.5A Active CN111745653B (en) | 2020-07-09 | 2020-07-09 | Planning method for hull plate curved surface forming cooperative processing based on double mechanical arms |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111745653B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113985899A (en) * | 2021-11-25 | 2022-01-28 | 江苏科技大学 | Global path planning method for underwater robot based on interval multi-objective optimization |
CN114700944A (en) * | 2022-04-06 | 2022-07-05 | 南京航空航天大学 | Heterogeneous task-oriented double-robot collaborative path planning method |
CN116968037A (en) * | 2023-09-21 | 2023-10-31 | 杭州芯控智能科技有限公司 | Multi-mechanical-arm cooperative task scheduling method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101134196B1 (en) * | 2011-01-28 | 2012-04-09 | 강원대학교산학협력단 | Optimal designing method and device of location area planning using artifical bee colony in wireless communication network |
CN104808665A (en) * | 2015-04-16 | 2015-07-29 | 上海大学 | Multi robot path planning method based on multi-target artificial bee colony algorithm |
CN109159127A (en) * | 2018-11-20 | 2019-01-08 | 广东工业大学 | A kind of double welding robot intelligence paths planning methods based on ant group algorithm |
CN110743976A (en) * | 2019-10-21 | 2020-02-04 | 江苏科技大学 | Ship body outer plate curved surface forming equipment based on double mechanical arms and implementation method thereof |
-
2020
- 2020-07-09 CN CN202010654350.5A patent/CN111745653B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101134196B1 (en) * | 2011-01-28 | 2012-04-09 | 강원대학교산학협력단 | Optimal designing method and device of location area planning using artifical bee colony in wireless communication network |
CN104808665A (en) * | 2015-04-16 | 2015-07-29 | 上海大学 | Multi robot path planning method based on multi-target artificial bee colony algorithm |
CN109159127A (en) * | 2018-11-20 | 2019-01-08 | 广东工业大学 | A kind of double welding robot intelligence paths planning methods based on ant group algorithm |
CN110743976A (en) * | 2019-10-21 | 2020-02-04 | 江苏科技大学 | Ship body outer plate curved surface forming equipment based on double mechanical arms and implementation method thereof |
Non-Patent Citations (2)
Title |
---|
周晟: "双臂协作票据处理机器人设计及运动轨迹优化", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
王郑拓 等: "基于人工蜂群算法的双机器人路径规划分析", 《焊接学报》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113985899A (en) * | 2021-11-25 | 2022-01-28 | 江苏科技大学 | Global path planning method for underwater robot based on interval multi-objective optimization |
CN113985899B (en) * | 2021-11-25 | 2023-09-22 | 江苏科技大学 | Underwater robot global path planning method based on interval multi-objective optimization |
CN114700944A (en) * | 2022-04-06 | 2022-07-05 | 南京航空航天大学 | Heterogeneous task-oriented double-robot collaborative path planning method |
CN114700944B (en) * | 2022-04-06 | 2023-11-24 | 南京航空航天大学 | A dual-robot collaborative path planning method for heterogeneous tasks |
CN116968037A (en) * | 2023-09-21 | 2023-10-31 | 杭州芯控智能科技有限公司 | Multi-mechanical-arm cooperative task scheduling method |
CN116968037B (en) * | 2023-09-21 | 2024-01-23 | 杭州芯控智能科技有限公司 | Multi-mechanical-arm cooperative task scheduling method |
Also Published As
Publication number | Publication date |
---|---|
CN111745653B (en) | 2022-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108919760B (en) | A dynamic linkage control method for autonomous production process of intelligent workshop based on digital twin | |
CN111745653A (en) | A planning method for collaborative machining of hull outer plate surface forming based on dual manipulators | |
Sang et al. | Intelligent factory many-objective distributed flexible job shop collaborative scheduling method | |
CN111113409B (en) | A multi-robot and multi-station cooperative spot welding planning method based on step-by-step optimization | |
Zhou et al. | Multi-robot multi-station cooperative spot welding task allocation based on stepwise optimization: An industrial case study | |
CN110134062B (en) | A Reinforcement Learning-Based Method for Machining Path Optimization of Multi-axis CNC Machine Tools | |
CN104020665A (en) | Minimum saltus trajectory optimization method of mechanical arm based on multi-objective particle swarm optimization algorithm | |
CN108608425B (en) | Off-line programming method and system for milling of six-axis industrial robot | |
CN113341706B (en) | Man-machine cooperation assembly line system based on deep reinforcement learning | |
CN111985672A (en) | Single-piece job shop scheduling method for multi-Agent deep reinforcement learning | |
Balakrishna et al. | On-policy robot imitation learning from a converging supervisor | |
He et al. | Immune optimization based multi-objective six-DOF trajectory planning for industrial robot manipulators | |
CN112257297B (en) | Welding shop comprehensive scheduling method based on improved firework algorithm | |
CN116872212A (en) | Double-mechanical-arm obstacle avoidance planning method based on A-Star algorithm and improved artificial potential field method | |
CN115431267A (en) | Industrial robot curved surface machining method based on region division | |
CN112364526B (en) | Fuzzy batch scheduling method and system based on drosophila algorithm | |
Nicola et al. | Optimal task positioning in multi-robot cells, using nested meta-heuristic swarm algorithms | |
CN117492446A (en) | A multi-agent cooperative planning method and system based on combinatorial hybrid optimization | |
CN108469746B (en) | Workpiece placement planning method for robot simulation system | |
Sobaszek | A lean robotics approach to the scheduling of robotic adhesive dispensing process | |
CN116000952B (en) | Optimal initial processing pose determination method during double-robot cooperative spraying | |
Zhang et al. | A Dual‐Thread Method for Time‐Optimal Trajectory Planning in Joint Space Based on Improved NGA | |
Tang et al. | A control method of CSPS system without considering delay time | |
CN117234084A (en) | Milling robot processing track optimization method, system, storage medium and equipment | |
Singh et al. | Hybrid Robot Learning for Automatic Robot Motion Planning in Manufacturing |
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 |