上海交通大学学报(自然版) ›› 2014, Vol. 48 ›› Issue (05): 629-635.

• 金属学与金属工艺 • 上一篇    下一篇

基于G2连续Bézier曲线的刀具轨迹压缩算法

赵晟1,毕庆贞1,王宇晗1,石璟1,刘钢2
  

  1. (1. 上海交通大学 机械与动力工程学院, 上海 200240;2. 上海拓璞数控科技有限公司, 上海 201111)
  • 收稿日期:2013-09-02
  • 基金资助:

    国家科技支撑计划项目(2012BAF01B07),国家重大科技专项(2012ZX04010051),上海市重大技术装备研制专项(ZBZBYZ03112190),上海特种数控装备及工艺工程技术研究中心项目(12DZ2250500)资助

A Data Compression Algorithm Based on  G2 Continuous  Bézier Curves for Tool Paths

ZHAO Sheng1,BI Qingzhen1,WANG Yuhan1,SHI Jing1,LIU Gang2
  

  1. (1. School of Mechanical Engineering, Shanghai Jiaotong University, Shanghai 200240, China;2. Shanghai Top Numerical Control Technology Co. Ltd., Shanghai 201111, China)
  • Received:2013-09-02

摘要:

针对复杂曲面的数控加工,提出一种基于Bézier曲线的刀具轨迹数据压缩算法.根据连续小线段的几何特征来筛选适用于被压缩的区域,将各个区域内的形值点转化为特殊的3阶Bézier曲线,选用最小二乘法拟合形值点,通过调整参数曲线控制点和插入过渡曲线,使得加工路径光顺并保证G2连续性,采用2阶Taylor展开来估计误差和控制拟合精度.结果表明:所提出的算法无迭代、实时性好,算法数据的压缩比高;采用Taylor展开估计的误差与真实误差很接近,可以有效控制拟合精度.

 
 

关键词: 数控系统, 数据压缩, 参数曲线, G2连续性, 误差估计

Abstract:

The machining of continuous short blocks is a hot and difficult point for CNC machining. In this paper, a data compression algorithm based on the Bézier curve was proposed. First, the areas suitable for compression were screened out based on the geometric characteristics of continuous short blocks. Then, G01 points in each area were converted to special 3 order Bézier curves. To decrease the fluctuation of curvature and increase the compression ratio, the least square method was chosen to fit points. By adjusting the control points and inserting transition curves, the machining path was made G2 continuous. The fitting error was estimated by 2-order Taylor formula. Without iteration, the algorithm was realtime. The experiment proved that the compression ratio was high. The errors estimated by Taylor formula was extremely close to the real ones, indicating that the fitting accuracy could be controlled effectively.
 

Key words: computer numerical control (CNC) system, data compression, parametric curve, G2 continuity, fitting error estimation

中图分类号: