CN113305474A - Welding robot welding attitude interpolation method based on PLC - Google Patents
Welding robot welding attitude interpolation method based on PLC Download PDFInfo
- Publication number
- CN113305474A CN113305474A CN202110587031.1A CN202110587031A CN113305474A CN 113305474 A CN113305474 A CN 113305474A CN 202110587031 A CN202110587031 A CN 202110587031A CN 113305474 A CN113305474 A CN 113305474A
- Authority
- CN
- China
- Prior art keywords
- attitude
- welding
- interpolation
- point
- quaternion
- 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
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K37/00—Auxiliary devices or processes, not specially adapted for a procedure covered by only one of the other main groups of this subclass
- B23K37/02—Carriages for supporting the welding or cutting element
- B23K37/0252—Steering means
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K37/00—Auxiliary devices or processes, not specially adapted for a procedure covered by only one of the other main groups of this subclass
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J11/00—Manipulators not otherwise provided for
-
- 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/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
- B25J9/1666—Avoiding collision or forbidden zones
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Robotics (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Manipulator (AREA)
- Numerical Control (AREA)
Abstract
本发明提出了一种基于PLC的焊接机器人摆焊姿态插补方法,包括:示教摆动焊接路径起始点Ps和终止点Pe,得到位置和姿态信息;将所述焊接路径点姿态描述转换成四元数表示;计算起始点和终止点的四元数姿态中间变换Zse;计算姿态中间变换Zse的归一化常数Nconst;计算姿态中间四元数变换Zse的变换角φ;计算焊接路径Ps到Pe中间姿态插补点Pi;生成姿态插补点,判断是否为终点;结合焊接路径起始点到终止点的空间位置插补信息与姿态插补信息,焊接机器人PLC控制器将插值信息通过逆解解算模块转换成对应的关节角度信息,通过总线通讯的方式下发给机器人执行机构执行。
The invention proposes a PLC-based welding robot swing welding attitude interpolation method, including: teaching the starting point P s and the ending point P e of the swing welding path to obtain position and attitude information; Compute the quaternion intermediate transformation Z se of the starting point and the end point; Calculate the normalization constant N const of the intermediate attitude transformation Z se ; Calculate the transformation angle φ of the intermediate quaternion transformation Z se of the attitude; Calculate the intermediate attitude interpolation point P i from the welding path P s to Pe; generate the attitude interpolation point, and judge whether it is the end point; combine the spatial position interpolation information and attitude interpolation information from the starting point to the ending point of the welding path, the welding robot PLC The controller converts the interpolation information into the corresponding joint angle information through the inverse solution module, and sends it to the robot actuator for execution through bus communication.
Description
技术领域technical field
本发明涉及焊接机器人控制技术领域,特别涉及一种基于PLC的焊接机器人摆焊姿态插补方法。The invention relates to the technical field of welding robot control, in particular to a PLC-based welding robot swing welding attitude interpolation method.
背景技术Background technique
在实际的工程应用中,焊接机器人常用于直线、圆弧轨迹的焊接,但在焊缝比较大或为了满足特殊焊接工艺要求时,往往会用到摆动焊接(简称摆焊)。摆焊是指机器人末端焊条沿着焊缝方向行进,同时以设定的幅值与频率进行摆动,以增大焊接宽度,从而提高焊接效率和强度的一种方法。常用的摆动焊接包括三角摆焊、L型摆焊、正弦摆焊等,它有效地提升了焊缝的强度和韧性,在自动化焊接设备中得到广泛应用。In practical engineering applications, welding robots are often used for straight line and arc trajectory welding, but when the weld is relatively large or in order to meet special welding process requirements, swing welding (referred to as swing welding) is often used. Weaving welding refers to a method in which the electrode at the end of the robot travels along the direction of the welding seam, and at the same time oscillates with a set amplitude and frequency to increase the welding width, thereby improving the welding efficiency and strength. Commonly used swing welding includes triangular swing welding, L-shaped swing welding, sinusoidal swing welding, etc. It effectively improves the strength and toughness of the weld and is widely used in automated welding equipment.
摆动焊接的轨迹规划基于机器人运动规划上层,根据用户示教的焊接路径,利用直线或其他曲线拟合焊缝的焊接路径。在一些特殊应用场合,为了满足工艺要求或避免焊接机器人与工装产生碰撞,需要机器人末端姿态在焊接过程中,也要跟着变化;尤其是进行圆弧摆焊时,需要经过示教圆弧摆焊的中间位置和姿态,以避免工装干涉。The trajectory planning of swing welding is based on the upper layer of robot motion planning. According to the welding path taught by the user, a straight line or other curve is used to fit the welding path of the welding seam. In some special applications, in order to meet the process requirements or avoid the collision between the welding robot and the tooling, it is necessary to change the attitude of the robot end during the welding process; especially when performing arc weaving welding, it is necessary to teach the arc weaving welding. the intermediate position and attitude to avoid tool interference.
现有的焊接机器人摆动焊接技术,大多是从平面位置、空间位置角度去研究摆焊方法,利用不同的曲线拟合焊接路径,在进行摆焊轨迹规划时,往往只考虑了位置规划,末涉及姿态规划,在摆动焊接过程中机器人易与工装产生碰撞。同时,机器人在焊接终止点姿态发生突然变化,影响焊接效果。中国专利CN105855672B提供了一种基于示教机器人的空间圆弧插补焊接方法,位姿基于旋转矩阵插补,且需要将机器人坐标系下示教点转换到圆弧所在平面下,计算过程复杂。Existing welding robot swing welding technology mostly studies the swing welding method from the perspective of plane position and spatial position, and uses different curves to fit the welding path. Attitude planning, the robot is easy to collide with the tooling during the swing welding process. At the same time, the robot posture changes suddenly at the welding end point, which affects the welding effect. Chinese patent CN105855672B provides a space arc interpolation welding method based on a teaching robot. The pose is based on rotation matrix interpolation, and the teaching point in the robot coordinate system needs to be converted to the plane where the arc is located, and the calculation process is complicated.
发明内容SUMMARY OF THE INVENTION
本发明的目的旨在至少解决所述技术缺陷之一。The purpose of the present invention is to solve at least one of the technical defects.
为此,本发明的目的在于提出一种基于PLC的焊接机器人摆焊姿态插补方法。Therefore, the purpose of the present invention is to propose a PLC-based welding robot swing welding attitude interpolation method.
为了实现上述目的,本发明的实施例提供一种基于PLC的焊接机器人摆焊姿态插补方法,包括如下步骤:In order to achieve the above object, an embodiment of the present invention provides a PLC-based method for interpolating a weaving welding posture of a welding robot, including the following steps:
步骤S1,示教摆动焊接路径起始点Ps和终止点Pe,得到位置和姿态信息;Step S1, teaching the starting point P s and the ending point Pe of the swing welding path to obtain position and attitude information;
步骤S2,将所述焊接路径点姿态描述转转换成四元数表示;Step S2, converting the welding path point attitude description into a quaternion representation;
步骤S3,计算起始点和终止点的四元数姿态中间变换Zse;Step S3, calculate the quaternion attitude intermediate transformation Z se of the starting point and the ending point;
步骤S4,计算姿态中间变换Zse的归一化常数Nconst;Step S4, calculating the normalization constant N const of the intermediate attitude transformation Z se ;
步骤S5,计算姿态中间四元数变换Zse的变换角φ;Step S5, calculate the transformation angle φ of the quaternion transformation Z se in the middle of the attitude;
步骤S6,计算焊接路径Ps到Pe第i次插补点Pi的姿态信息;然后首先计算插补点Pi的姿态插角,再计算插补点Pi的姿态信息;Step S6, calculate the attitude information of the ith interpolation point P i from the welding path P s to P e ; then first calculate the attitude insertion angle of the interpolation point P i , and then calculate the attitude information of the interpolation point Pi ;
步骤S7,生成姿态插补点,判断是否为终点,如果是则插补结束,否则返回步骤S6;Step S7, generate an attitude interpolation point, determine whether it is the end point, if so, the interpolation ends, otherwise return to step S6;
步骤S8,结合焊接路径起始点到终止点的空间位置插补信息与步骤S7中的姿态插补信息,焊接机器人PLC控制器将插值信息通过逆解解算模块转换成对应的关节角度信息,通过总线通讯的方式下发给机器人执行机构执行。Step S8, combining the spatial position interpolation information from the starting point to the end point of the welding path and the attitude interpolation information in step S7, the welding robot PLC controller converts the interpolation information into the corresponding joint angle information through the inverse solution calculation module, and passes The method of bus communication is sent to the robot actuator for execution.
进一步,在所述步骤S1中,示教出焊接路径的起始点Ps和终止点Pe,获取基于机器人坐标系下的位置和姿态信息P(x,y,z,α,β,γ);机器人位姿信息由基于直角空间的位置矢量(x,y,z)和基于欧拉空间姿态矢量(α,β,γ)共同描述。Further, in the step S1, the starting point P s and the ending point P e of the welding path are taught, and the position and attitude information P (x, y, z, α, β, γ) based on the robot coordinate system are obtained. ; The robot pose information is jointly described by the position vector (x, y, z) based on the rectangular space and the pose vector (α, β, γ) based on the Euler space.
进一步,在所述步骤S2中,Further, in the step S2,
将焊接路径的起始点Ps和Pe的姿态矢量转换到四元数空间,则可用单位四元数描述点的姿态Z=[Zw Zx Zy Zz]T,且欧拉角转换成四元数公式下所示:Convert the attitude vectors of the starting points P s and Pe of the welding path to the quaternion space, then the attitude Z = [Z w Z x Z y Z z ] T can be described by the unit quaternion, and The Euler angles are converted to quaternion formulas as follows:
进一步,在步骤S3中,计算焊接路径起始点Ps到终止点Pe中间变换,包括:Further, in step S3, the intermediate transformation from the starting point P s to the ending point Pe of the welding path is calculated, including:
假设点Ps和Pe的姿态四元数依次为Zs、Ze,四元数中间变换为Zse,则:Assuming that the attitude quaternions of the points P s and Pe are Z s and Z e in turn , and the intermediate transformation of the quaternions is Z se , then:
由单位矩阵的性质可知,单位矩阵的逆Z-等于其共轭Z*,则上式可进一步转换成下式:From the properties of the identity matrix, it can be known that the inverse Z of the identity matrix is equal to its conjugate Z * , then the above formula can be further converted into the following formula:
进一步,further,
Ze为: Ze is:
则将上述Ze和代入式(3)即可得四元数中间变换Zse:Then the above Ze and Substitute into equation (3) to get the quaternion intermediate transformation Z se :
进一步,所述计算姿态中间变换归一化常数Nconst,包括如下步骤:Further, the calculation of the normalization constant N const of the intermediate transformation of the attitude includes the following steps:
假设由所求得中间变换的四元数Zse为则四元数的归一化常数Nconst可由下式表式:Suppose by The obtained intermediate transformation quaternion Z se is Then the normalization constant N const of the quaternion can be expressed by the following formula:
进一步,在所述步骤S4中,计算中间变换Zse变换角φ,包括如下步骤:Further, in the step S4, calculating the intermediate transformation Z se transformation angle φ includes the following steps:
机器人姿态旋转变换既可由四元数描述,也可通过轴-角关系进行描述,即将四元数表示的姿态变换表示成由一个单位向量所定义的旋转轴旋转某一角度φ,由四元数与三维旋转之前关系可得四元数变换角:The rotation transformation of robot attitude can be described either by quaternions or by the axis-angle relationship, that is, the attitude transformation represented by quaternions is expressed as a rotation axis defined by a unit vector Rotate a certain angle φ, and the quaternion transformation angle can be obtained from the relationship between the quaternion and the three-dimensional rotation:
进一步,所述计算焊接路径Ps到Pe姿态变化的中间插补点Pi,包括如下步骤:Further, the calculation of the intermediate interpolation point P i of the attitude change from the welding path P s to the P e includes the following steps:
对焊接路径起始点Ps到终止点Pe的姿态插值可转换成对中间变换Zse旋转角φ的插值。假设焊接路径位置的摆动插值次数为N,姿态中间插补点i为1,2,...,(N-1);下面计算姿态中间插补点Pi的信息:The attitude interpolation of the welding path starting point P s to the ending point Pe can be converted into an interpolation of the rotation angle φ of the intermediate transformation Z se . Assuming that the number of swing interpolation of the welding path position is N, and the intermediate interpolation point i of the attitude is 1, 2, ..., (N-1); the information of the intermediate interpolation point P i of the attitude is calculated as follows:
a)假设第i次插值点相对焊接起始点的姿态变化角为则四元数姿态变换的第一个元素为:a) Suppose the attitude change angle of the ith interpolation point relative to the welding starting point is Then the first element of the quaternion pose transformation is:
b)结合中间变换Zse的归一化常数,可得到中间计算变量κ:b) Combined with the normalization constant of the intermediate transformation Z se , the intermediate calculation variable κ can be obtained:
c)中间姿态变换插补点相对圆弧起始点的姿态变化四元数Zsi可由下式表示:c) The attitude change quaternion Z si of the intermediate attitude transformation interpolation point relative to the arc starting point can be expressed by the following formula:
则插补点的姿态四元数Zi为:Then the attitude quaternion Z i of the interpolation point is:
Zi=Zsi·Zs Z i =Z si ·Z s
d)将插补点Pi的姿态四元数Zi转换成欧拉角(RPY),假设Pi的欧拉角为(αi,βi,γi),则:d) Convert the attitude quaternion Z i of the interpolation point P i into Euler angles (RPY), assuming The Euler angles of P i are (α i ,β i ,γ i ), then:
e)重复步骤a~d,直到计算完所有的中间插值点;最后一个插值点为摆动焊接终止点Pe e) Repeat steps a to d until all intermediate interpolation points are calculated; the last interpolation point is the end point P e of the swing welding
根据本发明实施例的基于PLC的焊接机器人摆焊姿态插补方法,基于PLC焊接机器人控制器开发,在摆动轨迹规划时,对焊接路径点的姿态进行规划,有效避免了机器人摆动焊接过程中与工装碰撞问题。同时,本发明在四元数空间对焊接机器人姿态进行规划插值,保证机器人姿态平滑性,并提升焊接质量。According to the PLC-based welding robot weaving welding attitude interpolation method, developed based on the PLC welding robot controller, during the swing trajectory planning, the posture of the welding path point is planned, which effectively avoids the robot swing welding process. Tooling collision problem. At the same time, the present invention performs planning and interpolation on the posture of the welding robot in the quaternion space, so as to ensure the smoothness of the posture of the robot and improve the welding quality.
1.本发明摆动轨迹规划时,对姿态进行规划插补,有效避免了机器人摆动焊接过程中与工装碰撞问题;1. During the swing trajectory planning of the present invention, the posture is planned and interpolated, which effectively avoids the collision problem with the tooling during the robot swing welding process;
2.本发明在四元数空间对姿态进行规划插补,且不涉及坐标变换,算法简单高效;2. The present invention performs planning and interpolation on the posture in the quaternion space, and does not involve coordinate transformation, and the algorithm is simple and efficient;
3.本发明基于四元数的姿态插补法,摆焊过程中焊接机器人姿态变化顺滑平稳,提升焊接质量。3. The present invention is based on the attitude interpolation method of quaternion, the attitude change of the welding robot is smooth and stable during the swing welding process, and the welding quality is improved.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1为根据本发明实施例的基于PLC的焊接机器人摆焊姿态插补方法的流程图;1 is a flowchart of a PLC-based welding robot weaving welding posture interpolation method according to an embodiment of the present invention;
图2为根据本发明实施例的基于PLC的焊接机器人摆焊姿态插补方法的示意图。FIG. 2 is a schematic diagram of a PLC-based welding robot weaving welding posture interpolation method according to an embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the present invention and should not be construed as limiting the present invention.
如图1和图2所示,本发明实施例的基于PLC的焊接机器人摆焊姿态插补方法,包括如下步骤:As shown in FIG. 1 and FIG. 2 , the PLC-based welding robot weaving welding posture interpolation method according to the embodiment of the present invention includes the following steps:
步骤S1,示教摆动焊接路径起始点Ps和终止点Pe,得到位置和姿态信息。In step S1, the starting point P s and the ending point Pe of the swing welding path are taught to obtain the position and attitude information.
在本步骤中,示教出焊接路径的起始点Ps和终止点Pe,获取基于机器人坐标系下的位置和姿态信息P(x,y,z,α,β,γ);机器人位姿信息由基于直角空间的位置矢量(x,y,z)和基于欧拉空间姿态矢量(α,β,γ)共同描述。In this step, the starting point P s and the ending point P e of the welding path are taught, and the position and attitude information P (x, y, z, α, β, γ) based on the robot coordinate system is obtained; the robot pose The information is jointly described by the position vector (x, y, z) based on the rectangular space and the pose vector (α, β, γ) based on the Euler space.
具体的,通过焊接机器人示教器,示教出摆动焊接路径的起始点Ps和终止点Pe,获取基于机器人坐标系下的位置和姿态信息Ps(xs,ys,zs,αs,βs,γs)和Pe(xe,ye,ze,αe,βe,γe)。Specifically, through the welding robot teach pendant, teach the starting point P s and the ending point P e of the swing welding path, and obtain the position and attitude information P s (x s , y s , z s , based on the robot coordinate system) α s , β s , γ s ) and P e (x e , y e , ze , α e , β e , γ e ).
步骤S2,将焊接路径点姿态描述转换成四元数表示。In step S2, the gesture description of the welding path point is converted into a quaternion representation.
在本发明的实施例中,将焊接路径的起始点Ps和Pe的姿态矢量转换到四元数空间,则可用单位四元数描述点的姿态Z=[Zw Zx Zy Zz]T,且欧拉角转换成四元数公式下所示:In the embodiment of the present invention, the attitude vectors of the starting points P s and P e of the welding path are converted into the quaternion space, then the attitude of the points can be described by the unit quaternion Z = [Z w Z x Z y Z z ] T , and The Euler angles are converted to quaternion formulas as follows:
通过公式(1)将摆动焊接起始点Ps和终止点Pe的姿态(α,β,γ)转换成四元数描述,则Ps和Pe对应姿态四元数依次为 The attitudes (α, β, γ) of the starting point P s and the end point Pe of the swing welding are converted into quaternion description by formula (1), then the corresponding attitude quaternions of P s and Pe are as follows:
步骤S3,计算起始点和终止点的四元数姿态中间变换Zse。Step S3, calculate the quaternion pose intermediate transformation Z se of the starting point and the ending point.
在本步骤中,计算焊接路径起始点Ps到终止点Pe中间变换,包括:In this step, the intermediate transformation from the starting point P s to the ending point Pe of the welding path is calculated, including:
假设点Ps和Pe的姿态四元数依次为Zs、Ze,四元数中间变换为Zse,则:Assuming that the attitude quaternions of the points P s and Pe are Z s and Z e in turn , and the intermediate transformation of the quaternions is Z se , then:
由单位矩阵的性质可知,单位矩阵的逆Z-等于其共轭Z*,则上式可进一步转换成下式:From the properties of the identity matrix, it can be known that the inverse Z of the identity matrix is equal to its conjugate Z * , then the above formula can be further converted into the following formula:
其中,Ze为:in, Ze is:
则将上述Ze和代入式(3)即可得四元数中间变换Zse:Then the above Ze and Substitute into equation (3) to get the quaternion intermediate transformation Z se :
步骤S4,计算姿态中间变换Zse的归一化常数Nconst。Step S4, calculate the normalization constant N const of the intermediate attitude transformation Z se .
具体的,计算姿态中间变换归一化常数Nconst,包括如下步骤:Specifically, calculating the normalization constant N const of the intermediate attitude transformation includes the following steps:
假设由式(3)所求得中间变换的四元数Zse为则四元数的归一化常数Nconst可由下式(4)表式:Assuming that the quaternion Z se of the intermediate transformation obtained by formula (3) is Then the normalization constant N const of the quaternion can be expressed by the following formula (4):
步骤S5,计算姿态中间四元数变换Zse的变换角φ。Step S5, calculate the transformation angle φ of the intermediate quaternion transformation Z se of the attitude.
具体的,计算中间变换Zse变换角φ,包括如下步骤:Specifically, calculating the transformation angle φ of the intermediate transformation Z se includes the following steps:
机器人姿态旋转变换既可由四元数描述,也可通过轴-角关系进行描述,即将四元数表示的姿态变换表示成由一个单位向量所定义的旋转轴旋转某一角度φ,由四元数与三维旋转之前关系,结合所求Zse可得四元数变换角:The rotation transformation of robot attitude can be described either by quaternions or by the axis-angle relationship, that is, the attitude transformation represented by quaternions is expressed as a rotation axis defined by a unit vector Rotate a certain angle φ, according to the relationship between the quaternion and the three-dimensional rotation, combined with the required Z se , the quaternion transformation angle can be obtained:
步骤S6,计算焊接路径Ps到Pe第i次插补点Pi姿态信息。Step S6, calculating the attitude information of the ith interpolation point P i from the welding path P s to Pe.
具体的,计算焊接路径Ps到Pe姿态变化的中间第i次插补点Pi姿态信息,包括如下步骤:Specifically, calculating the attitude information of the intermediate i-th interpolation point P i from the attitude change from the welding path P s to the P e includes the following steps:
对焊接路径起始点Ps到终止点Pe的姿态插值可转换成对中间变换Zse旋转角φ的插值。假设焊接路径位置的摆动插值次数为N,则总的姿态插补周期数为N,姿态中间插补点i为1,2,...,(N-1)。下面计算姿态中间插补点Pi的信息:首先,计算插补点Pi的姿态插角,再计算插补点Pi的姿态信息。The attitude interpolation of the welding path starting point P s to the ending point Pe can be converted into an interpolation of the rotation angle φ of the intermediate transformation Z se . Assuming that the number of swing interpolation of the welding path position is N, the total number of attitude interpolation cycles is N, and the intermediate interpolation point i of the attitude is 1, 2, . . . , (N-1). The information of the interpolation point P i in the middle of the attitude is calculated as follows: First, the attitude interpolation angle of the interpolation point Pi is calculated, and then the attitude information of the interpolation point Pi is calculated.
a)第i次插值点相对焊接起始点的姿态变化角为:a) The attitude change angle of the ith interpolation point relative to the welding starting point is:
其中,插补点Pi的姿态插角 in, Attitude insertion angle of interpolation point Pi
则可得到姿态变换的第一个元素为:Then the first element of the attitude transformation can be obtained as:
b)结合中间变换Zse的归一化常数,可得到中间计算变量κ:b) Combined with the normalization constant of the intermediate transformation Z se , the intermediate calculation variable κ can be obtained:
c)计算中间姿态变换插补点相对圆弧起始点的姿态变化四元数Zsi c) Calculate the attitude change quaternion Z si of the intermediate attitude transformation interpolation point relative to the arc starting point
则插补点的姿态四元数Zi为:Then the attitude quaternion Z i of the interpolation point is:
Zi=Zsi·Zs (9)Z i = Z si · Z s (9)
结合式(6)、(7)、(8)、(9)可得摆动焊接插补点i的姿态四元数为:Combining equations (6), (7), (8) and (9), the attitude quaternion of the interpolation point i of the swing welding can be obtained as:
d)将插补点Pi的姿态四元数Zi转换成欧拉角(αi,βi,γi):d) Convert the attitude quaternion Z i of the interpolation point P i into Euler angles (α i , β i , γ i ):
假设则Pi的欧拉角可由式(10)所得:Assumption Then the Euler angles of P i can be obtained from equation (10):
结合子步骤c)中所求Zi和式(10)即可得到插补点Pi的欧拉角。The Euler angle of the interpolation point P i can be obtained by combining the Z i obtained in the sub-step c) and the formula (10).
其中,插补点Pi的姿态信息采用上述计算得到的欧拉角进行描述,在实际插补操作中转换成四元数进行描述,以四元数变换的旋转角进行插补。Among them, the attitude information of the interpolation point P i is described by the Euler angle obtained by the above calculation, and is converted into a quaternion for description in the actual interpolation operation, and the interpolation is performed by the rotation angle transformed by the quaternion.
e)重复步骤a~d,直到计算完所有的中间插值点姿态;最后一个插值点为摆动焊接终止点Pe。步骤S7,生成姿态插补点,判断是否为终点,如果是则插补结束,否则返回步骤S6。e) Repeat steps a to d until the poses of all the intermediate interpolation points are calculated; the last interpolation point is the end point P e of the swing welding. In step S7, an attitude interpolation point is generated, and it is judged whether it is the end point. If so, the interpolation is ended, otherwise, it returns to step S6.
步骤S8,结合焊接路径起始点到终止点的空间位置插补信息与步骤S7中的姿态插补信息,焊接机器人PLC控制器将插值信息通过逆解解算模块转换成对应的关节角度信息,通过总线通讯的方式下发给机器人执行机构执行。Step S8, combining the spatial position interpolation information from the starting point to the end point of the welding path and the attitude interpolation information in step S7, the welding robot PLC controller converts the interpolation information into the corresponding joint angle information through the inverse solution calculation module, and passes The method of bus communication is sent to the robot actuator for execution.
根据本发明实施例的基于PLC的焊接机器人摆焊姿态插补方法,基于PLC焊接机器人控制器开发,在摆动轨迹规划时,对焊接路径点的姿态进行规划,有效避免了机器人摆动焊接过程中与工装碰撞问题。同时,本发明在四元数空间对焊接机器人姿态进行规划插值,保证机器人姿态平滑性,并提升焊接质量。According to the PLC-based welding robot weaving welding attitude interpolation method, developed based on the PLC welding robot controller, during the swing trajectory planning, the posture of the welding path point is planned, which effectively avoids the robot swing welding process. Tooling collision problem. At the same time, the present invention performs planning and interpolation on the posture of the welding robot in the quaternion space, so as to ensure the smoothness of the posture of the robot and improve the welding quality.
1.本发明摆动轨迹规划时,对姿态进行规划插补,有效避免了机器人摆动焊接过程中与工装碰撞问题;1. During the swing trajectory planning of the present invention, the posture is planned and interpolated, which effectively avoids the collision problem with the tooling during the robot swing welding process;
2.本发明在四元数空间对姿态进行规划插补,且不涉及坐标变换,算法简单高效;2. The present invention performs planning and interpolation on the posture in the quaternion space, and does not involve coordinate transformation, and the algorithm is simple and efficient;
3.本发明基于四元数的姿态插补法,摆焊过程中焊接机器人姿态变化顺滑平稳,提升焊接质量。3. The present invention is based on the attitude interpolation method of quaternion, the attitude change of the welding robot is smooth and stable during the swing welding process, and the welding quality is improved.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在不脱离本发明的原理和宗旨的情况下在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。本发明的范围由所附权利要求及其等同限定。Although the embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and those of ordinary skill in the art will not depart from the principles and spirit of the present invention Variations, modifications, substitutions, and alterations to the above-described embodiments are possible within the scope of the present invention without departing from the scope of the present invention. The scope of the invention is defined by the appended claims and their equivalents.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110587031.1A CN113305474B (en) | 2021-05-27 | 2021-05-27 | Welding robot welding attitude interpolation method based on PLC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110587031.1A CN113305474B (en) | 2021-05-27 | 2021-05-27 | Welding robot welding attitude interpolation method based on PLC |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113305474A true CN113305474A (en) | 2021-08-27 |
CN113305474B CN113305474B (en) | 2022-12-02 |
Family
ID=77375959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110587031.1A Active CN113305474B (en) | 2021-05-27 | 2021-05-27 | Welding robot welding attitude interpolation method based on PLC |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113305474B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013059815A (en) * | 2011-09-12 | 2013-04-04 | Denso Wave Inc | Positioning posture interpolation method and control device for robot |
CN103568012A (en) * | 2013-10-24 | 2014-02-12 | 安徽埃夫特智能装备有限公司 | Method for planning biplanar swing arc track of arc welding robot |
CN105643619A (en) * | 2014-11-13 | 2016-06-08 | 中国科学院沈阳计算技术研究所有限公司 | Method for controlling tool position and pose of industrial robot through frame description |
CN106671079A (en) * | 2015-11-06 | 2017-05-17 | 中国科学院沈阳计算技术研究所有限公司 | Motion control method for welding robot in coordination with positioner |
CN106826829A (en) * | 2017-02-22 | 2017-06-13 | 武汉工程大学 | A kind of industrial robot fairing trace generator method of Controllable Error |
CN108549322A (en) * | 2018-04-11 | 2018-09-18 | 广州启帆工业机器人有限公司 | Pose synchronization method and device for arc track motion of robot |
-
2021
- 2021-05-27 CN CN202110587031.1A patent/CN113305474B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013059815A (en) * | 2011-09-12 | 2013-04-04 | Denso Wave Inc | Positioning posture interpolation method and control device for robot |
CN103568012A (en) * | 2013-10-24 | 2014-02-12 | 安徽埃夫特智能装备有限公司 | Method for planning biplanar swing arc track of arc welding robot |
CN105643619A (en) * | 2014-11-13 | 2016-06-08 | 中国科学院沈阳计算技术研究所有限公司 | Method for controlling tool position and pose of industrial robot through frame description |
CN106671079A (en) * | 2015-11-06 | 2017-05-17 | 中国科学院沈阳计算技术研究所有限公司 | Motion control method for welding robot in coordination with positioner |
CN106826829A (en) * | 2017-02-22 | 2017-06-13 | 武汉工程大学 | A kind of industrial robot fairing trace generator method of Controllable Error |
CN108549322A (en) * | 2018-04-11 | 2018-09-18 | 广州启帆工业机器人有限公司 | Pose synchronization method and device for arc track motion of robot |
Also Published As
Publication number | Publication date |
---|---|
CN113305474B (en) | 2022-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105500354B (en) | Transition track planning method applied to industrial robot | |
JP4896276B2 (en) | ROBOT, ROBOT CONTROL DEVICE, CONTROL METHOD, AND CONTROL PROGRAM | |
CN103909522B (en) | A kind of Six-DOF industrial robot is by the method in unusual territory | |
CN102662350B (en) | Trajectory teaching and planning method for master-slave multi-robot collaborative system | |
CN108549322A (en) | Pose synchronization method and device for arc track motion of robot | |
CN106671079A (en) | Motion control method for welding robot in coordination with positioner | |
CN115890735B (en) | Robotic arm system, robotic arm and control method thereof, controller and storage medium | |
CN111496783B (en) | A solution method of inverse kinematics for 6R industrial robot | |
CN113681570B (en) | A control method for a six-axis manipulator to pass through singular points | |
CN112809666B (en) | 5-DOF mechanical arm strength position tracking algorithm based on neural network | |
Fallah et al. | Depth-based visual predictive control of tendon-driven continuum robots | |
CN109648229B (en) | Swing welding method for expanding double-straight-line cooperative function shaft based on six-degree-of-freedom robot | |
CN116652952A (en) | Method and system for flexible cable manipulation in a constrained environment using dual robotic arms | |
Guilamo et al. | Manipulability optimization for trajectory generation | |
CN106003055A (en) | Movement joint angle solution method based on bending machine manipulator | |
CN113305474A (en) | Welding robot welding attitude interpolation method based on PLC | |
Zhang et al. | Kuka youbot arm shortest path planning based on geodesics | |
CN113084797B (en) | A Dynamic Cooperative Control Method of Dual-Arm Redundant Manipulators Based on Task Decomposition | |
CN108526778A (en) | A kind of workpiece placement planning method for robot emulation system welding application | |
CN115533883B (en) | Singularity prediction and motion control method of under-freedom manipulator and robot | |
Müller et al. | Smooth and time-optimal trajectory planning for robot manipulators | |
Wu et al. | Dimension reduced instantaneous inverse kinematics for configuration variable limits of continuum manipulators | |
CN110039249B (en) | Method for solving motion trail of welding positioner based on inverse kinematics analytic solution weight method of welding positioner | |
CN118832602B (en) | Control strategy and inverse solution method for external linear axis of robot | |
CN115958597B (en) | Industrial robot continuous attitude path fairing method and system |
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 |