The invention discloses a space arc interpolation method for a three-axis rectangular coordinate robot, which comprises the following steps: specifying three arbitrary non-collinear points in the motion trajectory of a three-axis rectangular coordinate robot; substituting three points into an analytical formula of the center and radius; calculating the center angle of an arc needing interpolation; calculating the specific normal vector N of the plane where the three points are located, and constructing a specific auxiliary vector M according to the normal vector N; The parametric equation of interpolation point is expressed; the number of interpolation times I is calculated; the parametric value of the first interpolation is calculated and substituted into the parametric equation to obtain the point coordinates of the second interpolation; the termination point of interpolation is judged; and the calculation results are transmitted to the executing mechanism of the three-axis rectangular coordinate robot. The invention reduces the calculation amount, simplifies the code amount, improves the running speed and interpolation accuracy, is suitable for any starting and ending points, any plane, and can be used in the field of robot control with higher requirements for running speed and accuracy.
【技术实现步骤摘要】
一种三轴直角坐标机器人空间圆弧插补方法
本专利技术属于机器人控制
,特别涉及了一种三轴直角坐标机器人空间圆弧插补方法。
技术介绍
当今机器人控制领域应用中,比如三轴直角坐标机器人的点胶,雕刻等任务,轨迹规划是完成任务的关键所在。圆弧插补是轨迹规划主要任务之一,通常只给运动路径上几个关键点,按照轨迹的特点插补出中间点,从而实现高校高精度的运动控制。这些系统需要做到实时处理,需要一种算法简单、计算量低、运算速度快、插补坐标精度高的方法。现有技术需判断插补方向,判断方法复杂且需要多步判断,本专利技术通过特定的法向量,构造特定的辅助向量,避免了插补方向的判断这一过程,省去了不必要的计算。现有判断补圆弧对应圆心角和两向量夹角关系的技术有:分别计算起点到经过点、经过点到中止点的夹角然后求和,需要三步计算,且不适用于经过点和起始点或终止点夹角超过π的情况;通过混合积判断,其计算复杂;或通过位置反解参数方程,需要计算反三角函数。
技术实现思路
为了解决上述
技术介绍
提出的技术问题,本专利技术旨在提供一种三轴直角坐标机器人空间圆弧插补方法,简化算法,降低计算量,提高运算速度和精度。为了实现上述技术目的,本专利技术的技术方案为:一种三轴直角坐标机器人空间圆弧插补方法,包括以下步骤:(1)通过示教器或上位机指定三轴直角坐标机器人运动轨迹中任意不共线的三点:起始点P1、中间经过点P2和终止点P3;(2)将P1、P2、P3三点代入圆心O、半径R的解析式,此解析式由三点共面和三点到圆心距离相等这两个约束求解得到;(3)计算需要插补的圆弧的圆心角W;(4)计算P1、P2、P3三点所在平 ...
【技术保护点】
1.一种三轴直角坐标机器人空间圆弧插补方法,其特征在于,包括以下步骤:(1)通过示教器或上位机指定三轴直角坐标机器人运动轨迹中任意不共线的三点:起始点P1、中间经过点P2和终止点P3;(2)将P1、P2、P3三点代入圆心O、半径R的解析式,此解析式由三点共面和三点到圆心距离相等这两个约束求解得到;(3)计算需要插补的圆弧的圆心角W;(4)计算P1、P2、P3三点所在平面的特定的法向量N,并根据法向量N构造特定的辅助向量M;(5)将插补点的参数方程表示出来;(6)计算插补次数I;(7)计算第i次插补的参数值,将其代入步骤(5)的参数方程中,得到第i次插补的点坐标,i从0开始取值;(8)判断插补终止点,若i
【技术特征摘要】
1.一种三轴直角坐标机器人空间圆弧插补方法,其特征在于,包括以下步骤:(1)通过示教器或上位机指定三轴直角坐标机器人运动轨迹中任意不共线的三点:起始点P1、中间经过点P2和终止点P3;(2)将P1、P2、P3三点代入圆心O、半径R的解析式,此解析式由三点共面和三点到圆心距离相等这两个约束求解得到;(3)计算需要插补的圆弧的圆心角W;(4)计算P1、P2、P3三点所在平面的特定的法向量N,并根据法向量N构造特定的辅助向量M;(5)将插补点的参数方程表示出来;(6)计算插补次数I;(7)计算第i次插补的参数值,将其代入步骤(5)的参数方程中,得到第i次插补的点坐标,i从0开始取值;(8)判断插补终止点,若i<I,则返回步骤(7),否则转入步骤(9);(9)将计算结果传送给三轴直角坐标机器人的执行机构。2.根据权利要求1所述三轴直角坐标机器人空间圆弧插补方法,其特征在于,在步骤(2)中,设P1的坐标为(x1,y1,z1),P2的坐标为(x2,y2,z2),P3的坐标为(x3,y3,z3),圆心O的坐标为(ox,oy,oz),则圆心O、半径R的解析式如下:其中:A1=y1*z2-y1*z3-z1*y2+z1*z2+y2*z3-z2*z2B1=-x1*z2+x1*z3+z1*x2-z1*z1-x2*z3+z1*z2C1=x1*y2-x1*z2-y1*x2+y1*z1+...
【专利技术属性】
技术研发人员:李涛,江磊,贾忠益,
申请(专利权)人:南京信息工程大学,
类型:发明
国别省市:江苏,32
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。