[go: up one dir, main page]

CN114782526B - Calculation method, device, electronic equipment and storage medium for welding seam trajectory of H-beam - Google Patents

Calculation method, device, electronic equipment and storage medium for welding seam trajectory of H-beam Download PDF

Info

Publication number
CN114782526B
CN114782526B CN202210712209.5A CN202210712209A CN114782526B CN 114782526 B CN114782526 B CN 114782526B CN 202210712209 A CN202210712209 A CN 202210712209A CN 114782526 B CN114782526 B CN 114782526B
Authority
CN
China
Prior art keywords
position data
vertex
normal vector
vector
point
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
CN202210712209.5A
Other languages
Chinese (zh)
Other versions
CN114782526A (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.)
Ji Hua Laboratory
Original Assignee
Ji Hua Laboratory
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 Ji Hua Laboratory filed Critical Ji Hua Laboratory
Priority to CN202210712209.5A priority Critical patent/CN114782526B/en
Publication of CN114782526A publication Critical patent/CN114782526A/en
Application granted granted Critical
Publication of CN114782526B publication Critical patent/CN114782526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23KSOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
    • B23K31/00Processes relevant to this subclass, specially adapted for particular articles or purposes, but not covered by only one of the preceding main groups
    • B23K31/02Processes relevant to this subclass, specially adapted for particular articles or purposes, but not covered by only one of the preceding main groups relating to soldering or welding
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23KSOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
    • B23K37/00Auxiliary devices or processes, not specially adapted for a procedure covered by only one of the other main groups of this subclass
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23KSOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
    • B23K2103/00Materials to be soldered, welded or cut
    • B23K2103/02Iron or ferrous alloys
    • B23K2103/04Steel or steel alloys
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30152Solder
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Mechanical Engineering (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Optics & Photonics (AREA)
  • Algebra (AREA)
  • Pure & Applied Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Numerical Control (AREA)

Abstract

本申请涉及机器人焊接技术领域,提供了一种H型钢的焊缝轨迹计算方法、装置、电子设备及存储介质,本方法包括:获取H型钢和筋板之间的连接处的四个角点;获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝的第二上顶点的法向量和底边焊缝的中点的法向量;根据H型钢和筋板之间的四个角点获取第一上顶点、第二上顶点和中点;获取第一下顶点、第二下顶点、左顶点和右顶点;根据第一上顶点、第一下顶点和第一上顶点的法向量计算第一侧边焊缝轨迹数据;根据第二上顶点、第二下顶点和第二上顶点的法向量计算第二侧边焊缝轨迹数据;根据左顶点、右顶点和中点的法向量计算底边焊缝轨迹数据。本发明能提高获取焊缝轨迹数据的效率和生产效率。

Figure 202210712209

The present application relates to the technical field of robotic welding, and provides a welding seam trajectory calculation method, device, electronic device and storage medium for H-shaped steel. The method includes: acquiring four corner points of the connection between the H-shaped steel and the rib plate; Obtain the normal vector of the first upper vertex of the first side weld, the normal vector of the second upper vertex of the second side weld, and the normal vector of the midpoint of the bottom weld; Obtain the first upper vertex, the second upper vertex and the midpoint of the four corner points; obtain the first lower vertex, the second lower vertex, the left vertex and the right vertex; Calculate the first side weld trajectory data based on the normal vector of the vertex; calculate the second side weld trajectory data according to the normal vector of the second upper vertex, the second lower vertex and the second upper vertex; The normal vector of the point is used to calculate the bottom edge weld trajectory data. The invention can improve the efficiency and production efficiency of acquiring welding seam track data.

Figure 202210712209

Description

H型钢的焊缝轨迹计算方法、装置、电子设备及存储介质Calculation method, device, electronic equipment and storage medium for welding seam trajectory of H-beam

技术领域technical field

本申请涉及机器人焊接技术领域,具体而言,涉及一种H型钢的焊缝轨迹计算方法、装置、电子设备及存储介质。The present application relates to the technical field of robotic welding, and in particular, to a welding seam trajectory calculation method, device, electronic device and storage medium for H-beams.

背景技术Background technique

钢材结构具有自重轻,强度高,稳定性强等特点,因此在现代建筑以及其他建设类工程的使用量逐渐增加。其中,H型钢等标准型材的加工批量增长而且要求工期缩短,企业原有焊工团队已经不能满足现有生产需求。此外,随着劳动力人口的减少,焊工资源日趋紧张,对H型钢焊接向自动化、智能化、无人化的智能焊接机器人发展提出了紧迫要求。Steel structure has the characteristics of light weight, high strength and strong stability, so the usage in modern buildings and other construction projects is gradually increasing. Among them, the processing batches of standard profiles such as H-beams have increased and the construction period has been shortened. The original welder team of the company can no longer meet the existing production needs. In addition, with the reduction of the labor force, the resources of welders are increasingly tight, which puts forward urgent requirements for the development of H-beam welding to automated, intelligent and unmanned intelligent welding robots.

近年来,国内先进的制造企业尝试使用示教编程焊接机器人及拖拽示教焊接专机,一定程度上提高了H型钢焊接应用的焊接质量和自动化程度。但只能满足大批量同样尺寸的工件而且具有精确定位的工装,对于柔性化,多尺寸,小批量和无工装的H型钢焊接应用还是束手无策。尤其是针对如图3所示的H型钢工件,该H型钢工件包括H型钢100和至少两块筋板200,该筋板垂直地与该H型钢100的两个翼板和腹板连接,制造该H型钢工件时,需要对该筋板200与该H型钢100进行焊接,对于这种H型钢工件的焊接,现有的人工示教过程更加繁琐。In recent years, domestic advanced manufacturing companies have tried to use teaching programming welding robots and drag teaching welding machines, which have improved the welding quality and automation of H-beam welding applications to a certain extent. However, it can only meet the workpieces of the same size in large batches and has precise positioning tooling. It is still helpless for H-beam welding applications of flexible, multi-size, small batches and no tooling. Especially for the H-shaped steel workpiece as shown in FIG. 3, the H-shaped steel workpiece includes the H-shaped steel 100 and at least two rib plates 200. When the H-shaped steel workpiece is used, the rib plate 200 and the H-shaped steel 100 need to be welded. For the welding of the H-shaped steel workpiece, the existing manual teaching process is more complicated.

基于上述问题,目前尚未有有效的解决方法。Based on the above problems, there is currently no effective solution.

发明内容SUMMARY OF THE INVENTION

本申请的目的在于提供一种H型钢的焊缝轨迹计算方法、装置、电子设备及存储介质,去除了人工示教的繁琐过程,提高了获取H型钢工件的焊缝轨迹数据的效率和生产效率。The purpose of this application is to provide a welding seam trajectory calculation method, device, electronic device and storage medium for H-beams, which removes the tedious process of manual teaching and improves the efficiency and production efficiency of obtaining weld trajectory data of H-beam workpieces. .

第一方面,本申请提供了一种H型钢的焊缝轨迹计算方法,用于获取H型钢工件的焊缝轨迹数据,所述H型钢工件包括H型钢和至少两块筋板,所述筋板垂直地与所述H型钢的两个翼板和腹板连接,其中,包括以下步骤:In a first aspect, the present application provides a welding seam trajectory calculation method for H-beam, which is used to obtain weld trajectory data of an H-beam workpiece, wherein the H-beam workpiece includes an H-beam and at least two rib plates. Connect to the two flanges and webs of the H-beam vertically, including the following steps:

S1.获取待焊接的H型钢工件图像信息;S1. Obtain the image information of the H-beam workpiece to be welded;

S2.根据所述H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个所述角点分别为左上角点、左下角点、右上角点和右下角点;S2. Obtain the position data of the four corner points at the connection between the H-beam and the rib plate according to the image information of the H-beam workpiece, and the four corner points are the upper-left corner point, the lower-left corner point, the upper-right corner point and lower right corner;

S3.获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝的第二上顶点的法向量和底边焊缝的中点的法向量;S3. Obtain the normal vector of the first upper vertex of the first side weld, the normal vector of the second upper vertex of the second side weld, and the normal vector of the midpoint of the bottom weld;

S4.基于寻位算法,根据所述H型钢和筋板之间的四个所述角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;S4. Based on the positioning algorithm, obtain the position data of the first upper vertex of the first side weld and the position data of the second side weld according to the position data of the four corner points between the H-beam and the rib. The position data of the second upper vertex and the position data of the midpoint of the bottom edge weld;

S5.获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据所述第一上顶点的位置数据、所述第一下顶点的位置数据和所述第一上顶点的法向量计算第一侧边焊缝轨迹数据;S5. Obtain the position data of the first lower vertex of the first side weld, the position data of the second lower vertex of the second side weld, the position data of the left vertex and the right vertex of the bottom weld; Calculate the first side weld trajectory data according to the position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex;

根据所述第二上顶点的位置数据、所述第二下顶点的位置数据和所述第二上顶点的法向量计算第二侧边焊缝轨迹数据;Calculate the second side weld trajectory data according to the position data of the second upper vertex, the position data of the second lower vertex and the normal vector of the second upper vertex;

根据所述左顶点的位置数据、所述右顶点的位置数据和所述中点的法向量计算底边焊缝轨迹数据。The bottom edge weld trajectory data is calculated according to the position data of the left vertex, the position data of the right vertex and the normal vector of the midpoint.

本申请的H型钢的焊缝轨迹计算方法,通过获取待焊接的H型钢工件图像信息;所述H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个所述角点分别为左上角点、左下角点、右上角点和右下角点;获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝的第二上顶点的法向量和底边焊缝的中点的法向量;基于寻位算法,根据所述H型钢和筋板之间的四个所述角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据所述第一上顶点的位置数据、所述第一下顶点的位置数据和所述第一上顶点的法向量计算第一侧边焊缝轨迹数据;根据所述第二上顶点的位置数据、所述第二下顶点的位置数据和所述第二上顶点的法向量计算第二侧边焊缝轨迹数据;根据所述左顶点的位置数据、所述右顶点的位置数据和所述中点的法向量计算底边焊缝轨迹数据。免除了人工示教的繁琐过程,提高了获取H型钢工件的焊缝轨迹数据的效率和生产效率。The welding seam trajectory calculation method of the H-beam of the present application obtains the image information of the H-beam workpiece to be welded; the H-beam workpiece image information obtains the position data of the four corner points at the connection between the H-beam and the rib, The four said corner points are respectively the upper left corner point, the lower left corner point, the upper right corner point and the lower right corner point; the normal vector of the first upper vertex of the first side weld and the second upper vertex of the second side weld are obtained. The normal vector of the vertex and the normal vector of the midpoint of the bottom edge weld; based on the positioning algorithm, the first side weld is obtained according to the position data of the four corner points between the H-beam and the rib. The position data of the first upper vertex, the position data of the second upper vertex of the second side weld and the position data of the midpoint of the bottom weld; obtain the position data of the first lower vertex of the first side weld, the first The position data of the second lower vertex of the two-side welding seam, the position data of the left vertex and the position data of the right vertex of the bottom welding seam; according to the position data of the first upper vertex, the position of the first lower vertex data and the normal vector of the first upper vertex to calculate the first side weld trajectory data; according to the position data of the second upper vertex, the position data of the second lower vertex and the method of the second upper vertex The vector calculates the second side welding seam trajectory data; and the bottom welding seam trajectory data is calculated according to the position data of the left vertex, the position data of the right vertex and the normal vector of the midpoint. The tedious process of manual teaching is eliminated, and the efficiency and production efficiency of acquiring the weld track data of the H-beam workpiece are improved.

可选地,步骤S3之前,步骤S2之后包括:Optionally, before step S3, after step S2 includes:

A1.根据所述左上角点的位置数据和所述左下角点的位置数据获取第一侧边向量;根据所述右上角点的位置数据和所述右下角点的位置数据获取第二侧边向量;根据所述左下角点的位置数据和所述右下角点的位置数据获取底边向量;A1. Obtain the first side vector according to the position data of the upper left corner point and the position data of the lower left corner point; Obtain the second side edge according to the position data of the upper right corner point and the position data of the lower right corner point vector; obtain the bottom edge vector according to the position data of the lower left corner point and the position data of the lower right corner point;

A2.根据所述第一侧边向量和所述底边向量计算第一法向量;根据所述第二侧边向量和所述底边向量计算第二法向量;根据所述底边向量计算第三法向量。A2. Calculate the first normal vector according to the first side vector and the base vector; calculate the second normal vector according to the second side vector and the base vector; calculate the first normal vector according to the base vector Three normal vectors.

可选地,步骤 S3包括:Optionally, step S3 includes:

将所述第一法向量朝所述底边向量旋转第一预设角度,并向上翘曲第二预设角度,以获取所述第一上顶点的法向量;Rotating the first normal vector toward the base vector by a first preset angle, and warping upwards by a second preset angle, to obtain the normal vector of the first upper vertex;

将所述第二法向量朝所述底边向量旋转第三预设角度,并向上翘曲第四预设角度,以获取所述第二上顶点的法向量;Rotating the second normal vector toward the base vector by a third preset angle, and warping upwards by a fourth preset angle to obtain the normal vector of the second upper vertex;

将所述第三法向量向上翘曲第五预设角度,以获取所述中点的法向量。Warping the third normal vector upward by a fifth preset angle to obtain the normal vector of the midpoint.

通过这种方式,可以防止焊接机器人和工件发生碰撞。In this way, collisions between the welding robot and the workpiece are prevented.

可选地,步骤S4包括:Optionally, step S4 includes:

S401.预设第一移动距离和第二移动距离;S401. Preset the first movement distance and the second movement distance;

S402.根据所述第一移动距离、所述第二移动距离、所述左上角点的位置数据和所述第一法向量对所述第一侧边焊缝进行寻位,以获取所述第一上顶点的位置数据;S402. Find the location of the first side weld according to the first moving distance, the second moving distance, the position data of the upper-left corner point, and the first normal vector, to obtain the first The position data of the upper vertex;

根据所述第一移动距离、所述第二移动距离、所述右上角点的位置数据和所述第二法向量对所述第二侧边焊缝进行寻位,以获取所述第二上顶点的位置数据;The second side welding seam is located according to the first moving distance, the second moving distance, the position data of the upper right corner point and the second normal vector, so as to obtain the second upper vertex position data;

根据所述第二移动距离、所述中点的位置数据和所述第三法向量对所述底边焊缝进行寻位,以获取所述中点的位置数据。The bottom edge welding seam is located according to the second moving distance, the position data of the midpoint and the third normal vector, so as to obtain the position data of the midpoint.

通过这种方式,可以进一步防止在寻位时焊接机器人和H型钢工件发生碰撞,并且找到精确的第一上顶点的位置数据、第二上顶点的位置数据和中点的位置数据。In this way, the collision between the welding robot and the H-beam workpiece can be further prevented during positioning, and the precise position data of the first upper vertex, the position data of the second upper vertex and the position data of the midpoint can be found.

可选地,步骤S5包括:Optionally, step S5 includes:

S501.根据所述第一上顶点的位置数据和所述第二上顶点的位置数据计算所述第一上顶点和所述第二上顶点形成的直线连线的第一斜率;S501. Calculate the first slope of the straight line connecting the first upper vertex and the second upper vertex according to the position data of the first upper vertex and the second upper vertex;

S502.根据所述第一斜率、所述第一上顶点的位置数据、所述第二上顶点的位置数据和所述中点的位置数据计算H型钢的左凹面点的位置数据和右凹面点的位置数据。S502. Calculate the position data of the left concave point and the right concave point of the H-beam according to the first slope, the position data of the first upper vertex, the position data of the second upper vertex and the position data of the midpoint location data.

S503.根据所述左凹面点的位置数据、所述右凹面点的位置数据、所述第一上顶点的位置数据、所述第二上顶点的位置数据和所述中点的位置数据获取所述第一侧边焊缝的第一下顶点的位置数据、所述第二侧边焊缝的第二下顶点的位置数据和所述底边焊缝的左顶点的位置数据和右顶点的位置数据;S503. Acquire the data according to the position data of the left concave point, the position data of the right concave point, the position data of the first upper vertex, the position data of the second upper vertex and the position data of the midpoint. The position data of the first lower vertex of the first side weld, the position data of the second lower vertex of the second side weld, and the position data of the left vertex and the right vertex of the bottom weld data;

S504. 根据所述第一上顶点的位置数据、所述第一上顶点的法向量和所述第一下顶点的位置数据计算所述第一侧边焊缝轨迹数据;S504. Calculate the first side weld trajectory data according to the position data of the first upper vertex, the normal vector of the first upper vertex and the position data of the first lower vertex;

根据所述第二上顶点的位置数据、所述第二上顶点的法向量和所述第二下顶点的位置数据计算所述第二侧边焊缝轨迹数据;Calculate the second side weld trajectory data according to the position data of the second upper vertex, the normal vector of the second upper vertex and the position data of the second lower vertex;

根据所述左顶点的位置数据、所述中点的法向量和所述右顶点的位置数据计算底边焊缝轨迹数据。The bottom edge weld trajectory data is calculated according to the position data of the left vertex, the normal vector of the midpoint, and the position data of the right vertex.

可选地,步骤S503包括:Optionally, step S503 includes:

基于向量的等比特性,根据所述第一上顶点的位置数据和所述左凹面点的位置数据计算所述第一下顶点的位置数据;Calculate the position data of the first lower vertex according to the position data of the first upper vertex and the position data of the left concave point based on the isobaric property of the vector;

基于向量的等比特性,根据所述第二上顶点的位置数据和所述右凹面点的位置数据计算所述第二下顶点的位置数据;Calculate the position data of the second lower vertex according to the position data of the second upper vertex and the position data of the right concave point based on the isobaric property of the vector;

基于向量的等比特性,根据所述中点的位置数据和所述左凹面点的位置数据计算所述左顶点的位置数据;Calculate the position data of the left vertex according to the position data of the midpoint and the position data of the left concave point based on the equal-phase characteristic of the vector;

基于向量的等比特性,根据所述中点的位置数据和所述右凹面点的位置数据计算所述右顶点的位置数据。The position data of the right vertex is calculated from the position data of the midpoint and the position data of the right concave point based on the isobaric property of the vector.

本申请的H型钢的焊缝轨迹计算方法,通过使用寻位算法,获取精确的第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据,最后通过第一上顶点的位置数据、第二上顶点的位置数据和中点的位置数据计算出第一侧边焊缝轨迹数据、第二侧边焊缝轨迹数据以及底边焊缝轨迹数据。免除了人工示教的繁琐过程,提高了获取H型钢工件的焊缝轨迹数据的效率和生产效率。The welding seam trajectory calculation method of the H-beam of the present application obtains accurate position data of the first upper vertex of the first side weld and the position data of the second upper vertex of the second side weld by using a positioning algorithm and the position data of the midpoint of the bottom edge weld, and finally calculate the first side weld track data, the second side edge through the position data of the first upper vertex, the position data of the second upper vertex and the position data of the midpoint Weld track data and bottom edge weld track data. The tedious process of manual teaching is eliminated, and the efficiency and production efficiency of acquiring the weld track data of the H-beam workpiece are improved.

第二方面,本申请提供一种H型钢的焊缝轨迹计算装置,用于获取H型钢工件的焊缝轨迹数据,所述H型钢工件包括H型钢和至少两块筋板,所述筋板垂直地与所述H型钢的两个翼板和腹板连接,其中,包括以下模块:In a second aspect, the present application provides a welding seam trajectory calculation device for H-shaped steel, which is used to obtain welding seam trajectory data of an H-shaped steel workpiece. The H-shaped steel workpiece includes an H-shaped steel and at least two ribs, and the ribs are vertical. The ground is connected with the two flanges and webs of the H-beam, which includes the following modules:

第一获取模块:用于获取待焊接的H型钢工件图像信息;The first acquisition module: used to acquire the image information of the H-beam workpiece to be welded;

第二获取模块:用于根据所述H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个所述角点分别为左上角点、左下角点、右上角点和右下角点;The second acquisition module: used to acquire the position data of the four corner points at the connection between the H-beam and the rib according to the image information of the H-beam workpiece, and the four corner points are the upper left corner and the lower left corner respectively. , the upper right corner and the lower right corner;

第三获取模块:用于获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝第二上顶点的法向量和底边焊缝的中点的法向量;The third obtaining module: used to obtain the normal vector of the first upper vertex of the first side weld, the normal vector of the second upper vertex of the second side weld, and the normal vector of the midpoint of the bottom weld;

第四获取模块:用于基于寻位算法,根据所述H型钢和筋板之间的四个所述角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;The fourth acquisition module: based on the positioning algorithm, according to the position data of the four corner points between the H-beam and the rib plate The position data of the second upper vertex of the side weld and the position data of the midpoint of the bottom weld;

第五获取模块:用于获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;Fifth obtaining module: used to obtain the position data of the first lower vertex of the first side weld, the position data of the second lower vertex of the second side weld, the position data of the left vertex of the bottom weld and the right vertex position data;

根据所述第一上顶点的位置数据、所述第一下顶点的位置数据和所述第一上顶点的法向量计算第一侧边焊缝轨迹数据;Calculate the first side weld trajectory data according to the position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex;

根据所述第二上顶点的位置数据、所述第二下顶点的位置数据和所述第二上顶点的法向量计算第二侧边焊缝轨迹数据;Calculate the second side weld trajectory data according to the position data of the second upper vertex, the position data of the second lower vertex and the normal vector of the second upper vertex;

根据所述左顶点的位置数据、所述右顶点的位置数据和所述中点的法向量计算底边焊缝轨迹数据。The bottom edge weld trajectory data is calculated according to the position data of the left vertex, the position data of the right vertex and the normal vector of the midpoint.

可选地,申请提供的H型钢的焊缝轨迹计算装置,还包括以下模块:Optionally, the H-beam weld trajectory calculation device provided by the application further includes the following modules:

第六获取模块:用于根据所述左上角点的位置数据和所述左下角点的位置数据获取第一侧边向量;根据所述右上角点的位置数据和所述右下角点的位置数据获取第二侧边向量;根据所述左下角点的位置数据和所述右下角点的位置数据获取底边向量;The sixth acquisition module: for obtaining the first side vector according to the position data of the upper left corner point and the position data of the lower left corner point; according to the position data of the upper right corner point and the position data of the lower right corner point Obtain the second side vector; obtain the bottom vector according to the position data of the lower left corner point and the position data of the lower right corner point;

计算模块:用于根据所述第一侧边向量和所述底边向量计算第一法向量;根据所述第二侧边向量和所述底边向量计算第二法向量;根据所述底边向量计算第三法向量。calculation module: used to calculate a first normal vector according to the first side vector and the base vector; calculate a second normal vector according to the second side vector and the base vector; according to the base vector computes the third normal vector.

本申请提供的H型钢的焊缝轨迹计算装置,通过第一获取模块获取待焊接的H型钢工件图像信息;第二获取模块根据H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个角点分别为左上角点、左下角点、右上角点和右下角点;第三获取模块获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝第二上顶点的法向量和底边焊缝的中点的法向量;第四获取模块基于寻位算法,根据所述H型钢和筋板之间的四个所述角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;第五获取模块获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据所述第一上顶点的位置数据、所述第一下顶点的位置数据和所述第一上顶点的法向量计算第一侧边焊缝轨迹数据;根据所述第二上顶点的位置数据、所述第二下顶点的位置数据和所述第二上顶点的法向量计算第二侧边焊缝轨迹数据;根据所述左顶点的位置数据、所述右顶点的位置数据和所述中点的法向量计算底边焊缝轨迹数据。免除了人工示教的繁琐过程,提高了获取H型钢工件的焊缝轨迹数据的效率和生产效率。In the H-beam welding seam trajectory calculation device provided by the present application, the image information of the H-beam workpiece to be welded is obtained through the first acquisition module; The position data of the four corner points, the four corner points are the upper left corner point, the lower left corner point, the upper right corner point and the lower right corner point; the third acquisition module acquires the normal vector of the first upper vertex of the first side weld, The normal vector of the second upper vertex of the second side welding seam and the normal vector of the midpoint of the bottom welding seam; the fourth acquisition module is based on the positioning algorithm, The position data of the point obtains the position data of the first upper vertex of the first side weld, the position data of the second upper vertex of the second side weld and the position data of the midpoint of the bottom weld; the fifth acquisition module Obtain the position data of the first lower vertex of the first side weld, the position data of the second lower vertex of the second side weld, the position data of the left vertex and the right vertex of the bottom weld; The position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex are used to calculate the first side weld trajectory data; according to the position data of the second upper vertex, all The position data of the second lower vertex and the normal vector of the second upper vertex are used to calculate the second side weld trajectory data; according to the position data of the left vertex, the position data of the right vertex and the middle point The normal vector calculates the bottom edge weld trajectory data. The tedious process of manual teaching is eliminated, and the efficiency and production efficiency of acquiring the weld track data of the H-beam workpiece are improved.

第三方面,本申请提供一种电子设备,包括处理器以及存储器,所述存储器存储有计算机可读取指令,当所述计算机可读取指令由所述处理器执行时,运行如上述第一方面提供的所述方法中的步骤。In a third aspect, the present application provides an electronic device, including a processor and a memory, where the memory stores computer-readable instructions, when the computer-readable instructions are executed by the processor, the operation is performed as described in the first The steps in the methods provided by the aspects.

第四方面,本申请提供一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时运行如上述第一方面提供的所述方法中的步骤。In a fourth aspect, the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, executes the steps in the method provided in the first aspect above.

综上,本申请提供的H型钢的焊缝轨迹计算方法、装置、电子设备及存储介质:通过使用寻位算法,获取精确的第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据,最后通过第一上顶点的位置数据、第二上顶点的位置数据和中点的位置数据计算出第一侧边焊缝轨迹数据、第二侧边焊缝轨迹数据以及底边焊缝轨迹数据。免除了人工示教的繁琐过程,提高了获取H型钢工件的焊缝轨迹数据的效率和生产效率。To sum up, the welding seam trajectory calculation method, device, electronic device and storage medium of H-beam provided by this application: by using the positioning algorithm, the precise position data of the first upper vertex of the first side weld, the second The position data of the second upper vertex of the side welding seam and the position data of the middle point of the bottom welding seam are finally calculated by the position data of the first upper vertex, the position data of the second upper vertex and the position data of the middle point. One side weld track data, second side weld track data, and bottom edge weld track data. The tedious process of manual teaching is eliminated, and the efficiency and production efficiency of acquiring the weld track data of the H-beam workpiece are improved.

附图说明Description of drawings

图1为本申请提供的H型钢的焊缝轨迹计算方法的一种流程图。FIG. 1 is a flow chart of a method for calculating a weld track of an H-beam provided by the application.

图2为本申请提供的H型钢的焊缝轨迹计算装置的一种结构示意图。FIG. 2 is a schematic structural diagram of a welding seam trajectory calculation device for H-beams provided by the application.

图3为本申请提供的一种H型钢工件的结构示意图。FIG. 3 is a schematic structural diagram of an H-shaped steel workpiece provided by the application.

图4为本申请提供的一种H型钢工件的正视图。FIG. 4 is a front view of an H-shaped steel workpiece provided by the application.

图5为本申请提供的一种H型钢工件的结构示意图。FIG. 5 is a schematic structural diagram of an H-shaped steel workpiece provided by the application.

图6为本申请提供的一种H型钢工件的向量示意图。FIG. 6 is a schematic vector diagram of an H-beam workpiece provided by the application.

图7为本申请提供的一种H型钢工件的结构示意图。FIG. 7 is a schematic structural diagram of an H-shaped steel workpiece provided by the application.

图8为本申请提供的一种H型钢工件的俯视图。FIG. 8 is a top view of an H-shaped steel workpiece provided by the application.

图9为本申请提供的一种H型钢工件的俯视图。FIG. 9 is a top view of an H-shaped steel workpiece provided by the application.

图10为本申请提供的电子设备的结构示意图。FIG. 10 is a schematic structural diagram of an electronic device provided by the present application.

标号说明:Label description:

100、H型钢;200、筋板;201、第一获取模块;202、第二获取模块;203、第三获取模块;204、第四获取模块;205、第五获取模块;301、处理器;302、存储器;303、通信总线。100, H-beam; 200, rib plate; 201, a first acquisition module; 202, a second acquisition module; 203, a third acquisition module; 204, a fourth acquisition module; 205, a fifth acquisition module; 301, a processor; 302, memory; 303, communication bus.

具体实施方式Detailed ways

下面将结合本申请实施方式中附图,对本申请实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式仅仅是本申请一部分实施方式,而不是全部的实施方式。通常在此处附图中描述和示出的本申请实施方式的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施方式的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施方式。基于本申请的实施方式,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施方式,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Thus, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

在实际应用中,本申请中的焊接工作站一般包含工业六轴串联焊接机器人、视觉扫描系统、激光传感器、直线导轨和装有专用软件的工控机。工控机通过网线跟焊接机器人进行通讯,把计算出的焊缝寻位程序传输到焊接机器人的控制器中;焊接机器人执行H型钢工件的焊接任务;视觉扫描系统和激光传感器设置在焊接机器人的末端;焊接机器人滑动设置在直线导轨上。In practical applications, the welding workstation in this application generally includes an industrial six-axis serial welding robot, a vision scanning system, a laser sensor, a linear guide, and an industrial computer equipped with special software. The industrial computer communicates with the welding robot through the network cable, and transmits the calculated welding seam locating program to the controller of the welding robot; the welding robot performs the welding task of the H-beam workpiece; the vision scanning system and the laser sensor are arranged at the end of the welding robot ; The welding robot slides on the linear guide.

请参照图1,图1是本申请一些实施方式中的H型钢的焊缝轨迹计算方法的流程图,用于获取H型钢工件的焊缝轨迹数据,H型钢工件包括H型钢100和至少两块筋板200,筋板200垂直地与H型钢的两个翼板和腹板连接,其中,包括以下步骤:Please refer to FIG. 1. FIG. 1 is a flowchart of a method for calculating a weld trajectory of an H-beam in some embodiments of the present application, which is used to obtain weld trajectory data of an H-beam workpiece. The H-beam workpiece includes an H-beam 100 and at least two The rib plate 200, the rib plate 200 is vertically connected with the two flange plates and the web plate of the H-shaped steel, wherein the following steps are included:

S1.获取待焊接的H型钢工件图像信息;S1. Obtain the image information of the H-beam workpiece to be welded;

S2.根据H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个角点分别为左上角点、左下角点、右上角点和右下角点;S2. According to the image information of the H-beam workpiece, the position data of the four corner points of the connection between the H-beam and the rib are obtained, and the four corner points are the upper left corner point, the lower left corner point, the upper right corner point and the lower right corner point;

S3.获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝的第二上顶点的法向量和底边焊缝的中点的法向量;S3. Obtain the normal vector of the first upper vertex of the first side weld, the normal vector of the second upper vertex of the second side weld, and the normal vector of the midpoint of the bottom weld;

S4.基于寻位算法,根据H型钢和筋板之间的四个角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;S4. Based on the positioning algorithm, obtain the position data of the first upper vertex of the first side weld and the second upper vertex of the second side weld according to the position data of the four corner points between the H-beam and the rib. The position data of and the position data of the midpoint of the bottom edge weld;

S5.获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据第一上顶点的位置数据、第一下顶点的位置数据和第一上顶点的法向量计算第一侧边焊缝轨迹数据;S5. Obtain the position data of the first lower vertex of the first side weld, the position data of the second lower vertex of the second side weld, the position data of the left vertex and the right vertex of the bottom weld; Calculate the first side weld trajectory data according to the position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex;

根据第二上顶点的位置数据、第二下顶点的位置数据和第二上顶点的法向量计算第二侧边焊缝轨迹数据;Calculate the second side weld trajectory data according to the position data of the second upper vertex, the position data of the second lower vertex and the normal vector of the second upper vertex;

根据左顶点的位置数据、右顶点的位置数据和中点的法向量计算底边焊缝轨迹数据。The bottom edge weld trajectory data is calculated from the position data of the left vertex, the position data of the right vertex, and the normal vector of the midpoint.

步骤S1中,待焊接的H型钢工件图像信息可由设置在焊接机器人末端的视觉扫描系统获取。具体地,把要焊接的筋板放入H型钢并固定住之后,通过该视觉扫描系统进行扫描得到待焊接的H型钢工件图像信息。In step S1, the image information of the H-beam workpiece to be welded can be acquired by a visual scanning system disposed at the end of the welding robot. Specifically, after the ribs to be welded are put into the H-shaped steel and fixed, the image information of the H-shaped steel workpiece to be welded is obtained by scanning through the visual scanning system.

步骤S2中,获取的四个角点是由视觉扫描系统进行粗略扫描获取的,例如先经过视觉扫描系统获取H型钢工件的点云数据位置信息(即待焊接的H型钢工件图像信息为点云图像信息),然后从中获取四个角点的位置数据(具体的提取方法为现有技术),此时获取的四个角点的位置数据并不是精确数值,只是为了方便后续的计算。具体的,四个角点的位置可参见图4,分别设左上角点为P1,左下角点为P2,右下角点为P3,右上角点为P4,具体的,左上角点和右上角点分别为筋板的左右焊接面(筋板的两面均需要与H型钢进行焊接,因此对于同一块筋板需要分别针对两个侧面执行该H型钢的焊缝轨迹计算方法,以获取两个侧面的焊缝轨迹数据,当针对其中一个侧面执行该H型钢的焊缝轨迹计算方法时,对应的侧面即为焊接面)的顶点,左下角点和右下角点分别为左右焊接面所在平面与H型钢的腹板-翼板相交线的交点。H型钢跟筋板之间需要双面各焊三条焊缝,任意一面的四个角点都是视觉系统需要识别的关键点。In step S2, the acquired four corner points are obtained by rough scanning by the visual scanning system. For example, the point cloud data position information of the H-beam workpiece is obtained through the visual scanning system (that is, the image information of the H-beam workpiece to be welded is a point cloud. image information), and then obtain the position data of the four corner points from it (the specific extraction method is the prior art). The position data of the four corner points obtained at this time are not exact values, but are only for the convenience of subsequent calculations. Specifically, the positions of the four corner points can be seen in Figure 4. The upper left corner point is P1, the lower left corner point is P2, the lower right corner point is P3, and the upper right corner point is P4. Specifically, the upper left corner point and the upper right corner point are set as P1. They are the left and right welding surfaces of the rib plate (both sides of the rib plate need to be welded with the H-beam, so for the same rib plate, the welding seam trajectory calculation method of the H-beam needs to be performed for the two sides respectively to obtain the two sides. Weld track data, when the calculation method of the weld track of the H-beam is executed for one of the sides, the corresponding side is the vertex of the welding surface), and the lower left corner point and the lower right corner point are the plane where the left and right welding surfaces are located and the H-beam. The intersection of the web-flange intersection lines. Three welds on both sides are required to be welded between the H-beam and the reinforcing plate, and the four corners of any side are the key points that the vision system needs to identify.

步骤S4和步骤S5中,第一上顶点、第二上顶点和底边焊缝的中点的位置可参见图5,分别设第一上顶点为T1,第二上顶点为T6,中点为T7。寻位算法由激光传感器执行。具体的,第一侧边焊缝为筋板(具体为筋板的焊接面)的左侧和H型钢之间形成的第一连接线,第一上顶点为第一连接线的上端点;第二侧边焊缝为筋板(具体为筋板的焊接面)的右侧和H型钢之间形成的第二连接线,第二上顶点为第二连接线的上端点;底边焊缝为筋板(具体为筋板的焊接面)的底侧和H型钢之间形成的第三连接线,中点为第三连接线的中点。In step S4 and step S5, the position of the midpoint of the first upper vertex, the second upper vertex and the bottom edge weld can be referred to in FIG. 5, respectively setting the first upper vertex as T1, the second upper vertex as T6, and the midpoint as T7. The positioning algorithm is performed by the laser sensor. Specifically, the first side weld is the first connection line formed between the left side of the rib plate (specifically, the welding surface of the rib plate) and the H-shaped steel, and the first upper vertex is the upper end point of the first connection line; The second side weld is the second connection line formed between the right side of the rib (specifically, the welding surface of the rib) and the H-shaped steel, and the second upper vertex is the upper end point of the second connection line; the bottom weld is The third connection line formed between the bottom side of the rib plate (specifically, the welding surface of the rib plate) and the H-beam, the midpoint of which is the midpoint of the third connection line.

为了便于理解,第一上顶点其实是精确的左上角点,第二上顶点是精确的右上角点。For ease of understanding, the first upper vertex is actually the exact upper left point, and the second upper vertex is the exact upper right point.

本申请的H型钢的焊缝轨迹计算方法,通过获取待焊接的H型钢工件图像信息;根据H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个角点分别为左上角点、左下角点、右上角点和右下角点;获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝的第二上顶点的法向量和底边焊缝的中点的法向量;基于寻位算法,根据H型钢和筋板之间的四个角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据第一上顶点的位置数据、第一下顶点的位置数据和第一上顶点的法向量计算第一侧边焊缝轨迹数据;根据第二上顶点的位置数据、第二下顶点的位置数据和第二上顶点的法向量计算第二侧边焊缝轨迹数据;根据左顶点的位置数据、右顶点的位置数据和中点的法向量计算底边焊缝轨迹数据。免除了人工示教的繁琐过程,提高了获取H型钢工件的焊缝轨迹数据的效率和生产效率。The welding seam trajectory calculation method of the H-beam of the present application is obtained by obtaining the image information of the H-beam workpiece to be welded; according to the image information of the H-beam workpiece, the position data of the four corner points at the connection between the H-beam and the rib are obtained. The corner points are the upper left corner, the lower left corner, the upper right corner and the lower right corner respectively; the normal vector of the first upper vertex of the first side weld and the normal vector of the second upper vertex of the second side weld are obtained. vector and the normal vector of the midpoint of the bottom edge weld; based on the positioning algorithm, obtain the position data of the first upper vertex of the first side weld according to the position data of the four corner points between the H-beam and the rib plate, The position data of the second upper vertex of the second side weld and the position data of the midpoint of the bottom weld; obtain the position data of the first lower vertex of the first side weld, the first The position data of the second lower vertex, the position data of the left vertex of the bottom edge weld and the position data of the right vertex; calculate the first upper vertex according to the position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex One side weld track data; the second side weld track data is calculated according to the position data of the second upper vertex, the position data of the second lower vertex and the normal vector of the second upper vertex; according to the position data of the left vertex, the right The position data of the vertex and the normal vector of the midpoint are used to calculate the bottom edge weld trajectory data. The tedious process of manual teaching is eliminated, and the efficiency and production efficiency of acquiring the weld track data of the H-beam workpiece are improved.

在一些实施方式中,步骤S3之前,步骤S2之后包括:In some embodiments, before step S3 and after step S2, it includes:

A1.根据左上角点的位置数据和左下角点的位置数据获取第一侧边向量;根据右上角点的位置数据和右下角点的位置数据获取第二侧边向量;根据左下角点的位置数据和右下角点的位置数据获取底边向量;A1. Obtain the first side vector according to the position data of the upper left corner point and the position data of the lower left corner point; obtain the second side vector according to the position data of the upper right corner point and the position data of the lower right corner point; According to the position of the lower left corner point The data and the position data of the lower right corner point get the bottom edge vector;

A2.根据第一侧边向量和底边向量计算第一法向量;根据第二侧边向量和底边向量计算第二法向量;根据底边向量计算第三法向量。A2. Calculate the first normal vector according to the first side vector and the base vector; calculate the second normal vector according to the second side vector and the base vector; calculate the third normal vector according to the base vector.

在实际应用中,步骤A1和步骤A2的目的是为了获取焊缝关键点的法向量,也是为了将焊缝关键点转换为焊接机器人可识别的位姿值中的一个重要参数。其中,焊缝关键点是指焊缝的首尾点,例如第一侧边焊缝的第一上顶点和第一下顶点。In practical applications, the purpose of step A1 and step A2 is to obtain the normal vector of the key point of the welding seam, and also to convert the key point of the welding seam into an important parameter in the pose value recognizable by the welding robot. The key points of the welding seam refer to the head and tail points of the welding seam, such as the first upper vertex and the first lower vertex of the first side welding seam.

具体的,参阅图6,步骤A1中,利用P1点,P2点求出第一侧边向量p12,同理利用P2点,P3点求出底边向量p23,利用P3点,P4点求出第二侧边向量p34。具体计算公式如下:Specifically, referring to FIG. 6 , in step A1, the first side vector p12 is obtained by using points P1 and P2, similarly, the bottom vector p23 is obtained by using points P2 and P3, and the first side vector p23 is obtained by using points P3 and P4. Two-sided vector p34. The specific calculation formula is as follows:

p12=P2-P1; p23=P3-P2; p34=P4-P3;p12=P2-P1; p23=P3-P2; p34=P4-P3;

步骤A2中,利用第一侧边向量p12叉乘底边向量p23求出第一法向量v1,利用底边向量p23叉乘第二侧边向量p34求出第二法向量v2。具体计算公式如下:In step A2, the first normal vector v1 is obtained by multiplying the base vector p23 by the first side vector p12, and the second normal vector v2 is obtained by multiplying the second side vector p34 by the base vector p23. The specific calculation formula is as follows:

v1=p12×p23; v2=p23×p34; v1=p12×p23; v2=p23×p34;

即,第一法向量v1实际是指与第一侧边向量p12和底边向量p23正交的向量,第二法向量v2实际是指与底边向量p23和第二侧边向量p34正交的向量。That is, the first normal vector v1 actually refers to the vector orthogonal to the first side vector p12 and the bottom vector p23, and the second normal vector v2 actually refers to the orthogonal vector to the bottom vector p23 and the second side vector p34. vector.

在进一步的实施方式中,步骤 S3包括:In a further embodiment, step S3 includes:

将第一法向量朝底边向量旋转第一预设角度,并向上翘曲第二预设角度,以获取第一上顶点的法向量;Rotate the first normal vector by a first preset angle toward the bottom edge vector, and warp the second preset angle upward to obtain the normal vector of the first upper vertex;

将第二法向量朝底边向量旋转第三预设角度,并向上翘曲第四预设角度,以获取第二上顶点的法向量;Rotate the second normal vector by a third preset angle toward the bottom edge vector, and warp the fourth preset angle upward to obtain the normal vector of the second upper vertex;

将第三法向量向上翘曲第五预设角度,以获取中点的法向量。Warp the third normal vector up by a fifth preset angle to get the normal vector at the midpoint.

其中,第一预设角度、第二预设角度、第三预设角度、第四预设角度以及第五预设角度可以根据实际情况进行设置,在此本申请不做具体限定。另外,向上翘曲(上翘)是指将远离筋板的一端进行翘曲。The first preset angle, the second preset angle, the third preset angle, the fourth preset angle and the fifth preset angle can be set according to actual conditions, which are not specifically limited in this application. In addition, the upward warping (upward warping) refers to warping the end away from the rib.

在实际应用中,为了防止在后续寻位的时候焊枪和激光传感器碰撞到H型钢工件,本申请把第一法向量v1往底边向量p23方向旋转第一预设角度45°,第二法向量v2往底边向量p23方向旋转第三预设角度-45°。其中,本申请默认第一法向量v1,第二法向量v2均平行于地面,所以第一法向量v1的z轴坐标值等于0,第二法向量v2的z轴坐标值也等于0。另外,为了防止和腹板发生碰撞,将第一法向量v1向上翘曲第二预设角度15°,将第二法向量v2向上翘曲第四预设角度15°。其中,H型钢包括左右两片翼板,和连接在翼板中间的腹板。In practical applications, in order to prevent the welding torch and the laser sensor from colliding with the H-beam workpiece during subsequent positioning, the present application rotates the first normal vector v1 to the direction of the bottom edge vector p23 by a first preset angle of 45°, and the second normal vector v2 rotates the third preset angle -45° in the direction of the bottom vector p23. The application defaults to the first normal vector v1 and the second normal vector v2 being parallel to the ground, so the z-axis coordinate value of the first normal vector v1 is equal to 0, and the z-axis coordinate value of the second normal vector v2 is also equal to 0. In addition, in order to prevent collision with the web, the first normal vector v1 is warped upward by a second preset angle of 15°, and the second normal vector v2 is warped upward by a fourth preset angle of 15°. Among them, the H-beam includes two left and right wings, and a web connected in the middle of the wings.

因此,第一上顶点的法向量的计算公式如下:Therefore, the calculation formula of the normal vector of the first upper vertex is as follows:

v123.x = Cos(45°) * v1.x - Sin(45° )* v1.y;v123.x = Cos(45°) * v1.x - Sin(45° )* v1.y;

v123.y = Sin(45°) * v1.x + Cos(45°) * v1.y;v123.y = Sin(45°) * v1.x + Cos(45°) * v1.y;

Tan(15°) = 0.27(保留两位小数);Tan(15°) = 0.27 (with two decimal places);

由此可得,第一上顶点的法向量为(v123.x,v123.y,0.27);其中,v1.x代表第一法向量的x轴坐标值;v1.y 代表第一法向量的y轴坐标值;v123.x为第一上顶点的法向量的x轴坐标值;v123.y为第一上顶点的法向量的y轴坐标值。It can be obtained from this that the normal vector of the first upper vertex is (v123.x, v123.y, 0.27); among them, v1.x represents the x-axis coordinate value of the first normal vector; v1.y represents the first normal vector The y-axis coordinate value; v123.x is the x-axis coordinate value of the normal vector of the first upper vertex; v123.y is the y-axis coordinate value of the normal vector of the first upper vertex.

同理,第二上顶点的法向量的计算公式如下:Similarly, the calculation formula of the normal vector of the second upper vertex is as follows:

v234.x = Cos(-45°) * v2.x - Sin(-45° )* v2.y;v234.x = Cos(-45°) * v2.x - Sin(-45° )* v2.y;

v234.y = Sin(-45°) * v2.x + Cos(-45°) * v2.y;v234.y = Sin(-45°) * v2.x + Cos(-45°) * v2.y;

Tan(15°) = 0.27(保留两位小数);Tan(15°) = 0.27 (with two decimal places);

由此可得,第二上顶点的法向量为(v234.x,v234.y,0.27) ;其中,v2.x代表第二法向量的x轴坐标值;v2.y 代表第二法向量的y轴坐标值;v234.x为第一上顶点的法向量的x轴坐标值;v234.y为第一上顶点的法向量的y轴坐标值。It can be obtained from this that the normal vector of the second upper vertex is (v234.x, v234.y, 0.27); wherein, v2.x represents the x-axis coordinate value of the second normal vector; v2.y represents the second normal vector The y-axis coordinate value; v234.x is the x-axis coordinate value of the normal vector of the first upper vertex; v234.y is the y-axis coordinate value of the normal vector of the first upper vertex.

预设底边焊缝的中点的位置(需要说明的是,这里的中点并非最终精确的中点),暂定左下角点P2,右下角点P3之间的直线连线中点作为中点,因此,底边焊缝的中点的位置向量跟第一法向量v1或第二法向量v2相同。同时为了避免碰撞工件,中点的法向量同样需要上翘,选择上翘第五预设角度45°,由此可得:Preset the position of the midpoint of the bottom edge weld (it should be noted that the midpoint here is not the final accurate midpoint), tentatively set the lower left corner point P2, and the midpoint of the straight line between the lower right corner points P3 as the middle point Therefore, the position vector of the midpoint of the bottom edge weld is the same as the first normal vector v1 or the second normal vector v2. At the same time, in order to avoid collision with the workpiece, the normal vector of the midpoint also needs to be upturned, and the fifth preset angle of upturned is 45°, which can be obtained:

中点的法向量mid=(v1.x,v1.y, Tan(45°));The normal vector mid=(v1.x, v1.y, Tan(45°));

或mid=(v2.x,v2.y, Tan(45°));or mid=(v2.x, v2.y, Tan(45°));

在进一步的实施方式中,步骤S4包括:In a further embodiment, step S4 includes:

S401.预设第一移动距离和第二移动距离;S401. Preset the first movement distance and the second movement distance;

S402.根据第一移动距离、第二移动距离、左上角点的位置数据和第一法向量对第一侧边焊缝进行寻位,以获取第一上顶点的位置数据;S402. Position the first side weld according to the first movement distance, the second movement distance, the position data of the upper left corner point and the first normal vector, to obtain the position data of the first upper vertex;

根据第一移动距离、第二移动距离、右上角点的位置数据和第二法向量对第二侧边焊缝进行寻位,以获取第二上顶点的位置数据;Locating the second side weld seam according to the first moving distance, the second moving distance, the position data of the upper right corner point and the second normal vector, so as to obtain the position data of the second upper vertex;

根据第二移动距离、中点的位置数据和第三法向量对底边焊缝进行寻位,以获取中点的位置数据。The bottom edge welding seam is located according to the second moving distance, the position data of the midpoint and the third normal vector, so as to obtain the position data of the midpoint.

其中,第一移动距离和第二移动距离可以根据实际情况进行设置,在此本申请不做具体限定。The first moving distance and the second moving distance may be set according to actual conditions, which are not specifically limited in this application.

在实际应用中,为了进一步防止在寻位时焊接机器人和H型钢工件发生碰撞,需要选取合适的寻位点。为了方便说明,将第一上顶点的寻位点记为左边寻位上面点和左边寻位下面点,具体的,先在左上角点P1处沿第一上顶点的法向量方向移动第一移动距离(一般设为20mm),然后沿z轴的正方向移动第二移动距离(一般设为30mm),移动后的位置作为左边寻位上面点;在左上角点P1处沿第一上顶点的法向量方向移动第一移动距离(一般设为20mm),沿z轴的负方向移动第二移动距离(一般设为30mm),移动后的位置作为左边寻位下面点。具体计算公式如下:In practical applications, in order to further prevent the collision between the welding robot and the H-beam workpiece during positioning, it is necessary to select a suitable positioning point. For the convenience of description, the locating point of the first upper vertex is recorded as the upper left locating point and the left locating lower point. Specifically, first move the first movement along the normal vector direction of the first upper vertex at the upper left corner point P1. distance (generally set to 20mm), and then move the second moving distance (generally set to 30mm) in the positive direction of the z-axis, and the moved position is used as the upper point of the left search; at the upper left point P1 along the first upper vertex Move the first moving distance in the direction of the normal vector (generally set to 20mm), move the second moving distance along the negative direction of the z-axis (generally set to 30mm), and use the moved position as the lower point of the left search. The specific calculation formula is as follows:

左边寻位上面点= (p1.x+dis*v123.x, p1.y+dis*v123.y, p1.z+dis*0.27+len);Find the upper point on the left = (p1.x+dis*v123.x, p1.y+dis*v123.y, p1.z+dis*0.27+len);

左边寻位下面点= (p1.x+dis*v123.x, p1.y+dis*v123.y, p1.z+dis*0.27-len);The lower point of the left search = (p1.x+dis*v123.x, p1.y+dis*v123.y, p1.z+dis*0.27-len);

其中,p1.x代表左上角点的x轴坐标值;p1.y代表左上角点的y轴坐标值;p1.z代表左上角点的z轴坐标值;dis代表第一移动距离;len代表第二移动距离。Among them, p1.x represents the x-axis coordinate value of the upper-left point; p1.y represents the y-axis coordinate value of the upper-left point; p1.z represents the z-axis coordinate value of the upper-left point; dis represents the first moving distance; len represents The second moving distance.

同理,将第二上顶点的寻位点记为右边寻位上面点和右边寻位下面点,具体的,先在右上角点P4处沿第二上顶点的法向量方向移动第一移动距离(一般设为20mm),然后沿z轴的正方向移动第二移动距离(一般设为30mm),移动后的位置作为右边寻位上面点;在右上角点P4处沿第二上顶点的法向量方向移动第一移动距离(一般设为20mm),沿z轴的负方向移动第二移动距离(一般设为30mm),移动后的位置作为右边寻位下面点。具体计算公式如下:In the same way, the locating point of the second upper vertex is recorded as the upper right locating point and the right locating lower point. Specifically, first move the first moving distance along the normal vector direction of the second upper vertex at the upper right corner point P4. (Generally set to 20mm), and then move the second moving distance along the positive direction of the z-axis (generally set to 30mm), and the moved position is used as the upper point of the right search; Move the first moving distance in the vector direction (generally set to 20mm), move the second moving distance (generally set to 30mm) along the negative direction of the z-axis, and use the moved position as the lower point on the right. The specific calculation formula is as follows:

右边寻位上面点= (p4.x+dis*v234.x, p4.y+dis*v234.y, p4.z+dis*0.27+len);Find the upper point on the right = (p4.x+dis*v234.x, p4.y+dis*v234.y, p4.z+dis*0.27+len);

右边寻位下面点= (p4.x+dis*v234.x, p4.y+dis*v234.y, p4.z+dis*0.27-len);Find the lower point on the right = (p4.x+dis*v234.x, p4.y+dis*v234.y, p4.z+dis*0.27-len);

其中,p4.x代表右上角点的x轴坐标值;p4.y代表右上角点的y轴坐标值;p4.z代表右上角点的z轴坐标值。Among them, p4.x represents the x-axis coordinate value of the upper-right point; p4.y represents the y-axis coordinate value of the upper-right point; p4.z represents the z-axis coordinate value of the upper-right point.

底边焊缝的中点的寻位点一般是直接在中点处,然后往中点的法向量方向移动两倍第二移动距离,移动后的位置作为底边寻位点。具体计算公式如下:The locating point of the midpoint of the bottom edge weld is generally directly at the midpoint, and then moves twice the second moving distance in the direction of the normal vector of the midpoint, and the moved position is used as the locating point for the bottom edge. The specific calculation formula is as follows:

底边寻位点= ((p2.x+p3.x)/2+2*len*mid.x, (p2.y+p3.y)/2+2*len*mid.y,(p2.z+p3.z)/2+2*len*mid.z);Bottom search point = ((p2.x+p3.x)/2+2*len*mid.x, (p2.y+p3.y)/2+2*len*mid.y, (p2. z+p3.z)/2+2*len*mid.z);

其中,p2.x代表左下角点的x轴坐标值;p2.y代表左下角点的y轴坐标值;p2.z代表左下角点的z轴坐标值;p3.x代表右下角点的x轴坐标值;p3.y代表右下角点的y轴坐标值;p3.z代表右下角点的z轴坐标值;mid.x代表中点的法向量的x轴坐标值;mid.y代表中点的法向量的y轴坐标值; mid.z代表中点的法向量的z轴坐标值。Among them, p2.x represents the x-axis coordinate value of the lower-left corner point; p2.y represents the y-axis coordinate value of the lower-left corner point; p2.z represents the z-axis coordinate value of the lower-left corner point; p3.x represents the x-axis value of the lower-right corner point axis coordinate value; p3.y represents the y-axis coordinate value of the lower right corner point; p3.z represents the z-axis coordinate value of the lower right corner point; mid.x represents the x-axis coordinate value of the normal vector of the midpoint; mid.y represents the middle The y-coordinate value of the point's normal vector; mid.z represents the z-coordinate value of the midpoint's normal vector.

由于获取了左边寻位上面点和左边寻位下面点,焊接机器人就能根据现有的寻位程序获取第一上顶点的位置数据;同理,由于获取了右边寻位上面点和右边寻位下面点,焊接机器人就能根据现有的寻位程序获取第二上顶点的位置数据;由于获取了底边寻位点,焊接机器人就能根据现有的寻位程序获取中点的位置数据。其中,本申请的焊缝初始位置寻找技术使用的是接触式传感器,接触式传感器往往依靠焊枪外圈与焊件接触导电来判断焊缝起始位置,接触式需要通过不断试探触碰来寻找。具体的,可以将左边寻位上面点作为起点,将左边寻位下面点作为终点;也可将左边寻位上面点作为终点,将左边寻位下面点作为起点,进行第一上顶点的寻位;第二上顶点也同理;腹板寻位点则作为定点寻位点,进行中点的寻位。Since the upper point of the left positioning and the lower point of the left positioning are obtained, the welding robot can obtain the position data of the first upper vertex according to the existing positioning program; in the same way, since the upper point of the right positioning and the right positioning point are obtained. At the following point, the welding robot can obtain the position data of the second upper vertex according to the existing locating program; since the bottom edge locating point is obtained, the welding robot can obtain the position data of the midpoint according to the existing locating program. Among them, the technology for finding the initial position of the welding seam of the present application uses a contact sensor. The contact sensor often relies on the contact between the outer ring of the welding torch and the weldment to conduct electricity to determine the initial position of the welding seam. Specifically, the upper point of the left search can be used as the starting point, and the lower point of the left search can be used as the end point; or the upper point of the left search can be used as the end point, and the lower point of the left search can be used as the starting point, and the position of the first upper vertex can be searched. ; The same is true for the second upper vertex; the web locating point is used as the fixed-point locating point, and the mid-point locating is carried out.

在一些实施方式中,步骤S5包括:In some embodiments, step S5 includes:

S501.根据第一上顶点的位置数据和第二上顶点的位置数据计算第一上顶点和第二上顶点形成的直线连线的第一斜率;S501. Calculate the first slope of the straight line formed by the first upper vertex and the second upper vertex according to the position data of the first upper vertex and the position data of the second upper vertex;

S502.根据第一斜率、第一上顶点的位置数据、第二上顶点的位置数据和中点的位置数据计算H型钢的左凹面点的位置数据和右凹面点的位置数据。S502. Calculate the position data of the left concave point and the position data of the right concave point of the H-beam according to the first slope, the position data of the first upper vertex, the position data of the second upper vertex and the position data of the midpoint.

S503.根据左凹面点的位置数据、右凹面点的位置数据、第一上顶点的位置数据、第二上顶点的位置数据和中点的位置数据获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据和底边焊缝的左顶点的位置数据和右顶点的位置数据;S503. Obtain the first lower vertex of the first side weld according to the position data of the left concave point, the position data of the right concave point, the position data of the first upper vertex, the position data of the second upper vertex and the position data of the midpoint The position data of , the position data of the second lower vertex of the second side weld and the position data of the left vertex and the right vertex of the bottom weld;

S504.根据第一上顶点的位置数据、第一上顶点的法向量和第一下顶点的位置数据计算第一侧边焊缝轨迹数据;S504. Calculate the first side weld track data according to the position data of the first upper vertex, the normal vector of the first upper vertex and the position data of the first lower vertex;

根据第二上顶点的位置数据、第二上顶点的法向量和第二下顶点的位置数据计算第二侧边焊缝轨迹数据;Calculate the second side weld trajectory data according to the position data of the second upper vertex, the normal vector of the second upper vertex and the position data of the second lower vertex;

根据左顶点的位置数据、中点的法向量和右顶点的位置数据计算底边焊缝轨迹数据。The bottom edge weld trajectory data is calculated from the position data of the left vertex, the normal vector of the midpoint, and the position data of the right vertex.

参阅图7,步骤S501-步骤S502中,根据H型钢和筋板连接的特性,以及默认H型钢工件平放在地板上,可知第一上顶点T1、第二上顶点T6、左顶点T3和右顶点T4必然共面,可以知道第一上顶点T1和第二上顶点T6之间的直线连线与左顶点T3和右顶点T4之间的直线连线在水平地面的投影面是平行的。因此,需要计算第一上顶点T1和第二上顶点T6形成的直线连线的第一斜率K。Referring to FIG. 7, in step S501-step S502, according to the characteristics of the connection between the H-shaped steel and the rib plate, and the default H-shaped steel workpiece is placed flat on the floor, it can be known that the first upper vertex T1, the second upper vertex T6, the left vertex T3 and the right Vertices T4 must be coplanar. It can be known that the straight line connecting the first upper vertex T1 and the second upper vertex T6 and the straight line connecting the left vertex T3 and the right vertex T4 are parallel to the projection plane of the horizontal ground. Therefore, the first slope K of the straight line formed by the first upper vertex T1 and the second upper vertex T6 needs to be calculated.

其中,左顶点T3和右顶点T4为第三连接线的左右两个端点,左凹面点Q1是位于第一上顶点T1和第一下顶点T2所在直线的延长线与右顶点T4和左顶点T3所在直线的延长线的交点,右凹面点Q2是位于第二上顶点T6和第二下顶点T5所在直线的延长线与左顶点T3和右顶点T4所在直线的延长线的交点。Wherein, the left vertex T3 and the right vertex T4 are the left and right endpoints of the third connecting line, and the left concave point Q1 is the extension of the straight line where the first upper vertex T1 and the first lower vertex T2 are located, and the right vertex T4 and the left vertex T3 The intersection of the extension of the straight line, the right concave point Q2 is located at the intersection of the extension of the line where the second upper vertex T6 and the second lower vertex T5 are located and the extension of the line where the left vertex T3 and the right vertex T4 are located.

其中,为了便于区分左凹面点和第一上顶点,右凹面点和第二上顶点,本申请的图8和图9特意将左凹面点和第一上顶点区分为两个不同的点,将右凹面点和第二上顶点区分为两个不同的点,但是实际上俯视的话,左凹面点和第一上顶点是重合的,右凹面点和第二上顶点也是重合的。Wherein, in order to facilitate the distinction between the left concave point and the first upper vertex, and the right concave point and the second upper vertex, Figures 8 and 9 of the present application purposely distinguish the left concave point and the first upper vertex into two different points, and the The right concave point and the second upper vertex are divided into two different points, but in fact, from a top view, the left concave point and the first upper vertex are coincident, and the right concave point and the second upper vertex are also coincident.

为了便于理解,左凹面点其实是精确的左下角点,右凹面点是精确的右下角点。For ease of understanding, the left concave point is actually the exact lower left corner point, and the right concave point is the exact lower right corner point.

其中,先判断T1点和T6点的y轴坐标值是否一样,如果是一样,则说明底边焊缝刚好跟机器人基坐标系的X轴平行,此时K=0,那么左凹面点Q1的坐标为(T1.x,T7.y,T7.z),右凹面点Q2的坐标为(T6.x, T7.y, T7.z);如图8所示的情况均为此解。其中,T1.x代表第一上顶点的x轴坐标值;T7.y代表中点的y轴坐标值;T7.z代表中点的z轴坐标值;T6.x代表第二上顶点的x轴坐标值。Among them, first judge whether the y-axis coordinates of points T1 and T6 are the same. If they are the same, it means that the bottom edge weld is just parallel to the X-axis of the robot base coordinate system. At this time, K=0, then the left concave point Q1 The coordinates are (T1.x, T7.y, T7.z), and the coordinates of the right concave point Q2 are (T6.x, T7.y, T7.z); all the cases shown in Figure 8 are this solution. Among them, T1.x represents the x-axis coordinate value of the first upper vertex; T7.y represents the y-axis coordinate value of the midpoint; T7.z represents the z-axis coordinate value of the midpoint; T6.x represents the x-axis of the second upper vertex axis coordinate value.

除此之外,本申请不考虑底边焊缝跟机器人基坐标系的Y轴平行的情况(因为实际放置的H型钢工件不会出现这种状况),所以不需要考虑第一斜率无限大的情况。In addition, this application does not consider the situation that the bottom edge weld is parallel to the Y axis of the robot base coordinate system (because this situation does not occur in the actual placed H-beam workpiece), so there is no need to consider the infinite first slope. Happening.

因此,参阅图9中H型钢工件的放置情况,即T1点和T6点的y轴坐标值不一样,则第一斜率的计算公式如下:Therefore, referring to the placement of the H-beam workpiece in Figure 9, that is, the y-axis coordinate values of points T1 and T6 are different, the calculation formula of the first slope is as follows:

K=(T6.y-T1.y)/( T6.x-T1.x);K=(T6.y-T1.y)/(T6.x-T1.x);

其中,T6.y代表第二上顶点的y轴坐标值;T1.y代表第一上顶点的y轴坐标值。Wherein, T6.y represents the y-axis coordinate value of the second upper vertex; T1.y represents the y-axis coordinate value of the first upper vertex.

其中,筋板必然跟H型钢的翼板垂直,也就是直线L1和直线L2的斜率是-1/K,直线L1是指不同筋板的第一上顶点所连成的直线,直线L2是指不同筋板的第二上顶点所连成的直线,因此可以利用斜截式建立直线方程,代入第一上顶点和第二上顶点的位置数据,就可以算出L1直线方程的b1值、L2直线方程的b2值。Among them, the rib must be perpendicular to the wing plate of the H-beam, that is, the slope of the straight line L1 and the straight line L2 is -1/K, the straight line L1 refers to the straight line connecting the first upper vertices of the different rib plates, and the straight line L2 refers to The straight line formed by the second upper vertices of different rib plates, so the straight line equation can be established by using the oblique intercept formula, and the position data of the first upper vertex and the second upper vertex can be substituted to calculate the b1 value of the L1 straight line equation and the L2 straight line. The b2 value of the equation.

具体的,设L1的直线方程为:y=(-1/K)x+b1;Specifically, let the linear equation of L1 be: y=(-1/K)x+b1;

L2的直线方程为:y=(-1/K)x+b2;The straight line equation of L2 is: y=(-1/K)x+b2;

将L1的直线方程和L2的直线方程联立,得:Simultaneously combining the straight line equation of L1 and the straight line equation of L2, we get:

b1=T1.y+T1.x/K;b1=T1.y+T1.x/K;

b2=T6.y+T6.x/K;b2=T6.y+T6.x/K;

由于底边焊缝跟第一上顶点和第二上顶点形成的直线连线平行,所以可以设底边焊缝的直线方程为:y=Kx+b3;Since the bottom edge welding seam is parallel to the straight line formed by the first upper vertex and the second upper vertex, the straight line equation of the bottom edge welding seam can be set as: y=Kx+b3;

将中点的位置数据代入,可求得:b3=T7.y-K*T7.x;Substitute the position data of the midpoint, and obtain: b3=T7.y-K*T7.x;

其中,T7.x代表中点的x轴坐标值。Among them, T7.x represents the x-axis coordinate value of the midpoint.

因此,可以通过联立L1直线方程和底边焊缝的直线方程求出交点,即左凹面点Q1,同理,联立L2直线方程和底边焊缝的直线方程求出右凹面点Q2。具体计算公式如下:Therefore, the intersection point, that is, the left concave point Q1, can be obtained by combining the L1 straight line equation and the straight line equation of the bottom edge weld. Similarly, the right concave point Q2 can be obtained by simultaneously combining the L2 straight line equation and the straight line equation of the bottom edge weld. The specific calculation formula is as follows:

Q1=(K*(b1-b3)/(1+K*K),(b3+b1*K*K)/(1+K*K), T7.z);Q1=(K*(b1-b3)/(1+K*K),(b3+b1*K*K)/(1+K*K), T7.z);

Q2=(K*(b2-b3)/(1+K*K),(b3+b2*K*K)/(1+K*K), T7.z);Q2=(K*(b2-b3)/(1+K*K),(b3+b2*K*K)/(1+K*K), T7.z);

在进一步的实施方式中,步骤S503包括:In a further embodiment, step S503 includes:

基于向量的等比特性,根据第一上顶点的位置数据和左凹面点的位置数据计算第一下顶点的位置数据;Based on the equal-phase characteristic of the vector, calculate the position data of the first lower vertex according to the position data of the first upper vertex and the position data of the left concave point;

基于向量的等比特性,根据第二上顶点的位置数据和右凹面点的位置数据计算第二下顶点的位置数据;Based on the equal-phase characteristic of the vector, calculate the position data of the second lower vertex according to the position data of the second upper vertex and the position data of the right concave point;

基于向量的等比特性,根据中点的位置数据和左凹面点的位置数据计算左顶点的位置数据;Calculate the position data of the left vertex according to the position data of the midpoint and the position data of the left concave point based on the equal-phase characteristic of the vector;

基于向量的等比特性,根据中点的位置数据和右凹面点的位置数据计算右顶点的位置数据。The position data of the right vertex is calculated based on the position data of the midpoint and the position data of the right concave point based on the isobaric property of the vector.

继续参阅图7,在实际应用中,筋板的左下角和右下角有倒角的,所以要计算第一下顶点T2、左顶点T3、右顶点T4、第二下顶点T5的位置数据。其中,第一下顶点T2为第一连接线的下端点;第二下顶点T5为第二连接线的下端点。可以利用向量的等比特性,第一上顶点T1到左凹面点Q1的距离比第一下顶点T2到左凹面点Q1的距离等于该对应的向量大小之比,即:Continuing to refer to FIG. 7, in practical applications, the lower left and lower right corners of the rib are chamfered, so the position data of the first lower vertex T2, the left vertex T3, the right vertex T4 and the second lower vertex T5 should be calculated. Wherein, the first lower vertex T2 is the lower end point of the first connection line; the second lower vertex T5 is the lower end point of the second connection line. The equal ratio property of vectors can be used, the distance from the first upper vertex T1 to the left concave point Q1 is greater than the distance from the first lower vertex T2 to the left concave point Q1 is equal to the ratio of the corresponding vector size, namely:

D/C=(T1.x- Q1.x)/(T2.x- Q1.x)D/C=(T1.x- Q1.x)/(T2.x- Q1.x)

= (T1.y- Q1.y)/(T2.y- Q1.y)= (T1.y- Q1.y)/(T2.y- Q1.y)

= (T1.z- Q1.z)/(T2.z- Q1.z)= (T1.z- Q1.z)/(T2.z- Q1.z)

其中,D代表T1到Q1的距离;C代表T2到Q1的距离;Q1.x代表左凹面点的x轴坐标值;Q1.y代表左凹面点的x轴坐标值;Q1.z代表左凹面点的z轴坐标值;T2.x代表第一下顶点的x轴坐标值;T2.y代表第一下顶点的y轴坐标值;T2.z代表第一下顶点的z轴坐标值。Among them, D represents the distance from T1 to Q1; C represents the distance from T2 to Q1; Q1.x represents the x-axis coordinate value of the left concave point; Q1.y represents the x-axis coordinate value of the left concave point; Q1.z represents the left concave surface The z-axis coordinate value of the point; T2.x represents the x-axis coordinate value of the first lower vertex; T2.y represents the y-axis coordinate value of the first lower vertex; T2.z represents the z-axis coordinate value of the first lower vertex.

其中,D和C可以直接获取,为已知条件,在此本申请不再赘述。Among them, D and C can be obtained directly, which are known conditions, and are not repeated in this application.

根据上式可以求出第一下顶点T2的位置数据,同理可以求出T3,T4,T5的位置数据。According to the above formula, the position data of the first lower vertex T2 can be obtained, and similarly the position data of T3, T4, and T5 can be obtained.

步骤S504中,根据计算出来的T1和T2的位置数据,再配合第一上顶点的法向量,即可得到第一侧边焊缝轨迹数据(第一侧边焊缝轨迹的始末位姿值)。同理,根据计算出来的T6和T5的位置数据,再配合第二上顶点的法向量,可得到第二侧边焊缝轨迹数据;根据计算出来的T3和T4的位置数据,再配合中间点的法向量可得到底边焊缝轨迹数据。In step S504, according to the calculated position data of T1 and T2 and the normal vector of the first upper vertex, the first side weld trajectory data (the beginning and end pose values of the first side weld trajectory) can be obtained. . In the same way, according to the calculated position data of T6 and T5 and the normal vector of the second upper vertex, the trajectory data of the second side weld can be obtained; according to the calculated position data of T3 and T4, and then match the middle point The normal vector of , the bottom edge weld trajectory data can be obtained.

例如,焊缝轨迹数据包括对应焊缝的两个端点的位置数据和焊枪姿态数据,其中第一侧边焊缝两个端点的焊枪姿态数据均为第一上顶点的法向量对应的姿态数据(即焊枪轴线方向向量为第一上顶点的法向量),第二侧边焊缝两个端点的焊枪姿态数据均为第二上顶点的法向量对应的姿态数据(即焊枪轴线方向向量为第二上顶点的法向量),第三侧边焊缝两个端点的焊枪姿态数据均为中点的法向量对应的姿态数据(即焊枪轴线方向向量为中点的法向量)。For example, the welding seam trajectory data includes position data and welding torch attitude data corresponding to the two end points of the welding seam, wherein the welding torch attitude data of the two end points of the first side welding seam are the attitude data corresponding to the normal vector of the first upper vertex ( That is, the welding torch axis direction vector is the normal vector of the first upper vertex), and the welding torch attitude data of the two endpoints of the second side weld are the attitude data corresponding to the normal vector of the second upper vertex (that is, the welding torch axis direction vector is the second upper vertex). The normal vector of the upper vertex), the welding torch attitude data of the two endpoints of the third side weld are the attitude data corresponding to the normal vector of the midpoint (that is, the direction vector of the welding torch axis is the normal vector of the midpoint).

或例如,焊缝轨迹数据包括应焊缝上多个轨迹点的位置数据和焊枪姿态数据,其中轨迹点的数量可根据实际需要设置,轨迹点的位置数据可根据对应焊缝的两个端点的位置数据计算得到,其中第一侧边焊缝所有轨迹点的焊枪姿态数据均为第一上顶点的法向量对应的姿态数据,第二侧边焊缝所有轨迹点的焊枪姿态数据均为第二上顶点的法向量对应的姿态数据,第三侧边焊缝所有轨迹点的焊枪姿态数据均为中点的法向量对应的姿态数据。Or for example, the welding seam trajectory data includes the position data of multiple trajectory points on the welding seam and the welding torch attitude data, wherein the number of trajectory points can be set according to actual needs, and the position data of the trajectory points can be based on the position data of the two end points of the corresponding welding seam. The position data is calculated, in which the welding torch attitude data of all trajectory points of the first side weld are the attitude data corresponding to the normal vector of the first upper vertex, and the welding torch attitude data of all trajectory points of the second side weld are the second. The attitude data corresponding to the normal vector of the upper vertex, and the attitude data of the welding torch of all trajectory points of the third side welding seam are the attitude data corresponding to the normal vector of the midpoint.

由上可知,本申请提供的H型钢的焊缝轨迹计算方法,通过获取待焊接的H型钢工件图像信息;根据H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个角点分别为左上角点、左下角点、右上角点和右下角点;获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝的第二上顶点的法向量和底边焊缝的中点的法向量;基于寻位算法,根据H型钢和筋板之间的四个角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据第一上顶点的位置数据、第一下顶点的位置数据和第一上顶点的法向量计算第一侧边焊缝轨迹数据;根据第二上顶点的位置数据、第二下顶点的位置数据和第二上顶点的法向量计算第二侧边焊缝轨迹数据;根据左顶点的位置数据、右顶点的位置数据和中点的法向量计算底边焊缝轨迹数据。免除了人工示教的繁琐过程,提高了获取H型钢工件的焊缝轨迹数据的效率和生产效率。It can be seen from the above that the welding seam trajectory calculation method of the H-beam provided by the present application obtains the image information of the H-beam workpiece to be welded; four corner points of the connection between the H-beam and the reinforcing plate are obtained according to the image information of the H-beam workpiece. The four corner points are the upper left corner, the lower left corner, the upper right corner and the lower right corner respectively; obtain the normal vector of the first upper vertex of the first side weld and the third side of the second side weld. The normal vector of the second upper vertex and the normal vector of the midpoint of the bottom welding seam; based on the positioning algorithm, the first upper welding seam of the first side welding seam is obtained according to the position data of the four corner points between the H-beam and the rib plate. The position data of the vertex, the position data of the second upper vertex of the second side weld, and the position data of the midpoint of the bottom weld; obtain the position data of the first lower vertex of the first side weld, the second side The position data of the second lower vertex of the edge weld, the position data of the left vertex and the position data of the right vertex of the bottom edge weld; according to the position data of the first upper vertex, the position data of the first lower vertex and the first upper vertex Calculate the trajectory data of the first side welding seam according to the normal vector of the The position data of , the position data of the right vertex and the normal vector of the midpoint calculate the bottom edge weld trajectory data. The tedious process of manual teaching is eliminated, and the efficiency and production efficiency of acquiring the weld track data of the H-beam workpiece are improved.

请参照图2,图2是本申请一些实施方式中的H型钢的焊缝轨迹计算装置,用于获取H型钢工件的焊缝轨迹数据,H型钢工件包括H型钢和至少两块筋板,筋板垂直地与H型钢工件的两个翼板和腹板连接,其中,包括以下模块:Please refer to FIG. 2. FIG. 2 is a welding seam trajectory calculation device of H-beam in some embodiments of the present application, which is used to obtain the welding seam trajectory data of an H-beam workpiece. The H-beam workpiece includes an H-beam and at least two rib plates. The plate is connected vertically with the two flanges and the web of the H-beam workpiece, which includes the following modules:

第一获取模块201:用于获取待焊接的H型钢工件图像信息;The first acquisition module 201: used to acquire the image information of the H-beam workpiece to be welded;

第二获取模块202:用于根据H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个角点分别为左上角点、左下角点、右上角点和右下角点;The second acquisition module 202 is used to acquire the position data of the four corner points of the connection between the H-beam and the rib plate according to the image information of the H-beam workpiece, and the four corner points are the upper left corner, the lower left corner and the upper right corner respectively. point and bottom right point;

第三获取模块203:用于获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝第二上顶点的法向量和底边焊缝的中点的法向量;The third obtaining module 203: for obtaining the normal vector of the first upper vertex of the first side weld, the normal vector of the second upper vertex of the second side weld, and the normal vector of the midpoint of the bottom weld;

第四获取模块204:用于基于寻位算法,根据H型钢和筋板之间的四个角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;The fourth obtaining module 204 is used for obtaining the position data of the first upper vertex of the first side weld and the second side weld according to the position data of the four corner points between the H-beam and the rib based on the positioning algorithm. The position data of the second upper vertex of the seam and the position data of the midpoint of the bottom edge weld;

第五获取模块205:用于获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;Fifth obtaining module 205: used to obtain the position data of the first lower vertex of the first side weld, the position data of the second lower vertex of the second side weld, the position data of the left vertex of the bottom weld, and The position data of the right vertex;

根据第一上顶点的位置数据、第一下顶点的位置数据和第一上顶点的法向量计算第一侧边焊缝轨迹数据;Calculate the first side weld trajectory data according to the position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex;

根据第二上顶点的位置数据、第二下顶点的位置数据和第二上顶点的法向量计算第二侧边焊缝轨迹数据;Calculate the second side weld trajectory data according to the position data of the second upper vertex, the position data of the second lower vertex and the normal vector of the second upper vertex;

根据左顶点的位置数据、右顶点的位置数据和中点的法向量计算底边焊缝轨迹数据。The bottom edge weld trajectory data is calculated from the position data of the left vertex, the position data of the right vertex, and the normal vector of the midpoint.

第一获取模块201中,待焊接的H型钢工件图像信息可由设置在焊接机器人末端的视觉扫描系统获取。具体地,把要焊接的筋板放入H型钢并固定住之后,通过该视觉扫描系统进行扫描得到待焊接的H型钢工件图像信息。In the first acquisition module 201, the image information of the H-beam workpiece to be welded can be acquired by a vision scanning system disposed at the end of the welding robot. Specifically, after the ribs to be welded are put into the H-shaped steel and fixed, the image information of the H-shaped steel workpiece to be welded is obtained by scanning through the visual scanning system.

第二获取模块202,获取的四个角点是由视觉扫描系统进行粗略扫描获取的,例如先经过视觉扫描系统获取H型钢工件的点云数据位置信息(即待焊接的H型钢工件图像信息为点云图像信息),然后从中获取四个角点的位置数据(具体的提取方法为现有技术),此时获取的四个角点的位置数据并不是精确数值,只是为了方便后续的计算。具体的,四个角点的位置可参见图4,分别设左上角点为P1,左下角点为P2,右下角点为P3,右上角点为P4,具体的,左上角点和右上角点分别为筋板的焊接面(筋板的两面均需要与H型钢进行焊接,因此对于同一块筋板需要分别针对两个侧面进行H型钢的焊缝轨迹数据的计算,以获取两个侧面的焊缝轨迹数据,当针对其中一个侧面进行H型钢的焊缝轨迹数据的计算时,对应的侧面即为焊接面)的顶点,左下角点和右下角点分别为左右焊接面所在平面与H型钢的腹板-翼板相交线的交点。H型钢跟筋板之间需要双面各焊三条焊缝,任意一面的四个角点都是视觉系统需要识别的关键点。In the second acquisition module 202, the acquired four corner points are acquired by rough scanning by the visual scanning system. For example, the position information of the point cloud data of the H-beam workpiece is obtained through the visual scanning system (that is, the image information of the H-beam workpiece to be welded is: point cloud image information), and then obtain the position data of the four corner points from it (the specific extraction method is the prior art). Specifically, the positions of the four corner points can be seen in Figure 4. The upper left corner point is P1, the lower left corner point is P2, the lower right corner point is P3, and the upper right corner point is P4. Specifically, the upper left corner point and the upper right corner point are set as P1. They are the welding surfaces of the rib plate (both sides of the rib plate need to be welded with the H-beam, so for the same rib plate, the welding seam trajectory data of the H-beam need to be calculated for the two sides respectively to obtain the welding of the two sides. Seam trajectory data, when the calculation of the weld trajectory data of H-beam is performed for one of the sides, the corresponding side is the vertex of the welding surface), and the lower left corner point and the lower right corner point are the plane where the left and right welding surfaces are located and the H-beam. The intersection of the web-flange intersection lines. Three welds on both sides are required to be welded between the H-beam and the reinforcing plate, and the four corners of any side are the key points that the vision system needs to identify.

第四获取模块204中,第一上顶点、第二上顶点和底边焊缝的中点的位置可参见图5,分别设第一上顶点为T1,第二上顶点为T6,中点为T7。寻位算法由激光传感器执行。具体的,第一侧边焊缝为筋板(具体为筋板的焊接面)的左侧和H型钢之间形成的第一连接线,第一上顶点为第一连接线的上端点;第二侧边焊缝为筋板(具体为筋板的焊接面)的右侧和H型钢之间形成的第二连接线,第二上顶点为第二连接线的上端点;底边焊缝为筋板(具体为筋板的焊接面)的底侧和H型钢之间形成的第三连接线,中点为第三连接线的中点。In the fourth acquisition module 204, the positions of the first upper vertex, the second upper vertex and the midpoint of the bottom edge weld can be referred to in FIG. 5, respectively setting the first upper vertex as T1, the second upper vertex as T6, and the midpoint as T7. The positioning algorithm is performed by the laser sensor. Specifically, the first side weld is the first connection line formed between the left side of the rib plate (specifically, the welding surface of the rib plate) and the H-shaped steel, and the first upper vertex is the upper end point of the first connection line; The second side weld is the second connection line formed between the right side of the rib (specifically, the welding surface of the rib) and the H-shaped steel, and the second upper vertex is the upper end point of the second connection line; the bottom weld is The third connection line formed between the bottom side of the rib plate (specifically, the welding surface of the rib plate) and the H-beam, the midpoint of which is the midpoint of the third connection line.

为了便于理解,第一上顶点其实是精确的左上角点,第二上顶点是精确的右上角点。For ease of understanding, the first upper vertex is actually the exact upper left point, and the second upper vertex is the exact upper right point.

本申请的H型钢的焊缝轨迹计算装置,通过第一获取模块201获取待焊接的H型钢工件图像信息;第二获取模块202根据H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个角点分别为左上角点、左下角点、右上角点和右下角点;第三获取模块203获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝第二上顶点的法向量和底边焊缝的中点的法向量;第四获取模块204基于寻位算法,根据H型钢和筋板之间的四个角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;第五获取模块205获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据第一上顶点的位置数据、第一下顶点的位置数据和第一上顶点的法向量计算第一侧边焊缝轨迹数据;根据第二上顶点的位置数据、第二下顶点的位置数据和第二上顶点的法向量计算第二侧边焊缝轨迹数据;根据左顶点的位置数据、右顶点的位置数据和中点的法向量计算底边焊缝轨迹数据。免除了人工示教的繁琐过程,提高了获取H型钢工件的焊缝轨迹数据的效率和生产效率。In the H-beam welding seam trajectory calculation device of the present application, the image information of the H-beam workpiece to be welded is obtained through the first acquisition module 201; The position data of the four corners of the vector, the normal vector of the second upper vertex of the second side welding seam, and the normal vector of the midpoint of the bottom welding seam; the fourth acquisition module 204 is based on the positioning algorithm, according to the four corner points between the H-beam and the reinforcing plate The position data of the first upper vertex of the first side welding seam, the position data of the second upper vertex of the second side welding seam and the position data of the midpoint of the bottom welding seam are obtained; the fifth obtaining module 205 Obtain the position data of the first lower vertex of the first side welding seam, the position data of the second lower vertex of the second side welding seam, the position data of the left vertex and the right vertex of the bottom welding seam; The position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex are used to calculate the first side weld trajectory data; according to the position data of the second upper vertex, the position data of the second lower vertex and the The normal vector of the second upper vertex calculates the trajectory data of the second side weld; according to the position data of the left vertex, the position data of the right vertex and the normal vector of the midpoint, the bottom weld trace data is calculated. The tedious process of manual teaching is eliminated, and the efficiency and production efficiency of acquiring the weld track data of the H-beam workpiece are improved.

在一些实施方式中,还包括以下模块:In some embodiments, the following modules are also included:

第六获取模块:用于根据左上角点的位置数据和左下角点的位置数据获取第一侧边向量;根据右上角点的位置数据和右下角点的位置数据获取第二侧边向量;根据左下角点的位置数据和右下角点的位置数据获取底边向量;The sixth obtaining module: used to obtain the first side vector according to the position data of the upper left corner point and the position data of the lower left corner point; obtain the second side vector according to the position data of the upper right corner point and the position data of the lower right corner point; The position data of the lower left corner point and the position data of the lower right corner point obtain the bottom edge vector;

计算模块:用于根据第一侧边向量和底边向量计算第一法向量;根据第二侧边向量和底边向量计算第二法向量;根据底边向量计算第三法向量。Calculation module: used to calculate the first normal vector according to the first side vector and the base vector; calculate the second normal vector according to the second side vector and the base vector; calculate the third normal vector according to the base vector.

在实际应用中,第六获取模块和计算模块是为了获取焊缝关键点的法向量,也是为了将焊缝关键点转换为焊接机器人可识别的位姿值中的一个重要参数。其中,焊缝关键点是指焊缝的首尾点,例如第一侧边焊缝的第一上顶点和第一下顶点。In practical applications, the sixth acquisition module and the calculation module are used to obtain the normal vector of the key point of the welding seam, and also to convert the key point of the welding seam into an important parameter in the pose value recognizable by the welding robot. The key points of the welding seam refer to the head and tail points of the welding seam, such as the first upper vertex and the first lower vertex of the first side welding seam.

具体的,参阅图6,第六获取模块中,利用P1点,P2点求出第一侧边向量p12,同理利用P2点,P3点求出底边向量p23,利用P3点,P4点求出第二侧边向量p34。具体计算公式如下:Specifically, referring to Fig. 6, in the sixth acquisition module, the first side vector p12 is obtained by using points P1 and P2, and similarly the bottom vector p23 is obtained by using points P2 and P3, and the bottom vector p23 is obtained by using points P3 and P4. out the second side vector p34. The specific calculation formula is as follows:

p12=P2-P1; p23=P3-P2; p34=P4-P3;p12=P2-P1; p23=P3-P2; p34=P4-P3;

计算模块中,利用第一侧边向量p12叉乘底边向量p23求出第一法向量v1,利用底边向量p23叉乘第二侧边向量p34求出第二法向量v2。具体计算公式如下:In the calculation module, the first normal vector v1 is obtained by multiplying the first side vector p12 by the base vector p23, and the second normal vector v2 is obtained by multiplying the second side vector p34 by the base vector p23. The specific calculation formula is as follows:

v1=p12×p23; v2=p23×p34; v1=p12×p23; v2=p23×p34;

即,第一法向量v1实际是指与第一侧边向量p12和底边向量p23正交的向量,第二法向量v2实际是指与底边向量p23和第二侧边向量p34正交的向量。That is, the first normal vector v1 actually refers to the vector orthogonal to the first side vector p12 and the bottom vector p23, and the second normal vector v2 actually refers to the orthogonal vector to the bottom vector p23 and the second side vector p34. vector.

在进一步的实施方式中,第三获取模块203用于获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝第二上顶点的法向量和底边焊缝的中点的法向量,具体为:In a further embodiment, the third obtaining module 203 is configured to obtain the normal vector of the first upper vertex of the first side weld, the normal vector of the second upper vertex of the second side weld, and the middle of the bottom weld The normal vector of the point, specifically:

将第一法向量朝底边向量旋转第一预设角度,并向上翘曲第二预设角度,以获取第一上顶点的法向量;Rotate the first normal vector by a first preset angle toward the bottom edge vector, and warp the second preset angle upward to obtain the normal vector of the first upper vertex;

将第二法向量朝底边向量旋转第三预设角度,并向上翘曲第四预设角度,以获取第二上顶点的法向量;Rotate the second normal vector by a third preset angle toward the bottom edge vector, and warp the fourth preset angle upward to obtain the normal vector of the second upper vertex;

将第三法向量向上翘曲第五预设角度,以获取中点的法向量。Warp the third normal vector up by a fifth preset angle to get the normal vector at the midpoint.

其中,第一预设角度、第二预设角度、第三预设角度、第四预设角度以及第五预设角度可以根据实际情况进行设置,在此本申请不做具体限定。另外,向上翘曲(上翘)是指将远离筋板的一端进行翘曲。The first preset angle, the second preset angle, the third preset angle, the fourth preset angle and the fifth preset angle can be set according to actual conditions, which are not specifically limited in this application. In addition, the upward warping (upward warping) refers to warping the end away from the rib.

在实际应用中,为了防止在后续寻位的时候焊枪和激光传感器碰撞到H型钢工件,本申请把第一法向量v1往底边向量p23方向旋转第一预设角度45°,第二法向量v2往底边向量p23方向旋转第三预设角度-45°。其中,本申请默认第一法向量v1,第二法向量v2均平行于地面,所以第一法向量v1的z轴坐标值等于0,第二法向量v2的z轴坐标值也等于0。另外,为了防止和腹板发生碰撞,将第一法向量v1向上翘曲第二预设角度15°,将第二法向量v2向上翘曲第四预设角度15°。其中,H型钢包括左右两片翼板,和连接在翼板中间的腹板。In practical applications, in order to prevent the welding torch and the laser sensor from colliding with the H-beam workpiece during subsequent positioning, the present application rotates the first normal vector v1 to the direction of the bottom edge vector p23 by a first preset angle of 45°, and the second normal vector v2 rotates the third preset angle -45° in the direction of the bottom vector p23. The application defaults to the first normal vector v1 and the second normal vector v2 being parallel to the ground, so the z-axis coordinate value of the first normal vector v1 is equal to 0, and the z-axis coordinate value of the second normal vector v2 is also equal to 0. In addition, in order to prevent collision with the web, the first normal vector v1 is warped upward by a second preset angle of 15°, and the second normal vector v2 is warped upward by a fourth preset angle of 15°. Among them, the H-beam includes two left and right wings, and a web connected in the middle of the wings.

因此,第一上顶点的法向量的计算公式如下:Therefore, the calculation formula of the normal vector of the first upper vertex is as follows:

v123.x = Cos(45°) * v1.x - Sin(45° )* v1.y;v123.x = Cos(45°) * v1.x - Sin(45° )* v1.y;

v123.y = Sin(45°) * v1.x + Cos(45°) * v1.y;v123.y = Sin(45°) * v1.x + Cos(45°) * v1.y;

Tan(15°) = 0.27(保留两位小数);Tan(15°) = 0.27 (with two decimal places);

由此可得,第一上顶点的法向量为(v123.x,v123.y,0.27);其中,v1.x代表第一法向量的x轴坐标值;v1.y 代表第一法向量的y轴坐标值。It can be obtained from this that the normal vector of the first upper vertex is (v123.x, v123.y, 0.27); among them, v1.x represents the x-axis coordinate value of the first normal vector; v1.y represents the first normal vector y-axis coordinate value.

同理,第二上顶点的法向量的计算公式如下:Similarly, the calculation formula of the normal vector of the second upper vertex is as follows:

v234.x = Cos(-45°) * v2.x - Sin(-45° )* v2.y;v234.x = Cos(-45°) * v2.x - Sin(-45° )* v2.y;

v234.y = Sin(-45°) * v2.x + Cos(-45°) * v2.y;v234.y = Sin(-45°) * v2.x + Cos(-45°) * v2.y;

Tan(15°) = 0.27(保留两位小数);Tan(15°) = 0.27 (with two decimal places);

由此可得,第二上顶点的法向量为(v234.x,v234.y,0.27) ;其中,v2.x代表第二法向量的x轴坐标值;v2.y 代表第二法向量的y轴坐标值。It can be obtained from this that the normal vector of the second upper vertex is (v234.x, v234.y, 0.27); wherein, v2.x represents the x-axis coordinate value of the second normal vector; v2.y represents the second normal vector y-axis coordinate value.

预设底边焊缝的中点的位置(需要说明的是,这里的中点并非最终精确的中点),暂定左下角点P2,右下角点P3之间的直线连线中点作为中点,因此,底边焊缝的中点的位置向量跟第一法向量v1或第二法向量v2相同。同时为了避免碰撞工件,中点的法向量同样需要上翘,选择上翘第五预设角度45°,由此可得:Preset the position of the midpoint of the bottom edge weld (it should be noted that the midpoint here is not the final accurate midpoint), tentatively set the lower left corner point P2, and the midpoint of the straight line between the lower right corner points P3 as the middle point Therefore, the position vector of the midpoint of the bottom edge weld is the same as the first normal vector v1 or the second normal vector v2. At the same time, in order to avoid collision with the workpiece, the normal vector of the midpoint also needs to be upturned, and the fifth preset angle of upturned is 45°, which can be obtained:

中点的法向量mid=(v1.x,v1.y, Tan(45°));The normal vector mid=(v1.x, v1.y, Tan(45°));

或mid=(v2.x,v2.y, Tan(45°));or mid=(v2.x, v2.y, Tan(45°));

在进一步的实施方式中,第四获取模块204在基于寻位算法,根据H型钢和筋板之间的四个角点的位置数据计算第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据的时候,还执行以下步骤:In a further embodiment, the fourth obtaining module 204 calculates the position data of the first upper vertex of the first side weld according to the position data of the four corner points between the H-beam and the rib plate based on the positioning algorithm, When the position data of the second upper vertex of the second side welding seam and the position data of the middle point of the bottom welding seam are used, the following steps are also performed:

S401.预设第一移动距离和第二移动距离;S401. Preset the first movement distance and the second movement distance;

S402.根据第一移动距离、第二移动距离、左上角点的位置数据和第一法向量对第一侧边焊缝进行寻位,以获取第一上顶点的位置数据;S402. Position the first side weld according to the first movement distance, the second movement distance, the position data of the upper left corner point and the first normal vector, to obtain the position data of the first upper vertex;

根据第一移动距离、第二移动距离、右上角点的位置数据和第二法向量对第二侧边焊缝进行寻位,以获取第二上顶点的位置数据;Locating the second side weld seam according to the first moving distance, the second moving distance, the position data of the upper right corner point and the second normal vector, so as to obtain the position data of the second upper vertex;

根据第二移动距离、中点的位置数据和和第三法向量对底边焊缝进行寻位,以获取中点的位置数据。The bottom edge weld is located according to the second moving distance, the position data of the midpoint and the third normal vector, so as to obtain the position data of the midpoint.

其中,第一移动距离和第二移动距离可以根据实际情况进行设置,在此本申请不做具体限定。The first moving distance and the second moving distance may be set according to actual conditions, which are not specifically limited in this application.

在实际应用中,为了进一步防止在寻位时焊接机器人和H型钢工件发生碰撞,需要选取合适的寻位点。为了方便说明,将第一上顶点的寻位点记为左边寻位上面点和左边寻位下面点,具体的,先在左上角点P1处沿第一上顶点的法向量方向移动第一移动距离(一般设为20mm),然后沿z轴的正方向移动第二移动距离(一般设为30mm),移动后的位置作为左边寻位上面点;在左上角点P1处沿第一上顶点的法向量方向移动第一移动距离(一般设为20mm),沿z轴的负方向移动第二移动距离(一般设为30mm),移动后的位置作为左边寻位下面点。具体计算公式如下:In practical applications, in order to further prevent the collision between the welding robot and the H-beam workpiece during positioning, it is necessary to select a suitable positioning point. For the convenience of description, the locating point of the first upper vertex is recorded as the upper left locating point and the left locating lower point. Specifically, first move the first movement along the normal vector direction of the first upper vertex at the upper left corner point P1. distance (generally set to 20mm), and then move the second moving distance (generally set to 30mm) in the positive direction of the z-axis, and the moved position is used as the upper point of the left search; at the upper left point P1 along the first upper vertex Move the first moving distance in the direction of the normal vector (generally set to 20mm), move the second moving distance along the negative direction of the z-axis (generally set to 30mm), and use the moved position as the lower point of the left search. The specific calculation formula is as follows:

左边寻位上面点= (p1.x+dis*v123.x, p1.y+dis*v123.y, p1.z+dis*0.27+len);Find the upper point on the left = (p1.x+dis*v123.x, p1.y+dis*v123.y, p1.z+dis*0.27+len);

左边寻位下面点= (p1.x+dis*v123.x, p1.y+dis*v123.y, p1.z+dis*0.27-len);The lower point of the left search = (p1.x+dis*v123.x, p1.y+dis*v123.y, p1.z+dis*0.27-len);

其中,p1.x代表左上角点的x轴坐标值;p1.y代表左上角点的y轴坐标值;p1.z代表左上角点的z轴坐标值;dis代表第一移动距离;len代表第二移动距离。Among them, p1.x represents the x-axis coordinate value of the upper-left point; p1.y represents the y-axis coordinate value of the upper-left point; p1.z represents the z-axis coordinate value of the upper-left point; dis represents the first moving distance; len represents The second moving distance.

同理,将第二上顶点的寻位点记为右边寻位上面点和右边寻位下面点,具体的,先在右上角点P4处沿第二上顶点的法向量方向移动第一移动距离(一般设为20mm),然后沿z轴的正方向移动第二移动距离(一般设为30mm),移动后的位置作为右边寻位上面点;在右上角点P4处沿第二上顶点的法向量方向移动第一移动距离(一般设为20mm),沿z轴的负方向移动第二移动距离(一般设为30mm),移动后的位置作为右边寻位下面点。具体计算公式如下:In the same way, the locating point of the second upper vertex is recorded as the upper right locating point and the right locating lower point. Specifically, first move the first moving distance along the normal vector direction of the second upper vertex at the upper right corner point P4. (Generally set to 20mm), and then move the second moving distance along the positive direction of the z-axis (generally set to 30mm), and the moved position is used as the upper point of the right search; Move the first moving distance in the vector direction (generally set to 20mm), move the second moving distance (generally set to 30mm) along the negative direction of the z-axis, and use the moved position as the lower point on the right. The specific calculation formula is as follows:

右边寻位上面点= (p4.x+dis*v234.x, p4.y+dis*v234.y, p4.z+dis*0.27+len);Find the upper point on the right = (p4.x+dis*v234.x, p4.y+dis*v234.y, p4.z+dis*0.27+len);

右边寻位下面点= (p4.x+dis*v234.x, p4.y+dis*v234.y, p4.z+dis*0.27-len);Find the lower point on the right = (p4.x+dis*v234.x, p4.y+dis*v234.y, p4.z+dis*0.27-len);

其中,p4.x代表右上角点的x轴坐标值;p4.y代表右上角点的y轴坐标值;p4.z代表右上角点的z轴坐标值。Among them, p4.x represents the x-axis coordinate value of the upper-right point; p4.y represents the y-axis coordinate value of the upper-right point; p4.z represents the z-axis coordinate value of the upper-right point.

底边焊缝的中点的寻位点一般是直接在中点处,然后往中点的法向量方向移动两倍第二移动距离,移动后的位置作为底边寻位点。具体计算公式如下:The locating point of the midpoint of the bottom edge weld is generally directly at the midpoint, and then moves twice the second moving distance in the direction of the normal vector of the midpoint, and the moved position is used as the locating point for the bottom edge. The specific calculation formula is as follows:

底边寻位点= ((p2.x+p3.x)/2+2*len*mid.x, (p2.y+p3.y)/2+2*len*mid.y,(p2.z+p3.z)/2+2*len*mid.z);Bottom search point = ((p2.x+p3.x)/2+2*len*mid.x, (p2.y+p3.y)/2+2*len*mid.y, (p2. z+p3.z)/2+2*len*mid.z);

其中,p2.x代表左下角点的x轴坐标值;p2.y代表左下角点的y轴坐标值;p2.z代表左下角点的z轴坐标值;p3.x代表右下角点的x轴坐标值;p3.y代表右下角点的y轴坐标值;p3.z代表右下角点的z轴坐标值;mid.x代表中点的法向量的x轴坐标值;mid.y代表中点的法向量的y轴坐标值; mid.z代表中点的法向量的z轴坐标值。Among them, p2.x represents the x-axis coordinate value of the lower-left corner point; p2.y represents the y-axis coordinate value of the lower-left corner point; p2.z represents the z-axis coordinate value of the lower-left corner point; p3.x represents the x-axis value of the lower-right corner point axis coordinate value; p3.y represents the y-axis coordinate value of the lower right corner point; p3.z represents the z-axis coordinate value of the lower right corner point; mid.x represents the x-axis coordinate value of the normal vector of the midpoint; mid.y represents the middle The y-coordinate value of the point's normal vector; mid.z represents the z-coordinate value of the midpoint's normal vector.

由于获取了左边寻位上面点和左边寻位下面点,焊接机器人就能根据现有的寻位程序获取第一上顶点的位置数据;同理,由于获取了右边寻位上面点和右边寻位下面点,焊接机器人就能根据现有的寻位程序获取第二上顶点的位置数据;由于获取了底边寻位点,焊接机器人就能根据现有的寻位程序获取中点的位置数据。Since the upper point of the left positioning and the lower point of the left positioning are obtained, the welding robot can obtain the position data of the first upper vertex according to the existing positioning program; in the same way, since the upper point of the right positioning and the right positioning point are obtained. At the following point, the welding robot can obtain the position data of the second upper vertex according to the existing locating program; since the bottom edge locating point is obtained, the welding robot can obtain the position data of the midpoint according to the existing locating program.

在一些实施方式中,第五获取模块205在用于获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据第一上顶点的位置数据、第一下顶点的位置数据和第一上顶点的法向量计算第一侧边焊缝轨迹数据;根据第二上顶点的位置数据、第二下顶点的位置数据和第二上顶点的法向量计算第二侧边焊缝轨迹数据;根据左顶点的位置数据、右顶点的位置数据和第一上顶点的法向量计算底边焊缝轨迹数据的时候,还执行以下步骤:In some embodiments, the fifth obtaining module 205 is used to obtain the position data of the first lower vertex of the first side weld, the position data of the second lower vertex of the second side weld, the position data of the bottom weld The position data of the left vertex and the position data of the right vertex; calculate the first side weld trajectory data according to the position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex; The position data of the vertex, the position data of the second lower vertex and the normal vector of the second upper vertex are used to calculate the second side weld trajectory data; according to the position data of the left vertex, the position data of the right vertex and the normal vector of the first upper vertex When calculating the bottom edge weld trajectory data, the following steps are also performed:

S501.根据第一上顶点的位置数据和第二上顶点的位置数据计算第一上顶点和第二上顶点形成的直线连线的第一斜率;S501. Calculate the first slope of the straight line formed by the first upper vertex and the second upper vertex according to the position data of the first upper vertex and the position data of the second upper vertex;

S502.根据第一斜率、第一上顶点的位置数据、第二上顶点的位置数据和中点的位置数据计算H型钢的左凹面点的位置数据和右凹面点的位置数据。S502. Calculate the position data of the left concave point and the position data of the right concave point of the H-beam according to the first slope, the position data of the first upper vertex, the position data of the second upper vertex and the position data of the midpoint.

S503.根据左凹面点的位置数据、右凹面点的位置数据、第一上顶点的位置数据、第二上顶点的位置数据和中点的位置数据获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据和底边焊缝的左顶点的位置数据和右顶点的位置数据;S503. Obtain the first lower vertex of the first side weld according to the position data of the left concave point, the position data of the right concave point, the position data of the first upper vertex, the position data of the second upper vertex and the position data of the midpoint The position data of , the position data of the second lower vertex of the second side weld and the position data of the left vertex and the right vertex of the bottom weld;

S504.根据第一上顶点的位置数据、第一上顶点的法向量和第一下顶点的位置数据计算第一侧边焊缝轨迹数据;S504. Calculate the first side weld track data according to the position data of the first upper vertex, the normal vector of the first upper vertex and the position data of the first lower vertex;

根据第二上顶点的位置数据、第二上顶点的法向量和第二下顶点的位置数据计算第二侧边焊缝轨迹数据;Calculate the second side weld trajectory data according to the position data of the second upper vertex, the normal vector of the second upper vertex and the position data of the second lower vertex;

根据左顶点的位置数据、中点的法向量和右顶点的位置数据计算底边焊缝轨迹数据。The bottom edge weld trajectory data is calculated from the position data of the left vertex, the normal vector of the midpoint, and the position data of the right vertex.

参阅图7,步骤S501-步骤S502中,根据H型钢和筋板连接的特性,以及默认H型钢工件平放在地板上,可知第一上顶点T1、第二上顶点T6、左顶点T3和右顶点T4必然共面,可以知道第一上顶点T1和第二上顶点T6之间的直线连线与左顶点T3和右顶点T4之间的直线连线在水平地面的投影面是平行的。因此,需要计算第一上顶点T1和第二上顶点T6形成的直线连线的第一斜率K。Referring to FIG. 7, in step S501-step S502, according to the characteristics of the connection between the H-shaped steel and the rib plate, and the default H-shaped steel workpiece is placed flat on the floor, it can be known that the first upper vertex T1, the second upper vertex T6, the left vertex T3 and the right Vertices T4 must be coplanar. It can be known that the straight line connecting the first upper vertex T1 and the second upper vertex T6 and the straight line connecting the left vertex T3 and the right vertex T4 are parallel to the projection plane of the horizontal ground. Therefore, the first slope K of the straight line formed by the first upper vertex T1 and the second upper vertex T6 needs to be calculated.

其中,左顶点T3和右顶点T4为第三连接线的左右两个端点,左凹面点Q1是位于第一上顶点T1和第一下顶点T2所在直线的延长线与右顶点T4和左顶点T3所在直线的延长线的交点,右凹面点Q2是位于第二上顶点T6和第二下顶点T5所在直线的延长线与左顶点T3和右顶点T4所在直线的延长线的交点。Wherein, the left vertex T3 and the right vertex T4 are the left and right endpoints of the third connecting line, and the left concave point Q1 is the extension of the straight line where the first upper vertex T1 and the first lower vertex T2 are located, and the right vertex T4 and the left vertex T3 The intersection of the extension of the straight line, the right concave point Q2 is located at the intersection of the extension of the line where the second upper vertex T6 and the second lower vertex T5 are located and the extension of the line where the left vertex T3 and the right vertex T4 are located.

其中,为了便于区分左凹面点和第一上顶点,右凹面点和第二上顶点,本申请的图8和图9特意将左凹面点和第一上顶点区分为两个不同的点,将右凹面点和第二上顶点区分为两个不同的点,但是实际上俯视的话,左凹面点和第一上顶点是重合的,右凹面点和第二上顶点也是重合的。Wherein, in order to facilitate the distinction between the left concave point and the first upper vertex, and the right concave point and the second upper vertex, Figures 8 and 9 of the present application purposely distinguish the left concave point and the first upper vertex into two different points, and the The right concave point and the second upper vertex are divided into two different points, but in fact, from a top view, the left concave point and the first upper vertex are coincident, and the right concave point and the second upper vertex are also coincident.

为了便于理解,左凹面点其实是精确的左下角点,右凹面点是精确的右下角点。For ease of understanding, the left concave point is actually the exact lower left corner point, and the right concave point is the exact lower right corner point.

其中,先判断T1点和T6点的y轴坐标值是否一样,如果是一样,则说明底边焊缝刚好跟机器人基坐标系的X轴平行,此时K=0,那么左凹面点Q1的坐标为(T1.x,T7.y,T7.z),右凹面点Q2的坐标为(T6.x, T7.y, T7.z);如图8所示的情况均为此解。Among them, first judge whether the y-axis coordinates of points T1 and T6 are the same. If they are the same, it means that the bottom edge weld is just parallel to the X-axis of the robot base coordinate system. At this time, K=0, then the left concave point Q1 The coordinates are (T1.x, T7.y, T7.z), and the coordinates of the right concave point Q2 are (T6.x, T7.y, T7.z); all the cases shown in Figure 8 are this solution.

其中,T1.x代表第一上顶点的x轴坐标值;T7.y代表中点的y轴坐标值;T7.z代表中点的z轴坐标值;T6.x代表第二上顶点的x轴坐标值。Among them, T1.x represents the x-axis coordinate value of the first upper vertex; T7.y represents the y-axis coordinate value of the midpoint; T7.z represents the z-axis coordinate value of the midpoint; T6.x represents the x-axis of the second upper vertex axis coordinate value.

除此之外,本申请不考虑底边焊缝跟机器人基坐标系的Y轴平行的情况(因为实际放置的H型钢工件不会出现这种状况),所以不需要考虑第一斜率无限大的情况。In addition, this application does not consider the situation that the bottom edge weld is parallel to the Y axis of the robot base coordinate system (because this situation does not occur in the actual placed H-beam workpiece), so there is no need to consider the infinite first slope. Happening.

因此,参阅图9中H型钢工件的放置情况,即T1点和T6点的y轴坐标值不一样,则第一斜率的计算公式如下:Therefore, referring to the placement of the H-beam workpiece in Figure 9, that is, the y-axis coordinate values of points T1 and T6 are different, the calculation formula of the first slope is as follows:

K=(T6.y-T1.y)/( T6.x-T1.x);K=(T6.y-T1.y)/(T6.x-T1.x);

其中,T6.y代表第二上顶点的y轴坐标值;T1.y代表第一上顶点的y轴坐标值。Wherein, T6.y represents the y-axis coordinate value of the second upper vertex; T1.y represents the y-axis coordinate value of the first upper vertex.

其中,筋板必然跟H型钢的翼板垂直,也就是直线L1和直线L2的斜率是-1/K,直线L1是指不同筋板的第一上顶点所连成的直线,直线L2是指不同筋板的第二上顶点所连成的直线,因此可以利用斜截式建立直线方程,代入第一上顶点和第二上顶点的位置数据,就可以算出L1直线方程的b1值、L2直线方程的b2值。Among them, the rib must be perpendicular to the wing plate of the H-beam, that is, the slope of the straight line L1 and the straight line L2 is -1/K, the straight line L1 refers to the straight line connecting the first upper vertices of the different rib plates, and the straight line L2 refers to The straight line formed by the second upper vertices of different rib plates, so the straight line equation can be established by using the oblique intercept formula, and the position data of the first upper vertex and the second upper vertex can be substituted to calculate the b1 value of the L1 straight line equation and the L2 straight line. The b2 value of the equation.

具体的,设L1的直线方程为:y=(-1/K)x+b1;Specifically, let the linear equation of L1 be: y=(-1/K)x+b1;

L2的直线方程为:y=(-1/K)x+b2;The straight line equation of L2 is: y=(-1/K)x+b2;

将L1的直线方程和L2的直线方程联立,得:Simultaneously combining the straight line equation of L1 and the straight line equation of L2, we get:

b1=T1.y+T1.x/K;b1=T1.y+T1.x/K;

b2=T6.y+T6.x/K;b2=T6.y+T6.x/K;

由于底边焊缝跟第一上顶点和第二上顶点形成的直线连线平行,所以可以设底边焊缝的直线方程为:y=Kx+b3;Since the bottom edge welding seam is parallel to the straight line formed by the first upper vertex and the second upper vertex, the straight line equation of the bottom edge welding seam can be set as: y=Kx+b3;

将中点的位置数据代入,可求得:b3=T7.y-K*T7.x;Substitute the position data of the midpoint, and obtain: b3=T7.y-K*T7.x;

其中,T7.x代表中点的x轴坐标值。Among them, T7.x represents the x-axis coordinate value of the midpoint.

因此,可以通过联立L1直线方程和底边焊缝的直线方程求出交点,即左凹面点Q1,同理,联立L2直线方程和底边焊缝的直线方程求出右凹面点Q2。具体计算公式如下:Therefore, the intersection point, that is, the left concave point Q1, can be obtained by combining the L1 straight line equation and the straight line equation of the bottom edge weld. Similarly, the right concave point Q2 can be obtained by simultaneously combining the L2 straight line equation and the straight line equation of the bottom edge weld. The specific calculation formula is as follows:

Q1=(K*(b1-b3)/(1+K*K),(b3+b1*K*K)/(1+K*K), T7.z);Q1=(K*(b1-b3)/(1+K*K),(b3+b1*K*K)/(1+K*K), T7.z);

Q2=(K*(b2-b3)/(1+K*K),(b3+b2*K*K)/(1+K*K), T7.z);Q2=(K*(b2-b3)/(1+K*K),(b3+b2*K*K)/(1+K*K), T7.z);

在进一步的实施方式中,步骤S503包括:In a further embodiment, step S503 includes:

基于向量的等比特性,根据第一上顶点的位置数据和左凹面点的位置数据计算第一下顶点的位置数据;Based on the equal-phase characteristic of the vector, calculate the position data of the first lower vertex according to the position data of the first upper vertex and the position data of the left concave point;

基于向量的等比特性,根据第二上顶点的位置数据和右凹面点的位置数据计算第二下顶点的位置数据;Based on the equal-phase characteristic of the vector, calculate the position data of the second lower vertex according to the position data of the second upper vertex and the position data of the right concave point;

基于向量的等比特性,根据中点的位置数据和左凹面点的位置数据计算左顶点的位置数据;Calculate the position data of the left vertex according to the position data of the midpoint and the position data of the left concave point based on the equal-phase characteristic of the vector;

基于向量的等比特性,根据中点的位置数据和右凹面点的位置数据计算右顶点的位置数据。The position data of the right vertex is calculated based on the position data of the midpoint and the position data of the right concave point based on the isobaric property of the vector.

继续参阅图7,在实际应用中,筋板的左下角和右下角有倒角的,所以要计算第一下顶点T2、左顶点T3、右顶点T4、第二下顶点T5的位置数据。其中,第一下顶点T2为第一连接线的下端点;第二下顶点T5为第二连接线的下端点。可以利用向量的等比特性,第一上顶点T1到左凹面点Q1的距离比第一下顶点T2到左凹面点Q1的距离等于该对应的向量大小之比,即:Continuing to refer to FIG. 7, in practical applications, the lower left and lower right corners of the rib are chamfered, so the position data of the first lower vertex T2, the left vertex T3, the right vertex T4 and the second lower vertex T5 should be calculated. Wherein, the first lower vertex T2 is the lower end point of the first connection line; the second lower vertex T5 is the lower end point of the second connection line. The equal ratio property of vectors can be used, the distance from the first upper vertex T1 to the left concave point Q1 is greater than the distance from the first lower vertex T2 to the left concave point Q1 is equal to the ratio of the corresponding vector size, namely:

D/C=(T1.x- Q1.x)/(T2.x- Q1.x)D/C=(T1.x- Q1.x)/(T2.x- Q1.x)

= (T1.y- Q1.y)/(T2.y- Q1.y)= (T1.y- Q1.y)/(T2.y- Q1.y)

= (T1.z- Q1.z)/(T2.z- Q1.z)= (T1.z- Q1.z)/(T2.z- Q1.z)

其中,D代表T1到Q1的距离;C代表T2到Q1的距离;Q1.x代表左凹面点的x轴坐标值;Q1.y代表左凹面点的x轴坐标值;Q1.z代表左凹面点的z轴坐标值;T2.x代表第一下顶点的x轴坐标值;T2.y代表第一下顶点的y轴坐标值;T2.z代表第一下顶点的z轴坐标值。Among them, D represents the distance from T1 to Q1; C represents the distance from T2 to Q1; Q1.x represents the x-axis coordinate value of the left concave point; Q1.y represents the x-axis coordinate value of the left concave point; Q1.z represents the left concave surface The z-axis coordinate value of the point; T2.x represents the x-axis coordinate value of the first lower vertex; T2.y represents the y-axis coordinate value of the first lower vertex; T2.z represents the z-axis coordinate value of the first lower vertex.

其中,D和C可以直接获取,为已知条件,在此本申请不再赘述。Among them, D and C can be obtained directly, which are known conditions, and are not repeated in this application.

根据上式可以求出第一下顶点T2的位置数据,同理可以求出T3,T4,T5的位置数据。According to the above formula, the position data of the first lower vertex T2 can be obtained, and similarly the position data of T3, T4, and T5 can be obtained.

步骤S504中,根据计算出来的T1和T2的位置数据,再配合第一上顶点的法向量,即可得到第一侧边焊缝轨迹数据(第一侧边焊缝轨迹的始末位姿值)。同理,根据计算出来的T6和T5的位置数据,再配合第二上顶点的法向量,可得到第二侧边焊缝轨迹数据;根据计算出来的T3和T4的位置数据,再配合中间点的法向量可得到底边焊缝轨迹数据。In step S504, according to the calculated position data of T1 and T2 and the normal vector of the first upper vertex, the first side weld trajectory data (the beginning and end pose values of the first side weld trajectory) can be obtained. . In the same way, according to the calculated position data of T6 and T5 and the normal vector of the second upper vertex, the trajectory data of the second side weld can be obtained; according to the calculated position data of T3 and T4, and then match the middle point The normal vector of , the bottom edge weld trajectory data can be obtained.

由上可知,本申请的H型钢的焊缝轨迹计算装置,通过第一获取模块201获取待焊接的H型钢工件图像信息;第二获取模块202根据H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个角点分别为左上角点、左下角点、右上角点和右下角点;第三获取模块203获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝第二上顶点的法向量和底边焊缝的中点的法向量;第四获取模块204基于寻位算法,根据H型钢和筋板之间的四个角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;第五获取模块205获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据第一上顶点的位置数据、第一下顶点的位置数据和第一上顶点的法向量计算第一侧边焊缝轨迹数据;根据第二上顶点的位置数据、第二下顶点的位置数据和第二上顶点的法向量计算第二侧边焊缝轨迹数据;根据左顶点的位置数据、右顶点的位置数据和中点的法向量计算底边焊缝轨迹数据。免除了人工示教的繁琐过程,提高了获取H型钢工件的焊缝轨迹数据的效率和生产效率。As can be seen from the above, the H-beam welding seam trajectory calculation device of the present application obtains the image information of the H-beam workpiece to be welded through the first acquisition module 201; The position data of the four corner points at the connection between the two corner points, the four corner points are the upper left corner point, the lower left corner point, the upper right corner point and the lower right corner point respectively; the third acquisition module 203 acquires the first The normal vector of the upper vertex, the normal vector of the second upper vertex of the second side weld, and the normal vector of the midpoint of the bottom weld; the fourth acquisition module 204 is based on the positioning algorithm, according to the The position data of the four corner points obtains the position data of the first upper vertex of the first side weld, the position data of the second upper vertex of the second side weld and the position data of the midpoint of the bottom weld; V. The acquiring module 205 acquires the position data of the first lower vertex of the first side weld, the position data of the second lower vertex of the second side weld, the position data of the left vertex and the right vertex of the bottom weld data; calculate the first side weld trajectory data according to the position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex; according to the position data of the second upper vertex, the second lower vertex The position data and the normal vector of the second upper vertex are used to calculate the second side weld trajectory data; the bottom edge weld trace data is calculated according to the position data of the left vertex, the position data of the right vertex and the normal vector of the midpoint. The tedious process of manual teaching is eliminated, and the efficiency and production efficiency of acquiring the weld track data of the H-beam workpiece are improved.

请参照图10,图10为本申请实施方式提供的一种电子设备的结构示意图,本申请提供一种电子设备,包括:处理器301和存储器302,处理器301和存储器302通过通信总线303和/或其他形式的连接机构(未标出)互连并相互通讯,存储器302存储有处理器301可执行的计算机程序,当计算设备运行时,处理器301执行该计算机程序,以在执行时执行上述实施方式的任一可选的实现方式中的方法,以实现以下功能:获取待焊接的H型钢工件图像信息;根据H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个角点分别为左上角点、左下角点、右上角点和右下角点;获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝的第二上顶点的法向量和底边焊缝的中点的法向量;基于寻位算法,根据H型钢和筋板之间的四个角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据第一上顶点的位置数据、第一下顶点的位置数据和第一上顶点的法向量计算第一侧边焊缝轨迹数据;根据第二上顶点的位置数据、第二下顶点的位置数据和第二上顶点的法向量计算第二侧边焊缝轨迹数据;根据左顶点的位置数据、右顶点的位置数据和中点的法向量计算底边焊缝轨迹数据。Please refer to FIG. 10 . FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The present application provides an electronic device, including: a processor 301 and a memory 302 . The processor 301 and the memory 302 pass through a communication bus 303 and and/or other forms of connection mechanisms (not shown) are interconnected and communicate with each other, and the memory 302 stores a computer program executable by the processor 301. When the computing device is running, the processor 301 executes the computer program to execute the computer program when executed. The method in any optional implementation manner of the above-mentioned embodiment, to realize the following functions: obtain the image information of the H-beam workpiece to be welded; The position data of the corner points, the four corner points are the upper left corner, the lower left corner, the upper right corner and the lower right corner; obtain the normal vector of the first upper vertex of the first side weld and the second side weld The normal vector of the second upper vertex and the normal vector of the midpoint of the bottom edge weld; based on the positioning algorithm, the first side weld is obtained according to the position data of the four corner points between the H-beam and the rib plate. The position data of the first upper vertex, the position data of the second upper vertex of the second side weld and the position data of the midpoint of the bottom weld; obtain the position data of the first lower vertex of the first side weld, the first The position data of the second lower vertex of the two-side welding seam, the position data of the left vertex and the position data of the right vertex of the bottom welding seam; according to the position data of the first upper vertex, the position data of the first lower vertex and the first The normal vector of the upper vertex calculates the trajectory data of the first side weld; calculates the trajectory data of the second side weld according to the position data of the second upper vertex, the position data of the second lower vertex and the normal vector of the second upper vertex; The position data of the left vertex, the position data of the right vertex, and the normal vector of the midpoint calculate the bottom edge weld trajectory data.

本申请实施方式提供一种存储介质,其上存储有计算机程序,计算机程序被处理器执行时,执行上述实施方式的任一可选的实现方式中的方法,以实现以下功能获取待焊接的H型钢工件图像信息;根据H型钢工件图像信息获取H型钢和筋板之间的连接处的四个角点的位置数据,四个角点分别为左上角点、左下角点、右上角点和右下角点;获取第一侧边焊缝的第一上顶点的法向量、第二侧边焊缝的第二上顶点的法向量和底边焊缝的中点的法向量;基于寻位算法,根据H型钢和筋板之间的四个角点的位置数据获取第一侧边焊缝的第一上顶点的位置数据、第二侧边焊缝的第二上顶点的位置数据和底边焊缝的中点的位置数据;获取第一侧边焊缝的第一下顶点的位置数据、第二侧边焊缝的第二下顶点的位置数据、底边焊缝的左顶点的位置数据和右顶点的位置数据;根据第一上顶点的位置数据、第一下顶点的位置数据和第一上顶点的法向量计算第一侧边焊缝轨迹数据;根据第二上顶点的位置数据、第二下顶点的位置数据和第二上顶点的法向量计算第二侧边焊缝轨迹数据;根据左顶点的位置数据、右顶点的位置数据和中点的法向量计算底边焊缝轨迹数据。其中,存储介质可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(Static Random Access Memory, 简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory, 简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read Only Memory, 简称EPROM),可编程只读存储器(Programmable Red-Only Memory, 简称PROM),只读存储器(Read-Only Memory, 简称ROM),磁存储器,快闪存储器,磁盘或光盘。Embodiments of the present application provide a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method in any optional implementation mode of the above-mentioned embodiment is executed, so as to realize the following functions to obtain the H to be welded. The image information of the section steel workpiece; according to the image information of the H section steel workpiece, the position data of the four corner points at the connection between the H section steel and the rib plate are obtained, and the four corner points are the upper left corner point, the lower left corner point, the upper right corner point and the right corner point respectively. Lower corner point; obtain the normal vector of the first upper vertex of the first side weld, the normal vector of the second upper vertex of the second side weld, and the normal vector of the midpoint of the bottom weld; based on the positioning algorithm, Obtain the position data of the first upper vertex of the first side weld, the position data of the second upper vertex of the second side weld, and the bottom weld according to the position data of the four corner points between the H-beam and the rib. The position data of the midpoint of the seam; the position data of the first lower vertex of the first side weld, the position data of the second lower vertex of the second side weld, the position data of the left vertex of the bottom weld and The position data of the right vertex; calculate the first side weld trajectory data according to the position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex; The position data of the second lower vertex and the normal vector of the second upper vertex are used to calculate the second side weld track data; the bottom edge weld track data is calculated according to the position data of the left vertex, the position data of the right vertex and the normal vector of the midpoint. Among them, the storage medium can be realized by any type of volatile or non-volatile storage device or their combination, such as Static Random Access Memory (SRAM for short), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), read-only Memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk.

在本申请所提供的实施方式中,应该理解到,所揭露系统和方法,可以通过其它的方式实现。以上所描述的系统实施方式仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,系统或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed system and method may be implemented in other manners. The system implementations described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other divisions. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of systems or units, and may be in electrical, mechanical or other forms.

另外,作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。In addition, units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this implementation manner.

再者,在本申请各个实施方式中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。Furthermore, each functional module in each embodiment of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.

在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。In this document, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such existence between these entities or operations. The actual relationship or sequence.

以上所述仅为本申请的实施方式而已,并不用于限制本申请的保护范围,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are merely embodiments of the present application, and are not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.

Claims (7)

1. A welding seam track calculation method of H-shaped steel is used for obtaining welding seam track data of an H-shaped steel workpiece, the H-shaped steel workpiece comprises the H-shaped steel and at least two rib plates, and the rib plates are vertically connected with two wing plates and web plates of the H-shaped steel, and the method is characterized by comprising the following steps:
s1, acquiring image information of an H-shaped steel workpiece to be welded;
s2, acquiring position data of four angular points at a connecting part between the H-shaped steel and the rib plate according to the image information of the H-shaped steel workpiece, wherein the four angular points are an upper left angular point, a lower left angular point, an upper right angular point and a lower right angular point respectively;
s3, acquiring a normal vector of a first upper vertex of the first side edge welding line, a normal vector of a second upper vertex of the second side edge welding line and a normal vector of a middle point of the bottom edge welding line;
s4, based on a position finding algorithm, acquiring position data of a first upper vertex of a first side edge welding line, position data of a second upper vertex of a second side edge welding line and position data of a middle point of a bottom edge welding line according to position data of four angular points between the H-shaped steel and the rib plate;
s5, acquiring position data of a first lower peak of a first side edge welding line, position data of a second lower peak of a second side edge welding line, position data of a left peak and position data of a right peak of the bottom edge welding line; calculating first side welding seam track data according to the position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex;
calculating second side edge weld joint track data according to the position data of the second upper vertex, the position data of the second lower vertex and the normal vector of the second upper vertex;
calculating bottom edge weld track data according to the position data of the left vertex, the position data of the right vertex and the normal vector of the middle point;
before step S3, step S2 includes:
A1. acquiring a first side vector according to the position data of the upper left corner point and the position data of the lower left corner point; acquiring a second side vector according to the position data of the upper right corner point and the position data of the lower right corner point; acquiring a bottom edge vector according to the position data of the left lower corner point and the position data of the right lower corner point;
A2. calculating a first normal vector according to the first side vector and the bottom vector; calculating a second normal vector according to the second side edge vector and the bottom edge vector; calculating a third normal vector according to the bottom edge vector;
step S3 includes:
rotating the first normal vector towards the bottom edge vector by a first preset angle, and warping upwards by a second preset angle to obtain a normal vector of the first upper vertex;
rotating the second normal vector towards the bottom edge vector by a third preset angle, and warping the second normal vector upwards by a fourth preset angle to obtain a normal vector of a second upper vertex;
and warping the third normal vector by a fifth preset angle upwards to obtain the normal vector of the midpoint.
2. The method for calculating the weld bead locus of the H-shaped steel according to claim 1, wherein the step S4 includes:
s401, presetting a first moving distance and a second moving distance;
s402, locating the welding seam of the first side according to the first moving distance, the second moving distance, the position data of the upper left corner point and the first normal vector to obtain the position data of the first upper vertex;
searching the position of the second side welding line according to the first moving distance, the second moving distance, the position data of the upper right angular point and the second normal vector to obtain the position data of the second upper vertex;
and searching the position of the bottom edge welding line according to the second moving distance, the position data of the middle point and the third normal vector to obtain the position data of the middle point.
3. The method for calculating the weld bead locus of the H-shaped steel according to claim 1, wherein the step S5 includes:
s501, calculating a first slope of a straight line connecting line formed by the first upper vertex and the second upper vertex according to the position data of the first upper vertex and the position data of the second upper vertex;
s502, calculating position data of a left concave point and position data of a right concave point of the H-shaped steel according to the first slope, the position data of the first upper peak, the position data of the second upper peak and the position data of the middle point;
s503, acquiring position data of a first lower vertex of the first side edge welding seam, position data of a second lower vertex of the second side edge welding seam, position data of a left vertex and position data of a right vertex of the bottom edge welding seam according to the position data of the left concave point, the position data of the right concave point, the position data of the first upper vertex, the position data of the second upper vertex and the position data of the middle point;
s504, calculating the first side welding seam track data according to the position data of the first upper vertex, the normal vector of the first upper vertex and the position data of the first lower vertex;
calculating second side weld joint track data according to the position data of the second upper vertex, the normal vector of the second upper vertex and the position data of the second lower vertex;
and calculating bottom edge weld track data according to the position data of the left vertex, the normal vector of the middle point and the position data of the right vertex.
4. The method of calculating the weld bead locus of the H-shaped steel according to claim 3, wherein the step S503 includes:
calculating position data of the first lower vertex from the position data of the first upper vertex and the position data of the left concave point based on an equal ratio characteristic of the vector;
calculating position data of the second lower vertex according to the position data of the second upper vertex and the position data of the right concave point based on geometric characteristics of the vectors;
calculating position data of the left vertex from the position data of the midpoint and the position data of the left concave point based on geometric characteristics of the vector;
calculating position data of the right vertex from the position data of the midpoint and the position data of the right concave point based on an equal ratio characteristic of the vector.
5. The utility model provides a welding seam orbit calculation device of H shaped steel for obtain the welding seam orbit data of H shaped steel work piece, H shaped steel work piece includes H shaped steel and two piece at least gussets, the gusset perpendicularly with two pterygoid laminas and the web of H shaped steel are connected, its characterized in that includes following module:
a first obtaining module: the method comprises the steps of obtaining image information of an H-shaped steel workpiece to be welded;
a second obtaining module: the H-shaped steel workpiece positioning device is used for acquiring position data of four angular points at a connecting part between H-shaped steel and a rib plate according to the H-shaped steel workpiece image information, wherein the four angular points are an upper left angular point, a lower left angular point, an upper right angular point and a lower right angular point respectively;
a third obtaining module: the normal vector of a first upper vertex of the first side edge welding seam, the normal vector of a second upper vertex of the second side edge welding seam and the normal vector of the middle point of the bottom edge welding seam are obtained;
a fourth obtaining module: the positioning method is used for acquiring position data of a first upper vertex of a first side edge welding line, position data of a second upper vertex of a second side edge welding line and position data of a middle point of a bottom edge welding line according to position data of four angular points between the H-shaped steel and the rib plate based on a positioning algorithm;
a fifth obtaining module: the position data of a first lower vertex of the first side edge welding seam, the position data of a second lower vertex of the second side edge welding seam, the position data of a left vertex of the bottom edge welding seam and the position data of a right vertex are obtained;
calculating first side weld joint trajectory data according to the position data of the first upper vertex, the position data of the first lower vertex and the normal vector of the first upper vertex;
calculating second side edge weld joint track data according to the position data of the second upper vertex, the position data of the second lower vertex and the normal vector of the second upper vertex;
calculating bottom edge weld track data according to the position data of the left vertex, the position data of the right vertex and the normal vector of the middle point;
a sixth obtaining module: the first side vector is obtained according to the position data of the upper left corner point and the position data of the lower left corner point; acquiring a second side vector according to the position data of the upper right corner point and the position data of the lower right corner point; acquiring a bottom edge vector according to the position data of the left lower corner point and the position data of the right lower corner point;
a calculation module: the first side edge vector and the bottom edge vector are used for calculating a first normal vector; calculating a second normal vector according to the second side vector and the bottom vector; calculating a third normal vector according to the bottom edge vector;
the third acquisition module is used for acquiring a normal vector of a first upper vertex of the first side edge welding seam, a normal vector of a second upper vertex of the second side edge welding seam and a normal vector of a middle point of the bottom edge welding seam, and specifically comprises the following steps:
rotating the first normal vector by a first preset angle towards the bottom edge vector, and warping the first normal vector upwards by a second preset angle to obtain a normal vector of a first upper vertex;
rotating the second normal vector by a third preset angle towards the bottom edge vector, and warping upwards by a fourth preset angle to obtain a normal vector of a second upper vertex;
and warping the third normal vector by a fifth preset angle upwards to obtain a normal vector of the midpoint.
6. An electronic device comprising a processor and a memory, the memory storing computer readable instructions, when executed by the processor, performing the steps in the method of calculating a weld trace of an H-shaped steel according to any one of claims 1 to 4.
7. A storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, executes the steps in the method for calculating a weld trajectory of an H-section steel according to any one of claims 1 to 4.
CN202210712209.5A 2022-06-22 2022-06-22 Calculation method, device, electronic equipment and storage medium for welding seam trajectory of H-beam Active CN114782526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210712209.5A CN114782526B (en) 2022-06-22 2022-06-22 Calculation method, device, electronic equipment and storage medium for welding seam trajectory of H-beam

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210712209.5A CN114782526B (en) 2022-06-22 2022-06-22 Calculation method, device, electronic equipment and storage medium for welding seam trajectory of H-beam

Publications (2)

Publication Number Publication Date
CN114782526A CN114782526A (en) 2022-07-22
CN114782526B true CN114782526B (en) 2022-09-02

Family

ID=82422392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210712209.5A Active CN114782526B (en) 2022-06-22 2022-06-22 Calculation method, device, electronic equipment and storage medium for welding seam trajectory of H-beam

Country Status (1)

Country Link
CN (1) CN114782526B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102023106655B3 (en) * 2023-03-16 2024-06-06 Fachhochschule Erfurt, Körperschaft des öffentlichen Rechts Process for the automated production of rolled profiles to be structurally provided with stiffeners, in particular solid stiffeners

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003093761A1 (en) * 2002-04-30 2003-11-13 Jfe Steel Corporation Method and instrument for measuring bead cutting shape of electric welded tube
CN110455187A (en) * 2019-08-21 2019-11-15 哈尔滨工业大学 A 3D Vision-Based Inspection Method for the Weld Seam of Box Workpieces
CN110539109A (en) * 2019-08-28 2019-12-06 广东工业大学 A robot automatic welding system and method based on single and binocular vision
WO2020147639A1 (en) * 2019-01-15 2020-07-23 清华大学 Method for real-time tracking and detection of weld bead trajectory and attitude, electronic device and medium
CN114119611A (en) * 2022-01-25 2022-03-01 季华实验室 Weld parameter identification method, device, electronic device and storage medium
CN114419046A (en) * 2022-03-30 2022-04-29 季华实验室 Weld identification method, device, electronic equipment and storage medium for H-beam
CN114571165A (en) * 2022-05-07 2022-06-03 季华实验室 Welding track planning method and device, welding system and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3437083B1 (en) * 2016-03-28 2023-07-19 ABB Schweiz AG Method, system and apparatus of determining search parameters for welding seam point calibration
JP7120512B2 (en) * 2019-11-22 2022-08-17 Smc株式会社 Trajectory control device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003093761A1 (en) * 2002-04-30 2003-11-13 Jfe Steel Corporation Method and instrument for measuring bead cutting shape of electric welded tube
WO2020147639A1 (en) * 2019-01-15 2020-07-23 清华大学 Method for real-time tracking and detection of weld bead trajectory and attitude, electronic device and medium
CN110455187A (en) * 2019-08-21 2019-11-15 哈尔滨工业大学 A 3D Vision-Based Inspection Method for the Weld Seam of Box Workpieces
CN110539109A (en) * 2019-08-28 2019-12-06 广东工业大学 A robot automatic welding system and method based on single and binocular vision
CN114119611A (en) * 2022-01-25 2022-03-01 季华实验室 Weld parameter identification method, device, electronic device and storage medium
CN114419046A (en) * 2022-03-30 2022-04-29 季华实验室 Weld identification method, device, electronic equipment and storage medium for H-beam
CN114571165A (en) * 2022-05-07 2022-06-03 季华实验室 Welding track planning method and device, welding system and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于参数化模型的焊缝曲线离散与焊枪姿态生成方法研究;文享龙等;《机床与液压》;20220315;第50卷(第05期);第42-48页 *

Also Published As

Publication number Publication date
CN114782526A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN104384765B (en) Based on the automatic soldering method of threedimensional model and machine vision
CN109514133B (en) 3D curve welding seam autonomous teaching method of welding robot based on line structure light perception
CN110370298B (en) Automatic planning method for welding robot track
CN113119122B (en) Hybrid off-line programming method of robot welding system
CN108213757B (en) A Collision Detection Method for Welding Robot
CN114571165B (en) A welding trajectory planning method, device, welding system and electronic equipment
CN111496428A (en) Multilayer multi-pass welding bead planning method based on straight welding seam contour recognition and welding workstation
CN114782526B (en) Calculation method, device, electronic equipment and storage medium for welding seam trajectory of H-beam
CN114260625A (en) Method for welding intersecting line of circular tube, welding equipment and storage medium
Yu et al. Multiseam tracking with a portable robotic welding system in unstructured environments
CN117840995A (en) Automatic wall-building method and system based on two-stage visual servoing
CN117876358A (en) Welding path planning method, device, computer equipment and storage medium
JP2000190264A (en) Teaching method and teaching device for industrial robot
CN113305847B (en) Building 3D printing mobile mechanical arm station planning method and system
CN116578101B (en) AGV pose adjustment method based on two-dimensional code, electronic equipment and storage medium
CN118528253A (en) Control method and device for operation robot
CN113199476A (en) Planning algorithm of circular arc 8-shaped swing arc path capable of quickly adjusting posture of welding gun
Mun et al. Sub-assembly welding robot system at shipyards
CN114237150B (en) Robot weld milling path control method and device based on weld features
CN105415376A (en) Off-line programming device
JPH09164483A (en) Welding route automatic determination system
Huynh et al. Research on welding seam tracking algorithm for automatic welding process of X-shaped tip of concrete piles using laser distance sensor
CN111709083A (en) Method for distinguishing welding direction
Xiao et al. Robot intelligent welding programming based on line structure light sensing
Lund Development of a multi-robot welding cell for jigless welding

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