[go: up one dir, main page]

CN108161941A - A kind of robot trajectory's optimization method and device for applying to timber spraying industry - Google Patents

A kind of robot trajectory's optimization method and device for applying to timber spraying industry Download PDF

Info

Publication number
CN108161941A
CN108161941A CN201810183141.XA CN201810183141A CN108161941A CN 108161941 A CN108161941 A CN 108161941A CN 201810183141 A CN201810183141 A CN 201810183141A CN 108161941 A CN108161941 A CN 108161941A
Authority
CN
China
Prior art keywords
spraying
timber
workpiece
preset
robot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810183141.XA
Other languages
Chinese (zh)
Other versions
CN108161941B (en
Inventor
黄小桐
宋亚男
徐荣华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201810183141.XA priority Critical patent/CN108161941B/en
Publication of CN108161941A publication Critical patent/CN108161941A/en
Application granted granted Critical
Publication of CN108161941B publication Critical patent/CN108161941B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • B25J9/1664Programme controls characterised by programming, planning systems for manipulators characterised by motion, path, trajectory planning

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Application Of Or Painting With Fluid Materials (AREA)
  • Manipulator (AREA)
  • Spray Control Apparatus (AREA)

Abstract

本发明实施例公开了一种运用于木材喷涂行业的机器人轨迹优化方法及装置,包括:101、获取木材的点云数据;102、获取喷涂工件的参数,并确定喷涂工件在木材上方的预置距离h;103、根据喷涂工件的参数和预置距离h,通过预置第一公式计算喷涂工件在木材上涂层积累的速率,其中预置第一公式为:其中,R为喷涂半径,A为常数,r为平面上任意一点s至沿喷射方向喷涂工件中心投影点的距离;104、根据喷涂工件在木材上涂层积累的速率,确定相邻两个喷涂行程的涂层重叠区域宽度,得到相邻两个喷涂行程的间隙;105、根据相邻两个喷涂行程的间隙,生成基于N字型的机器人运动轨迹。

The embodiment of the present invention discloses a robot trajectory optimization method and device used in the wood spraying industry, including: 101. Acquiring the point cloud data of the wood; 102. Acquiring the parameters of the sprayed workpiece and determining the preset position of the sprayed workpiece above the wood Distance h; 103. According to the parameters of the sprayed workpiece and the preset distance h, the rate of coating accumulation of the sprayed workpiece on the wood is calculated by the preset first formula, wherein the preset first formula is: Among them, R is the spraying radius, A is a constant, and r is the distance from any point s on the plane to the projection point of the center of the sprayed workpiece along the spraying direction; 104. According to the rate of coating accumulation of the sprayed workpiece on the wood, determine two adjacent sprayings The width of the coating overlapping area of the strokes is used to obtain the gap between two adjacent spraying strokes; 105. According to the gap between two adjacent spraying strokes, an N-shaped robot motion trajectory is generated.

Description

一种运用于木材喷涂行业的机器人轨迹优化方法及装置A robot trajectory optimization method and device used in wood spraying industry

技术领域technical field

本发明涉及机器人轨迹优化技术领域,尤其涉及一种运用于木材喷涂行业的机器人轨迹优化方法、装置及机器人。The invention relates to the technical field of robot trajectory optimization, in particular to a robot trajectory optimization method, device and robot used in the wood spraying industry.

背景技术Background technique

木材喷涂机器人的轨迹优化作为机器人喷涂行业的一个重要的应用领域,受到了广大工控行业研究者的广泛关注。喷涂机器人轨迹的优化作为机器人喷涂行业的核心内容,其轨迹的精确度、稳定性、合理性、通用性一直都是很具有研究意义的部分,以提高生产效率、喷涂质量、改善工人的工作条件都起到了关键性的作用。随着世界各国对喷涂机器人自动化需求的日益重视,喷涂机器人的喷涂效果与物体表面形状、喷涂过程参数等诸多因素有关。为了达到新的喷涂作业标准,实现高效低成本的生产目标,对新喷涂建模的分析以及高性能喷涂机器人轨迹优化算法、控制策略的研究已成为国内外学者们关注的热点。As an important application field in the robot spraying industry, the trajectory optimization of wood spraying robots has attracted extensive attention from researchers in the industrial control industry. As the core content of the robot spraying industry, the optimization of the trajectory of the spraying robot has always been a part of great research significance for the accuracy, stability, rationality, and versatility of its trajectory, in order to improve production efficiency, spraying quality, and improve workers' working conditions. have played a key role. As countries around the world pay more and more attention to the automation needs of spraying robots, the spraying effect of spraying robots is related to many factors such as the surface shape of the object and the parameters of the spraying process. In order to achieve the new spraying operation standard and realize the production goal of high efficiency and low cost, the analysis of the new spraying modeling and the research on the trajectory optimization algorithm and control strategy of the high-performance spraying robot have become the focus of domestic and foreign scholars.

我国的工业机器人起步晚,关键的技术与零件过度依赖于国外进口。我国的工业机器人在政府大力支持下,80年代起步,90年代示范,2000年产业化,现在工业机器人正在每年递增。同时,政府也加大对机器人应用行业的人才培养,并培养出了一大批高素质高技术水平的学科带头人。我国的863计划也将机器人的应用和发展看作重要的研究课题,将恶劣的应用环境做背景,把工程应用作为先导,不断的发展和研究先进的机器人应用技术。此外还通过国际的合作,不断引进国外领先的机器人应用技术,并加大了机器人生产工程上的使用。木材喷漆机器人常用机器人轨迹生成主要方法有:人工示教法和点对点编程法。my country's industrial robots started late, and the key technologies and parts are overly dependent on foreign imports. With the strong support of the government, my country's industrial robots started in the 1980s, demonstrated in the 1990s, and were industrialized in 2000. Now industrial robots are increasing every year. At the same time, the government has also increased the training of talents in the robot application industry, and has trained a large number of high-quality and high-tech academic leaders. my country's 863 plan also regards the application and development of robots as an important research topic, takes the harsh application environment as the background, takes engineering applications as the guide, and continuously develops and researches advanced robot application technologies. In addition, through international cooperation, we have continuously introduced foreign leading robot application technologies, and increased the use of robots in production engineering. The main methods of robot trajectory generation commonly used in wood painting robots are: manual teaching method and point-to-point programming method.

人工示教对工作人员的经验要求较高,需要通过工作人员反复试验确定最终轨迹、喷漆角度、喷漆距离等,这种方法虽然简单易行,但是存在着诸多的缺点:喷涂效果决定于工人的经验、需要大量人力物力进行试验且工人仍处于油漆的毒害的环境中。点对点编程指编程人员人工对喷涂轨迹进行规划,选择轨迹中的若干有效点,输入机器人系统,再由机器人自动生成连续的运行轨迹。Manual teaching has high requirements for the experience of the staff, and it is necessary to determine the final trajectory, spraying angle, spraying distance, etc. through repeated trials by the staff. Although this method is simple and easy to implement, there are many shortcomings: the spraying effect depends on the worker's Experience, need a lot of manpower and material resources to carry out experiment and the worker is still in the poisonous environment of paint. Point-to-point programming means that programmers manually plan the spraying trajectory, select a number of effective points in the trajectory, input them into the robot system, and then the robot automatically generates a continuous running trajectory.

发明内容Contents of the invention

本发明提供了一种运用于木材喷涂行业的机器人轨迹优化方法及装置,解决了人工示教法的喷涂效果决定于工人的经验、需要大量人力物力进行试验且工人仍处于油漆的毒害的环境中以及点对点编程指编程人员人工对喷涂轨迹进行手动规划的技术问题。The invention provides a robot trajectory optimization method and device used in the wood spraying industry, which solves the problem that the spraying effect of the manual teaching method depends on the experience of the workers, a large amount of manpower and material resources are required for the test, and the workers are still in an environment poisoned by paint And point-to-point programming refers to the technical problem that programmers manually plan the spraying trajectory manually.

本发明提供了一种运用于木材喷涂行业的机器人轨迹优化方法,包括:The invention provides a robot trajectory optimization method applied to the wood spraying industry, including:

S1、获取木材的点云数据;S1. Obtain point cloud data of wood;

S2、获取喷涂工件的参数,并确定喷涂工件在木材上方的预置距离h;S2. Obtain the parameters of the sprayed workpiece, and determine the preset distance h of the sprayed workpiece above the wood;

S3、根据喷涂工件的参数和预置距离h,通过预置第一公式计算喷涂工件在木材上涂层积累的速率,其中预置第一公式为:S3. According to the parameters of the sprayed workpiece and the preset distance h, the rate of coating accumulation of the sprayed workpiece on the wood is calculated by the preset first formula, wherein the preset first formula is:

其中,R为喷涂半径,A为常数,r为平面上任意一点s至沿喷射方向喷涂工件中心投影点的距离;Among them, R is the spraying radius, A is a constant, and r is the distance from any point s on the plane to the projection point of the center of the sprayed workpiece along the spraying direction;

S4、根据喷涂工件在木材上涂层积累的速率,确定相邻两个喷涂行程的涂层重叠区域宽度,得到相邻两个喷涂行程的间隙;S4, according to the rate of coating accumulation of the sprayed workpiece on the wood, determine the width of the overlapping area of the coating of two adjacent spraying strokes, and obtain the gap between two adjacent spraying strokes;

S5、根据相邻两个喷涂行程的间隙,生成基于N字型的机器人运动轨迹。S5. According to the gap between two adjacent spraying strokes, an N-shaped robot movement trajectory is generated.

进一步地,步骤S4具体包括:Further, step S4 specifically includes:

以误差最小为目标,通过最小二乘法寻找满足q(0)≈q(R-d/2)≈q(R-d)的相邻两个喷涂行程的涂层重叠区域宽度d,其中:With the goal of minimizing the error, the width d of the coating overlapping area of two adjacent spraying strokes satisfying q(0)≈q(R-d/2)≈q(R-d) is found by the least square method, where:

r1∈(-R,R),r2∈(R-d,3R-d),m、n分别为喷涂积累的时间, r 1 ∈ (-R,R), r 2 ∈(Rd,3R-d), m and n are the spray accumulation time respectively,

根据相邻两个喷涂行程的涂层重叠区域宽度d,得到相邻两个喷涂行程的间隙ΔH,其中ΔH=2R-d。According to the coating overlap area width d of two adjacent spraying strokes, the gap ΔH between two adjacent spraying strokes is obtained, where ΔH=2R-d.

进一步地,步骤S5还包括:Further, step S5 also includes:

计算L1=2R+2R-d以及L2=π(2R-d)/2,若L1>L2,则确定喷涂工件在木材外为以R-d/2为半径的弧形拐点轨迹,否则确定喷涂工件在木材外为以R为宽,2R-d为长的矩形拐点轨迹。Calculate L 1 =2R+2R-d and L 2 =π(2R-d)/2, if L 1 >L 2 , it is determined that the sprayed workpiece is an arc-shaped inflection point trajectory with Rd/2 as the radius outside the wood, otherwise Determine that the sprayed workpiece is a rectangular inflection point track with R as the width and 2R-d as the length outside the wood.

进一步地,步骤S5还包括:Further, step S5 also includes:

若喷涂工件在木材外为以R-d/2为半径的弧形拐点轨迹,则根据预置第二公式确定喷涂工件的弧形拐点的圆心与木材的边界的距离L以确定机器人运动轨迹,其中预置第二公式为: If the spraying workpiece is an arc-shaped inflection point trajectory with Rd/2 as the radius outside the wood, then determine the distance L between the center of the arc-shaped inflection point of the spray-painted workpiece and the boundary of the wood according to the preset second formula to determine the trajectory of the robot. Set the second formula as:

本发明提供了一种运用于木材喷涂行业的机器人轨迹优化装置,包括:The invention provides a robot trajectory optimization device used in the wood spraying industry, including:

第一获取单元,用于获取木材的点云数据;The first acquisition unit is used to acquire point cloud data of wood;

第二获取单元,用于获取喷涂工件的参数,并确定喷涂工件在木材上方的预置距离h;The second acquisition unit is used to acquire the parameters of the sprayed workpiece, and determine the preset distance h of the sprayed workpiece above the wood;

速率计算单元,用于根据喷涂工件的参数和预置距离h,通过预置第一公式计算喷涂工件在木材上涂层积累的速率,其中预置第一公式为:The rate calculation unit is used to calculate the rate of coating accumulation of the sprayed workpiece on the wood through the preset first formula according to the parameters of the sprayed workpiece and the preset distance h, wherein the preset first formula is:

其中,R为喷涂半径,A为常数,r为平面上任意一点s至沿喷射方向喷涂工件中心投影点的距离;Among them, R is the spraying radius, A is a constant, and r is the distance from any point s on the plane to the projection point of the center of the sprayed workpiece along the spraying direction;

间隙确定单元,用于根据喷涂工件在木材上涂层积累的速率,确定相邻两个喷涂行程的涂层重叠区域宽度,得到相邻两个喷涂行程的间隙;The gap determination unit is used to determine the width of the overlapping area of the coating of two adjacent spraying strokes according to the rate of coating accumulation of the sprayed workpiece on the wood, so as to obtain the gap between two adjacent spraying strokes;

轨迹生成单元,用于根据相邻两个喷涂行程的间隙,生成基于N字型的机器人运动轨迹。The trajectory generating unit is used to generate an N-shaped robot motion trajectory according to the gap between two adjacent spraying strokes.

进一步地,间隙确定单元具体包括:Further, the gap determination unit specifically includes:

寻优子单元,用于以误差最小为目标,通过最小二乘法寻找满足q(0)≈q(R-d/2)≈q(R-d)的相邻两个喷涂行程的涂层重叠区域宽度d,其中:The optimization subunit is used to find the width d of the coating overlap area of two adjacent spraying strokes satisfying q(0)≈q(R-d/2)≈q(R-d) by the least square method with the goal of minimizing the error, in:

r1∈(-R,R),r2∈(R-d,3R-d),m、n分别为喷涂积累的时间, r 1 ∈ (-R,R), r 2 ∈(Rd,3R-d), m and n are the spray accumulation time respectively,

计算子单元,用于根据相邻两个喷涂行程的涂层重叠区域宽度d,得到相邻两个喷涂行程的间隙ΔH,其中ΔH=2R-d。The calculation subunit is used to obtain the gap ΔH between two adjacent spraying strokes according to the width d of the coating overlapping area of the two adjacent spraying strokes, where ΔH=2R-d.

进一步地,轨迹生成单元还用于:Further, the trajectory generation unit is also used for:

计算L1=2R+2R-d以及L2=π(2R-d)/2,若L1>L2,则确定喷涂工件在木材外为以R-d/2为半径的弧形拐点轨迹,否则确定喷涂工件在木材外为以R为宽,2R-d为长的矩形拐点轨迹。Calculate L 1 =2R+2R-d and L 2 =π(2R-d)/2, if L 1 >L 2 , it is determined that the sprayed workpiece is an arc-shaped inflection point trajectory with Rd/2 as the radius outside the wood, otherwise Determine that the sprayed workpiece is a rectangular inflection point track with R as the width and 2R-d as the length outside the wood.

进一步地,轨迹生成单元还用于:Further, the trajectory generation unit is also used for:

若喷涂工件在木材外为以R-d/2为半径的弧形拐点轨迹,则根据预置第二公式确定喷涂工件的弧形拐点的圆心与木材的边界的距离L以确定机器人运动轨迹,其中预置第二公式为: If the spraying workpiece is an arc-shaped inflection point trajectory with Rd/2 as the radius outside the wood, then determine the distance L between the center of the arc-shaped inflection point of the spray-painted workpiece and the boundary of the wood according to the preset second formula to determine the trajectory of the robot. Set the second formula as:

本发明提供了一种运用于木材喷涂行业的机器人轨迹优化装置,包括:The invention provides a robot trajectory optimization device used in the wood spraying industry, including:

存储器,用于存储指令;memory for storing instructions;

处理器,耦合到所述存储器,所述处理器被配置为基于所述存储器存储的指令执行实现如上任一项所述的方法。A processor, coupled to the memory, configured to execute and implement the method described in any one of the preceding items based on instructions stored in the memory.

本发明提供了一种运用于木材喷涂行业的机器人,利用如上任一项所述的轨迹优化方法进行作业规划,其特征在于,包括:喷涂工件以及与喷涂工件连接的多个关节。The present invention provides a robot used in the wood spraying industry, which uses the trajectory optimization method described in any one of the above to carry out operation planning, and is characterized in that it includes: a spraying workpiece and a plurality of joints connected with the spraying workpiece.

从以上技术方案可以看出,本发明具有以下优点:As can be seen from the above technical solutions, the present invention has the following advantages:

本发明提供了一种运用于木材喷涂行业的机器人轨迹优化方法,包括:S1、获取木材的点云数据;S2、获取喷涂工件的参数,并确定喷涂工件在木材上方的预置距离h;S3、根据喷涂工件的参数和预置距离h,通过预置第一公式计算喷涂工件在木材上涂层积累的速率,其中预置第一公式为:其中,R为喷涂半径,A为常数,r为平面上任意一点s至沿喷射方向喷涂工件中心投影点的距离;S4、根据喷涂工件在木材上涂层积累的速率,确定相邻两个喷涂行程的涂层重叠区域宽度,得到相邻两个喷涂行程的间隙;S5、根据相邻两个喷涂行程的间隙,生成基于N字型的机器人运动轨迹。The present invention provides a robot trajectory optimization method used in the wood spraying industry, comprising: S1, acquiring point cloud data of wood; S2, acquiring parameters of sprayed workpieces, and determining the preset distance h of sprayed workpieces above the wood; S3 , according to the parameters of the sprayed workpiece and the preset distance h, the rate of coating accumulation of the sprayed workpiece on the wood is calculated by the preset first formula, wherein the preset first formula is: Among them, R is the spraying radius, A is a constant, and r is the distance from any point s on the plane to the projection point of the center of the sprayed workpiece along the spraying direction; S4. According to the rate of coating accumulation of the sprayed workpiece on the wood, determine two adjacent sprayings The width of the coating overlapping area of the strokes is used to obtain the gap between two adjacent spraying strokes; S5. According to the gap between two adjacent spraying strokes, an N-shaped robot motion trajectory is generated.

本发明中,通过计算确定喷涂工件在木材上涂层积累的速率,进而自动生成基于N字型的机器人运动轨迹,能够提供合理轨迹规划指导,提高喷涂质量及减少加工时间,解决了人工示教法的喷涂效果决定于工人的经验、需要大量人力物力进行试验且工人仍处于油漆的毒害的环境中以及点对点编程指编程人员人工对喷涂轨迹进行手动规划的技术问题。In the present invention, the rate at which the coating of the sprayed workpiece is accumulated on the wood is determined by calculation, and then the robot motion trajectory based on the N-shaped shape is automatically generated, which can provide reasonable trajectory planning guidance, improve the quality of spraying and reduce the processing time, and solve the problem of manual teaching. The spraying effect of the method depends on the experience of the workers, it requires a lot of manpower and material resources to carry out experiments and the workers are still in the poisonous environment of the paint, and the point-to-point programming refers to the technical problem of manual planning of the spraying trajectory by the programmer.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the 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. For those skilled in the art, other drawings can also be obtained according to these drawings on the premise of not paying creative efforts.

图1为本发明提供的一种运用于木材喷涂行业的机器人轨迹优化方法的一个实施例的流程示意图;Fig. 1 is a schematic flow chart of an embodiment of a robot trajectory optimization method applied to the wood spraying industry provided by the present invention;

图2为喷枪作业时涂料的平面模型图;Fig. 2 is the plane model figure of coating when spray gun operation;

图3为喷枪作业时所形成圆锥体喷涂的左视图;Fig. 3 is the left view of the cone spraying formed when the spray gun works;

图4为N型轨迹涂层重合部俯视图;Fig. 4 is a top view of the overlapping portion of the N-type track coating;

图5为N型轨迹涂层重合部左视图;Figure 5 is a left side view of the overlapping portion of the N-type track coating;

图6为方形门板走N型轨迹图;Fig. 6 is a square door panel walking N-type track diagram;

图7为轨迹直角拐点图;Fig. 7 is a track right-angle inflection point figure;

图8为r坐标示意图;Figure 8 is a schematic diagram of r coordinates;

图9为A点涂料厚度积累的速率与r的关系图;Fig. 9 is the relationship diagram between the rate and r of point A paint thickness accumulation;

图10为B点涂料厚度积累的速率与r的关系图;Fig. 10 is the relationship diagram between the rate and r of point B paint thickness accumulation;

图11为弧形拐点轨迹路程图;Fig. 11 is the road map of arc inflection point track;

图12为矩形拐点轨迹路程图;Fig. 12 is a path diagram of a rectangular inflection point track;

图13为弧形拐点优化轨迹图;Fig. 13 is an arc inflection point optimized trajectory diagram;

图14为本发明提供的一种运用于木材喷涂行业的机器人轨迹优化装置的一个实施例的结构示意图;Fig. 14 is a structural schematic diagram of an embodiment of a robot trajectory optimization device used in the wood spraying industry provided by the present invention;

图15为本发明提供的一种运用于木材喷涂行业的机器人轨迹优化装置的另一个实施例的结构示意图。Fig. 15 is a structural schematic diagram of another embodiment of a robot trajectory optimization device used in the wood spraying industry provided by the present invention.

具体实施方式Detailed ways

本发明实施例提供了一种运用于木材喷涂行业的机器人轨迹优化方法及装置,解决了人工示教法的喷涂效果决定于工人的经验、需要大量人力物力进行试验且工人仍处于油漆的毒害的环境中以及点对点编程指编程人员人工对喷涂轨迹进行手动规划的技术问题。The embodiment of the present invention provides a robot trajectory optimization method and device used in the wood spraying industry, which solves the problem that the spraying effect of the manual teaching method depends on the experience of the workers, a large amount of manpower and material resources are required for the test, and the workers are still poisoned by the paint. In-environment and point-to-point programming refers to the technical problem of manual planning of spraying trajectory by programmers.

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

请参阅图1,本发明提供了一种运用于木材喷涂行业的机器人轨迹优化方法的一个实施例,包括:Referring to Fig. 1, the present invention provides an embodiment of a robot trajectory optimization method applied to the wood spraying industry, including:

101、获取木材的点云数据;101. Obtain point cloud data of wood;

102、获取喷涂工件的参数,并确定喷涂工件在木材上方的预置距离h;102. Obtain the parameters of the sprayed workpiece, and determine the preset distance h of the sprayed workpiece above the wood;

103、根据喷涂工件的参数和预置距离h,通过预置第一公式计算喷涂工件在木材上涂层积累的速率,其中预置第一公式为:103. According to the parameters of the sprayed workpiece and the preset distance h, calculate the rate of coating accumulation of the sprayed workpiece on the wood through the preset first formula, wherein the preset first formula is:

其中,R为喷涂半径,A为常数,r为平面上任意一点s至沿喷射方向喷涂工件中心投影点的距离;Among them, R is the spraying radius, A is a constant, and r is the distance from any point s on the plane to the projection point of the center of the sprayed workpiece along the spraying direction;

104、根据喷涂工件在木材上涂层积累的速率,确定相邻两个喷涂行程的涂层重叠区域宽度,得到相邻两个喷涂行程的间隙;104. According to the rate of coating accumulation of the sprayed workpiece on the wood, determine the width of the overlapping area of the coating of two adjacent spraying strokes, and obtain the gap between two adjacent spraying strokes;

105、根据相邻两个喷涂行程的间隙,生成基于N字型的机器人运动轨迹。105. According to the gap between two adjacent spraying strokes, an N-shaped robot movement trajectory is generated.

本发明实施例中,通过计算确定喷涂工件在木材上涂层积累的速率,进而自动生成基于N字型的机器人运动轨迹,能够提供合理轨迹规划指导,提高喷涂质量及减少加工时间,解决了人工示教法的喷涂效果决定于工人的经验、需要大量人力物力进行试验且工人仍处于油漆的毒害的环境中以及点对点编程指编程人员人工对喷涂轨迹进行手动规划的技术问题。In the embodiment of the present invention, the rate of coating accumulation of the sprayed workpiece on the wood is determined by calculation, and then automatically generates an N-shaped robot motion trajectory, which can provide reasonable trajectory planning guidance, improve the quality of spraying and reduce processing time, and solve the problem of manual labor. The spraying effect of the teaching method depends on the experience of the workers, it needs a lot of manpower and material resources to carry out the experiment and the workers are still in the poisonous environment of the paint, and the point-to-point programming refers to the technical problem of manual planning of the spraying trajectory by the programmer.

以上是对本发明提供的一种运用于木材喷涂行业的机器人轨迹优化方法的一个实施例进行的说明,以下将对本发明提供的一种运用于木材喷涂行业的机器人轨迹优化方法的另一个实施例进行说明。The above is a description of an embodiment of a robot trajectory optimization method used in the wood spraying industry provided by the present invention, and another embodiment of a robot trajectory optimization method used in the wood spraying industry provided by the present invention will be carried out below illustrate.

本发明提供了一种运用于木材喷涂行业的机器人轨迹优化方法的另一个实施例,包括:The present invention provides another embodiment of a robot trajectory optimization method applied to the wood spraying industry, including:

201、获取木材的点云数据;201. Obtain point cloud data of wood;

需要说明的是,采用点云切片技术对木材进行造型,点云的数据获得主要有两种方法:It should be noted that there are two main ways to obtain point cloud data when using point cloud slicing technology to shape wood:

1、通过测量仪器获得点云,这样的仪器主要包括接触式(三坐标测量划线机、三坐标测量机、机械手和机械臂)和非接触式(摄影机、数码成相机、激光扫描机)两种方法;1. Obtain point clouds through measuring instruments. Such instruments mainly include contact (three-coordinate measurement marking machine, three-coordinate measuring machine, manipulator and robotic arm) and non-contact (camera, digital camera, laser scanner) two. method;

2、通过软件将木材的CAD模型转化为点云数据,这样获得的点云数据噪声点少,点云数据的获得方式可以根据实际情况来选取。2. Convert the CAD model of wood into point cloud data through software, so that the obtained point cloud data has less noise points, and the method of obtaining point cloud data can be selected according to the actual situation.

202、获取喷涂工件的参数,并确定喷涂工件在木材上方的预置距离h;202. Obtain the parameters of the sprayed workpiece, and determine the preset distance h of the sprayed workpiece above the wood;

需要说明的是,在获取了木材的点云数据后,还需要获取喷涂工件的参数,并确定喷涂工件在木材上方的预置距离h,一般而言,喷涂工件为喷枪,且喷涂工件垂直于木材上方。It should be noted that after obtaining the point cloud data of the wood, it is also necessary to obtain the parameters of the sprayed workpiece, and determine the preset distance h of the sprayed workpiece above the wood. Generally speaking, the sprayed workpiece is a spray gun, and the sprayed workpiece is perpendicular to above the wood.

203、根据喷涂工件的参数和预置距离h,通过预置第一公式计算喷涂工件在木材上涂层积累的速率,其中预置第一公式为:203. According to the parameters of the sprayed workpiece and the preset distance h, calculate the rate of coating accumulation of the sprayed workpiece on the wood through the preset first formula, wherein the preset first formula is:

其中,R为喷涂半径,A为常数,r为平面上任意一点s至沿喷射方向喷涂工件中心投影点的距离;Among them, R is the spraying radius, A is a constant, and r is the distance from any point s on the plane to the projection point of the center of the sprayed workpiece along the spraying direction;

需要说明的是,在真实的喷枪作业时,喷枪所形成的雾状区域为一个圆锥体,因此我们可以对该区域作为圆锥体来考虑,其涂料的平面模型如图2所示,其中β为圆锥的张角,R为圆锥体在平面上形成的圆形的半径,假定平面上任意一点Q,r是该点距离圆形中心点的距离,α是Q点到喷枪口和喷枪口中轴线的夹角,在平面上涂层积累的速率可以用二元数学表达式v来表示为:v=f(r,h)。由于在正常的喷涂过程中,喷枪口离平面的距离是不变的,所以h不变,则数学表达式v中唯一的变量是r,所以v可以表示为:v=f(r)。因此v和r的关系可以看成是一个二次曲线,如图3所示。经过分析可得,当|r|>R时v=0,当|r|≤R时v是以r为变量的二次函数,因此在轨迹优化时可以不用考虑最大张角β,简化了优化过程,即:It should be noted that in the real spray gun operation, the mist area formed by the spray gun is a cone, so we can consider this area as a cone. The plane model of the paint is shown in Figure 2, where β is The opening angle of the cone, R is the radius of the circle formed by the cone on the plane, assuming any point Q on the plane, r is the distance from the point to the center point of the circle, α is the distance from Q point to the nozzle of the spray gun and the central axis of the nozzle of the spray gun The included angle, the rate of coating accumulation on the plane can be expressed by the binary mathematical expression v: v=f(r,h). Since in the normal spraying process, the distance from the nozzle of the spray gun to the plane is constant, so h is constant, then the only variable in the mathematical expression v is r, so v can be expressed as: v=f(r). Therefore, the relationship between v and r can be regarded as a quadratic curve, as shown in Figure 3. After analysis, it can be obtained that when |r|>R, v=0, and when |r|≤R, v is a quadratic function with r as a variable, so the maximum opening angle β can be ignored during trajectory optimization, which simplifies the optimization process, namely:

204、以误差最小为目标,通过最小二乘法寻找满足q(0)≈q(R-d/2)≈q(R-d)的相邻两个喷涂行程的涂层重叠区域宽度d,其中:204. With the minimum error as the goal, the width d of the coating overlapping area of two adjacent spraying strokes satisfying q(0)≈q(R-d/2)≈q(R-d) is found by the least square method, where:

r1∈(-R,R),r2∈(R-d,3R-d),m、n分别为喷涂积累的时间, r 1 ∈ (-R,R), r 2 ∈(Rd,3R-d), m and n are the spray accumulation time respectively,

需要说明的是,喷涂机器人的轨迹包含两个因素:路径、速度。在喷涂过程中,假设在喷涂时喷涂机器人喷枪的方向一直垂直于工件的表面,二确定两个喷涂行程的涂层重叠区域宽度后即可得到喷枪的路径。因此确定一条喷涂机器人的轨迹只需要确定喷枪速率和两个喷涂行程的涂层重叠区域宽度即可。It should be noted that the trajectory of the spraying robot includes two factors: path and speed. In the spraying process, assuming that the direction of the spraying gun of the spraying robot is always perpendicular to the surface of the workpiece during spraying, the path of the spraying gun can be obtained after determining the width of the coating overlapping area of the two spraying strokes. Therefore, determining the trajectory of a spraying robot only needs to determine the speed of the spray gun and the width of the coating overlap area of the two spraying strokes.

如图4和图5所示,图4为两条相邻路径上重叠区域俯视图,图5为涂层侧面剖视图,x为喷涂半径内某一点s到第一条路径的距离,d表示为两个喷涂行程的涂层重叠区域宽度,o点位喷嘴的中心投影点,令z=q(x),则涂层厚度q(x)为:As shown in Figure 4 and Figure 5, Figure 4 is a top view of the overlapping area on two adjacent paths, Figure 5 is a side sectional view of the coating, x is the distance from a point s within the spraying radius to the first path, and d is expressed as two The coating overlapping area width of a spraying stroke, o point is the center projection point of the nozzle, let z=q(x), then the coating thickness q(x) is:

式中,q1(x)和q2(x)分别表示两条相邻路径上喷涂时s点的涂层厚度,由于喷枪口离工件平面的高度是一定的,所以喷涂的半径R也是一定的,即R为常量,同时速度一定,则v也为常量,得以下的表达式:In the formula, q 1 (x) and q 2 (x) respectively represent the coating thickness at point s when spraying on two adjacent paths. Since the height of the nozzle of the spray gun from the plane of the workpiece is constant, the radius R of spraying is also constant That is, R is a constant, and at the same time the speed is constant, then v is also a constant, and the following expression is obtained:

根据对图4和图5的数学模型的分析,r1为图6中x范围在(-R,R)的函数表达式,r2为图5中x范围在(R-d,3R-d)的函数表达式,可推得:According to the analysis of the mathematical model of Fig. 4 and Fig. 5, r 1 is the function expression of the x range in (-R, R) in Fig. 6, and r 2 is the function expression of the x range in (Rd, 3R-d) in Fig. 5 Function expressions can be deduced:

从生产实际需求来考虑,由于喷涂的目的是使喷涂的厚度都应该达到相对均匀,由此条件可得:Considering the actual needs of production, since the purpose of spraying is to make the thickness of the spraying should be relatively uniform, the conditions can be obtained:

q(0)≈q(R-d/2)≈q(R-d);q(0)≈q(R-d/2)≈q(R-d);

对q(x)分别代入数值0、R-d/2、R-d,可得:Substituting the values 0, R-d/2, and R-d for q(x) respectively, we can get:

对上式进行推导我们可以获得两条关于变量ΔH和变量d的表达式,为满足上式不等式,可以对d的值进行最小二乘,要满足所有不等式的成立,方程的解是无解的,而是以式子的误差最小为基准在最小二乘的意义下获得d的数值。Deriving the above formula, we can obtain two expressions about the variable ΔH and the variable d. In order to satisfy the above inequality, we can perform least squares on the value of d. To satisfy all the inequalities, the solution of the equation is unsolvable , but based on the minimum error of the formula, the value of d is obtained in the sense of least squares.

205、根据相邻两个喷涂行程的涂层重叠区域宽度d,得到相邻两个喷涂行程的间隙ΔH,其中ΔH=2R-d;205. Obtain the gap ΔH between two adjacent spraying strokes according to the coating overlapping area width d of two adjacent spraying strokes, where ΔH=2R-d;

需要说明的是,在得到了相邻两个喷涂行程的涂层重叠区域宽度d的值后,可以根据ΔH=2R-d确定相邻两个喷涂行程的间隙ΔH的值。It should be noted that, after obtaining the value of the width d of the coating overlapping area of two adjacent spraying strokes, the value of the gap ΔH between two adjacent spraying strokes can be determined according to ΔH=2R-d.

206、根据相邻两个喷涂行程的间隙,生成基于N字型的机器人运动轨迹;206. According to the gap between two adjacent spraying strokes, an N-shaped robot motion trajectory is generated;

需要说明的是,方形门面板在木材喷涂行业是最基本的,此类型工件主要特征是整体轮廓呈四边形,基本都是有直线组合而成。由于此类型的结构比较简单,加工工艺和喷涂路径也较简单,生成的轨迹在ΔH达到最优化的时候喷涂效果最省时间,喷涂效果也是最好的。It should be noted that square door panels are the most basic in the wood spraying industry. The main feature of this type of workpiece is that the overall outline is quadrilateral, which is basically composed of straight lines. Because this type of structure is relatively simple, the processing technology and spraying path are relatively simple, and the generated trajectory is the most time-saving and the spraying effect is the best when the ΔH is optimized.

根据门板的类型结构可知,其加工路径适合走N字型,和Z字型的喷涂路径相比,以N字型的区域喷涂更能保证单独区域的质量,同时具备Z字型喷涂轨迹所有优点,在喷涂轨迹方面使涂层的均匀度尽量达到一致。这种路径喷涂的效率高、喷涂均匀且效果好。如图6所示,图6描述了方框门板的喷涂方法和路径,从起点开始,沿着工件的边方向开始喷涂,接着向垂直方向递增继续完成N字型的轨迹的描绘,在完成一个N型的描绘之后,系统可对喷涂的轨迹以及喷枪油漆的调整,保证下一个N型喷涂的有效进行,为自检预留时间。According to the type and structure of the door panel, its processing path is suitable for N-shaped spraying path. Compared with Z-shaped spraying path, N-shaped area spraying can better ensure the quality of individual areas, and has all the advantages of Z-shaped spraying track , Make the uniformity of the coating as consistent as possible in terms of spraying trajectory. This path has high spraying efficiency, uniform spraying and good effect. As shown in Figure 6, Figure 6 describes the spraying method and path of the frame door panel, starting from the starting point, spraying along the edge direction of the workpiece, and then increasing to the vertical direction to continue to complete the depiction of the N-shaped track, after completing a After drawing the N-type, the system can adjust the trajectory of the spraying and the paint of the spray gun to ensure the effective progress of the next N-type spraying and reserve time for self-inspection.

207、计算L1=2R+2R-d以及L2=π(2R-d)/2,若L1>L2,则确定喷涂工件在木材外为以R-d/2为半径的弧形拐点轨迹,否则确定喷涂工件在木材外为以R为宽,2R-d为长的矩形拐点轨迹;207. Calculate L 1 =2R+2R-d and L 2 =π(2R-d)/2, if L 1 >L 2 , then determine that the sprayed workpiece is an arc-shaped inflection point trajectory with Rd/2 as the radius outside the wood , otherwise it is determined that the sprayed workpiece is a rectangular inflection point track with R as the width and 2R-d as the length outside the wood;

需要说明的是,步骤201至206适用于喷涂工件的轨迹拐点在喷涂面板外的情况下,假设喷涂拐点在木材上,则会出现拐点处涂料积累的情况,如图7所示,假设A、B两点刚好位于拐点的中轴线上,而假设他们可以形成的涂层厚度的函数分别为g1(r)和g2(r),r为A、B两点分别以图8作为系坐标,分别到达圆边的距离,图中O为拐点的圆心,o为图8中坐标的原点。由于喷涂路径是垂直的形式,之前为水平的形式,所以这里关于r的函数改变横轴也变为如图8所示的垂直的形式。It should be noted that steps 201 to 206 are applicable to the case where the inflection point of the trajectory of the sprayed workpiece is outside the spraying panel, assuming that the inflection point of spraying is on the wood, there will be a situation of paint accumulation at the inflection point, as shown in Figure 7, assuming A, The two points B are just located on the central axis of the inflection point, and assuming that the functions of the coating thickness they can form are g 1 (r) and g 2 (r) respectively, r is the two points A and B respectively, and the coordinates in Figure 8 are used , respectively reach the distance of the circle, O in the figure is the center of the inflection point, and o is the origin of the coordinates in Figure 8. Since the spraying path is in a vertical form, it was in a horizontal form before, so here the function of r changes the horizontal axis to also become a vertical form as shown in Figure 8 .

假设,喷枪在喷涂的过程中在拐点处没有停留,上图R为喷枪形成圆锥的半径,r为圆内对角线上的点到圆形边上的距离,可以获得A、B两个喷涂累积的曲线分别为如图9和图10所示,即拐点处的所有点由于喷涂轨迹的改变其可分为拐前和拐后两个区间,r>0的部分为拐前,r<0为拐后,所以喷枪轨迹分别由两个v=f(r)组合变形而成,获得以下式子:Assuming that the spray gun does not stop at the inflection point during the spraying process, R in the above figure is the radius of the cone formed by the spray gun, and r is the distance from the point on the inner diagonal of the circle to the edge of the circle, and two sprays of A and B can be obtained The accumulated curves are shown in Figure 9 and Figure 10 respectively, that is, all points at the inflection point can be divided into two intervals before the inflection and after the inflection due to the change of the spraying trajectory, the part where r>0 is before the inflection, and the part where r<0 After turning, so the trajectory of the spray gun is deformed by combining two v=f(r), and the following formula is obtained:

由上式可分析得:阴影的涂层积累最少在拐点的外边处,而内边接近A点的位置涂层的积累达到最大,这是喷涂中最不想达到的效果,最简单的处理方式便是喷涂的时候在模型外进行轨迹拐点处理,即让部分喷漆喷到板面外去,该方式在实际应用中会浪费大量的涂料,同时增加不必要的喷涂时间。From the above formula, it can be concluded that the coating accumulation of the shadow is least at the outer edge of the inflection point, and the coating accumulation at the inner edge close to point A reaches the maximum. This is the least desirable effect in spraying, and the simplest treatment method is When spraying, the trajectory inflection point is processed outside the model, that is, part of the spray paint is sprayed out of the board surface. This method will waste a lot of paint in practical applications and increase unnecessary spraying time.

如图11所示,图11为弧形拐点的具象表现形式,可以很明显看到是改变了之前直角拐点的形式,采用缓和的弧形描绘拐点轨迹,弧度选择可以简单选择为以两轨迹的间距作为直径,则弧形的半径R-d/2为先前所求的ΔH/2,涂料堆积相比先前的喷涂重叠的区域较少,可以得到板外弧形拐点轨迹路程:L2=π(2R-d)/2;As shown in Figure 11, Figure 11 is a concrete representation of the arc-shaped inflection point. It can be clearly seen that the form of the previous right-angle inflection point has been changed, and a gentle arc is used to describe the inflection point trajectory. If the spacing is used as the diameter, the radius Rd/2 of the arc is the previously obtained ΔH/2, and the area where the paint accumulation overlaps is less than that of the previous spraying, and the trajectory of the arc inflection point outside the board can be obtained: L 2 = π(2R -d)/2;

如图12所示,图12为矩形拐点的具象表现形式,拐点距离面板的边缘距离也算为最短的R,可以得到板外矩形拐点轨迹路程:L1=2R+2R-d;As shown in Figure 12, Figure 12 is a concrete representation of a rectangular inflection point. The distance between the inflection point and the edge of the panel is also the shortest R, and the track distance of the rectangular inflection point outside the panel can be obtained: L 1 =2R+2R-d;

上述两拐点的拐点处都位于喷涂面板外,无须考虑喷涂的问题。由于R数值是确定的,根据d数值的不同,两个轨迹的拐点长度L1、L2的大小也会不同,可进行对比选择哪种轨迹的拐点方式更能节省路程,当L1>L2时,弧形拐点轨迹路程更短,反之则选择矩形轨迹。The inflection points of the above two inflection points are located outside the sprayed panel, so there is no need to consider the problem of spraying. Since the value of R is fixed, the inflection point lengths L 1 and L 2 of the two trajectories will also be different according to the value of d. It is possible to compare and choose which inflection point method of the trajectory can save the distance. When L 1 > L When 2 , the trajectory of the arc-shaped inflection point is shorter, otherwise the rectangular trajectory is selected.

208、若喷涂工件在木材外为以R-d/2为半径的弧形拐点轨迹,则根据预置第二公式确定喷涂工件的弧形拐点的圆心与木材的边界的距离L以确定机器人运动轨迹,其中预置第二公式为: 208. If the sprayed workpiece is an arc-shaped inflection point trajectory with a radius of Rd/2 outside the wood, then determine the distance L between the center of the arc-shaped inflection point of the sprayed workpiece and the boundary of the wood according to the preset second formula to determine the trajectory of the robot. The preset second formula is:

需要说明的是,弧形拐点相对与矩形拐点,其圆弧的中心的获取,以及圆弧半径的获得是和之前所计算的ΔH相关,所以相比矩形拐点会更复杂,因此能够进一步优化机器人运动轨迹。It should be noted that the arc inflection point is relative to the rectangle inflection point, the acquisition of the center of the arc and the arc radius are related to the previously calculated ΔH, so it is more complicated than the rectangle inflection point, so the robot can be further optimized motion track.

如图13所示,图13为两弧形拐点轨迹某时刻的描述,此时两轨迹所形成的圆锥刚好能在面板交接处形成涂层交会,该点到两拐点圆心的连线的距离我们用L来表示,先前也推导出弧形拐点半径为R-d/2,由此我们可以得到拐点处所能喷涂的面积的最优距离L,优化后的机器人运动轨迹具有以下优点:一、涂层没有缝隙;二、涂料可利用率最大。As shown in Figure 13, Figure 13 is a description of a certain moment in the trajectory of the two arc-shaped inflection points. At this time, the cone formed by the two trajectories can just form a coating intersection at the junction of the panels. The distance between this point and the center of the two inflection points is us Represented by L, the arc inflection point radius was also deduced before as Rd/2, from which we can get the optimal distance L of the area that can be sprayed at the inflection point, The optimized trajectory of the robot has the following advantages: 1. There is no gap in the coating; 2. The utilization rate of the coating is the largest.

本发明实施例中,通过计算确定喷涂工件在木材上涂层积累的速率,进而自动生成基于N字型的机器人运动轨迹,能够提供合理轨迹规划指导,提高喷涂质量及减少加工时间,解决了人工示教法的喷涂效果决定于工人的经验、需要大量人力物力进行试验且工人仍处于油漆的毒害的环境中以及点对点编程指编程人员人工对喷涂轨迹进行手动规划的技术问题,进一步地,本发明优化了轨迹的拐点处理方式,实现了涂层没有缝隙且涂料的可利用率最大化。In the embodiment of the present invention, the rate of coating accumulation of the sprayed workpiece on the wood is determined by calculation, and then automatically generates an N-shaped robot motion trajectory, which can provide reasonable trajectory planning guidance, improve the quality of spraying and reduce processing time, and solve the problem of manual labor. The spraying effect of the teaching method depends on the experience of the workers, a large amount of manpower and material resources are required to carry out the test and the workers are still in the poisonous environment of the paint, and the point-to-point programming refers to the technical problem that the programmer manually plans the spraying trajectory manually. Further, the present invention The inflection point processing method of the trajectory is optimized, so that there is no gap in the coating and the utilization rate of the coating is maximized.

请参阅图14,本发明提供了一种运用于木材喷涂行业的机器人轨迹优化装置的一个实施例,包括:Please refer to Fig. 14, the present invention provides an embodiment of a robot trajectory optimization device used in the wood spraying industry, including:

第一获取单元1401,用于获取木材的点云数据;The first acquisition unit 1401 is configured to acquire point cloud data of wood;

第二获取单元1402,用于获取喷涂工件的参数,并确定喷涂工件在木材上方的预置距离h;The second acquisition unit 1402 is configured to acquire parameters of the sprayed workpiece, and determine a preset distance h of the sprayed workpiece above the wood;

速率计算单元1403,用于根据喷涂工件的参数和预置距离h,通过预置第一公式计算喷涂工件在木材上涂层积累的速率,其中预置第一公式为:The rate calculation unit 1403 is used to calculate the rate of coating accumulation of the sprayed workpiece on the wood through the preset first formula according to the parameters of the sprayed workpiece and the preset distance h, wherein the preset first formula is:

其中,R为喷涂半径,A为常数,r为平面上任意一点s至沿喷射方向喷涂工件中心投影点的距离;Among them, R is the spraying radius, A is a constant, and r is the distance from any point s on the plane to the projection point of the center of the sprayed workpiece along the spraying direction;

间隙确定单元1404,用于根据喷涂工件在木材上涂层积累的速率,确定相邻两个喷涂行程的涂层重叠区域宽度,得到相邻两个喷涂行程的间隙;The gap determining unit 1404 is used to determine the width of the overlapping area of the coating of two adjacent spraying strokes according to the rate of coating accumulation of the sprayed workpiece on the wood, so as to obtain the gap between two adjacent spraying strokes;

间隙确定单元1404具体包括:The gap determination unit 1404 specifically includes:

寻优子单元14041,用于以误差最小为目标,通过最小二乘法寻找满足q(0)≈q(R-d/2)≈q(R-d)的相邻两个喷涂行程的涂层重叠区域宽度d,其中:The optimization subunit 14041 is used to aim at the minimum error and find the coating overlapping area width d of two adjacent spraying strokes satisfying q(0)≈q(R-d/2)≈q(R-d) through the least square method ,in:

r1∈(-R,R),r2∈(R-d,3R-d),m、n分别为喷涂积累的时间, r 1 ∈ (-R,R), r 2 ∈(Rd,3R-d), m and n are the spray accumulation time respectively,

计算子单元14042,用于根据相邻两个喷涂行程的涂层重叠区域宽度d,得到相邻两个喷涂行程的间隙ΔH,其中ΔH=2R-d;The calculation subunit 14042 is used to obtain the gap ΔH between two adjacent spraying strokes according to the coating overlapping area width d of two adjacent spraying strokes, where ΔH=2R-d;

轨迹生成单元1405,用于根据相邻两个喷涂行程的间隙,生成基于N字型的机器人运动轨迹;Trajectory generating unit 1405, used to generate an N-shaped robot motion trajectory based on the gap between two adjacent spraying strokes;

还用于计算L1=2R+2R-d以及L2=π(2R-d)/2,若L1>L2,则确定喷涂工件在木材外为以R-d/2为半径的弧形拐点轨迹,否则确定喷涂工件在木材外为以R为宽,2R-d为长的矩形拐点轨迹。It is also used to calculate L 1 =2R+2R-d and L 2 =π(2R-d)/2, if L 1 >L 2 , it is determined that the sprayed workpiece is an arc-shaped inflection point with Rd/2 as the radius outside the wood Otherwise, it is determined that the sprayed workpiece is a rectangular inflection point trajectory with R as the width and 2R-d as the length outside the wood.

还用于若喷涂工件在木材外为以R-d/2为半径的弧形拐点轨迹,则根据预置第二公式确定喷涂工件的弧形拐点的圆心与木材的边界的距离L以确定机器人运动轨迹,其中预置第二公式为: It is also used to determine the distance L between the center of the arc-shaped inflection point of the sprayed workpiece and the boundary of the wood according to the preset second formula if the sprayed workpiece is an arc-shaped inflection point track with a radius of Rd/2 outside the wood to determine the trajectory of the robot , where the second preset formula is:

请参阅图15,本发明提供了一种运用于木材喷涂行业的机器人轨迹优化装置的另一个实施例,包括:Please refer to Fig. 15, the present invention provides another embodiment of a robot trajectory optimization device used in the wood spraying industry, including:

存储器1501,用于存储指令;memory 1501, for storing instructions;

处理器1502,耦合到存储器1501,处理器1502被配置为基于存储器1501存储的指令执行实现如图1或图2中任一实施例涉及的方法。The processor 1502 is coupled to the memory 1501, and the processor 1502 is configured to execute and implement the method involved in any embodiment as shown in FIG. 1 or FIG. 2 based on instructions stored in the memory 1501.

如图15所示,商品溯源信息的保护装置还包括通信接口1503,用于与其它设备进行信息交互。同时该装置还包括总线1504,处理器1502、通信接口1503以及存储器1501通过总线1504完成相互间的通信。As shown in FIG. 15 , the protection device for product traceability information also includes a communication interface 1503 for information exchange with other devices. At the same time, the device also includes a bus 1504 , and the processor 1502 , the communication interface 1503 and the memory 1501 communicate with each other through the bus 1504 .

存储器1501可以包含高速RAM存储器,也可还包括非易失性存储器(non-volatilememory),例如至少一个磁盘存储器。存储器1501也可以是存储器阵列。存储器1501还可能被分块,并且块可按一定的规则组合成虚拟卷。The memory 1501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1501 may also be a memory array. The storage 1501 may also be divided into blocks, and the blocks can be combined into virtual volumes according to certain rules.

此外,处理器1502可以是一个中央处理器CPU,或者可以是专用集成电路ASIC(application specific integrated circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。In addition, the processor 1502 may be a central processing unit CPU, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.

本发明还提供了一种运用于木材喷涂行业的机器人,利用如图1或图2中任一所述的轨迹优化方法进行作业规划,包括:喷涂工件以及与喷涂工件连接的多个关节。The present invention also provides a robot used in the wood spraying industry, using the trajectory optimization method as shown in Figure 1 or Figure 2 for operation planning, including: spraying workpieces and multiple joints connected to the spraying workpieces.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.

以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

1. a kind of robot trajectory's optimization method for applying to timber spraying industry, which is characterized in that including:
S1, the point cloud data for obtaining timber;
S2, the parameter for obtaining spraying workpiece, and determine preset distance h of the spraying workpiece above timber;
S3, according to the spraying parameter of workpiece and preset distance h, pass through preset first formula and calculate spraying workpiece coating on timber The rate of accumulation, wherein preset first formula is:
Wherein, R is spraying radius, and A is constant, and r sprays workpiece centre subpoint for any point s in plane to along injection direction Distance;
S4, the rate according to the coating accumulation on timber of spraying workpiece determine the coating overlapping region of two neighboring spraying stroke Width obtains the gap of two neighboring spraying stroke;
S5, the gap according to two neighboring spraying stroke, generate the robot motion track based on N fonts.
2. the robot trajectory's optimization method according to claim 1 for applying to timber spraying industry, which is characterized in that step Rapid S4 is specifically included:
With the minimum target of error, the two neighboring spray of q (0) ≈ q (R-d/2) ≈ q (R-d) is met by least square method searching The coating overlapping region width d of stroke is applied, wherein:
r1∈ (- R, R),r2∈ (R-d, 3R-d), m, n are respectively to spray product The tired time,
According to the coating overlapping region width d of two neighboring spraying stroke, the clearance delta H of two neighboring spraying stroke is obtained, Middle Δ H=2R-d.
3. the robot trajectory's optimization method according to claim 2 for applying to timber spraying industry, which is characterized in that step Rapid S5 is further included:
Calculate L1=2R+2R-d and L2=π (2R-d)/2, if L1> L2, it is determined that spraying workpiece outside timber be using R-d/2 as The arc inflection point track of radius, it is using R as width outside timber otherwise to determine spraying workpiece, and 2R-d is long rectangle inflection point track.
4. the robot trajectory's optimization method according to claim 3 for applying to timber spraying industry, which is characterized in that step Rapid S5 is further included:
If it is using R-d/2 as the arc inflection point track of radius outside timber to spray workpiece, determine to spray according to preset second formula The distance L on the center of circle of the arc inflection point of workpiece and the boundary of timber is applied to determine robot motion track, wherein preset second is public Formula is:
5. a kind of robot trajectory for applying to timber spraying industry optimizes device, which is characterized in that including:
First acquisition unit, for obtaining the point cloud data of timber;
Second acquisition unit for obtaining the parameter of spraying workpiece, and determines preset distance h of the spraying workpiece above timber;
Rate calculation unit, for according to the spraying parameter of workpiece and preset distance h, spraying work to be calculated by preset first formula The part rate that coating accumulates on timber, wherein preset first formula is:
Wherein, R is spraying radius, and A is constant, and r sprays workpiece centre subpoint for any point s in plane to along injection direction Distance;
Gap determination unit, for according to the spraying workpiece rate that coating accumulates on timber, determining two neighboring spraying stroke Coating overlapping region width, obtain it is two neighboring spraying stroke gap;
Track Pick-up unit for the gap according to two neighboring spraying stroke, generates robot motion's rail based on N fonts Mark.
6. the robot trajectory according to claim 5 for applying to timber spraying industry optimizes device, which is characterized in that Gap determination unit specifically includes:
Optimizing subelement, for the minimum target of error, meeting q (0) ≈ q (R-d/2) ≈ q by least square method searching (R-d) the coating overlapping region width d of two neighboring spraying stroke, wherein:
r1∈ (- R, R),r2∈ (R-d, 3R-d), m, n are respectively to spray product The tired time,
Computation subunit for the coating overlapping region width d according to two neighboring spraying stroke, obtains two neighboring spraying row The clearance delta H of journey, wherein Δ H=2R-d.
7. the robot trajectory according to claim 6 for applying to timber spraying industry optimizes device, which is characterized in that rail Mark generation unit is additionally operable to:
Calculate L1=2R+2R-d and L2=π (2R-d)/2, if L1> L2, it is determined that spraying workpiece outside timber be using R-d/2 as The arc inflection point track of radius, it is using R as width outside timber otherwise to determine spraying workpiece, and 2R-d is long rectangle inflection point track.
8. the robot trajectory according to claim 7 for applying to timber spraying industry optimizes device, which is characterized in that rail Mark generation unit is additionally operable to:
If it is using R-d/2 as the arc inflection point track of radius outside timber to spray workpiece, determine to spray according to preset second formula The distance L on the center of circle of the arc inflection point of workpiece and the boundary of timber is applied to determine robot motion track, wherein preset second is public Formula is:
9. a kind of robot trajectory for applying to timber spraying industry optimizes device, which is characterized in that including:
Memory, for storing instruction;
Processor, is coupled to the memory, and the processor is configured as performing reality based on the instruction that the memory stores Now method according to any one of claims 1 to 4.
10. a kind of robot for applying to timber spraying industry, excellent using track according to any one of claims 1 to 4 Change method carries out work planning, which is characterized in that including:Spraying workpiece and the multiple joints being connect with spraying workpiece.
CN201810183141.XA 2018-03-06 2018-03-06 Robot track optimization method and device applied to wood spraying industry Expired - Fee Related CN108161941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810183141.XA CN108161941B (en) 2018-03-06 2018-03-06 Robot track optimization method and device applied to wood spraying industry

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810183141.XA CN108161941B (en) 2018-03-06 2018-03-06 Robot track optimization method and device applied to wood spraying industry

Publications (2)

Publication Number Publication Date
CN108161941A true CN108161941A (en) 2018-06-15
CN108161941B CN108161941B (en) 2021-03-16

Family

ID=62511772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810183141.XA Expired - Fee Related CN108161941B (en) 2018-03-06 2018-03-06 Robot track optimization method and device applied to wood spraying industry

Country Status (1)

Country Link
CN (1) CN108161941B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110181516A (en) * 2019-06-18 2019-08-30 苏州大学 A kind of paths planning method of spray robot, device, system and storage medium
CN111459167A (en) * 2020-04-22 2020-07-28 深圳市优必选科技股份有限公司 Spraying killing method and robot
CN114274139A (en) * 2020-09-27 2022-04-05 西门子股份公司 Automatic spraying method, device, system and storage medium
CN115780125A (en) * 2022-11-24 2023-03-14 吉林大学 A spraying method and related device for full-coverage traversal spraying
CN116188480A (en) * 2023-04-23 2023-05-30 安徽同湃特机器人科技有限公司 Calculation method of AGV traveling path point during ceiling operation of spraying robot

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101239346A (en) * 2008-03-10 2008-08-13 江苏大学 Optimization method of spray gun trajectory of spraying robot on complex surface
US20110008545A1 (en) * 2002-01-30 2011-01-13 Kabushiki Kaisha Toshiba Film forming method, film forming apparatus, pattern forming method, and manufacturing method of semiconductor apparatus
CN102831306A (en) * 2012-08-13 2012-12-19 东南大学 Layered spraying track planning method used for spraying robot
CN110976154A (en) * 2019-12-03 2020-04-10 上海海事大学 Spraying robot track combination planning method for three-side crossed workpiece

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110008545A1 (en) * 2002-01-30 2011-01-13 Kabushiki Kaisha Toshiba Film forming method, film forming apparatus, pattern forming method, and manufacturing method of semiconductor apparatus
CN101239346A (en) * 2008-03-10 2008-08-13 江苏大学 Optimization method of spray gun trajectory of spraying robot on complex surface
CN102831306A (en) * 2012-08-13 2012-12-19 东南大学 Layered spraying track planning method used for spraying robot
CN110976154A (en) * 2019-12-03 2020-04-10 上海海事大学 Spraying robot track combination planning method for three-side crossed workpiece

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HEPING CHEN: "Automated Robot Trajectory Planning for Spray Painting of Free-Form Surfaces in Automotive Manufacturing", 《PROCEEDINGS 2002 IEEE INTERNATIONAL CONFERENCE ON ROBOTICS AND AUTOMATION》 *
陈伟: "喷涂机器人喷枪轨迹优化研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110181516A (en) * 2019-06-18 2019-08-30 苏州大学 A kind of paths planning method of spray robot, device, system and storage medium
CN111459167A (en) * 2020-04-22 2020-07-28 深圳市优必选科技股份有限公司 Spraying killing method and robot
CN114274139A (en) * 2020-09-27 2022-04-05 西门子股份公司 Automatic spraying method, device, system and storage medium
CN114274139B (en) * 2020-09-27 2024-04-19 西门子股份公司 Automatic spraying method, device, system and storage medium
CN115780125A (en) * 2022-11-24 2023-03-14 吉林大学 A spraying method and related device for full-coverage traversal spraying
CN115780125B (en) * 2022-11-24 2024-08-09 吉林大学 Spraying method for full-coverage traversal spraying and related device
CN116188480A (en) * 2023-04-23 2023-05-30 安徽同湃特机器人科技有限公司 Calculation method of AGV traveling path point during ceiling operation of spraying robot
CN116188480B (en) * 2023-04-23 2023-07-18 安徽同湃特机器人科技有限公司 Calculation method of AGV traveling path point during ceiling operation of spraying robot

Also Published As

Publication number Publication date
CN108161941B (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN108161941A (en) A kind of robot trajectory&#39;s optimization method and device for applying to timber spraying industry
CN103394430B (en) A kind of complex-curved even application manufacture method based on blind area Optimization Technology between sheet
CN102831306B (en) A kind of layering spraying profile planing method for spray robot
CN101791801B (en) Industrial robot motion planning and performance testing system and implementation method thereof
CN106423656B (en) Automatic spraying system and method based on cloud and images match
CN109876968B (en) Automatic path planning method for steel structure robot spraying
CN108465583B (en) A kind of curved surface spraying orbit generation method and system based on surface parameterization
CN102527554B (en) Spray gun track planning method for free-form surface spraying robot
CN108636671B (en) Irregular surface patch offset spraying path planning method
CN105478285B (en) A kind of irregular curved tube inwall thick coating method for planning track of aerial spraying
CN102909148A (en) Spraying path automatic generating method for adaptive modeling of multiple spray guns
CN104841593A (en) Control method of robot automatic spraying system
CN103611646A (en) Method for spraying robot spatial path planning
CN106423657B (en) A kind of thermal spraying robot path planning method and system based on index curve
CN104331542A (en) Painting robot position planning method for large-scale free-form surface
CN111595355B (en) Unmanned rolling machine group path planning method
CN114082568B (en) Off-line digital-analog planning system and method for large ship body segmented spraying operation
CN102806178A (en) Spraying system capable of automatically acquiring spraying positioning size and spraying method of spraying system
CN115780125A (en) A spraying method and related device for full-coverage traversal spraying
CN201856249U (en) Motion planning and performance testing system for industrial robot
CN106272429B (en) Additional shaft motion planning method in a kind of planer-type lifting machine people working cell
CN110160533A (en) The paths planning method of Mobile Robot Obstacle Avoidance under more convex closure Disorder Models
CN109543267A (en) Handicraft surface based on image procossing sprays simulation and optimization method
CN113751231A (en) Ultra-large space spraying equipment and spraying method for ship segmented non-structural surfaces
CN108227620A (en) A kind of Control During Paint Spraying by Robot orbit generation method based on threedimensional model

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210316

CF01 Termination of patent right due to non-payment of annual fee