[go: up one dir, main page]

CN107116542B - A control method and system for a six-joint industrial robot passing a posture singularity - Google Patents

A control method and system for a six-joint industrial robot passing a posture singularity Download PDF

Info

Publication number
CN107116542B
CN107116542B CN201710504635.9A CN201710504635A CN107116542B CN 107116542 B CN107116542 B CN 107116542B CN 201710504635 A CN201710504635 A CN 201710504635A CN 107116542 B CN107116542 B CN 107116542B
Authority
CN
China
Prior art keywords
joint
coordinate system
industrial robot
singularity
interpolation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710504635.9A
Other languages
Chinese (zh)
Other versions
CN107116542A (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.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and 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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN201710504635.9A priority Critical patent/CN107116542B/en
Publication of CN107116542A publication Critical patent/CN107116542A/en
Application granted granted Critical
Publication of CN107116542B publication Critical patent/CN107116542B/en
Active 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/02Programme-controlled manipulators characterised by movement of the arms, e.g. cartesian coordinate type
    • B25J9/04Programme-controlled manipulators characterised by movement of the arms, e.g. cartesian coordinate type by rotating at least one arm, excluding the head movement itself, e.g. cylindrical coordinate type or polar coordinate type
    • B25J9/046Revolute coordinate type
    • 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)
  • Other Investigation Or Analysis Of Materials By Electrical Means (AREA)
  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

本发明属于工业机器人运动控制领域,并具体公开了一种六关节工业机器人通过姿态奇点的控制方法及系统,包括如下步骤:1)截取姿态奇点所处工业机器人预设的规划路径中的一段轨迹,获取轨迹起点的位置值和后三个关节变量值以及终点的位置值和后三个关节变量值;2)以插补方式获得姿态奇点位置的后三个关节变量值;3)求取姿态奇点位置对应的前三个关节变量值;4)以所述姿态奇点位置对应的后三个关节变量值以及前三个关节变量值作为工业机器人在姿态奇点位置对应的运动控制参数,实现工业机器人的运动控制,以此使得六关节工业机器人顺利通过姿态奇点。本发明在不改变原有规划路径的前提下使得机器人顺利通过姿态奇点,简单易行且效率高。

The invention belongs to the field of motion control of industrial robots, and specifically discloses a control method and system for a six-joint industrial robot passing through a singular point of posture, including the following steps: 1) intercepting the position in the planned path preset by the industrial robot where the singular point of posture is located A section of trajectory, obtain the position value of the starting point of the trajectory and the last three joint variable values and the position value of the end point and the last three joint variable values; 2) Obtain the last three joint variable values of the pose singularity position by interpolation; 3) Find the first three joint variable values corresponding to the attitude singularity position; 4) take the last three joint variable values corresponding to the attitude singularity position and the first three joint variable values as the motion of the industrial robot corresponding to the attitude singularity position Control parameters to realize the motion control of industrial robots, so that the six-joint industrial robot can pass through the singularity of posture smoothly. The invention enables the robot to pass through the attitude singularity smoothly under the premise of not changing the original planned path, which is simple and efficient.

Description

一种六关节工业机器人通过姿态奇点的控制方法及系统A control method and system for a six-joint industrial robot passing a posture singularity

技术领域technical field

本发明属于工业机器人运动控制领域,更具体地,涉及一种六关节工业机器人通过姿态奇点的控制方法及系统。The invention belongs to the field of motion control of industrial robots, and more specifically relates to a control method and system for a six-joint industrial robot passing a singular point of posture.

背景技术Background technique

运动控制指令是实现以指定速度、特定路线模式等将工具从一个位置移动到另一个指定位置,在使用运动指令时需指定采用什么运动方式来控制到达指定位置的运动路径,机器人运动的类型有三种:关节运动(J)、直线运动(L)、圆弧运动(C)。六关节工业机器人的后三个关节轴线交于一点,当机器人第四关节和第六关节轴线重合,运动相互抵消,机器人将丧失一个自由度,此为机器人俯/仰关节属性的临界点,也是机器人的内部奇异形位,可称为机器人的姿态奇点。当处于姿态奇点时,机器人的运动类型为直线运动或者圆弧运动,此时运动控制器不知该如何选取第四关节和第六关节的值,导致机械臂失控并发出警报,使机器人无法按照规划的路径通过姿态奇点,这种情况在实际应用中经常出现,不仅使机器人的运动空间缩小,而且给生产带来了很大的不便。The motion control command is to move the tool from one position to another specified position at a specified speed, specific route mode, etc. When using the motion command, it is necessary to specify what motion method to use to control the motion path to the specified position. There are three types of robot motion. Types: joint motion (J), linear motion (L), circular motion (C). The axes of the last three joints of the six-joint industrial robot intersect at one point. When the axes of the fourth joint and the sixth joint of the robot coincide, the motions cancel each other out, and the robot will lose one degree of freedom. The internal singularity of the robot can be called the posture singularity of the robot. When it is at the pose singularity, the motion type of the robot is linear motion or arc motion. At this time, the motion controller does not know how to select the values of the fourth joint and the sixth joint, which will cause the mechanical arm to lose control and issue an alarm, so that the robot cannot follow the The planned path passes through the attitude singularity, which often occurs in practical applications, which not only reduces the movement space of the robot, but also brings great inconvenience to production.

目前对于工业机器人的姿态奇点主要有以下三种处理方法:1)避让机器人的姿态奇点:当遇到姿态奇点时,改变机器人的运动路径从而避让奇异形位;2)路径规划方法:采用对姿态奇点进行路径规划的方法使得机器人通过姿态奇点,通过迭代运算得到关节变量值的解析解;3)调整姿态法:当处于姿态奇点时,第四关节和第六关节的关节变量的和或差为定值,通过协调两者的值使得机器人通过姿态奇点。At present, there are three main processing methods for the attitude singularity of industrial robots: 1) avoiding the attitude singularity of the robot: when encountering the attitude singularity, change the motion path of the robot so as to avoid the singularity; 2) path planning method: The method of path planning for the attitude singularity is used to make the robot pass through the attitude singularity and obtain the analytical solution of the joint variable value through iterative operations; 3) Adjust the attitude method: when it is in the attitude singularity, the joints of the fourth joint and the sixth joint The sum or difference of the variables is a fixed value, and the robot passes through the pose singularity by coordinating the two values.

然而进一步的研究表明,上述方法仍然存在以下问题:避让姿态奇点法虽然使机器人从姿态奇点附近的路径通过,避开了姿态奇点,但是其改变了机器人原有的路径并且具有盲目性,需要对机器人所有的姿态奇点进行避让,可操作性不强,同时也使得机器人的空间范围缩小;路径规划方法是对姿态奇点所处的路径重新进行规划,采用复杂的迭代运算求得机器人关节变量的解析解,不能得到精确的数值解,使得机器人不能准确的通过姿态奇点,并且计算繁琐,工作量较大;调整姿态法虽然可以使得机器人准确的通过姿态奇点,但是在协调运动的过程中机器人处于停留状态,使得机器人的效率降低,并且可能导致协调后的运动速度不连续,给实际生产带来不便。However, further studies have shown that the above method still has the following problems: Although the method of avoiding the singularity of attitude makes the robot pass the path near the singularity of attitude and avoids the singularity of attitude, it changes the original path of the robot and has blindness. , it is necessary to avoid all the attitude singularities of the robot, the operability is not strong, and it also reduces the space range of the robot; the path planning method is to re-plan the path where the attitude singularities are located, and use complex iterative calculations to obtain The analytical solution of the robot joint variables cannot obtain an accurate numerical solution, so that the robot cannot pass the attitude singularity accurately, and the calculation is cumbersome, and the workload is large; although the attitude adjustment method can make the robot accurately pass the attitude singularity, but in coordination During the movement, the robot is in a stop state, which reduces the efficiency of the robot and may cause discontinuous movement speed after coordination, which brings inconvenience to actual production.

发明内容Contents of the invention

针对现有技术的以上缺陷或改进需求,本发明提供了一种六关节工业机器人通过姿态奇点的控制方法及系统,其采用插补替换机器人末端姿态的方式,在不改变原有规划路径的前提下使得机器人顺利通过姿态奇点,由此解决目前因姿态奇点导致机器人运动范围受限的技术问题,具有简单易行、运算效率高、适用性强等特点。Aiming at the above defects or improvement needs of the prior art, the present invention provides a control method and system for a six-joint industrial robot passing a singular point of posture, which adopts the method of interpolation to replace the posture of the robot end, without changing the original planned path. Under the premise, the robot can pass through the attitude singularity smoothly, thereby solving the current technical problem that the robot's range of motion is limited due to the attitude singularity, and has the characteristics of simplicity, high computing efficiency, and strong applicability.

为实现上述目的,按照本发明的一个方面,提出了一种六关节工业机器人通过姿态奇点的控制方法,其包括如下步骤:In order to achieve the above object, according to one aspect of the present invention, a control method for a six-joint industrial robot passing a singular point of attitude is proposed, which includes the following steps:

(1)截取姿态奇点所处工业机器人预设的规划路径中的一段轨迹,获取该轨迹起点对应的位置值和后三个关节变量值以及该轨迹终点对应的位置值和后三个关节变量值;(1) Intercept a segment of the trajectory in the preset planning path of the industrial robot where the attitude singularity is located, and obtain the position value corresponding to the starting point of the trajectory and the last three joint variable values, as well as the position value corresponding to the end point of the trajectory and the last three joint variables value;

(2)根据所述起点的后三个关节变量值以及终点的后三个关节变量值以插补的方式获得姿态奇点位置对应的后三个关节变量值;(2) According to the last three joint variable values of the starting point and the last three joint variable values of the end point, obtain the last three joint variable values corresponding to the pose singularity position by interpolation;

(3)建立运动学反解方程求取姿态奇点位置对应的前三个关节变量值;(3) Establish the kinematics inverse solution equation to obtain the first three joint variable values corresponding to the posture singularity position;

(4)以所述姿态奇点位置对应的后三个关节变量值以及前三个关节变量值作为工业机器人在姿态奇点位置对应的运动控制参数,实现工业机器人的运动控制,以此使得六关节工业机器人顺利通过姿态奇点。(4) Use the last three joint variable values and the first three joint variable values corresponding to the posture singularity position as the motion control parameters corresponding to the posture singularity position of the industrial robot to realize the motion control of the industrial robot, so that the six The articulated industrial robot passed the pose singularity smoothly.

作为进一步优选的,所述步骤(3)包括如下子步骤:As further preferably, said step (3) includes the following sub-steps:

(3.1)首先建立如下矩阵方程:(3.1) First establish the following matrix equation:

其中,xt,yt,zt为工具坐标系原点相对于基坐标系的三个坐标分量,s1=sin(θ1),s2=sin(θ2),s23=sin(θ23),c1=cos(θ1),c2=cos(θ2),c23=cos(θ23),θ123为工业机器人第一关节至第三关节的关节变量,a1和a2分别表示第一连杆和第二连杆的长度,d2表示第一连杆和第二连杆之间的偏置,x3,y3,z3为工具坐标系原点相对于第三连杆坐标系的三个坐标分量;Among them, x t , y t , z t are the three coordinate components of the origin of the tool coordinate system relative to the base coordinate system, s 1 =sin(θ 1 ), s 2 =sin(θ 2 ), s 23 =sin(θ 2 23 ), c 1 =cos(θ 1 ), c 2 =cos(θ 2 ), c 23 =cos(θ 23 ), θ 1 , θ 2 , θ 3 are the first joints of the industrial robot Joint variables to the third joint, a 1 and a 2 represent the lengths of the first and second links respectively, d 2 represents the offset between the first and second links, x 3 , y 3 , z 3 is the three coordinate components of the origin of the tool coordinate system relative to the third link coordinate system;

(3.2)对步骤(3.1)中建立的矩阵方程两端同时左乘第一连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵,建立运动学反解方程,求得第一关节和第三关节的关节变量值θ1和θ3(3.2) Multiply the two ends of the matrix equation established in step (3.1) by the inverse matrix of the homogeneous transformation matrix of the first link coordinate system relative to the base coordinate system at the same time, establish the kinematics inverse solution equation, and obtain the first joint and the joint variable values θ 1 and θ 3 of the third joint:

其中,a1和a2分别表示第一连杆和第二连杆的长度,d2表示第一连杆、第二连杆之间的偏置;Wherein, a 1 and a 2 represent the lengths of the first connecting rod and the second connecting rod respectively, and d 2 represents the offset between the first connecting rod and the second connecting rod;

(3.3)对步骤(3.1)中建立的矩阵方程两端同时左乘第三连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵,建立运动学反解方程,求得第二关节的关节变量值θ2(3.3) To the inverse matrix of the homogeneous transformation matrix of the homogeneous transformation matrix of the third link coordinate system relative to the base coordinate system at both ends of the matrix equation established in step (3.1), establish the kinematics inverse solution equation, and obtain the second joint The joint variable value θ 2 of :

其中,c3=cos(θ3),s3=sin(θ3)。Wherein, c 3 =cos(θ 3 ), s 3 =sin(θ 3 ).

作为进一步优选的,所述插补的总点数N优选采用下述方式确定:As a further preference, the total number of interpolation points N is preferably determined in the following manner:

其中:x1,y1,z1为轨迹起点的位置值,x2,y2,z2为轨迹终点的位置值,V为插补速度,T为插补周期。Among them: x 1 , y 1 , z 1 are the position values of the starting point of the track, x 2 , y 2 , z 2 are the position values of the end point of the track, V is the interpolation speed, and T is the interpolation period.

作为进一步优选的,所述插补速度优选为10mm/s,插补周期优选为1ms。As a further preference, the interpolation speed is preferably 10 mm/s, and the interpolation cycle is preferably 1 ms.

作为进一步优选的,所述步骤(1)之前还包括如下步骤:首先根据六关节工业机器人建立连杆坐标系,并对预设的规划路径进行运动学反解获得工业机器人的各关节变量值,然后判断六关节工业机器人是否处于姿态奇点,若是,则进入步骤(1),若否,则以反解获得的工业机器人的各关节变量值实现工业机器人的运动控制。As a further preference, the step (1) also includes the following steps before: first, establish a link coordinate system according to the six-joint industrial robot, and perform kinematic inverse solution to the preset planned path to obtain the joint variable values of the industrial robot, Then it is judged whether the six-joint industrial robot is in the pose singularity, if so, enter step (1), if not, realize the motion control of the industrial robot with the variable values of each joint of the industrial robot obtained from the inverse solution.

按照本发明的另一个方面,提供了一种六关节工业机器人通过姿态奇点的控制系统,其包括:According to another aspect of the present invention, there is provided a control system for a six-joint industrial robot passing a singular point of posture, which includes:

数据获取模块,用于截取姿态奇点所处工业机器人预设的规划路径中的一段轨迹,获取该轨迹起点对应的位置值和后三个关节变量值以及该轨迹终点对应的位置值和后三个关节变量值;The data acquisition module is used to intercept a section of the trajectory in the preset planning path of the industrial robot where the attitude singularity is located, and obtain the position value corresponding to the starting point of the trajectory and the last three joint variable values, as well as the position value corresponding to the end point of the trajectory and the last three joint variables. joint variable value;

插补模块,用于根据所述起点的后三个关节变量值以及终点的后三个关节变量值以插补的方式获得姿态奇点位置对应的后三个关节变量值;An interpolation module, configured to obtain the last three joint variable values corresponding to the pose singularity position by interpolation according to the last three joint variable values of the starting point and the last three joint variable values of the end point;

数据处理模块,用于建立运动学反解方程并求取姿态奇点位置对应的前三个关节变量值;The data processing module is used to establish the kinematics inverse solution equation and obtain the first three joint variable values corresponding to the attitude singularity position;

运动控制模块,用于以所述姿态奇点位置对应的后三个关节变量值以及前三个关节变量值作为工业机器人在姿态奇点位置对应的运动控制参数,实现工业机器人的运动控制,以此使得六关节工业机器人顺利通过姿态奇点。The motion control module is used to use the last three joint variable values corresponding to the posture singularity position and the first three joint variable values as the motion control parameters corresponding to the posture singularity position of the industrial robot to realize the motion control of the industrial robot, to This makes the six-joint industrial robot pass through the pose singularity smoothly.

作为进一步优选的,所述数据处理模块包括如下子模块:As further preferred, the data processing module includes the following submodules:

矩阵方程建立子模块,用于建立如下方程:The matrix equation establishment sub-module is used to establish the following equations:

其中,xt,yt,zt为工具坐标系原点相对于基坐标系的三个坐标分量,s1=sin(θ1),s2=sin(θ2),s23=sin(θ23),c1=cos(θ1),c2=cos(θ2),c23=cos(θ23),θ123为工业机器人第一关节至第三关节的关节变量值,a1和a2分别表示第一连杆和第二连杆的长度,d2表示第一连杆和第二连杆之间的偏置,x3,y3,z3为工具坐标系原点相对于第三连杆坐标系的三个坐标分量;Among them, x t , y t , z t are the three coordinate components of the origin of the tool coordinate system relative to the base coordinate system, s 1 =sin(θ 1 ), s 2 =sin(θ 2 ), s 23 =sin(θ 2 23 ), c 1 =cos(θ 1 ), c 2 =cos(θ 2 ), c 23 =cos(θ 23 ), θ 1 , θ 2 , θ 3 are the first joints of the industrial robot to the joint variable value of the third joint, a 1 and a 2 represent the lengths of the first link and the second link respectively, d 2 represents the offset between the first link and the second link, x 3 , y 3 , z 3 is the three coordinate components of the origin of the tool coordinate system relative to the coordinate system of the third link;

第一关节变量值计算子模块,用于对矩阵方程建立子模块建立的矩阵方程两端同时左乘第一连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵,建立运动学反解方程,求得第一关节和第三关节的关节变量值θ1和θ3The first joint variable value calculation sub-module is used to simultaneously multiply the inverse matrix of the homogeneous transformation matrix of the first link coordinate system relative to the base coordinate system at both ends of the matrix equation established by the matrix equation establishment sub-module to establish a kinematic inverse Solve the equation to obtain the joint variable values θ 1 and θ 3 of the first joint and the third joint:

第二关节变量值计算子模块,用于对矩阵方程建立子模块建立的矩阵方程两端同时左乘第三连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵,建立运动学反解方程,求得第二关节的关节变量值θ2The second joint variable value calculation sub-module is used to simultaneously multiply the inverse matrix of the homogeneous transformation matrix of the third link coordinate system relative to the base coordinate system at both ends of the matrix equation established by the matrix equation establishment sub-module to establish a kinematic inverse Solve the equation to obtain the joint variable value θ 2 of the second joint:

其中,c3=cos(θ3),s3=sin(θ3)。Wherein, c 3 =cos(θ 3 ), s 3 =sin(θ 3 ).

作为进一步优选的,所述插补模块进行插补时的插补总点数N优选采用下述方式确定:As a further preference, when the interpolation module performs interpolation, the total number of interpolation points N is preferably determined in the following manner:

其中:x1,y1,z1为轨迹起点的位置值,x2,y2,z2为轨迹终点的位置值,V为插补速度,T为插补周期。Among them: x 1 , y 1 , z 1 are the position values of the starting point of the track, x 2 , y 2 , z 2 are the position values of the end point of the track, V is the interpolation speed, and T is the interpolation period.

作为进一步优选的,所述插补速度优选为10mm/s,插补周期优选为1ms。As a further preference, the interpolation speed is preferably 10 mm/s, and the interpolation cycle is preferably 1 ms.

作为进一步优选的,所述控制系统还包括判断模块,用于根据六关节工业机器人建立连杆坐标系,并对预设的规划路径进行运动学反解获得工业机器人的各关节变量值,然后判断六关节工业机器人是否处于姿态奇点。As a further preference, the control system also includes a judging module, which is used to establish a link coordinate system according to the six-joint industrial robot, and perform kinematic inverse solution to the preset planned path to obtain the joint variable values of the industrial robot, and then judge Whether the six-joint industrial robot is in the pose singularity.

总体而言,通过本发明所构思的以上技术方案与现有技术相比,主要具备以下的技术优点:Generally speaking, compared with the prior art, the above technical solution conceived by the present invention mainly has the following technical advantages:

1.本发明采用将工业机器人末端原有位置保持不变,插补得到工业机器人末端姿态的方式,在不改变原有规划路径的前提下使得工业机器人顺利通过姿态奇点,大大降低了通过外部设备渡过姿态奇点的生产成本,避免了采用路径规划方式得到解析解的复杂迭代运算,可直接得到关节位置的数值解,简单易行且运算效率高,适用于后三个关节交于一点的工业机器人。1. The present invention adopts the method of keeping the original position of the end of the industrial robot unchanged and obtaining the attitude of the end of the industrial robot through interpolation, so that the industrial robot can pass through the singularity of the posture smoothly without changing the original planned path, which greatly reduces the need to pass through the external position. The production cost of the equipment passing through the attitude singularity avoids the complex iterative calculation of the analytical solution obtained by path planning, and can directly obtain the numerical solution of the joint position, which is simple and easy to operate and has high calculation efficiency. It is suitable for the last three joints intersecting at one point industrial robots.

2.本发明从工业机器人运动控制领域出发,使得工业机器人顺利通过姿态奇点,扩展了工业机器人的运动控制指令范围,使得工业机器人的运动空间得到扩大,更加的灵活和智能化,避免了因姿态奇点造成运动范围缩小或报警等问题,可直接将程序植入到工业机器人运动控制器中,使得工业机器人不用停留即可顺利通过姿态奇点,给实际生产带来很大便利。2. The present invention starts from the field of industrial robot motion control, so that the industrial robot can pass through the posture singularity smoothly, expand the range of motion control instructions of the industrial robot, make the motion space of the industrial robot more flexible and intelligent, and avoid the Attitude singularity causes problems such as reduced range of motion or alarms. The program can be directly implanted into the motion controller of the industrial robot, so that the industrial robot can pass through the attitude singularity without stopping, which brings great convenience to actual production.

3.本发明还可以应用到无姿态奇点的路径规划,不通过运动学反解得到工作路径中一系列点的关节变量值,进而避免了反解过程中第四关节的关节变量值无法求取的现象,可直接通过插补得到关节变量值,简单易行,实用性强。3. The present invention can also be applied to path planning without attitude singularity, and the joint variable values of a series of points in the working path are not obtained through kinematics inverse solution, thereby avoiding that the joint variable value of the fourth joint cannot be calculated in the process of inverse solution The obtained phenomenon can directly obtain the joint variable value through interpolation, which is simple and practical.

附图说明Description of drawings

图1是六关节工业机器人通过姿态奇点的流程图;Figure 1 is a flow chart of a six-joint industrial robot passing through a singular point of posture;

图2是华中数控6012工业机器人的构型图;Figure 2 is the configuration diagram of Huazhong CNC 6012 industrial robot;

图3是华中数控6012工业机器人的各连杆坐标系。Figure 3 is the coordinate system of each link of Huazhong CNC 6012 industrial robot.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

本发明的一种六关节工业机器人通过姿态奇点的控制方法,具体包括如下步骤:A control method for a six-joint industrial robot of the present invention through a posture singularity, specifically comprises the following steps:

(1)截取姿态奇点所处工业机器人预设的规划路径中的一段轨迹,获取该轨迹起始点的位置值和后三个关节变量值以及轨迹终点的位置值和后三个关节变量值;(1) Intercept a section of trajectory in the preset planning path of the industrial robot where the attitude singularity is located, and obtain the position value of the starting point of the trajectory and the last three joint variable values as well as the position value of the trajectory end point and the last three joint variable values;

(2)根据所述起始点的后三个关节变量值以及终点的后三个关节变量值以插补的方式获得姿态奇点位置对应的后三个关节变量值;(2) According to the last three joint variable values of the starting point and the last three joint variable values of the end point, obtain the last three joint variable values corresponding to the pose singularity position by interpolation;

(3)求取姿态奇点位置对应的前三个关节变量值;(3) Obtain the first three joint variable values corresponding to the position of the attitude singularity;

(4)以所述姿态奇点位置对应的后三个关节变量值以及前三个关节变量值作为工业机器人在姿态奇点位置对应的运动控制参数,实现工业机器人的运动控制,以此使得六关节工业机器人顺利通过姿态奇点。(4) Use the last three joint variable values and the first three joint variable values corresponding to the posture singularity position as the motion control parameters corresponding to the posture singularity position of the industrial robot to realize the motion control of the industrial robot, so that the six The articulated industrial robot passed the pose singularity smoothly.

为了便于各个变量的求取与计算,在步骤(1)之前需做如下准备工作:根据六关节工业机器人(包括六个关节和六根连杆,分别为第一关节、第二关节、第三关节、第四关节、第五关节、第六关节,第一连杆、第二连杆、第三连杆、第四连杆、第五连杆、第六连杆)的结构特点建立连杆坐标系,该坐标系可采用诸多现有方式进行建立,本发明以D-H法建立坐标系为例进行示例性说明,不作为对本发明的限定。In order to facilitate the calculation and calculation of each variable, the following preparatory work needs to be done before step (1): According to the six-joint industrial robot (including six joints and six connecting rods, respectively, the first joint, the second joint, and the third joint , fourth joint, fifth joint, sixth joint, first link, second link, third link, fourth link, fifth link, sixth link) to establish link coordinates The coordinate system can be established in many existing ways. The present invention uses the D-H method to establish the coordinate system as an example for illustration, which is not intended to limit the present invention.

根据工业机器人的结构特点利用D-H法建立连杆坐标系:将关节i的轴线方向作为坐标系{i}的z轴zi,将关节i和i+1的轴线公垂线方向作为坐标系{i}的x轴xi,指向由关节i到关节i+1,根据右手法则规定坐标系{i}的y轴yi,xi和yi的交点作为坐标系{i}的原点oi,基坐标系任意选定,为了简单方便起见,优选的基坐标系{0}与第一连杆1的坐标系{1}重合,将工业机器人后三个关节轴线的交点选作为连杆坐标系{4},{5}和{6}的原点,至此建立工业机器人的各连杆坐标系。According to the structural characteristics of industrial robots, use the DH method to establish the coordinate system of the link: take the axis direction of joint i as the z-axis z i of the coordinate system {i}, and take the common vertical line direction of the axes of joints i and i+1 as the coordinate system { The x-axis x i of i} points from joint i to joint i+1, and the y-axis y i of the coordinate system {i} is stipulated according to the right-hand rule, and the intersection point of x i and y i is taken as the origin o i of the coordinate system {i} , the base coordinate system is arbitrarily selected. For the sake of simplicity and convenience, the preferred base coordinate system {0} coincides with the coordinate system {1} of the first link 1, and the intersection point of the three rear joint axes of the industrial robot is selected as the link coordinates The origin of the systems {4}, {5} and {6}, so far establish the coordinate system of each link of the industrial robot.

根据上述所设定的连杆坐标系,相应的连杆参数可定义如下:According to the connecting rod coordinate system set above, the corresponding connecting rod parameters can be defined as follows:

ai-1=从zi-1到zi沿xi-1测量的距离;a i-1 = distance from z i-1 to z i measured along x i-1 ;

αi-1=从zi-1到zi绕xi-1旋转的角度;α i-1 = from z i-1 to the angle that z i rotates around x i-1 ;

di=从xi-1到xi沿zi测量的距离;d i = the distance measured along z i from x i-1 to x i ;

θi=从xi-1到xi绕zi旋转的角度。θ i = the angle from xi-1 to the rotation of xi around zi .

根据建立的各连杆坐标系将相应的连杆参数列出,利用所列的连杆参数计算出各个连杆变换矩阵推导出第三连杆坐标系相对于基坐标系的等价其次变换矩阵和第六连杆坐标系相对于第三连杆坐标系的齐次变换矩阵 List the corresponding connecting rod parameters according to the established connecting rod coordinate system, and use the listed connecting rod parameters to calculate the transformation matrix of each connecting rod Deduce the equivalent secondary transformation matrix of the third link coordinate system relative to the base coordinate system and the homogeneous transformation matrix of the sixth link coordinate system relative to the third link coordinate system

其中,i=0,1...,6,θ123为第一关节至第三关节的关节变量,{i}表示与第i连杆固接的坐标系,为工业机器人连杆坐标系{i}相对于{i+1}的齐次变换矩阵。Among them, i=0,1...,6, θ 1 , θ 2 , θ 3 are the joint variables from the first joint to the third joint, {i} represents the coordinate system fixed to the i-th connecting rod, is the homogeneous transformation matrix of the industrial robot linkage coordinate system {i} relative to {i+1}.

具体的,如图3所示,第一关节的轴线为铅直方向,将其作为坐标系{1}的z轴z1,优选的指向向上,将第一关节和第二关节的轴线公垂线方向作为坐标系{1}的x轴x1,指向由第一关节到第二关节,那么x1和z1的交点即为坐标系{1}的原点o1;第二关节和第三关节的轴线为水平方向,分别作为坐标系{2}和{3}的z轴z2和z3,且z2和z3相互平行,将第二关节和第三关节的轴线公垂线方向作为坐标系{2}的x轴x2,x2和z2的交点即为坐标系{2}的原点o2;将第三关节和第四关节的轴线公垂线方向作为坐标系{3}的x轴x3,x3和z3的交点即为坐标系{3}的原点o3;基坐标系可以任意选定,为了简单方便起见,优选的基坐标系{0}与第一连杆的坐标系{1}重合;第四关节,第五关节和第六关节的轴线交于一点,将该点选作为连杆坐标系{4},{5}和{6}的原点o4,5,6,将第四关节的轴线方向作为坐标系{4}的z轴z4,优选的坐标系{4}的x轴x4的方向与x3一致,将第五关节的轴线方向作为坐标系{5}的z轴z5,优选的坐标系{6}的z轴z6的方向与z4一致,优选的坐标系{5}的x轴x5和坐标系{6}的x轴x6的方向与x4一致;优选的工具末端中心作为工具坐标系{T}的原点oT,优选的工具坐标系{T}的x轴xT的方向与x6一致,优选的工具坐标系{T}的z轴zT的方向与z6一致。从z1到z2沿x1的距离为a1,从x1到x2沿z2的距离为d2,从z2到z3沿x2的距离为a2,从z3到z4沿x3的距离为a3,从x3到x4沿z4的距离为d4。根据建立的各连杆坐标系将相应的连杆参数列出,利用所列的连杆参数计算出各个连杆变换矩阵推导出第三连杆坐标系相对于基坐标系的等价其次变换矩阵和第六连杆坐标系相对于第三连杆坐标系的齐次变换矩阵 Specifically, as shown in Figure 3, the axis of the first joint is in the vertical direction, which is taken as the z-axis z 1 of the coordinate system {1}, preferably pointing upward, and the axes of the first joint and the second joint are vertical The line direction is the x-axis x 1 of the coordinate system {1}, pointing from the first joint to the second joint, then the intersection point of x 1 and z 1 is the origin o 1 of the coordinate system {1}; the second joint and the third joint The axes of the joints are in the horizontal direction, which are the z axes z 2 and z 3 of the coordinate systems {2} and {3} respectively, and z 2 and z 3 are parallel to each other, and the axes of the second joint and the third joint are in the same vertical direction As the x-axis x 2 of the coordinate system {2}, the intersection point of x 2 and z 2 is the origin o 2 of the coordinate system {2}; the common vertical line direction of the axes of the third joint and the fourth joint is taken as the coordinate system {3 }'s x-axis x 3 , the intersection of x 3 and z 3 is the origin o 3 of the coordinate system {3}; the base coordinate system can be selected arbitrarily, for the sake of simplicity and convenience, the preferred base coordinate system {0} and the first The coordinate system {1} of the connecting rod coincides; the axes of the fourth joint, the fifth joint and the sixth joint intersect at one point, and this point is selected as the origin o of the connecting rod coordinate system {4}, {5} and {6} 4,5,6 , the axis direction of the fourth joint is taken as the z-axis z 4 of the coordinate system {4}, the direction of the x-axis x 4 of the preferred coordinate system {4} is consistent with x 3 , and the axis of the fifth joint Orientation as the z-axis z 5 of the coordinate system {5}, the direction of the z-axis z 6 of the preferred coordinate system {6} is consistent with z 4 , the x-axis x 5 of the preferred coordinate system {5} and the coordinate system {6} The direction of the x-axis x 6 of the tool is consistent with x 4 ; the preferred center of the tool end is used as the origin o T of the tool coordinate system {T}, and the direction of the x-axis x T of the preferred tool coordinate system {T} is consistent with x 6 , preferably The direction of the z-axis z T of the tool coordinate system {T} is consistent with z 6 . The distance along x1 from z1 to z2 is a1, the distance along z2 from x1 to x2 is d2 , the distance along x2 from z2 to z3 is a2 , and the distance from z3 to z 4 has a distance a 3 along x 3 and a distance d 4 from x 3 to x 4 along z 4 . List the corresponding connecting rod parameters according to the established connecting rod coordinate system, and use the listed connecting rod parameters to calculate the transformation matrix of each connecting rod Deduce the equivalent secondary transformation matrix of the third link coordinate system relative to the base coordinate system and the homogeneous transformation matrix of the sixth link coordinate system relative to the third link coordinate system

其中,i=0,1...,6,θi为关节i的关节变量,si=sin(θi),ci=cos(θi),s23=sin(θ23),c23=cos(θ23),{i}表示与第i连杆固接的坐标系,为工业机器人连杆坐标系{i}相对于{i-1}的齐次变换矩阵。Where, i=0,1...,6, θ i is the joint variable of joint i, s i =sin(θ i ), ci =cos(θ i ), s 23 =sin(θ 23 ), c 23 =cos(θ 23 ), {i} represents the coordinate system fixed to the i-th connecting rod, is the homogeneous transformation matrix of the industrial robot link coordinate system {i} relative to {i-1}.

建立连杆坐标系后,对预设的规划路径(该路径由实际运动需求确定,本发明不做限定)进行运动学反解获得工业机器人的各关节变量值,其为现有技术,在此不赘述,正常情况下工业机器人根据预设的规划路径进行运动,也即不处于姿态奇点时,工业机器人正常运行,当第四关节的关节变量值无法求取,即第五关节的关节变量为零时,此时工业机器人处于姿态奇点,由于第五关节变量为零,难以顺利通过,因此本发明对工业机器人的运动位姿进行以下处理:After the linkage coordinate system is established, perform kinematic inverse solution to the preset planning path (the path is determined by the actual motion demand, and the present invention does not limit it) to obtain the joint variable values of the industrial robot, which is the prior art, here Without going into details, under normal circumstances, the industrial robot moves according to the preset planning path, that is, when it is not in the attitude singularity, the industrial robot runs normally. When the joint variable value of the fourth joint cannot be obtained, that is, the joint variable of the fifth joint When it is zero, the industrial robot is in a posture singularity at this time. Since the fifth joint variable is zero, it is difficult to pass smoothly. Therefore, the present invention performs the following processing on the motion pose of the industrial robot:

(1)截取姿态奇点所处规划路径中的一段轨迹,为了提高运算效率,优选的轨迹为姿态奇点所在的整个圆弧段或者直线段,然后获取此轨迹起始点的位置值和后三个关节变量值,以及轨迹终点的位置值和后三个关节变量值;(1) Intercept a section of the trajectory in the planned path where the attitude singularity is located. In order to improve the calculation efficiency, the preferred trajectory is the entire arc segment or straight line segment where the attitude singularity is located, and then obtain the position value of the starting point of this trajectory and the last three joint variable values, as well as the position value of the trajectory end point and the last three joint variable values;

(2)然后将起始点的位置值和后三个关节变量值,以及轨迹终点的位置值和后三个关节变量值输送到插补器中进行插补获得姿态奇点位置对应的后三个关节变量值,具体的根据起始和终点位置值,插补速度V和插补周期T可得到要插补的总点数N,插补器的插补速度和插补周期可根据工业机器人的实际需求给定,考虑到插补的精度和效率,优选的插补速度为10mm/s,插补周期为1ms,根据插补总点数N将轨迹起点和轨迹终点之间插补成N份,也即轨迹起点和轨迹终点之间的后三个关节变量值之间也插补成N份,得到姿态奇点位置对应的后三个关节变量值;其中,轨迹起点、轨迹终点的和插补得到的姿态奇点的位置值和后三个关节变量值分别为:x1,y1,z1415161,x2,y2,z2425262,xt,yt,zt4t5t6t (2) Then the position value of the starting point and the last three joint variable values, as well as the position value of the trajectory end point and the last three joint variable values are sent to the interpolator for interpolation to obtain the last three corresponding to the attitude singularity position The joint variable value, specifically according to the start and end position values, the interpolation speed V and the interpolation period T can obtain the total number of points to be interpolated N. The interpolation speed and interpolation period of the interpolator can be based on the actual situation of the industrial robot The demand is given, considering the accuracy and efficiency of the interpolation, the optimal interpolation speed is 10mm/s, the interpolation period is 1ms, and the interpolation between the start point and the end point of the trajectory is divided into N parts according to the total number of interpolation points N, and also That is, the last three joint variable values between the trajectory start point and the trajectory end point are also interpolated into N parts, and the last three joint variable values corresponding to the posture singularity position are obtained; among them, the sum of the trajectory start point and the trajectory end point is obtained by interpolation The position value of the pose singularity and the last three joint variable values are: x 1 , y 1 , z 1 , θ 41 , θ 51 , θ 61 , x 2 , y 2 , z 2 , θ 42 , θ 52 , θ 62 , x t , y t , z t , θ 4t , θ 5t , θ 6t ,

当处于姿态奇点时,工业机器人的运动类型为直线运动或者圆弧运动,因此通过插补器插补得到的各点均在原有规划路径上。When at the attitude singularity, the motion type of the industrial robot is linear motion or circular motion, so each point obtained by the interpolator interpolation is on the original planned path.

(3)求取姿态奇点位置对应的前三个关节变量值(3) Obtain the first three joint variable values corresponding to the pose singularity position

(3.1)首先建立如下矩阵方程:(3.1) First establish the following matrix equation:

其中,xt,yt,zt为工具坐标系原点相对于基坐标系的三个坐标分量,s1=sin(θ1),s2=sin(θ2),s23=sin(θ23),c1=cos(θ1),c2=cos(θ2),c23=cos(θ23),θ123为工业机器人第一关节至第三关节的关节变量,a1和a2分别表示第一连杆和第二连杆的长度,d2表示第一连杆和第二连杆之间的偏置,x3,y3,z3为工具坐标系原点相对于第三连杆坐标系的三个坐标分量;Among them, x t , y t , z t are the three coordinate components of the origin of the tool coordinate system relative to the base coordinate system, s 1 =sin(θ 1 ), s 2 =sin(θ 2 ), s 23 =sin(θ 2 23 ), c 1 =cos(θ 1 ), c 2 =cos(θ 2 ), c 23 =cos(θ 23 ), θ 1 , θ 2 , θ 3 are the first joints of the industrial robot Joint variables to the third joint, a 1 and a 2 represent the lengths of the first and second links respectively, d 2 represents the offset between the first and second links, x 3 , y 3 , z 3 is the three coordinate components of the origin of the tool coordinate system relative to the third link coordinate system;

具体的采用如下方式建立矩阵方程:Specifically, the matrix equation is established in the following way:

将后三个连杆变换矩阵和工具坐标系相对于第六连杆坐标系的齐次变换矩阵相乘可以得到:Multiply the last three link transformation matrices with the homogeneous transformation matrix of the tool coordinate system relative to the sixth link coordinate system to get:

which is

其中,表示工具坐标系相对于第三连杆坐标系的旋转矩阵,表示工具坐标系相对于第六连杆坐标系的旋转矩阵,表示工具坐标系相对于第三连杆坐标系的位置矢量,表示工具坐标系相对于第六连杆坐标系的位置矢量;in, Represents the rotation matrix of the tool coordinate system relative to the third link coordinate system, Indicates the rotation matrix of the tool coordinate system relative to the sixth link coordinate system, Indicates the position vector of the tool coordinate system relative to the third link coordinate system, Indicates the position vector of the tool coordinate system relative to the sixth link coordinate system;

令等式两端的第四列元素对应相等,姿态奇点的后三个关节变量值已经通过插补获得,等式的右边均为已知:Let the elements of the fourth column at both ends of the equation be equal, and the last three joint variable values of the attitude singularity have been obtained through interpolation, and the right side of the equation is known:

将工业机器人的前三个关节进行固连(即无相对运动),已知工具坐标系相对于基坐标系的位置矢量为:工具坐标系相对于第三连杆坐标系的位置矢量为:后三个关节变量已通过插补获得,将工业机器人的运动学方程写成:The first three joints of the industrial robot are fixed (that is, there is no relative motion), and the position vector of the known tool coordinate system relative to the base coordinate system is: The position vector of the tool coordinate system relative to the third link coordinate system is: The latter three joint variables have been obtained by interpolation, and the kinematic equation of the industrial robot is written as:

令上述矩阵方程两端的第四列元素对应相等,可建立如下方程:which is Let the elements of the fourth column at both ends of the above matrix equation be correspondingly equal, and the following equation can be established:

which is

(3.2)对步骤(3.1)中建立的矩阵方程两端同时左乘第一连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵,建立运动学反解方程,求得第一关节和第三关节的关节变量值θ1和θ3(3.2) Multiply the two ends of the matrix equation established in step (3.1) by the inverse matrix of the homogeneous transformation matrix of the first link coordinate system relative to the base coordinate system at the same time, establish the kinematics inverse solution equation, and obtain the first joint and the joint variable values θ 1 and θ 3 of the third joint:

具体为:在步骤(3.1)中建立的矩阵方程两端同时左乘第一连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵建立运动学反解方程如下:Specifically: the matrix equation established in step (3.1) is multiplied by the inverse matrix of the homogeneous transformation matrix of the first link coordinate system relative to the base coordinate system at the same time The kinematic inverse solution equation is established as follows:

化解得:resolved:

式中,可由求逆获得。In the formula, available by Get the inverse.

令矩阵方程(1)两端第二行第一列的元素对应相等得:Let the elements of the second row and the first column at both ends of the matrix equation (1) be correspondingly equal:

-s1xt+c1yt=-z3-d2-s 1 x t +c 1 y t = -z 3 -d 2 ;

则得到第一关节的关节变量值θ1like Then get the joint variable value θ 1 of the first joint:

选定θ1其中的一个解后,令矩阵方程(1)两端第一行第四列和第三行第四列的元素分别对应相等得:After selecting one of the solutions of θ 1 , let the elements of the first row, fourth column and third row, fourth column at both ends of the matrix equation (1) be equal to each other:

上述两式的平方和为:The sum of the squares of the above two formulas is:

-s3y3+c3x3=k, -s 3 y 3 +c 3 x 3 =k,

则得到第三关节的关节变量值θ3like Then get the joint variable value θ 3 of the third joint:

(3.3)对步骤(3.1)中建立的矩阵方程两端同时左乘第三连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵,建立运动学反解方程,求得第二关节的关节变量值θ2(3.3) To the inverse matrix of the homogeneous transformation matrix of the homogeneous transformation matrix of the third link coordinate system relative to the base coordinate system at both ends of the matrix equation established in step (3.1), establish the kinematics inverse solution equation, and obtain the second joint The joint variable value θ 2 of :

其中,c3=cos(θ3),s3=sin(θ3)。Wherein, c 3 =cos(θ 3 ), s 3 =sin(θ 3 ).

具体为:在步骤(3.1)中建立的矩阵方程两端同时左乘第三连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵建立运动学反解方程如下:Specifically: the matrix equation established in step (3.1) is multiplied to the left by the inverse matrix of the homogeneous transformation matrix of the third link coordinate system relative to the base coordinate system at the same time The kinematic inverse solution equation is established as follows:

化解得 resolved

式中,可由求逆获得。In the formula, available by Get the inverse.

令矩阵方程(2)两端第一行第四列和第二行第四列的元素分别对应相等得:Let the elements of the first row, the fourth column and the second row, the fourth column at both ends of the matrix equation (2) be correspondingly equal:

将上面两个方程联立求解得到s23和:Solve the above two equations simultaneously to get s 23 and:

可以看出s23和c23表达式的分母相等,且为正,于是求得第二关节的关节变量值θ2It can be seen that the denominators of the expressions of s 23 and c 23 are equal and positive, so the joint variable value θ 2 of the second joint is obtained:

其中,s2=sin(θ2);c2=cos(θ2);s23=sin(θ23);c23=cos(θ23)。Wherein, s 2 =sin(θ 2 ); c 2 =cos(θ 2 ); s 23 =sin(θ 23 ); c 23 =cos(θ 23 ).

(4)以所述姿态奇点位置对应的后三个关节变量值以及前三个关节变量值作为工业机器人在姿态奇点位置对应的运动控制参数,实现工业机器人的运动控制,以此使得六关节工业机器人顺利通过姿态奇点。也即将由上述算法得到的前三个关节变量值和插补得到的后三个关节变量值传送到工业机器人运动控制器中,使得工业机器人的六个关节在姿态奇点均具有确定数值,以此方式,实现工业机器人顺利通过姿态奇点。(4) Use the last three joint variable values and the first three joint variable values corresponding to the posture singularity position as the motion control parameters corresponding to the posture singularity position of the industrial robot to realize the motion control of the industrial robot, so that the six The articulated industrial robot passed the pose singularity smoothly. That is to say, the first three joint variable values obtained by the above algorithm and the last three joint variable values obtained by interpolation are transmitted to the motion controller of the industrial robot, so that the six joints of the industrial robot have definite values at the attitude singularities, so that In this way, the industrial robot can successfully pass through the pose singularity.

本发明还提供了一种六关节工业机器人通过姿态奇点的控制系统,包括:数据获取模块,用于截取姿态奇点所处工业机器人预设的规划路径中的一段轨迹,获取该轨迹起点对应的位置值和后三个关节变量值以及该轨迹终点对应的位置值和后三个关节变量值;插补模块,用于根据所述起点的后三个关节变量值以及终点的后三个关节变量值以插补的方式获得姿态奇点位置对应的后三个关节变量值;数据处理模块,用于建立运动学反解方程并求取姿态奇点位置对应的前三个关节变量值;运动控制模块,用于以所述姿态奇点位置对应的后三个关节变量值以及前三个关节变量值作为工业机器人在姿态奇点位置对应的运动控制参数,实现工业机器人的运动控制,以此使得六关节工业机器人顺利通过姿态奇点。The present invention also provides a control system for a six-joint industrial robot passing through a singular point of posture, including: a data acquisition module, which is used to intercept a segment of the trajectory in the preset planning path of the industrial robot where the singular point of posture is located, and obtain the corresponding position of the starting point of the trajectory. The position value and the last three joint variable values and the position value and the last three joint variable values corresponding to the end point of the trajectory; the interpolation module is used to base the last three joint variable values of the starting point and the last three joint variable values at the end point The variable values are interpolated to obtain the last three joint variable values corresponding to the posture singularity position; the data processing module is used to establish the kinematics inverse solution equation and obtain the first three joint variable values corresponding to the posture singularity position; The control module is used to use the last three joint variable values corresponding to the posture singularity position and the first three joint variable values as the motion control parameters corresponding to the posture singularity position of the industrial robot to realize the motion control of the industrial robot, thereby This makes the six-joint industrial robot pass through the pose singularity smoothly.

具体的,所述数据处理模块包括如下子模块:Specifically, the data processing module includes the following submodules:

矩阵方程建立子模块,用于建立如下方程:The matrix equation establishment sub-module is used to establish the following equations:

其中,xt,yt,zt分别为工具坐标系原点相对于基坐标系的三个坐标分量,s1=sin(θ1),s2=sin(θ2),s23=sin(θ23),c1=cos(θ1),c2=cos(θ2),c23=cos(θ23),θ123为工业机器人第一关节至第三关节的关节变量,a1和a2分别表示第一连杆和第二连杆的长度,d2表示第一连杆和第二连杆之间的偏置,x3,y3,z3分别为工具坐标系原点相对于第三连杆坐标系的三个坐标分量;Among them, x t , y t , z t are the three coordinate components of the origin of the tool coordinate system relative to the base coordinate system, s 1 =sin(θ 1 ), s 2 =sin(θ 2 ), s 23 =sin( θ 23 ), c 1 =cos(θ 1 ), c 2 =cos(θ 2 ), c 23 =cos(θ 23 ), θ 1 , θ 2 , θ 3 are the first in industrial robots Joint variables from the joint to the third joint, a 1 and a 2 represent the lengths of the first link and the second link respectively, d 2 represents the offset between the first link and the second link, x 3 , y 3 , z 3 are the three coordinate components of the origin of the tool coordinate system relative to the third link coordinate system;

第一关节变量值计算子模块,用于对矩阵方程建立子模块建立的矩阵方程两端同时左乘第一连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵,建立运动学反解方程,求得第一关节和第三关节的关节变量值θ1和θ3The first joint variable value calculation sub-module is used to simultaneously multiply the inverse matrix of the homogeneous transformation matrix of the first link coordinate system relative to the base coordinate system at both ends of the matrix equation established by the matrix equation establishment sub-module to establish a kinematic inverse Solve the equation to obtain the joint variable values θ 1 and θ 3 of the first joint and the third joint:

第二关节变量值计算子模块,用于对矩阵方程建立子模块建立的矩阵方程两端同时左乘第三连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵,建立运动学反解方程,求得第二关节的关节变量值θ2The second joint variable value calculation sub-module is used to simultaneously multiply the inverse matrix of the homogeneous transformation matrix of the third link coordinate system relative to the base coordinate system at both ends of the matrix equation established by the matrix equation establishment sub-module to establish a kinematic inverse Solve the equation to obtain the joint variable value θ 2 of the second joint:

其中,c3=cos(θ3),s3=sin(θ3)。Wherein, c 3 =cos(θ 3 ), s 3 =sin(θ 3 ).

具体的,所述插补模块进行插补时的插补总点数N优选采用下述方式确定:Specifically, the total number of interpolation points N when the interpolation module performs interpolation is preferably determined in the following manner:

其中:x1,y1,z1为轨迹起点的位置值,x2,y2,z2为轨迹终点的位置值,V为插补速度,T为插补周期。所述插补速度优选为10mm/s,插补周期优选为1ms。Among them: x 1 , y 1 , z 1 are the position values of the starting point of the track, x 2 , y 2 , z 2 are the position values of the end point of the track, V is the interpolation speed, and T is the interpolation cycle. The interpolation speed is preferably 10 mm/s, and the interpolation cycle is preferably 1 ms.

具体的,所述控制系统还包括判断模块,用于根据六关节工业机器人建立连杆坐标系,并对预设的规划路径进行运动学反解获得工业机器人的各关节变量值,然后判断六关节工业机器人是否处于姿态奇点,若是,则进入步骤(1),若否,则以反解获得的工业机器人的各关节变量值实现工业机器人的运动控制。Specifically, the control system also includes a judging module, which is used to establish a link coordinate system according to the six-joint industrial robot, and perform kinematic inverse solution to the preset planned path to obtain the variable values of each joint of the industrial robot, and then judge the six-joint Whether the industrial robot is at a singular point of attitude, if so, enter step (1), if not, realize the motion control of the industrial robot with the joint variable values of the industrial robot obtained from the inverse solution.

以下为具体实施例:The following are specific examples:

本实施例以华中数控6012工业机器人为例,其构型如图2所示,华中数控6012工业机器人属于关节式机器人,其由6个连杆(如图2所示的第一连杆1、第二连杆2、第三连杆3、第四连杆4、第五连杆5、第六连杆6)和6个转动关节(如图3所示的点A、B、C、D、E、F,)组成,基座固定不动称为连杆0,第一关节连接基座和第一连杆,第二关节连接第一连杆和第二连杆,以此类推,工具与第六连杆6固接。其通过姿态奇点的过程主要包括以下步骤:In this embodiment, the Huazhong CNC 6012 industrial robot is taken as an example. The second connecting rod 2, the third connecting rod 3, the fourth connecting rod 4, the fifth connecting rod 5, the sixth connecting rod 6) and 6 rotating joints (points A, B, C, D as shown in Figure 3 , E, F,), the base is fixed and called link 0, the first joint connects the base and the first link, the second joint connects the first link and the second link, and so on, the tool It is fixedly connected with the sixth connecting rod 6. The process of passing through the attitude singularity mainly includes the following steps:

步骤1):根据华中数控6012工业机器人的结构特点和D-H法,设定的连杆坐标系{0},{1},{2},{3},{4},{5},{6}和{T}如图3所示:基坐标系{0}与第一连杆1的坐标系{1}重合,坐标系{1}的z轴z1为第一关节的轴线方向,指向向上,坐标系{1}的x轴x1为第一关节和第二连杆2的轴线公垂线方向,指向由第一关节到第二关节,那么坐标系{1}的原点o1即为x1和z1的交点;至此坐标系{1}建立完成,以此类推建立坐标{2}和{3};连杆坐标系{4},{5}和{6}的原点o4,5,6为第四关节,第五连杆5和第六连杆6的轴线交点,坐标系{4}的z轴z4为第四关节的轴线方向,坐标系{4}的x轴x4的方向与x3一致,坐标系{5}的z轴z5为第五关节的轴线方向,坐标系{6}的z轴z6的方向与z4一致,坐标系{5}的x轴x5和坐标系{6}的x轴x6的方向与x4一致;工具坐标系{T}的原点oT为工具末端中心,工具坐标系{T}的x轴xT的方向与x6一致,工具坐标系{T}的z轴zT的方向与z6一致。Step 1): According to the structural characteristics of Huazhong CNC 6012 industrial robot and the DH method, set the linkage coordinate system {0}, {1}, {2}, {3}, {4}, {5}, {6 } and {T} are shown in Figure 3: the base coordinate system {0} coincides with the coordinate system {1} of the first link 1, and the z-axis z 1 of the coordinate system {1} is the axis direction of the first joint, pointing to Upward, the x-axis x 1 of the coordinate system {1} is the direction of the common vertical line of the axis of the first joint and the second connecting rod 2, pointing from the first joint to the second joint, then the origin o 1 of the coordinate system {1} is is the intersection point of x 1 and z 1 ; the coordinate system {1} has been established so far, and the coordinates {2} and {3} have been established by analogy; the origin o 4 of the linkage coordinate system {4}, {5} and {6} ,5,6 are the fourth joint, the axis intersection of the fifth link 5 and the sixth link 6, the z-axis of the coordinate system {4} z 4 is the axis direction of the fourth joint, and the x-axis of the coordinate system {4} The direction of x 4 is consistent with that of x 3 , the z-axis z 5 of the coordinate system {5} is the axis direction of the fifth joint, the direction of the z-axis z 6 of the coordinate system {6} is consistent with z 4 , and the z-axis of the coordinate system {5} The direction of the x-axis x 5 and the x-axis x 6 of the coordinate system {6} is consistent with x 4 ; the origin o T of the tool coordinate system {T} is the center of the tool end, and the direction of the x-axis x T of the tool coordinate system {T} Consistent with x 6 , the direction of the z-axis z T of the tool coordinate system {T} is consistent with z 6 .

根据建立的各连杆坐标系将相应的连杆参数列出,如表1所示。According to the established coordinate system of each connecting rod, the corresponding connecting rod parameters are listed, as shown in Table 1.

表1华中数控6012工业机器人的连杆参数Table 1 Connecting rod parameters of Huazhong CNC 6012 industrial robot

利用所列的连杆参数计算出各个连杆变换矩阵,推导出第三连杆坐标系相对于基坐标系的等价其次变换矩阵 Use the listed link parameters to calculate the transformation matrix of each link, and derive the equivalent secondary transformation matrix of the third link coordinate system relative to the base coordinate system

步骤2):工业机器人处于姿态奇点时的位置为:(1323.1,226.8,703.8),此姿态奇点所在的路径为直线,截取其所处规划路径中的整个直线段,此直线段起点的位置值为(999.2,450.9,532.3),后三个关节变量的关节变量值为(-108.5°,-30.6°,223.8°),终点的位置值为(1512.3,105.6,796.4),后三个关节变量的关节变量值为(36.3°,-15.1°,77.1°)。Step 2): The position of the industrial robot at the attitude singularity is: (1323.1, 226.8, 703.8), the path where the attitude singularity is located is a straight line, intercept the entire straight line segment in the planned path where it is located, and the starting point of the straight line segment is The position value is (999.2, 450.9, 532.3), the joint variable value of the last three joint variables is (-108.5°, -30.6°, 223.8°), the position value of the end point is (1512.3, 105.6, 796.4), the last three joint variables The joint variable values of the joint variable are (36.3°, -15.1°, 77.1°).

步骤3):将起始点、终点的位置和后三个关节变量值均输送到插补器中,插补速度为10mm/s,插补周期为1ms,插补的总点数N:Step 3): Send the start point, end position and the last three joint variable values to the interpolator, the interpolation speed is 10mm/s, the interpolation period is 1ms, and the total number of interpolation points N:

将轨迹起点和轨迹终点的后三个关节变量值之间也插补成68份,得到姿态奇点位置对应的后三个关节变量值:(-11.9°,-20.2°,119.3°)。Interpolate the last three joint variable values between the start point and the end point of the trajectory into 68 parts to obtain the last three joint variable values corresponding to the attitude singularity position: (-11.9°, -20.2°, 119.3°).

步骤4):已知工具坐标系相对于第六连杆坐标系的位置矢量为:将通过插补得到的后三个关节变量值θ4,θ5,θ6代入式(2)得:Step 4): The position vector of the known tool coordinate system relative to the sixth link coordinate system is: Substituting the last three joint variable values θ 4 , θ 5 , θ 6 obtained through interpolation into formula (2):

故工具坐标系相对于第三连杆坐标系的位置矢量为:Therefore, the position vector of the tool coordinate system relative to the third link coordinate system for:

将工业机器人的前三个关节进行固连,在姿态奇点,已知工具坐标系相对于基坐标系的位置矢量为:后三个关节变量θ4,θ5,θ6已通过插补获得,将工业机器人的运动学方程写成:Connect the first three joints of the industrial robot. At the attitude singularity, the position vector of the known tool coordinate system relative to the base coordinate system is: The last three joint variables θ 4 , θ 5 , θ 6 have been obtained through interpolation, and the kinematic equation of the industrial robot is written as:

令矩阵方程(4)两端的第四列元素对应相等,可建立如下方程:Let the elements of the fourth column at both ends of the matrix equation (4) correspond to be equal, and the following equation can be established:

矩阵方程(5)两端同时左乘第一连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵建立运动学反解方程如下:The inverse matrix of the homogeneous transformation matrix of the first link coordinate system relative to the base coordinate system is multiplied to the left by both ends of the matrix equation (5) The kinematic inverse solution equation is established as follows:

令矩阵方程(6)两端第二行第一列的元素对应相等得:-1332.1s1+226.8c1=-346.8(7);解得第一关节的关节变量值:或θ1=24.5°。Make the elements of the second row and the first column at both ends of the matrix equation (6) correspondingly equal: -1332.1s 1 +226.8c 1 =-346.8(7); solve the joint variable value of the first joint: Or θ 1 =24.5°.

选定θ1其中的一个解后,令矩阵方程(6)两端第一行第四列和第三行第四列的元素分别对应相等得:After selecting one of the solutions of θ 1 , let the elements of the first row, fourth column and third row, fourth column at both ends of the matrix equation (6) be equal to each other:

上述两式的平方和为:-(-1254)s3+(-42.1)c3=k (9);The sum of the squares of the above two formulas is: -(-1254)s 3 +(-42.1)c 3 =k (9);

其中, in,

解得当θ1=174.8°时第三关节的关节变量值:θ3=-343.5°或θ3=-192.6°;当θ1=24.5°时第三关节的关节变量值:θ3=-9.8°或θ3=-166.4°。When θ 1 =174.8°, the joint variable value of the third joint: θ 3 =-343.5° or θ 3 =-192.6°; when θ 1 =24.5°, the joint variable value of the third joint: θ 3 =-9.8 ° or θ 3 =-166.4°.

矩阵方程(5)两边同时左乘第三连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵建立运动学反解方程如下:The inverse matrix of the homogeneous transformation matrix of the third link coordinate system relative to the base coordinate system is multiplied to the left by both sides of the matrix equation (5) The kinematic inverse solution equation is established as follows:

令矩阵方程(10)两端第一行第四列和第二行第四列的元素分别对应相等得:Let the elements of the first row, the fourth column and the second row, the fourth column at both ends of the matrix equation (10) be equal to each other:

将上面两个方程联立求解得到s23和c23Solve the above two equations simultaneously to get s 23 and c 23 ,

解得:θ23=-141°,θ23=-86.1°,θ23=88.8°,θ23=158.5°。Solve to get: θ 23 =-141°, θ 23 =-86.1°, θ 23 =88.8°, θ 23 =158.5°.

故第二关节的关节变量值为:θ2=202.5°,θ2=106.5°,θ2=98.6°,θ2=324,9°。前三个关节变量反解一共有四组解,如表2所示:Therefore, the joint variable values of the second joint are: θ 2 =202.5°, θ 2 =106.5°, θ 2 =98.6°, θ 2 =324,9°. There are four sets of solutions for the inverse solutions of the first three joint variables, as shown in Table 2:

表2华中数控6012工业机器人前三个关节变量的反解值Table 2 Inverse solution values of the first three joint variables of Huazhong CNC 6012 industrial robot

θ<sub>1</sub>θ<sub>1</sub> θ<sub>2</sub>θ<sub>2</sub> θ<sub>3</sub>θ<sub>3</sub> 第一组First group 174.8°174.8° 202.5°202.5° -343.5°-343.5° 第二组Second Group 174.8°174.8° 106.5°106.5° -192.6°-192.6° 第三组The third group 24.5°24.5° 98.6°98.6° -9.8°-9.8° 第四组Fourth group 24.5°24.5° 324.9°324.9° -166.4°-166.4°

只有第三组解符合表1给定的关节的运动范围,即前三个关节变量分别为:θ1=24.5°,θ2=98.6°,θ3=-9.8°。Only the third group of solutions conforms to the range of motion of the joints given in Table 1, that is, the first three joint variables are: θ 1 =24.5°, θ 2 =98.6°, θ 3 =-9.8°.

步骤5):将由上述算法得到的前三个关节变量值和插补得到的后三个关节变量值传送到工业机器人运动控制器中,使得工业机器人的六个关节在姿态奇点均具有确定数值;以此方式,实现工业机器人顺利通过姿态奇点。Step 5): Transfer the first three joint variable values obtained by the above algorithm and the last three joint variable values obtained by interpolation to the motion controller of the industrial robot, so that the six joints of the industrial robot have definite values at the posture singularity ; In this way, the industrial robot can pass through the attitude singularity smoothly.

本实例根据上述位置及运动学反解方程,求得机器人位于姿态奇点时的前三个关节变量,并通过插补得到后三个关节的关节变量,经过运动学正解验算得到的机器人末端位置与实际末端位置一致。In this example, according to the above position and kinematics inverse solution equation, the first three joint variables when the robot is at the attitude singularity are obtained, and the joint variables of the last three joints are obtained through interpolation, and the end position of the robot is obtained through kinematics positive solution checking Corresponds to the actual end position.

本发明提供了一种六关节工业机器人通过姿态奇点的控制方法,在不改变原有规划路径的前提下使得机器人顺利通过姿态奇点,大大降低了通过外部设备渡过姿态奇点的生产成本,避免了路径规划方式到解析解的复杂迭代运算,可直接得到机器人处于姿态奇点时关节位置的数值解,简单易行且运算效率高,此外本发明实现了机器人运动控制指令范围的扩展,可直接将程序植入到机器人运动控制器中,给实际生产带来很大便利。The invention provides a control method for a six-joint industrial robot passing through the singularity of posture, which enables the robot to pass through the singularity of posture without changing the original planned path, and greatly reduces the production cost of passing through the singularity of posture through external equipment , avoiding the complex iterative calculation from the path planning method to the analytical solution, and can directly obtain the numerical solution of the joint position when the robot is at a singular point of attitude, which is simple and easy to operate and has high calculation efficiency. The program can be directly implanted into the robot motion controller, which brings great convenience to the actual production.

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。It is easy for those skilled in the art to understand that the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, All should be included within the protection scope of the present invention.

Claims (8)

1.一种六关节工业机器人通过姿态奇点的控制方法,该六关节工业机器人包括依次相连的基座、第一关节、第一连杆、第二关节、第二连杆、第三关节、第三连杆、第四关节、第四连杆、第五关节、第五连杆、第六关节和第六连杆,第六连杆与工具固接,第一、二、三关节为前三个关节,第四、五、六关节为后三个关节,其特征在于,包括如下步骤:1. A method for controlling a six-joint industrial robot through a posture singularity, the six-joint industrial robot comprising successively connected bases, first joints, first connecting rods, second joints, second connecting rods, third joints, The third connecting rod, the fourth joint, the fourth connecting rod, the fifth joint, the fifth connecting rod, the sixth joint and the sixth connecting rod, the sixth connecting rod is fixedly connected with the tool, and the first, second and third joints are the front Three joints, the fourth, fifth and sixth joints are the last three joints, which are characterized in that, comprising the following steps: (1)截取姿态奇点所处工业机器人预设的规划路径中的一段轨迹,获取该轨迹起点对应的位置值和后三个关节变量值以及该轨迹终点对应的位置值和后三个关节变量值;(1) Intercept a segment of the trajectory in the preset planning path of the industrial robot where the attitude singularity is located, and obtain the position value corresponding to the starting point of the trajectory and the last three joint variable values, as well as the position value corresponding to the end point of the trajectory and the last three joint variables value; (2)根据所述轨迹起点的后三个关节变量值以及轨迹终点的后三个关节变量值以插补的方式获得姿态奇点位置对应的后三个关节变量值;(2) Obtain the last three joint variable values corresponding to the pose singularity position in an interpolation manner according to the last three joint variable values at the starting point of the trajectory and the last three joint variable values at the end point of the trajectory; (3)建立运动学反解方程求取姿态奇点位置对应的前三个关节变量值:(3) Establish the kinematics inverse solution equation to obtain the first three joint variable values corresponding to the attitude singularity position: (3.1)首先建立如下矩阵方程:(3.1) First establish the following matrix equation: 其中,为工具坐标系相对于基坐标系的位置矢量,为工业机器人第三连杆坐标系相对于基坐标系的齐次变换矩阵,表示工具坐标系相对于第三连杆坐标系的位置矢量,其由插补获得的后三个关节变量值及工具坐标系相对于第六连杆坐标系的位置矢量计算获得,θ1、θ2和θ3分别为待求解的第一关节的关节变量值、第二关节的关节变量值和第三关节的关节变量值;in, is the position vector of the tool coordinate system relative to the base coordinate system, is the homogeneous transformation matrix of the third link coordinate system of the industrial robot relative to the base coordinate system, Indicates the position vector of the tool coordinate system relative to the third link coordinate system, the last three joint variable values obtained by interpolation and the position vector of the tool coordinate system relative to the sixth link coordinate system Calculated, θ 1 , θ 2 and θ 3 are respectively the joint variable value of the first joint, the joint variable value of the second joint and the joint variable value of the third joint to be solved; 所述采用如下公式计算:said Calculated using the following formula: 其中,si=sin(θi),ci=cos(θi),i=4,5,6,θi为插补获得的第i关节的关节变量值,a3为从坐标系{3}的z轴z3到坐标系{4}的z轴z4沿坐标系{3}的x轴x3的距离,d4为从坐标系{3}的x轴x3到坐标系{4}的x轴x4沿坐标系{4}的z轴z4的距离,{i}表示与第i连杆固接的坐标系;Among them, s i =sin(θ i ), c i =cos(θ i ), i=4,5,6, θ i is the joint variable value of the i-th joint obtained by interpolation, and a 3 is from the coordinate system { The distance from the z-axis z 3 of 3} to the z-axis z 4 of the coordinate system {4} along the x-axis x 3 of the coordinate system {3}, d 4 is the distance from the x-axis x 3 of the coordinate system { 3 } to the coordinate system { 4}’s x-axis x 4 is the distance along the coordinate system {4}’s z-axis z 4 , and {i} represents the coordinate system fixed to the i-th connecting rod; (3.2)对步骤(3.1)中建立的矩阵方程两端同时左乘第一连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵建立运动学反解方程求得第一关节和第三关节的关节变量值θ1和θ3如下:(3.2) multiply the two ends of the matrix equation established in step (3.1) to the left simultaneously by the inverse matrix of the homogeneous transformation matrix of the first link coordinate system relative to the base coordinate system Establish kinematics inverse solution equation The joint variable values θ 1 and θ 3 of the first joint and the third joint are obtained as follows: 其中,Atan为反正切函数,xt,yt,zt为工具坐标系原点相对于基坐标系的三个坐标分量,s1=sin(θ1),s2=sin(θ2),s23=sin(θ23),c1=cos(θ1),c2=cos(θ2),c23=cos(θ23),θ123为工业机器人第一关节至第三关节的关节变量值,a1和a2分别表示第一连杆和第二连杆的长度,d2表示第一连杆和第二连杆之间的偏置,x3,y3,z3为工具坐标系原点相对于第三连杆坐标系的三个坐标分量;Among them, Atan is the arctangent function, x t , y t , z t are the three coordinate components of the origin of the tool coordinate system relative to the base coordinate system, s 1 =sin(θ 1 ), s 2 =sin(θ 2 ), s 23 = sin(θ 23 ), c 1 =cos(θ 1 ), c 2 =cos(θ 2 ), c 23 =cos(θ 23 ), θ 123 is the joint variable value of the first joint to the third joint of the industrial robot, a 1 and a 2 represent the lengths of the first link and the second link respectively, and d 2 represents the deflection between the first link and the second link x 3 , y 3 , z 3 are the three coordinate components of the origin of the tool coordinate system relative to the third link coordinate system; (3.3)对步骤(3.1)中建立的矩阵方程两端同时左乘第三连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵建立运动学反解方程求得第二关节的关节变量值θ2如下:(3.3) to the inverse matrix of the homogeneous transformation matrix of the third link coordinate system relative to the base coordinate system to the matrix equation two ends that set up in step (3.1) Establish kinematics inverse solution equation The joint variable value θ 2 of the second joint is obtained as follows: 其中,Atan为反正切函数,c3=cos(θ3),s3=sin(θ3);Wherein, Atan is arctangent function, c 3 =cos(θ 3 ), s 3 =sin(θ 3 ); (4)以步骤(2)插补获得的所述姿态奇点位置对应的后三个关节变量值以及步骤(3)求解获得的前三个关节变量值作为工业机器人在姿态奇点位置对应的运动控制参数,实现工业机器人的运动控制,以此使得六关节工业机器人顺利通过姿态奇点。(4) The last three joint variable values corresponding to the attitude singularity position obtained by interpolation in step (2) and the first three joint variable values obtained by solving the step (3) are used as the position corresponding to the attitude singularity of the industrial robot The motion control parameters are used to realize the motion control of the industrial robot, so that the six-joint industrial robot can pass through the attitude singularity smoothly. 2.如权利要求1所述的六关节工业机器人通过姿态奇点的控制方法,其特征在于,所述插补的总点数N采用下述方式确定:2. The six-joint industrial robot as claimed in claim 1 is characterized in that the total number of points N of said interpolation is determined in the following manner: 其中,x1,y1,z1为轨迹起点的位置值,x2,y2,z2为轨迹终点的位置值,V为插补速度,T为插补周期。Among them, x 1 , y 1 , z 1 are the position values of the starting point of the track, x 2 , y 2 , z 2 are the position values of the end point of the track, V is the interpolation speed, and T is the interpolation period. 3.如权利要求2所述的六关节工业机器人通过姿态奇点的控制方法,其特征在于,所述插补速度为10mm/s,插补周期为1ms。3. The method for controlling a six-joint industrial robot passing a posture singularity according to claim 2, wherein the interpolation speed is 10 mm/s, and the interpolation period is 1 ms. 4.如权利要求1-3任一项所述的六关节工业机器人通过姿态奇点的控制方法,其特征在于,所述步骤(1)之前还包括如下步骤:首先根据六关节工业机器人建立连杆坐标系,并对预设的规划路径进行运动学反解获得工业机器人的各关节变量值,然后判断六关节工业机器人是否处于姿态奇点,若是,则进入步骤(1),若否,则以反解获得的工业机器人的各关节变量值实现工业机器人的运动控制。4. The six-joint industrial robot as claimed in any one of claims 1-3 through the control method of attitude singularity, is characterized in that, before the step (1), the following steps are also included: first, establish a connection according to the six-joint industrial robot. Rod coordinate system, and carry out kinematics inverse solution to the preset planning path to obtain the joint variable values of the industrial robot, and then judge whether the six-joint industrial robot is in the attitude singularity, if so, go to step (1), if not, then The motion control of the industrial robot is realized by the variable value of each joint of the industrial robot obtained from the inverse solution. 5.一种六关节工业机器人通过姿态奇点的控制系统,该六关节工业机器人包括依次相连的基座、第一关节、第一连杆、第二关节、第二连杆、第三关节、第三连杆、第四关节、第四连杆、第五关节、第五连杆、第六关节和第六连杆,第六连杆与工具固接,第一、二、三关节为前三个关节,第四、五、六关节为后三个关节,其特征在于,包括:5. A control system for a six-joint industrial robot passing through a singular point of posture, the six-joint industrial robot includes a base, a first joint, a first connecting rod, a second joint, a second connecting rod, a third joint, The third connecting rod, the fourth joint, the fourth connecting rod, the fifth joint, the fifth connecting rod, the sixth joint and the sixth connecting rod, the sixth connecting rod is fixedly connected with the tool, and the first, second and third joints are the front Three joints, the fourth, fifth and sixth joints are the last three joints, which are characterized in that they include: 数据获取模块,用于截取姿态奇点所处工业机器人预设的规划路径中的一段轨迹,获取该轨迹起点对应的位置值和后三个关节变量值以及该轨迹终点对应的位置值和后三个关节变量值;The data acquisition module is used to intercept a section of the trajectory in the preset planning path of the industrial robot where the attitude singularity is located, and obtain the position value corresponding to the starting point of the trajectory and the last three joint variable values, as well as the position value corresponding to the end point of the trajectory and the last three joint variables. joint variable value; 插补模块,用于根据所述轨迹起点的后三个关节变量值以及轨迹终点的后三个关节变量值以插补的方式获得姿态奇点位置对应的后三个关节变量值;An interpolation module, configured to obtain the last three joint variable values corresponding to the attitude singularity position by interpolation according to the last three joint variable values at the starting point of the trajectory and the last three joint variable values at the trajectory end point; 数据处理模块,用于建立运动学反解方程并求取姿态奇点位置对应的前三个关节变量值;该数据处理模块包括如下子模块:The data processing module is used to establish the kinematics inverse solution equation and obtain the first three joint variable values corresponding to the attitude singularity position; the data processing module includes the following sub-modules: 矩阵方程建立子模块,用于建立如下方程:The matrix equation establishment sub-module is used to establish the following equations: 其中,为工具坐标系相对于基坐标系的位置矢量,为工业机器人第三连杆坐标系相对于基坐标系的齐次变换矩阵,表示工具坐标系相对于第三连杆坐标系的位置矢量,其由插补获得的后三个关节变量值及工具坐标系相对于第六连杆坐标系的位置矢量计算获得,θ1、θ2和θ3分别为待求解的第一关节的关节变量值、第二关节的关节变量值和第三关节的关节变量值;in, is the position vector of the tool coordinate system relative to the base coordinate system, is the homogeneous transformation matrix of the third link coordinate system of the industrial robot relative to the base coordinate system, Indicates the position vector of the tool coordinate system relative to the third link coordinate system, the last three joint variable values obtained by interpolation and the position vector of the tool coordinate system relative to the sixth link coordinate system Calculated, θ 1 , θ 2 and θ 3 are respectively the joint variable value of the first joint, the joint variable value of the second joint and the joint variable value of the third joint to be solved; 所述采用如下公式计算:said Calculated using the following formula: 其中,si=sin(θi),ci=cos(θi),i=4,5,6,θi为插补获得的第i关节的关节变量值,a3为从坐标系{3}的z轴z3到坐标系{4}的z轴z4沿坐标系{3}的x轴x3的距离,d4为从坐标系{3}的x轴x3到坐标系{4}的x轴x4沿坐标系{4}的z轴z4的距离,{i}表示与第i连杆固接的坐标系;Among them, s i =sin(θ i ), c i =cos(θ i ), i=4,5,6, θ i is the joint variable value of the i-th joint obtained by interpolation, and a 3 is from the coordinate system { The distance from the z-axis z 3 of 3} to the z-axis z 4 of the coordinate system {4} along the x-axis x 3 of the coordinate system {3}, d 4 is the distance from the x-axis x 3 of the coordinate system { 3 } to the coordinate system { 4}’s x-axis x 4 is the distance along the coordinate system {4}’s z-axis z 4 , and {i} represents the coordinate system fixed to the i-th connecting rod; 第一关节变量值计算子模块,用于对矩阵方程建立子模块建立的矩阵方程两端同时左乘第一连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵建立运动学反解方程求得第一关节和第三关节的关节变量值θ1和θ3如下:The first joint variable value calculation sub-module is used to simultaneously multiply the inverse matrix of the homogeneous transformation matrix of the first link coordinate system relative to the base coordinate system at both ends of the matrix equation established by the matrix equation establishment sub-module Establish kinematics inverse solution equation The joint variable values θ 1 and θ 3 of the first joint and the third joint are obtained as follows: 其中,Atan为反正切函数,xt,yt,zt为工具坐标系原点相对于基坐标系的三个坐标分量,s1=sin(θ1),s2=sin(θ2),s23=sin(θ23),c1=cos(θ1),c2=cos(θ2),c23=cos(θ23),θ123为工业机器人第一关节至第三关节的关节变量值,a1和a2分别表示第一连杆和第二连杆的长度,d2表示第一连杆和第二连杆之间的偏置,x3,y3,z3为工具坐标系原点相对于第三连杆坐标系的三个坐标分量;Among them, Atan is the arctangent function, x t , y t , z t are the three coordinate components of the origin of the tool coordinate system relative to the base coordinate system, s 1 =sin(θ 1 ), s 2 =sin(θ 2 ), s 23 = sin(θ 23 ), c 1 =cos(θ 1 ), c 2 =cos(θ 2 ), c 23 =cos(θ 23 ), θ 123 is the joint variable value of the first joint to the third joint of the industrial robot, a 1 and a 2 represent the lengths of the first connecting rod and the second connecting rod respectively, and d 2 represents the deviation between the first connecting rod and the second connecting rod x 3 , y 3 , z 3 are the three coordinate components of the origin of the tool coordinate system relative to the third link coordinate system; 第二关节变量值计算子模块,用于对矩阵方程建立子模块建立的矩阵方程两端同时左乘第三连杆坐标系相对于基坐标系的齐次变换矩阵的逆矩阵建立运动学反解方程求得第二关节的关节变量值θ2如下:The second joint variable value calculation sub-module is used to simultaneously multiply the inverse matrix of the homogeneous transformation matrix of the third link coordinate system relative to the base coordinate system at both ends of the matrix equation established by the matrix equation establishment sub-module Establish kinematics inverse solution equation The joint variable value θ 2 of the second joint is obtained as follows: 其中,Atan为反正切函数,c3=cos(θ3),s3=sin(θ3);Wherein, Atan is arctangent function, c 3 =cos(θ 3 ), s 3 =sin(θ 3 ); 运动控制模块,用于以所述姿态奇点位置对应的后三个关节变量值以及前三个关节变量值作为工业机器人在姿态奇点位置对应的运动控制参数,实现工业机器人的运动控制,以此使得六关节工业机器人顺利通过姿态奇点。The motion control module is used to use the last three joint variable values corresponding to the posture singularity position and the first three joint variable values as the motion control parameters corresponding to the posture singularity position of the industrial robot to realize the motion control of the industrial robot, to This makes the six-joint industrial robot pass through the pose singularity smoothly. 6.如权利要求5所述的六关节工业机器人通过姿态奇点的控制系统,其特征在于,所述插补模块进行插补时的插补总点数N采用下述方式确定:6. The six-joint industrial robot as claimed in claim 5 passes through the control system of the attitude singularity, wherein the total number of interpolation points N when the interpolation module performs interpolation is determined in the following manner: 其中:x1,y1,z1为轨迹起点的位置值,x2,y2,z2为轨迹终点的位置值,V为插补速度,T为插补周期。Among them: x 1 , y 1 , z 1 are the position values of the starting point of the track, x 2 , y 2 , z 2 are the position values of the end point of the track, V is the interpolation speed, and T is the interpolation cycle. 7.如权利要求6所述的六关节工业机器人通过姿态奇点的控制系统,其特征在于,所述插补速度为10mm/s,插补周期为1ms。7. The control system for a six-joint industrial robot passing a singular point of posture according to claim 6, wherein the interpolation speed is 10 mm/s, and the interpolation period is 1 ms. 8.如权利要求5所述的六关节工业机器人通过姿态奇点的控制系统,其特征在于,所述控制系统还包括判断模块,用于根据六关节工业机器人建立连杆坐标系,并对预设的规划路径进行运动学反解获得工业机器人的各关节变量值,然后判断六关节工业机器人是否处于姿态奇点。8. The six-joint industrial robot as claimed in claim 5 passes through the control system of the attitude singularity, wherein the control system also includes a judging module for establishing a link coordinate system according to the six-joint industrial robot, and predicting The kinematics inverse solution is performed on the planned path to obtain the variable values of each joint of the industrial robot, and then it is judged whether the six-joint industrial robot is in the pose singularity.
CN201710504635.9A 2017-06-28 2017-06-28 A control method and system for a six-joint industrial robot passing a posture singularity Active CN107116542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710504635.9A CN107116542B (en) 2017-06-28 2017-06-28 A control method and system for a six-joint industrial robot passing a posture singularity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710504635.9A CN107116542B (en) 2017-06-28 2017-06-28 A control method and system for a six-joint industrial robot passing a posture singularity

Publications (2)

Publication Number Publication Date
CN107116542A CN107116542A (en) 2017-09-01
CN107116542B true CN107116542B (en) 2019-11-12

Family

ID=59718868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710504635.9A Active CN107116542B (en) 2017-06-28 2017-06-28 A control method and system for a six-joint industrial robot passing a posture singularity

Country Status (1)

Country Link
CN (1) CN107116542B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109834706B (en) * 2017-11-25 2020-12-15 梅卡曼德(北京)机器人科技有限公司 Method and device for avoiding kinematic singularities in robot motion planning
CN108268013B (en) * 2017-12-29 2020-04-14 北京航空航天大学 A high-speed and high-precision interpolation system and linear interpolation algorithm based on FPGA
CN108227492B (en) * 2018-01-03 2020-07-14 华中科技大学 A method for identifying dynamic parameters of terminal load of a six-degree-of-freedom tandem robot
CN108724191A (en) * 2018-06-27 2018-11-02 芜湖市越泽机器人科技有限公司 A kind of robot motion's method for controlling trajectory
CN109483551B (en) * 2018-12-26 2020-08-11 合肥欣奕华智能机器有限公司 Method, device and system for controlling multi-axis motion of robot
CN110850807B (en) * 2019-12-04 2021-04-27 广东博智林机器人有限公司 Singular point avoiding method, device, equipment and medium
CN111958602B (en) * 2020-08-20 2022-05-20 华中科技大学 A real-time inverse solution algorithm for wrist-biased 6-axis robot
CN112405525B (en) * 2020-10-21 2022-04-29 深圳市汇川技术股份有限公司 Singular position avoiding method, system, equipment and computer readable storage medium
CN114378830B (en) * 2022-02-18 2024-02-20 深圳市大族机器人有限公司 Robot wrist joint singular avoidance method and system
CN114571452B (en) * 2022-03-01 2025-01-28 湖南科技职业学院 Industrial robot trajectory planning method, electronic device and readable storage medium
CN116277039B (en) * 2023-05-23 2024-04-05 极限人工智能(北京)有限公司 Method, system, equipment and medium for planning track of robot arm passing wrist singular point

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4716350A (en) * 1986-12-08 1987-12-29 Ford Motor Company Method to avoid singularity in a robot mechanism
CN101549495A (en) * 2008-03-31 2009-10-07 上海宝信软件股份有限公司 Robot control method capable of avoiding generation of singular points
CN102728953A (en) * 2011-04-08 2012-10-17 株式会社安川电机 robot system
CN102785248A (en) * 2012-07-23 2012-11-21 华中科技大学 Motion control method of decoupling type 6-DOF (six degrees of freedom) industrial robot
CN103802114A (en) * 2012-11-08 2014-05-21 沈阳新松机器人自动化股份有限公司 Industrial robot singular point processing method and device
CN205614678U (en) * 2016-01-25 2016-10-05 珠海格力电器股份有限公司 Regional speed reduction protection system of singular point and industrial robot

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4716350A (en) * 1986-12-08 1987-12-29 Ford Motor Company Method to avoid singularity in a robot mechanism
CN101549495A (en) * 2008-03-31 2009-10-07 上海宝信软件股份有限公司 Robot control method capable of avoiding generation of singular points
CN102728953A (en) * 2011-04-08 2012-10-17 株式会社安川电机 robot system
CN102785248A (en) * 2012-07-23 2012-11-21 华中科技大学 Motion control method of decoupling type 6-DOF (six degrees of freedom) industrial robot
CN103802114A (en) * 2012-11-08 2014-05-21 沈阳新松机器人自动化股份有限公司 Industrial robot singular point processing method and device
CN205614678U (en) * 2016-01-25 2016-10-05 珠海格力电器股份有限公司 Regional speed reduction protection system of singular point and industrial robot

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于EMC2的工业机器人研究;吴晶;《中国优秀硕士学位论文全文数据库信息科技辑》;20111215;第8-27页 *

Also Published As

Publication number Publication date
CN107116542A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN107116542B (en) A control method and system for a six-joint industrial robot passing a posture singularity
CN109895101B (en) A method for obtaining unique numerical solution of inverse kinematics of articulated manipulator
CN110757454B (en) Path planning method and device for cooperative rotation of double robots
CN105382835B (en) A kind of robot path planning method for passing through wrist singular point
CN107443382B (en) Structural parameter error identification and compensation method of industrial robot
CN112091979B (en) Seven-degree-of-freedom mechanical arm limiting optimization method based on position-level inverse kinematics
CN111702762B (en) A method for optimizing the working attitude of an industrial robot
CN103692433B (en) Model decoupling three-arm-lever five-freedom-degree translation welding robot and decoupling method thereof
CN102581849B (en) Method for planning trajectories of industrial robot based on NC (numerical control) codes
CN108356819A (en) Based on the industrial machinery arm Collision Free Path Planning for improving A* algorithms
CN107598919B (en) Two-axis positioner calibration method based on five-point calibration method
CN104965517A (en) Robot cartesian space trajectory planning method
CN113146620A (en) Binocular vision-based double-arm cooperative robot system and control method
CN108673509A (en) A kind of motion control method of six degree of freedom wrist eccentrically arranged type series connection mechanical arm
CN110722562B (en) Space Jacobian matrix construction method for machine ginseng number identification
CN111426270A (en) A target device and joint position sensitive error calibration method for industrial robot pose measurement
CN107727026A (en) Calibration method of workpiece coordinate system for cooperative work of duplex robot
JP2008204188A (en) Motion controller and motion planner, multi-axis servo system and servo amplifier
CN107414827A (en) Sixdegree-of-freedom simulation self-adapting detecting method based on linear feedback controller
CN113352327B (en) Five-degree-of-freedom mechanical arm joint variable determination method
CN116330267A (en) Control method based on industrial robot wrist singular point calculation
JPH06278063A (en) Industrial robot system
CN104070523B (en) The real-time circular interpolation implementation method of industrial robot based on space coordinate conversion
CN111515954B (en) A method for generating high-quality motion paths for robotic arms
CN104793654B (en) Operation speed obtaining method and device

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