The invention provides a method for detecting workpiece path planning, which comprises the following steps: analyzing DXF drawings, extracting the primitive information of the workpiece to be detected, including arcs, circles, ellipses, straight lines, polyline lines and annotation information. Contour equidistant segmentation uses the equidistant equal interval method to compute the location of a single sampling point. Path optimization, using the shortest path algorithm of finite scatter graph -- genetic algorithm, can get a better path in Matlab simulation. The head motion is detected. According to the dimension ratio of the current drawing to the physical object, the coordinate of the actual movement node of the detection head is obtained, and the control card command is called in turn in the coordinate sequence, and the detection head must pass through each sampling point. The invention relates to a workpiece detection path planning method, which reduces manual positioning operation, and has high detection accuracy and efficiency.
【技术实现步骤摘要】
一种工件检测路径规划的方法
本专利技术属于机械设备领域,涉及一种工件检测路径规划的方法。
技术介绍
工件的每次检测采样,都必须给定检测头的精确坐标位置,否则会导致检测精度较低。另外,考虑到检测效率,必须对路径进行优化,使得空行程最小,否则容易导致检测效率低下。
技术实现思路
为解决上述问题,本专利技术提出了一种工件检测路径规划的方法。一种工件检测路径规划的方法,包括如下步骤:解析DXF图纸,提取待检测工件的图元信息,包括弧、圆、椭圆、直线、多段线和标注信息。轮廓等间距分割,利用边缘等间距分割法计算单个采样点位置,因为检测头并不是连续采样,单纯得到图元信息并不能规划出检测头的运动路径,所以需要计算单个采样点位置遗传算法对分割点排序,对所有图元依次分割,生成一系列采样点。路径优化,考虑到检测效率,必须对路径进行优化,使得空行程最小,采用有限散点图的最短路径算法——遗传算法,可在Matlab模拟中得到较优的路径。检测头运动,按照当前图纸与实物的尺寸比率转换得到检测头的实际运动节点坐标,对坐标序列依次调用控制卡指令,检测头必须经过每个采样点。本专利技术提出一种工件检测路径规划 ...
【技术保护点】
一种工件检测路径规划的方法,其特征在于,包括如下步骤:解析DXF图纸,提取待检测工件的图元信息,包括弧、圆、椭圆、直线、多段线和标注信息;轮廓等间距分割,利用边缘等间距分割法计算单个采样点位置,因为检测头并不是连续采样,单纯得到图元信息并不能规划出检测头的运动路径,所以需要计算单个采样点位置遗传算法对分割点排序,对所有图元依次分割,生成一系列采样点;路径优化,考虑到检测效率,必须对路径进行优化,使得空行程最小,采用有限散点图的最短路径算法——遗传算法,可在Matlab模拟中得到较优的路径;检测头运动,按照当前图纸与实物的尺寸比率转换得到检测头的实际运动节点坐标,对坐标序列依 ...
【技术特征摘要】
1.一种工件检测路径规划的方法,其特征在于,包括如下步骤:解析DXF图纸,提取待检测工件的图元信息,包括弧、圆、椭圆、直线、多段线和标注信息;轮廓等间距分割,利用边缘等间距分割法计算单个采样点位置,因为检测头并不是连续采样,单纯得到图元信息并不能规划出检测头的运动路径,所以需要计算单个采样点位置遗传算法对分割点排...
【专利技术属性】
技术研发人员:王桂棠,吴黎明,陈永彬,
申请(专利权)人:广东工业大学,广州沧恒自动控制科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。