WO2023202031A1 - Welding method and apparatus, and electronic device and computer-readable storage medium - Google Patents

Welding method and apparatus, and electronic device and computer-readable storage medium Download PDF

Info

Publication number
WO2023202031A1
WO2023202031A1 PCT/CN2022/129002 CN2022129002W WO2023202031A1 WO 2023202031 A1 WO2023202031 A1 WO 2023202031A1 CN 2022129002 W CN2022129002 W CN 2022129002W WO 2023202031 A1 WO2023202031 A1 WO 2023202031A1
Authority
WO
WIPO (PCT)
Prior art keywords
welding
target
point coordinates
coordinates
starting point
Prior art date
Application number
PCT/CN2022/129002
Other languages
French (fr)
Chinese (zh)
Inventor
周俊锋
茅卫东
李盛良
周定华
苏林
王成文
何鲲鹏
Original Assignee
奇瑞新能源汽车股份有限公司
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 奇瑞新能源汽车股份有限公司 filed Critical 奇瑞新能源汽车股份有限公司
Publication of WO2023202031A1 publication Critical patent/WO2023202031A1/en

Links

Images

Classifications

    • 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 to a procedure covered by only one of the preceding main groups
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J11/00Manipulators not otherwise provided for
    • B25J11/005Manipulators for mechanical processing tasks
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J19/00Accessories fitted to manipulators, e.g. for monitoring, for viewing; Safety devices combined with or specially adapted for use in connection with manipulators
    • B25J19/02Sensing devices
    • B25J19/021Optical sensing devices
    • B25J19/022Optical sensing devices using lasers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/0081Programme-controlled manipulators with master teach-in means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1674Programme controls characterised by safety, monitoring, diagnostic
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1679Programme controls characterised by the tasks executed
    • B25J9/1684Tracking a line or surface by means of sensors
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1694Programme controls characterised by use of sensors other than normal servo-feedback from position, speed or acceleration sensors, perception control, multi-sensor controlled systems, sensor fusion
    • B25J9/1697Vision controlled systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Robotics (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Manipulator (AREA)
  • Numerical Control (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

A welding method and apparatus, and an electronic device (61) and a computer-readable storage medium. The welding method is applied to an electronic device (61), which is included in a welding system. The welding system further comprises a robot (62) and a visual sensor (1, 63) fixed onto the robot (62). The method comprises: controlling a visual sensor (1, 63) to acquire a target image corresponding to a position to be welded; according to the target image, acquiring target starting point coordinates and target end point coordinates which correspond to the position to be welded; and controlling the tail end of a robot (62) to perform welding from the target starting point coordinates to the target end point coordinates. The visual sensor (1, 63) is controlled to acquire the target image at the position to be welded, such that the target starting point coordinates and the target end point coordinates can be accurately determined according to the target image, thereby accurately identifying the position to be welded. The tail end of the robot (62) is then controlled to perform welding from the target starting point coordinates to the target end point coordinates, such that the position to be welded can be welded, thereby ensuring the welding precision and the welding quality.

Description

焊接方法、装置、电子设备和计算机可读存储介质Welding methods, devices, electronic equipment and computer-readable storage media
本申请要求于2022年04月22日提交的申请号为202210439273.0、申请名称为“铝合金自动弧焊方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210439273.0 and the application name "Aluminum Alloy Automatic Arc Welding Method and Device" submitted on April 22, 2022, the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请属于自动焊接技术领域,特别涉及一种焊接方法、装置、电子设备和计算机可读存储介质。This application belongs to the field of automatic welding technology, and particularly relates to a welding method, device, electronic equipment and computer-readable storage medium.
背景技术Background technique
随着自动焊接技术的不断发展,对金属材料进行自动焊接的方式也越来越多,通过机械臂进行自动焊接便是其中的一种方式。如何通过机械臂实现精确的焊接,成为亟待解决的问题。With the continuous development of automatic welding technology, there are more and more ways to automatically weld metal materials, and automatic welding through robotic arms is one of them. How to achieve precise welding through robotic arms has become an urgent problem to be solved.
发明内容Contents of the invention
本申请提供一种焊接方法、装置、电子设备和计算机可读存储介质,用于对金属材料进行精确的自动焊接。This application provides a welding method, device, electronic equipment and computer-readable storage medium for precise automatic welding of metal materials.
一方面,提供了一种焊接方法,方法应用于焊接系统包括的电子设备,焊接系统还包括机械臂和固定于机械臂的视觉传感器,方法包括:On the one hand, a welding method is provided. The method is applied to electronic equipment included in the welding system. The welding system also includes a robotic arm and a visual sensor fixed to the robotic arm. The method includes:
控制视觉传感器获取焊接处对应的目标图像;Control the vision sensor to obtain the target image corresponding to the welding joint;
根据目标图像获取焊接处对应的目标起点坐标和目标终点坐标;Obtain the target starting point coordinates and target end point coordinates corresponding to the welding joint according to the target image;
控制机械臂的末端从目标起点坐标焊接至目标终点坐标。Control the end of the robotic arm to be welded from the target starting point coordinates to the target end point coordinates.
在示例性实施例中,目标图像由视觉传感器在机械臂的末端位于初始坐标的情况下获取,初始坐标包括初始起点坐标和初始终点坐标;方法还包括:确定初始起点坐标与目标起点坐标之间的第一偏移量,确定初始终点坐标与目标终点坐标之间的第二偏移量;根据第一偏移量和第二偏移量确定移动方式,按照移动方式控制机械臂的末端从初始起点坐标移动至目标起点坐标。In an exemplary embodiment, the target image is acquired by the visual sensor when the end of the robotic arm is located at the initial coordinates, and the initial coordinates include the initial starting point coordinates and the initial end point coordinates; the method further includes: determining the distance between the initial starting point coordinates and the target starting point coordinates. the first offset, determine the second offset between the initial end point coordinates and the target end point coordinates; determine the movement mode based on the first offset and the second offset, and control the end of the robotic arm from the initial The starting point coordinates move to the target starting point coordinates.
在示例性实施例中,目标起点坐标和目标终点坐标为机械臂的末端对应的 末端坐标系下的坐标;根据目标图像获取焊接处对应的目标起点坐标和目标终点坐标,包括:根据目标图像获取视觉传感器对应的传感器坐标系下的参考起点坐标和参考终点坐标;根据末端坐标系与传感器坐标系之间的第一转换矩阵将参考起点坐标转换为目标起点坐标,根据第一转换矩阵将参考终点坐标转换为目标终点坐标。In an exemplary embodiment, the target starting point coordinates and the target end point coordinates are coordinates in the end coordinate system corresponding to the end of the robotic arm; obtaining the target starting point coordinates and the target end point coordinates corresponding to the welding joint according to the target image includes: obtaining according to the target image The reference starting point coordinates and the reference end point coordinates in the sensor coordinate system corresponding to the visual sensor; convert the reference starting point coordinates into the target starting point coordinates according to the first transformation matrix between the end coordinate system and the sensor coordinate system, and convert the reference end point coordinates according to the first transformation matrix The coordinates are converted into target end point coordinates.
在示例性实施例中,方法还包括:获取第一坐标和至少两个第二坐标,第一坐标为标定元件的中心在机械臂的基座对应的基座坐标系下的坐标,至少两个第二坐标中的任意一个第二坐标对应一个位姿,任意一个第二坐标为机械臂的末端处于对应的位姿时标定元件的中心在传感器坐标系下的坐标;根据第一坐标、至少两个第二坐标、任意一个第二坐标对应的位姿和末端坐标系与基座坐标系之间的第二转换矩阵,求解得到第一转换矩阵。In an exemplary embodiment, the method further includes: obtaining a first coordinate and at least two second coordinates. The first coordinate is a coordinate of the center of the calibration element in a base coordinate system corresponding to the base of the robotic arm. At least two second coordinates are obtained. Any second coordinate among the second coordinates corresponds to a pose, and any second coordinate is the coordinate of the center of the calibration element in the sensor coordinate system when the end of the robotic arm is in the corresponding pose; according to the first coordinate, at least two The second coordinates, the pose corresponding to any second coordinate and the second transformation matrix between the terminal coordinate system and the base coordinate system are solved to obtain the first transformation matrix.
在示例性实施例中,根据目标图像获取焊接处对应的目标起点坐标和目标终点坐标,包括:从目标图像中确定焊接处所在的区域;基于焊接处所在的区域包括反光像素,根据反光像素周围的其他像素将反光像素更新为非反光像素,得到更新后的目标图像,反光像素为焊接处的反光部分对应的像素;根据更新后的目标图像获取目标起点坐标和目标终点坐标。In an exemplary embodiment, obtaining the target starting point coordinates and the target end point coordinates corresponding to the welding point based on the target image includes: determining the area where the welding point is located from the target image; based on the area where the welding point is located including reflective pixels, based on the surrounding areas of the reflective pixels The other pixels update the reflective pixels to non-reflective pixels to obtain the updated target image. The reflective pixels are the pixels corresponding to the reflective part of the welding joint; the target starting point coordinates and the target end point coordinates are obtained according to the updated target image.
在示例性实施例中,方法还包括:根据目标图像获取焊接处的特征信息,根据特征信息确定焊接方式,特征信息包括连接形式、连接情况和连接间隙中的至少一种信息;控制机械臂的末端从目标起点坐标焊接至目标终点坐标,包括:控制机械臂的末端按照焊接方式从目标起点坐标焊接至目标终点坐标。In an exemplary embodiment, the method further includes: obtaining the characteristic information of the welding place according to the target image, and determining the welding method according to the characteristic information, where the characteristic information includes at least one of connection form, connection situation and connection gap; controlling the mechanical arm. Welding the end from the target starting point coordinates to the target end point coordinates includes: controlling the end of the robotic arm to weld from the target starting point coordinates to the target end point coordinates in a welding manner.
在示例性实施例中,特征信息包括连接间隙,根据特征信息确定焊接方式,包括:基于连接间隙小于第一数值,确定焊接方式为脉冲式焊接;或者,基于连接间隙大于或等于第一数值且小于第二数值,确定焊接方式为摆动式焊接,第二数值大于第一数值。In an exemplary embodiment, the characteristic information includes a connection gap, and determining the welding mode according to the characteristic information includes: determining that the welding mode is pulse welding based on the connection gap being less than a first value; or, determining that the welding mode is pulse welding based on the connection gap being greater than or equal to the first value and If it is less than the second value, it is determined that the welding method is swing welding, and the second value is greater than the first value.
一方面,提供了一种焊接装置,装置应用于焊接系统包括的电子设备,焊接系统还包括机械臂和固定于机械臂的视觉传感器,装置包括:On the one hand, a welding device is provided. The device is applied to electronic equipment included in the welding system. The welding system also includes a robotic arm and a visual sensor fixed to the robotic arm. The device includes:
第一控制模块,用于控制视觉传感器获取焊接处对应的目标图像;The first control module is used to control the visual sensor to obtain the target image corresponding to the welding joint;
获取模块,用于根据目标图像获取焊接处对应的目标起点坐标和目标终点坐标;The acquisition module is used to obtain the target starting point coordinates and target end point coordinates corresponding to the welding joint based on the target image;
第二控制模块,用于控制机械臂的末端从目标起点坐标焊接至目标终点坐标。The second control module is used to control the end of the robotic arm to be welded from the target starting point coordinates to the target end point coordinates.
在示例性实施例中,目标图像由视觉传感器在机械臂的末端位于初始坐标的情况下获取,初始坐标包括初始起点坐标和初始终点坐标;In an exemplary embodiment, the target image is acquired by the vision sensor when the end of the robotic arm is located at initial coordinates, and the initial coordinates include initial starting point coordinates and initial end point coordinates;
获取模块,还用于确定初始起点坐标与目标起点坐标之间的第一偏移量,确定初始终点坐标与目标终点坐标之间的第二偏移量;根据第一偏移量和第二偏移量确定移动方式,按照移动方式控制机械臂的末端从初始起点坐标移动至目标起点坐标。The acquisition module is also used to determine the first offset between the initial starting point coordinates and the target starting point coordinates, and determine the second offset between the initial end point coordinates and the target end point coordinates; according to the first offset and the second offset The displacement determines the movement mode, and the end of the robotic arm is controlled to move from the initial starting point coordinates to the target starting point coordinates according to the movement mode.
在示例性实施例中,目标起点坐标和目标终点坐标为机械臂的末端对应的末端坐标系下的坐标;In an exemplary embodiment, the target starting point coordinates and the target end point coordinates are coordinates in an end coordinate system corresponding to the end of the robotic arm;
获取模块,用于根据末端坐标系与传感器坐标系之间的第一转换矩阵将参考起点坐标转换为目标起点坐标,根据第一转换矩阵将参考终点坐标转换为目标终点坐标。The acquisition module is configured to convert the reference starting point coordinates into the target starting point coordinates according to the first transformation matrix between the terminal coordinate system and the sensor coordinate system, and convert the reference end point coordinates into the target end point coordinates according to the first transformation matrix.
在示例性实施例中,获取模块,还用于获取第一坐标和至少两个第二坐标,第一坐标为标定元件的中心在机械臂的基座对应的基座坐标系下的坐标,至少两个第二坐标中的任意一个第二坐标对应一个位姿,任意一个第二坐标为机械臂的末端处于对应的位姿时标定元件的中心在传感器坐标系下的坐标;根据第一坐标、至少两个第二坐标、任意一个第二坐标对应的位姿和末端坐标系与基座坐标系之间的第二转换矩阵,求解得到第一转换矩阵。In an exemplary embodiment, the acquisition module is also configured to acquire a first coordinate and at least two second coordinates. The first coordinate is the coordinate of the center of the calibration element in a base coordinate system corresponding to the base of the robotic arm, at least Any one of the two second coordinates corresponds to a pose, and any second coordinate is the coordinate of the center of the calibration element in the sensor coordinate system when the end of the robotic arm is in the corresponding pose; according to the first coordinate, The first transformation matrix is obtained by solving at least two second coordinates, the posture corresponding to any one of the second coordinates, and the second transformation matrix between the terminal coordinate system and the base coordinate system.
在示例性实施例中,获取模块,用于从目标图像中确定焊接处所在的区域;基于焊接处所在的区域包括反光像素,根据反光像素周围的其他像素将反光像素更新为非反光像素,得到更新后的目标图像,反光像素为焊接处的反光部分对应的像素;根据更新后的目标图像获取目标起点坐标和目标终点坐标。In an exemplary embodiment, the acquisition module is used to determine the area where the welding place is located from the target image; based on the area where the welding place is located includes reflective pixels, and updates the reflective pixels to non-reflective pixels based on other pixels around the reflective pixel, obtaining In the updated target image, the reflective pixels are the pixels corresponding to the reflective part of the welding joint; the target starting point coordinates and the target end point coordinates are obtained according to the updated target image.
在示例性实施例中,获取模块,还用于根据目标图像获取焊接处的特征信息,根据特征信息确定焊接方式,特征信息包括连接形式、连接情况和连接间隙中的至少一种信息;In an exemplary embodiment, the acquisition module is further configured to obtain the characteristic information of the welding place according to the target image, and determine the welding method according to the characteristic information, where the characteristic information includes at least one of connection form, connection situation and connection gap;
第二控制模块,用于控制机械臂的末端按照焊接方式从目标起点坐标焊接至目标终点坐标。The second control module is used to control the end of the robotic arm to be welded from the target starting point coordinates to the target end point coordinates in a welding manner.
在示例性实施例中,特征信息包括连接间隙,获取模块,用于基于连接间隙小于第一数值,确定焊接方式为脉冲式焊接;或者,基于连接间隙大于或等于第一数值且小于第二数值,确定焊接方式为摆动式焊接,第二数值大于第一数值。In an exemplary embodiment, the characteristic information includes a connection gap, and the acquisition module is configured to determine that the welding method is pulse welding based on the connection gap being less than a first value; or, based on the connection gap being greater than or equal to the first value and less than a second value , it is determined that the welding method is swing welding, and the second value is greater than the first value.
本申请实施例由于控制视觉传感器获取了焊接处的目标图像,因而可以根据目标图像准确的确定目标起点坐标和目标终点坐标,实现了对焊接处的位置 的准确识别。之后,控制机械臂的末端从目标起点坐标焊接至目标终点坐标,即可实现对焊接处的焊接,保证了焊接精度,并且提高了焊接质量。In the embodiment of the present application, since the visual sensor is controlled to obtain the target image of the welding point, the target starting point coordinates and the target end point coordinates can be accurately determined based on the target image, thereby achieving accurate identification of the position of the welding point. After that, the end of the robotic arm is controlled to be welded from the target starting point coordinates to the target end point coordinates, so that the welding point can be welded, ensuring the welding accuracy and improving the welding quality.
一方面,提供一种铝合金自动弧焊方法,包括以下步骤:采集铝合金自动弧焊过程中的视觉数据;根据视觉数据识别实焊工件的实际焊缝位置,并计算当前焊缝的实际焊缝间隙,且检测实际焊缝间隙与焊接之前的初始焊缝间隙是否一致;以及在检测到实际焊缝间隙与初始焊缝间隙不一致时,重新匹配实际间隙对应的目标焊接参数,并引导弧焊机器人移动至实际焊缝位置对应的工作位置后,基于目标焊接参数控制弧焊机器人对实际焊接工件执行焊接动作。On the one hand, an aluminum alloy automatic arc welding method is provided, including the following steps: collecting visual data during the aluminum alloy automatic arc welding process; identifying the actual welding seam position of the actual welding workpiece based on the visual data, and calculating the actual welding seam position of the current welding seam. and detect whether the actual weld gap is consistent with the initial weld gap before welding; and when it is detected that the actual weld gap is inconsistent with the initial weld gap, re-match the target welding parameters corresponding to the actual gap and guide the arc welding After the robot moves to the working position corresponding to the actual welding seam position, the arc welding robot is controlled to perform welding actions on the actual welding workpiece based on the target welding parameters.
可选地,在本申请的一个实施例中,在采集铝合金自动弧焊过程中的视觉数据之前,还包括:将弧焊机器人的机械手基坐标系、机械手末端工具坐标系与设置于弧焊机器人上的线结构光视觉传感器的线扫描仪坐标系进行坐标转换,得到手眼标定转换关系。Optionally, in one embodiment of the present application, before collecting the visual data during the automatic arc welding process of the aluminum alloy, it also includes: converting the manipulator base coordinate system of the arc welding robot, the manipulator end tool coordinate system and the coordinate system set in the arc welding robot. The line scanner coordinate system of the line structured light vision sensor on the robot performs coordinate conversion to obtain the hand-eye calibration conversion relationship.
可选地,在本申请的一个实施例中,根据所述视觉数据识别实焊工件的实际焊缝位置,并计算当前焊缝的实际焊缝间隙,包括:获取所述视觉数据中的焊缝起点图像和焊缝终点图像;根据所述焊缝起点图像与所述焊缝终点图像模拟整条焊缝长度和位置,得到所述实际焊缝位置和所述实际焊缝间隙。Optionally, in one embodiment of the present application, identifying the actual weld position of the actually welded workpiece according to the visual data and calculating the actual weld gap of the current weld includes: obtaining the weld in the visual data The starting point image and the welding seam end point image; the entire welding seam length and position are simulated according to the welding seam starting point image and the welding seam end point image, and the actual welding seam position and the actual welding seam gap are obtained.
可选地,在本申请的一个实施例中,所述重新匹配所述实际间隙对应的目标焊接参数,包括:查找激光轮廓信息中定位接头特征位置;基于所述手眼标定转换关系,计算所述接头特征位置在所述机器手基坐标系下的三维坐标位置;根据所述三维坐标位置计算示教位置与识别位置的距离,并根据接头形式与板间间隙匹配目标焊接工艺,得到所述目标焊接参数。Optionally, in one embodiment of the present application, the rematching of the target welding parameters corresponding to the actual gap includes: finding the position of the joint feature in the laser profile information; calculating the The three-dimensional coordinate position of the joint characteristic position in the robot hand-based coordinate system; calculate the distance between the teaching position and the identification position according to the three-dimensional coordinate position, and match the target welding process according to the joint form and the gap between the plates to obtain the target Welding parameters.
可选地,在本申请的一个实施例中,所述引导弧焊机器人移动至所述实际焊缝位置对应的工作位置,包括:扫描实际焊缝位置,分别得到焊缝起点和焊缝终点的坐标值信息;根据所述焊缝起点和焊缝终点的坐标值信息计算所述弧焊机器人的TCP(Tool Center Position,传输控制协议)位置坐标;基于所述TCP位置坐标引导所述弧焊机器人进行焊接。Optionally, in one embodiment of the present application, the guiding the arc welding robot to move to the working position corresponding to the actual welding seam position includes: scanning the actual welding seam position to obtain the starting point and end point of the welding seam respectively. Coordinate value information; calculate the TCP (Tool Center Position, Transmission Control Protocol) position coordinates of the arc welding robot based on the coordinate value information of the welding seam starting point and the welding seam end point; guide the arc welding robot based on the TCP position coordinates Perform welding.
一方面,提供一种铝合金自动弧焊装置,包括:采集模块,用于采集铝合金自动弧焊过程中的视觉数据;计算模块,用于根据所述视觉数据识别实焊工件的实际焊缝位置,并计算当前焊缝的实际焊缝间隙,且检测所述实际焊缝间隙与焊接之前的初始焊缝间隙是否一致;以及焊接模块,用于在检测到所述实际焊缝间隙与所述初始焊缝间隙不一致时,重新匹配所述实际间隙对应的目标焊接参数, 并引导弧焊机器人移动至所述实际焊缝位置对应的工作位置后,基于所述目标焊接参数控制弧焊机器人对所述实焊工件执行焊接动作。On the one hand, an aluminum alloy automatic arc welding device is provided, including: a collection module for collecting visual data during the aluminum alloy automatic arc welding process; and a calculation module for identifying actual weld seams of actual welded workpieces based on the visual data. position, and calculate the actual weld gap of the current weld, and detect whether the actual weld gap is consistent with the initial weld gap before welding; and a welding module for detecting that the actual weld gap is consistent with the When the initial weld gap is inconsistent, the target welding parameters corresponding to the actual gap are re-matched, and after the arc welding robot is guided to move to the working position corresponding to the actual weld position, the arc welding robot is controlled based on the target welding parameters to Describe the welding action performed on the actual welding workpiece.
可选地,在本申请的一个实施例中,还包括:转换模块,用于将所述弧焊机器人的机械手基坐标系、机械手末端工具坐标系与设置于所述弧焊机器人上的线结构光视觉传感器的线扫描仪坐标系进行坐标转换,得到手眼标定转换关系。Optionally, in one embodiment of the present application, it also includes: a conversion module for converting the manipulator base coordinate system of the arc welding robot, the manipulator end tool coordinate system and the line structure provided on the arc welding robot. The line scanner coordinate system of the light vision sensor performs coordinate conversion to obtain the hand-eye calibration conversion relationship.
可选地,在本申请的一个实施例中,所述计算模块包括:第一获取单元,用于获取所述视觉数据中的焊缝起点图像和焊缝终点图像;第二获取单元,用于根据所述焊缝起点图像与所述焊缝终点图像模拟整条焊缝长度和位置,得到所述实际焊缝位置和所述实际焊缝间隙。Optionally, in one embodiment of the present application, the calculation module includes: a first acquisition unit, used to acquire the welding seam starting point image and the welding seam end point image in the visual data; a second acquiring unit, used to obtain the welding seam starting point image and the welding seam end point image in the visual data; The entire weld length and position are simulated based on the weld starting point image and the welding end point image to obtain the actual welding seam position and the actual welding seam gap.
可选地,在本申请的一个实施例中,所述焊接模块包括:查找单元,用于查找激光轮廓信息中定位接头特征位置;第一计算单元,用于基于所述手眼标定转换关系,计算所述接头特征位置在所述机器手基坐标系下的三维坐标位置;匹配单元,用于根据所述三维坐标位置计算示教位置与识别位置的距离,并根据接头形式与板间间隙匹配目标焊接工艺,得到所述目标焊接参数。Optionally, in one embodiment of the present application, the welding module includes: a search unit, used to search for the position of the joint feature in the laser profile information; a first calculation unit, used to calculate based on the hand-eye calibration conversion relationship The three-dimensional coordinate position of the joint characteristic position in the robot hand base coordinate system; a matching unit used to calculate the distance between the teaching position and the identification position according to the three-dimensional coordinate position, and match the target according to the joint form and the gap between the plates welding process to obtain the target welding parameters.
可选地,在本申请的一个实施例中,所述焊接模块还包括:扫描单元,用于扫描实际焊缝位置,分别得到焊缝起点和焊缝终点的坐标值信息;第二计算单元,用于根据所述焊缝起点和焊缝终点的坐标值信息计算所述弧焊机器人的TCP位置坐标;焊接单元,用于基于所述TCP位置坐标引导所述弧焊机器人进行焊接。Optionally, in one embodiment of the present application, the welding module further includes: a scanning unit, used to scan the actual weld position to obtain the coordinate value information of the weld starting point and the weld end point respectively; a second calculation unit, and a welding unit configured to guide the arc welding robot to perform welding based on the TCP position coordinates.
一方面,提供一种车辆,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序,以实现如上述实施例所述的铝合金自动弧焊方法或者焊接方法。On the one hand, a vehicle is provided, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor executes the program to implement the above embodiments. The aluminum alloy automatic arc welding method or welding method described above.
另一方面,提供一种计算机可读存储介质,所述计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行如上述实施例所述的铝合金自动弧焊方法或者焊接方法。On the other hand, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions. The computer instructions are used to cause the computer to execute the aluminum alloy automatic arc welding method or welding method as described in the above embodiment. method.
本申请实施例可以采集铝合金自动弧焊过程中的视觉数据,进而识别实际焊缝位置,计算实际焊缝间隙,进而匹配目标焊接参数,并根据焊接过程中的焊缝变化,自行调用匹配目标焊接参数,从而引导弧焊机器人在对应位置执行焊接动作,使得弧焊机器人在因焊接热变形和累积公差产生的不均匀焊缝间隙的情况下,仍能精准快速找到焊接位置,可以有效提高焊接过程的自动化水平,提高焊接质量,无需人工从旁辅助检测焊缝位置并设置参数,从而降低人工成本,杜 绝人为判断失误造成的事故损失。Embodiments of this application can collect visual data during the automatic arc welding process of aluminum alloys, and then identify the actual weld position, calculate the actual weld gap, and then match the target welding parameters, and automatically call the matching target according to the weld changes during the welding process. Welding parameters, thereby guiding the arc welding robot to perform welding actions at the corresponding position, so that the arc welding robot can still accurately and quickly find the welding position despite uneven weld gaps caused by welding thermal deformation and accumulated tolerances, which can effectively improve welding The automation level of the process improves the welding quality. There is no need for manual assistance to detect the weld position and set parameters, thereby reducing labor costs and eliminating accident losses caused by human judgment errors.
由此,解决了相关技术中由于对焊缝位置的扫描受限,无法实时把控焊接过程中的焊缝变化,使得自动弧焊无法在焊接过程中精准快速找到变化后的焊缝位置,从而影响焊接质量,增加人工成本的技术问题。This solves the problem in related technologies that due to the limited scanning of the weld position, the inability to control the weld changes in the welding process in real time makes the automatic arc welding unable to accurately and quickly find the changed weld position during the welding process, thus Technical issues that affect welding quality and increase labor costs.
附图说明Description of the drawings
图1为根据本申请实施例提供的一种铝合金自动弧焊方法的流程图;Figure 1 is a flow chart of an aluminum alloy automatic arc welding method provided according to an embodiment of the present application;
图2为根据本申请一个实施例的铝合金自动弧焊方法的原理示意图;Figure 2 is a schematic diagram of the principle of an aluminum alloy automatic arc welding method according to an embodiment of the present application;
图3为根据本申请一个实施例的铝合金自动弧焊方法的扫描示意图;Figure 3 is a scanning schematic diagram of an aluminum alloy automatic arc welding method according to an embodiment of the present application;
图4为根据本申请一个实施例的铝合金自动弧焊方法的自适应选取焊接工法的逻辑流程图;Figure 4 is a logic flow chart of the adaptive selection of the welding method of the aluminum alloy automatic arc welding method according to one embodiment of the present application;
图5为根据本申请一个实施例的铝合金自动弧焊方法的流程图;Figure 5 is a flow chart of an aluminum alloy automatic arc welding method according to an embodiment of the present application;
图6为本申请实施例提供的一种焊接系统的结构示意图;Figure 6 is a schematic structural diagram of a welding system provided by an embodiment of the present application;
图7为本申请实施例提供的另一种焊接系统的结构示意图;Figure 7 is a schematic structural diagram of another welding system provided by an embodiment of the present application;
图8为本申请实施例提供的一种焊接方法的流程图;Figure 8 is a flow chart of a welding method provided by an embodiment of the present application;
图9为本申请实施例提供的一种获取目标图像的示意图;Figure 9 is a schematic diagram of acquiring a target image provided by an embodiment of the present application;
图10为本申请实施例提供的一种确定焊接方式的流程图;Figure 10 is a flow chart for determining a welding method provided by an embodiment of the present application;
图11为根据本申请实施例提供的一种铝合金自动弧焊装置的结构示意图;Figure 11 is a schematic structural diagram of an aluminum alloy automatic arc welding device provided according to an embodiment of the present application;
图12为本申请实施例提供的一种焊接装置的结构示意图;Figure 12 is a schematic structural diagram of a welding device provided by an embodiment of the present application;
图13为根据本申请实施例提供的电子设备的结构示意图。Figure 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary and are intended to explain the present application, but should not be construed as limiting the present application.
下面参考附图描述本申请实施例的铝合金自动弧焊方法及装置。The aluminum alloy automatic arc welding method and device according to the embodiment of the present application will be described below with reference to the accompanying drawings.
金属材料的焊接过程极为复杂,影响焊接质量的因素众多,不仅外部存在不确定的干扰因素,还对工件的来件稳定性有严格要求,而用于金属材料的焊接机器人大多为示教再现型弧焊机器人,该类机器人性能稳定但对于焊接条件发生变化的情况不能有效处理,因此在金属材料自动弧焊过程中对于焊接质量的把 控显得尤为重要。The welding process of metal materials is extremely complex, and there are many factors that affect the welding quality. Not only are there external uncertain interference factors, but there are also strict requirements for the stability of the incoming workpiece. Most of the welding robots used for metal materials are teaching and reproducing types. Arc welding robots have stable performance but cannot effectively handle changes in welding conditions. Therefore, it is particularly important to control the welding quality during automatic arc welding of metal materials.
相关技术随着机器视觉在工业自动化领域的广泛应用,例如图像检测应用、视觉定位应用、物体测量应用等,使得机器人具备一定感知能力,其具有高度自动化、高效率、高精度和高适应性等优点,能有效提高金属材料自动弧焊的效率和质量。Related Technologies With the widespread application of machine vision in the field of industrial automation, such as image detection applications, visual positioning applications, object measurement applications, etc., robots have certain perception capabilities, which are highly automated, efficient, precise and adaptable. Advantages, it can effectively improve the efficiency and quality of automatic arc welding of metal materials.
然而,相关技术中针对金属材料焊接中焊接机器人焊缝视觉寻位引导的检测方法原理大致相同,性能参差不齐,设备本身体积较大,且安装后机器人激光扫描姿势受限,无法应对金属材料材质高反光干扰,无法识别焊缝接头形式多样,无法处理焊接过程中,因焊接热变形和累积公差产生的不均匀焊缝间隙,使得自动弧焊无法精准快速找到焊接位置,亟需改善。However, in related technologies, the detection methods for welding robot welding seam visual positioning guidance in metal material welding have roughly the same principle, with uneven performance. The equipment itself is large, and the laser scanning posture of the robot after installation is limited, making it unable to deal with metal materials. The material is highly reflective and interferes with the ability to identify the various forms of weld joints. It cannot handle the uneven weld gaps caused by welding thermal deformation and accumulated tolerances during the welding process, making it impossible for automatic arc welding to accurately and quickly find the welding position, which needs improvement.
针对相关技术中由于对焊缝位置的扫描受限,无法实时把控焊接过程中的焊缝变化,使得自动弧焊无法在焊接过程中精准快速找到变化后的焊缝位置,从而影响焊接质量,增加人工成本的技术问题,本申请提供了一种铝合金自动弧焊方法。Due to the limited scanning of the weld position in related technologies, it is impossible to control the weld changes in the welding process in real time, making it impossible for automatic arc welding to accurately and quickly find the changed weld position during the welding process, thus affecting the welding quality. To solve the technical problem of increasing labor costs, this application provides an aluminum alloy automatic arc welding method.
在该方法中,可以采集铝合金自动弧焊过程中的视觉数据,进而识别实际焊缝位置,计算实际焊缝间隙,进而匹配目标焊接参数,并根据焊接过程中的焊缝变化,自行调用匹配目标焊接参数,从而引导弧焊机器人在对应位置执行焊接动作,使得弧焊机器人在因焊接热变形和累积公差产生的不均匀焊缝间隙的情况下,仍能精准快速找到焊接位置,可以有效提高焊接过程的自动化水平,提高焊接质量,无需人工从旁辅助检测焊缝位置并设置参数,从而降低人工成本,杜绝人为判断失误造成的事故损失。In this method, visual data during the automatic arc welding process of aluminum alloy can be collected to identify the actual weld position, calculate the actual weld gap, and then match the target welding parameters, and automatically call the matching according to the weld changes during the welding process. The target welding parameters are used to guide the arc welding robot to perform welding actions at the corresponding position, so that the arc welding robot can still accurately and quickly find the welding position despite uneven weld gaps caused by welding thermal deformation and accumulated tolerances, which can effectively improve The automation level of the welding process improves the welding quality. There is no need for manual assistance to detect the weld position and set parameters, thereby reducing labor costs and eliminating accident losses caused by human judgment errors.
由此,解决了相关技术中由于对焊缝位置的扫描受限,无法实时把控焊接过程中的焊缝变化,使得自动弧焊无法在焊接过程中精准快速找到变化后的焊缝位置,从而影响焊接质量,增加人工成本的技术问题。This solves the problem in related technologies that due to the limited scanning of the weld position, the inability to control the weld changes in the welding process in real time makes the automatic arc welding unable to accurately and quickly find the changed weld position during the welding process, thus Technical issues that affect welding quality and increase labor costs.
图1为本申请实施例所提供的一种铝合金自动弧焊方法的流程示意图。Figure 1 is a schematic flow chart of an aluminum alloy automatic arc welding method provided by an embodiment of the present application.
如图1所示,该铝合金自动弧焊方法包括以下步骤:As shown in Figure 1, the aluminum alloy automatic arc welding method includes the following steps:
在步骤S101中,采集铝合金自动弧焊过程中的视觉数据。In step S101, visual data during the automatic arc welding process of aluminum alloy is collected.
在实际执行过程中,如图2所示,本申请实施例可以将线结构光视觉传感器安装在机械臂末端执行器如焊枪上,从而保证线结构光在焊枪运动轨迹视野范围内不受干涉,即保证焊枪上360°范围内任一位置焊缝无遮挡。In the actual execution process, as shown in Figure 2, the embodiment of the present application can install the line structured light vision sensor on the end effector of the robot arm such as a welding gun, thereby ensuring that the line structured light is not interfered within the field of view of the welding gun's motion trajectory. That is to ensure that there is no obstruction to the welding seam at any position within 360° on the welding gun.
进一步地,本申请实施例可以通过上述线结构光视觉传感器采集铝合金自 动弧焊过程中的无遮挡的视觉数据,便于后续对焊缝位置进行判断,从而实现弧焊自动化,杜绝焊接热变形导致的焊缝位置不准确。Furthermore, embodiments of the present application can collect unobstructed visual data during the automatic arc welding process of aluminum alloy through the above-mentioned line structured light vision sensor, which facilitates subsequent judgment of the weld position, thereby realizing arc welding automation and eliminating welding thermal deformation. The weld position is inaccurate.
可选地,在本申请的一个实施例中,在采集铝合金自动弧焊过程中的视觉数据之前,还包括:将弧焊机器人的机械手基坐标系、机械手末端工具坐标系与设置于弧焊机器人上的线结构光视觉传感器的线扫描仪坐标系进行坐标转换,得到手眼标定转换关系。Optionally, in one embodiment of the present application, before collecting the visual data during the automatic arc welding process of the aluminum alloy, it also includes: converting the manipulator base coordinate system of the arc welding robot, the manipulator end tool coordinate system and the coordinate system set in the arc welding robot. The line scanner coordinate system of the line structured light vision sensor on the robot performs coordinate conversion to obtain the hand-eye calibration conversion relationship.
作为一种可能实现的方式,本申请实施例可以采用一个直径已知的高精度标准球作为弧焊机器人与线结构光视觉传感器之间的手眼标定靶物,如25mm标准圆球,以球心为标定点,将弧焊机器人的机械手基坐标系、机械手末端工具坐标系与设置于弧焊机器人上的线结构光视觉传感器的线扫描仪坐标系进行坐标转换,从而计算得到手眼标定转换关系。As a possible implementation method, the embodiment of the present application can use a high-precision standard ball with a known diameter as the hand-eye calibration target between the arc welding robot and the line structured light vision sensor, such as a 25mm standard ball, with the center of the ball As the calibration point, coordinate transformation is performed between the manipulator base coordinate system of the arc welding robot, the manipulator end tool coordinate system, and the line scanner coordinate system of the line structured light vision sensor installed on the arc welding robot, thereby calculating the hand-eye calibration conversion relationship.
示例性地,本申请实施例可以以已知直径的高精度标准圆球作为手眼标定靶物,球心为标定点,弧焊机器人末端可以以任意姿态移动,通过激光平面切割标准球,使得切面圆成一条圆弧形轮廓点。For example, in the embodiment of the present application, a high-precision standard ball with a known diameter can be used as a hand-eye calibration target, and the center of the ball is the calibration point. The end of the arc welding robot can move in any posture, and the standard ball is cut by a laser plane, so that the cut surface Circle into an arc-shaped outline point.
进一步地,通过该圆弧,本申请实施例可以拟合出圆心与半径,再根据拟合圆心与球心共线以及勾股定理,可获得在当前线结构光视觉传感器的线扫描仪(x,y,z)位置中球心的y值。Further, through the arc, the embodiment of the present application can fit the center and radius of the circle, and then according to the collinearity of the fitting center and the center of the sphere and the Pythagorean theorem, the line scanner (x of the current line structured light vision sensor) can be obtained , y, z) The y value of the center of the sphere at the position.
可以理解的是,在手眼标定过程中,存在有三个坐标系:机械手基坐标系{0 b},机械手末端工具坐标系{0 t}和线结构光视觉传感器的线扫描仪坐标系{0 s}。其中,任意一点在线扫描仪下的坐标到机械手基坐标系下的坐标可以转换为: It can be understood that during the hand-eye calibration process, there are three coordinate systems: the manipulator base coordinate system {0 b }, the manipulator end tool coordinate system {0 t }, and the line scanner coordinate system {0 s of the line structured light vision sensor }. Among them, the coordinates of any point under the online scanner to the coordinates under the robot base coordinate system can be converted into:
Figure PCTCN2022129002-appb-000001
Figure PCTCN2022129002-appb-000001
其中,Ps为当前扫描仪的某一点,Pb为Ps在基坐标系下一点,具有上述转换关系,弧焊机器人可以直接获取从{0 t}到{0 b}的转换矩阵
Figure PCTCN2022129002-appb-000002
Figure PCTCN2022129002-appb-000003
即为需要标定的转换矩阵,求解X的过程即为手眼标定。
Among them, Ps is a certain point of the current scanner, and Pb is a point under Ps in the base coordinate system. With the above conversion relationship, the arc welding robot can directly obtain the conversion matrix from {0 t } to {0 b }
Figure PCTCN2022129002-appb-000002
Figure PCTCN2022129002-appb-000003
That is the transformation matrix that needs to be calibrated, and the process of solving X is hand-eye calibration.
本申请实施例可以通过控制机器人使线结构光视觉传感器的线扫描仪以不同姿态获取固定点在线结构光视觉传感器的线扫描仪坐标系下的目标测量范围内的位置坐标,通过一定求解方法解算出激光器与机器人的位置关系,可以实现线结构光视觉传感器的线扫描仪与弧焊机器人之间位置关系的手眼标定。Embodiments of the present application can control the robot to make the line scanner of the line structured light vision sensor obtain the position coordinates of the fixed point within the target measurement range in the coordinate system of the line scanner of the line structured light vision sensor in different postures, and solve the problem through a certain solution method. Calculating the positional relationship between the laser and the robot can achieve hand-eye calibration of the positional relationship between the line scanner of the line structured light vision sensor and the arc welding robot.
在实际应用中,举例而言,手眼标定的标定流程可以包括以下步骤:In practical applications, for example, the calibration process of hand-eye calibration can include the following steps:
1、将标定所用的标准直径的球放置在机械手下方某个平面上,尽可能安全 区域,防止摔落损坏;1. Place the standard diameter ball used for calibration on a flat surface below the manipulator in as safe an area as possible to prevent damage from falling;
2、手动控制机械手,使得激光线打在球上,保证球心在测量仪坐标系下的Y坐标为正值;2. Manually control the manipulator so that the laser line hits the ball to ensure that the Y coordinate of the ball center in the coordinate system of the measuring instrument is positive;
3、打开软件连接设备后,进入到标定界面,记录一次轮廓和此时对应的机械手坐标,此时标定计算列表中会显示出当前状态下的球切面轮廓所得球心和机械手UVWXYZ坐标值;3. After opening the software and connecting to the device, enter the calibration interface and record the contour and the corresponding manipulator coordinates at this time. At this time, the calibration calculation list will display the sphere center and manipulator UVWXYZ coordinate values obtained from the spherical section profile in the current state;
4、任意改变机械手姿态及位置(UVWXYZ值),重复2-3步骤多次,得到对应的轮廓和机械手坐标;4. Randomly change the attitude and position of the manipulator (UVWXYZ value), repeat steps 2-3 several times to obtain the corresponding contour and manipulator coordinates;
5、获取足够多的数据后,根据注意点事项对数据增删,在软件上点击计算手眼标定矩阵按钮,利用采集到的数据计算出坐标转换矩阵,可以重复导入计算结果并计算。5. After obtaining enough data, add or delete the data according to the precautions, click the Calculate Hand-Eye Calibration Matrix button on the software, and use the collected data to calculate the coordinate transformation matrix. You can repeatedly import the calculation results and calculate.
在步骤S102中,根据视觉数据识别实焊工件的实际焊缝位置,并计算当前焊缝的实际焊缝间隙,且检测实际焊缝间隙与焊接之前的初始焊缝间隙是否一致。In step S102, the actual welding seam position of the actually welded workpiece is identified based on the visual data, the actual welding seam gap of the current welding seam is calculated, and whether the actual welding seam gap is consistent with the initial welding seam gap before welding is detected.
在实际执行过程中,本申请实施例可以根据采集获得的视觉数据,识别实焊工件的实际焊缝位置,进而计算当前焊缝的实际焊缝间隙,并在焊接作业过程中,实时检测实际焊缝间隙,避免因焊接热变形造成的焊缝变形,导致实际焊缝位置与初始焊缝位置产生偏移,从而影响实际焊接效果,可以提高铝合金弧焊的自动化水平,避免焊接热变形对焊接质量的影响,减少人工参与,进而减少人工成本,避免因人为因素导致的事故损失,有利于工业生产。During the actual execution process, the embodiments of the present application can identify the actual welding seam position of the actual welded workpiece based on the collected visual data, and then calculate the actual welding seam gap of the current welding seam, and detect the actual welding seam in real time during the welding operation. seam gap to avoid welding seam deformation caused by welding thermal deformation, causing the actual welding seam position to deviate from the initial welding seam position, thus affecting the actual welding effect. It can improve the automation level of aluminum alloy arc welding and avoid welding thermal deformation on the welding. The impact on quality can reduce manual participation, thereby reducing labor costs and avoiding accident losses caused by human factors, which is beneficial to industrial production.
可选地,在本申请的一个实施例中,根据视觉数据识别实焊工件的实际焊缝位置,并计算当前焊缝的实际焊缝间隙,包括:获取视觉数据中的焊缝起点图像和焊缝终点图像;根据焊缝起点图像与焊缝终点图像模拟整条焊缝长度和位置,得到实际焊缝位置和实际焊缝间隙。Optionally, in one embodiment of the present application, identifying the actual weld position of the actually welded workpiece according to the visual data and calculating the actual weld gap of the current weld includes: obtaining the weld starting point image and the welding seam in the visual data. seam end point image; simulate the entire weld length and position based on the weld start point image and weld end point image to obtain the actual weld seam position and actual weld seam gap.
示例性地,本申请实施例可以根据采集到的视觉数据,示教弧焊机器人分别到达焊缝接近点位置和焊缝收弧位置,并调整合适的扫描角度,采用激光视觉传感器,对焊缝的起点和终点图像进行扫描,并根据扫描结果,计算获得实际焊缝位置和实际焊缝间隙。Illustratively, the embodiment of the present application can teach the arc welding robot to reach the welding seam approach point position and the welding seam arc closing position respectively based on the collected visual data, and adjust the appropriate scanning angle, and use the laser vision sensor to detect the welding seam. Scan the starting point and end point images, and calculate the actual weld position and actual weld gap based on the scan results.
举例而言,如图3所示,本申请实施例可以通过对焊缝的起点和终点图像进行扫描,获取焊缝起弧位置,进而获取该点的线结构光视觉传感器的线扫描仪坐标下三维坐标(X 1,Y 1,Z 1),移动弧焊机器人至焊缝收弧位置,再次调整合适的 扫描角度对收弧点进行扫描,获得该点的线结构光视觉传感器的线扫描仪坐标下三维坐标(X 2,Y 2,Z 2),并通过手眼标定的结果,将这两点坐标转换成机器人坐标系下的三维坐标(x 1,y 1,z 1)和(x 2,y 2,z 2),通过计算起弧点与收弧点的坐标差值D 1,D 2,即偏移量: For example, as shown in Figure 3, the embodiment of the present application can obtain the arc starting position of the weld seam by scanning the starting point and end point images of the weld seam, and then obtain the line scanner coordinates of the line structured light vision sensor at that point. Three-dimensional coordinates (X 1 , Y 1 , Z 1 ), move the arc welding robot to the closing arc position of the welding seam, adjust the appropriate scanning angle again to scan the closing arc point, and obtain the line structure of the point. Line scanner of light vision sensor The three-dimensional coordinates (X 2 , Y 2 , Z 2 ) under the coordinate system are converted into three-dimensional coordinates (x 1 , y 1 , z 1 ) and (x 2 ) under the robot coordinate system through the results of hand-eye calibration. ,y 2 ,z 2 ), by calculating the coordinate difference D 1 , D 2 between the arc starting point and the arc ending point, that is, the offset:
Figure PCTCN2022129002-appb-000004
Figure PCTCN2022129002-appb-000004
Figure PCTCN2022129002-appb-000005
Figure PCTCN2022129002-appb-000005
得到将进行引导的起弧坐标位置(X 3,Y 3,Z 3)和收弧坐标位置(X 5,Y 4,Z 4)。 Obtain the starting arc coordinate position (X 3 , Y 3 , Z 3 ) and arc closing coordinate position (X 5 , Y 4 , Z 4 ) that will be guided.
在步骤S103中,在检测到实际焊缝间隙与初始焊缝间隙不一致时,重新匹配实际间隙对应的目标焊接参数,并引导弧焊机器人移动至实际焊缝位置对应的工作位置后,基于目标焊接参数控制弧焊机器人对实焊工件执行焊接动作。In step S103, when it is detected that the actual weld gap is inconsistent with the initial weld gap, the target welding parameters corresponding to the actual gap are re-matched, and the arc welding robot is guided to move to the working position corresponding to the actual weld position, based on the target welding Parameters control the arc welding robot to perform welding actions on the actual welded workpiece.
作为一种可能实现的方式,本申请实施例可以根据实际焊缝间隙,匹配对应的目标焊缝参数,并引导弧焊机器人移动至实际焊缝位置对应的工作位置,根据目标焊缝参数,控制弧焊机器人对实焊工件执行焊接动作,并在检测到实际焊缝间隙与初始间隙不一致时,重新匹配实际间隙对应的目标参数,可以有效提高焊接过程的自动化水平,提高焊接质量,避免因焊接热变形导致的焊接质量下降,无需人工从旁辅助检测焊缝位置及焊缝间隙并设置参数,从而降低人工成本,杜绝人为判断失误造成的事故损失。As a possible implementation method, the embodiment of the present application can match the corresponding target weld parameters according to the actual weld gap, guide the arc welding robot to move to the working position corresponding to the actual weld position, and control the control according to the target weld parameters. The arc welding robot performs welding actions on the actual welding workpiece, and when it detects that the actual weld gap is inconsistent with the initial gap, it re-matches the target parameters corresponding to the actual gap, which can effectively improve the automation level of the welding process, improve the welding quality, and avoid welding defects. If the welding quality is reduced due to thermal deformation, there is no need for manual assistance to detect the weld position and weld gap and set parameters, thus reducing labor costs and eliminating accident losses caused by human judgment errors.
可选地,在本申请的一个实施例中,重新匹配实际间隙对应的目标焊接参数,包括:查找激光轮廓信息中定位接头特征位置;基于手眼标定转换关系,计算接头特征位置在机器手基坐标系下的三维坐标位置;根据三维坐标位置计算示教位置与识别位置的距离,并根据接头形式与板间间隙匹配目标焊接工艺,得到目标焊接参数。Optionally, in one embodiment of the present application, re-matching the target welding parameters corresponding to the actual gap includes: finding the joint characteristic position in the laser profile information; calculating the joint characteristic position in the robot hand-based coordinates based on the hand-eye calibration conversion relationship The three-dimensional coordinate position under the system is calculated; the distance between the teaching position and the identification position is calculated based on the three-dimensional coordinate position, and the target welding process is matched according to the joint form and the gap between the plates to obtain the target welding parameters.
示例性地,本申请是实施例可以预先设置接头的相关参数,以便后续建立相关数据库,进而利用改进的鲁棒性最小二乘直线拟合算法,结合差分检测方法,自动查找激光轮廓信息中定位接头的特征位置XYZ,并依据手眼标定关系,计算接头特征位置XYZ在机器人基坐标系下的三维坐标位置(X 0,Y 0,Z 0)。 Illustratively, the embodiment of this application can pre-set the relevant parameters of the joint so that the relevant database can be subsequently established, and then use the improved robust least squares straight line fitting algorithm, combined with the differential detection method, to automatically find the location in the laser profile information. The characteristic position XYZ of the joint, and based on the hand-eye calibration relationship, calculate the three-dimensional coordinate position (X 0 , Y 0 , Z 0 ) of the joint's characteristic position XYZ in the robot's base coordinate system.
进一步地,本申请实施例可以根据接头特征位置(X 0,Y 0,Z 0),计算示教位置与识别位置的距离,根据接头形式与板间间隙,得到目标焊接参数,选取合适的焊接工艺。 Further, the embodiment of the present application can calculate the distance between the teaching position and the identification position according to the joint characteristic position (X 0 , Y 0 , Z 0 ), obtain the target welding parameters according to the joint form and the gap between the plates, and select the appropriate welding Craftsmanship.
其中,接头特征识别参数可以包括:接头编号、位置名称、接头形式、接头方向、接头端点、接头范围分隔线、偏移量、示教点和图像屏蔽。Among them, the joint feature identification parameters may include: joint number, position name, joint form, joint direction, joint endpoint, joint range dividing line, offset, teaching point and image shielding.
可选地,在本申请的一个实施例中,引导弧焊机器人移动至实际焊缝位置对应的工作位置,包括:扫描实际焊缝位置,分别得到焊缝起点和焊缝终点的坐标值信息;根据焊缝起点和焊缝终点的坐标值信息计算弧焊机器人的TCP位置坐标;基于TCP位置坐标引导弧焊机器人进行焊接。Optionally, in one embodiment of the present application, guiding the arc welding robot to move to the working position corresponding to the actual welding seam position includes: scanning the actual welding seam position to obtain the coordinate value information of the welding seam starting point and the welding seam end point respectively; Calculate the TCP position coordinates of the arc welding robot based on the coordinate value information of the welding seam starting point and the welding seam end point; guide the arc welding robot to weld based on the TCP position coordinates.
在实际执行过程中,本申请实施例可以实时扫描实际焊缝位置,分别得到焊缝起点和焊缝终点的坐标值信息,并通过计算转化成机器人TCP位置坐标,如图4所示,本申请实施例可以利用TCP位置坐标,并通过TCP/IP网络传输至弧焊机器人,进而通过弧焊机器人的私服电机,带动驱动焊枪至引导焊缝位置,实施焊接作业。During the actual execution process, the embodiment of the present application can scan the actual welding seam position in real time, obtain the coordinate value information of the welding seam starting point and the welding seam end point respectively, and convert it into the robot TCP position coordinates through calculation, as shown in Figure 4. Embodiments can use TCP position coordinates and transmit them to the arc welding robot through the TCP/IP network, and then use the private motor of the arc welding robot to drive the welding gun to the guide welding seam position to perform the welding operation.
如图2至图5所示,以一个示例性的实施例对本申请实施例的铝合金自动弧焊方法的工作原理进行详细阐述。As shown in FIGS. 2 to 5 , an exemplary embodiment is used to explain in detail the working principle of the aluminum alloy automatic arc welding method according to the embodiment of the present application.
如图2所示,本申请实施例可以包括:线结构光视觉传感器1、弧焊机器人2、焊枪3、TCP/IP通讯网线4、视觉控制主机5、弧焊机器人焊接电源控制柜6和工件7。As shown in Figure 2, the embodiment of the present application may include: line structured light vision sensor 1, arc welding robot 2, welding gun 3, TCP/IP communication network cable 4, visual control host 5, arc welding robot welding power supply control cabinet 6 and workpiece 7.
如图5所示,以生产过程中对接焊缝,2mm均匀间隙焊缝为例,本申请实施例可以包括以下步骤:As shown in Figure 5, taking a butt weld and a 2mm uniform gap weld in the production process as an example, the embodiment of the present application may include the following steps:
步骤S501:采集视频数据。在实际执行过程中,如图2所示,本申请实施例可以将线结构光视觉传感器1安装在弧焊机器人2的机械臂末端执行器,即焊枪3上,从而保证线结构光在焊枪3运动轨迹视野范围内不受干涉,即保证焊枪3上360°范围内任一位置焊缝无遮挡。Step S501: Collect video data. In the actual execution process, as shown in Figure 2, the embodiment of the present application can install the line structured light vision sensor 1 on the end effector of the mechanical arm of the arc welding robot 2, that is, the welding gun 3, thereby ensuring that the line structured light is visible on the welding gun 3 There is no interference within the field of view of the motion trajectory, that is, the welding seam at any position within the 360° range of the welding gun 3 is guaranteed to be unobstructed.
进一步地,本申请实施例可以通过上述线结构光视觉传感器1采集铝合金自动弧焊过程中的无遮挡的视觉数据,便于后续对焊缝位置进行判断,从而实现弧焊自动化。Furthermore, the embodiment of the present application can collect unobstructed visual data during the automatic arc welding process of aluminum alloy through the above-mentioned line structured light vision sensor 1, so as to facilitate the subsequent judgment of the welding seam position, thereby realizing arc welding automation.
步骤S502:标准圆球手眼标定。作为一种可能实现的方式,本申请实施例可以采用一个直径已知的高精度标准球作为弧焊机器人2与线结构光视觉传感器1之间的手眼标定靶物,如25mm标准圆球,以球心为标定点,将弧焊机器人2的机械手基坐标系、机械手末端工具坐标系与设置于弧焊机器人2上的线结构光视觉传感器1的线扫描仪坐标系进行坐标转换,从而计算得到手眼标定转换关系。Step S502: Standard ball hand-eye calibration. As a possible implementation method, the embodiment of the present application can use a high-precision standard ball with a known diameter as the hand-eye calibration target between the arc welding robot 2 and the line structured light vision sensor 1, such as a 25mm standard ball. The center of the sphere is the calibration point. The manipulator base coordinate system of the arc welding robot 2, the manipulator end tool coordinate system and the line scanner coordinate system of the line structured light vision sensor 1 installed on the arc welding robot 2 are coordinate converted to calculate Hand-eye calibration conversion relationship.
示例性地,本申请实施例可以以已知直径的高精度标准圆球作为手眼标定靶物,球心为标定点,弧焊机器人2末端可以以任意姿态移动,通过激光平面切 割标准球,使得切面圆成一条圆弧形轮廓点。For example, in the embodiment of the present application, a high-precision standard ball with a known diameter can be used as a hand-eye calibration target, and the center of the ball is the calibration point. The end of the arc welding robot 2 can move in any posture, and the standard ball is cut by a laser plane, so that The tangent circle forms an arc-shaped contour point.
进一步地,通过该圆弧,本申请实施例可以拟合出圆心与半径,再根据拟合圆心与球心共线以及勾股定理,可获得在当前线结构光视觉传感器1的线扫描仪(x,y,z)位置中球心的y值。Further, through the arc, the embodiment of the present application can fit the center and radius of the circle, and then according to the collinearity of the fitting center and the center of the sphere and the Pythagorean theorem, the line scanner of the current line structured light vision sensor 1 can be obtained ( The y value of the center of the sphere at the x, y, z) position.
可以理解的是,在手眼标定过程中,存在有三个坐标系:机械手基坐标系{0 b},机械手末端工具坐标系{0 t}和线结构光视觉传感器1的线扫描仪坐标系{0 s}。其中,任意一点在线结构光视觉传感器1的线扫描仪下的坐标到机械手基坐标系下的坐标可以转换为: It can be understood that during the hand-eye calibration process, there are three coordinate systems: the manipulator base coordinate system {0 b }, the manipulator end tool coordinate system {0 t }, and the line scanner coordinate system {0 of the line structured light vision sensor 1 s }. Among them, the coordinates of any point under the line scanner of the online structured light vision sensor 1 to the coordinates under the manipulator base coordinate system can be converted into:
Figure PCTCN2022129002-appb-000006
Figure PCTCN2022129002-appb-000006
其中,Ps为当前扫描仪的某一点,Pb为Ps在基坐标系下一点,具有上述转换关系,弧焊机器人2可以直接获取从{0 t}到{0 b}的转换矩阵
Figure PCTCN2022129002-appb-000007
Figure PCTCN2022129002-appb-000008
即为需要标定的转换矩阵,求解X的过程即为手眼标定。
Among them, Ps is a certain point of the current scanner, and Pb is the point under Ps in the base coordinate system. With the above conversion relationship, the arc welding robot 2 can directly obtain the conversion matrix from {0 t } to {0 b }
Figure PCTCN2022129002-appb-000007
Figure PCTCN2022129002-appb-000008
That is the transformation matrix that needs to be calibrated, and the process of solving X is hand-eye calibration.
本申请实施例可以通过控制机器人使线结构光视觉传感器1的线扫描仪以不同姿态获取固定点在线结构光视觉传感器1的线扫描仪坐标系下的目标测量范围内的位置坐标,通过一定求解方法解算出线结构光视觉传感器1的线扫描仪与弧焊机器人2的位置关系,可以实现线结构光视觉传感器1的线扫描仪与弧焊机器人2之间位置关系的手眼标定。In the embodiment of the present application, the robot can be controlled to make the line scanner of the line structured light vision sensor 1 obtain the position coordinates of the fixed point within the target measurement range in the line scanner coordinate system of the line structured light vision sensor 1 in different postures. The method solves the positional relationship between the line scanner of the line structured light vision sensor 1 and the arc welding robot 2, and can realize the hand-eye calibration of the positional relationship between the line scanner of the line structured light vision sensor 1 and the arc welding robot 2.
在实际应用中,举例而言,手眼标定的标定流程可以包括以下步骤:In practical applications, for example, the calibration process of hand-eye calibration can include the following steps:
1、将标定所用的标准直径的球放置在机械手下方某个平面上,尽可能安全区域,防止摔落损坏;1. Place the standard diameter ball used for calibration on a flat surface below the manipulator in as safe an area as possible to prevent damage from falling;
2、手动控制机械手,使得激光线打在球上,保证球心在测量仪坐标系下的Y坐标为正值;2. Manually control the manipulator so that the laser line hits the ball to ensure that the Y coordinate of the ball center in the coordinate system of the measuring instrument is positive;
3、打开软件连接设备后,进入到标定界面,记录一次轮廓和此时对应的机械手坐标,此时标定计算列表中会显示出当前状态下的球切面轮廓所得球心和机械手UVXYZ坐标值;3. After opening the software and connecting to the device, enter the calibration interface and record the contour and the corresponding robot hand coordinates at this time. At this time, the calibration calculation list will display the center of the ball and the robot hand UVXYZ coordinate values obtained from the spherical section profile in the current state;
4、任意改变机械手姿态及位置(UVWXYZ值),重复2-3步骤多次,得到对应的轮廓和机械手坐标;4. Randomly change the attitude and position of the manipulator (UVWXYZ value), repeat steps 2-3 several times to obtain the corresponding contour and manipulator coordinates;
5、获取足够多的数据后,根据注意点事项对数据增删,在软件上点击计算手眼标定矩阵按钮,利用采集到的数据计算出坐标转换矩阵,可以重复导入计算结果并计算。5. After obtaining enough data, add or delete the data according to the precautions, click the Calculate Hand-Eye Calibration Matrix button on the software, and use the collected data to calculate the coordinate transformation matrix. You can repeatedly import the calculation results and calculate.
步骤S503:焊缝位置扫描。示例性地,本申请实施例可以根据采集到的视觉数据,示教弧焊机器人2分别到达焊缝接近点位置和焊缝收弧位置,并调整合适的扫描角度,采用线结构光视觉传感器1,对焊缝的起点和终点图像进行扫描,并根据扫描结果,计算获得实际焊缝位置和实际焊缝间隙,并在焊接作业过程中,实时检测实际焊缝间隙,避免因焊接热变形造成的焊缝变形,导致实际焊缝位置与初始焊缝位置产生偏移,从而影响实际焊接效果。Step S503: Weld seam position scanning. Illustratively, the embodiment of the present application can teach the arc welding robot 2 to reach the welding seam approach point position and the welding seam arc closing position respectively based on the collected visual data, and adjust the appropriate scanning angle, using the line structured light vision sensor 1 , scan the image of the starting point and end point of the weld, and calculate the actual weld position and the actual weld gap based on the scanning results, and detect the actual weld gap in real time during the welding operation to avoid welding thermal deformation caused by The deformation of the weld seam causes the actual weld seam position to deviate from the initial weld seam position, thus affecting the actual welding effect.
举例而言,如图3所示,本申请实施例可以通过对焊缝的起点和终点图像进行扫描,获取焊缝起弧位置,进而获取该点的线结构光视觉传感器1的线扫描仪坐标下三维坐标(X 1,Y 1,Z 1),移动弧焊机器人至焊缝收弧位置,再次调整合适的扫描角度对收弧点进行扫描,获得该点的线结构光视觉传感器1的线扫描仪坐标下三维坐标(X 2,Y 2,Z 2),并通过手眼标定的结果,将这两点坐标转换成机器人坐标系下的三维坐标(x 1,y 1,z 1)和(x 2,y 2,z 2),通过计算起弧点与收弧点的坐标差值D 1,D 2,即偏移量: For example, as shown in Figure 3, the embodiment of the present application can obtain the arc starting position of the weld seam by scanning the starting point and end point images of the weld seam, and then obtain the line scanner coordinates of the line structured light vision sensor 1 at that point. Lower the three-dimensional coordinates (X 1 , Y 1 , Z 1 ), move the arc welding robot to the arc closing position of the welding seam, adjust the appropriate scanning angle again to scan the arc closing point, and obtain the line of the structured light vision sensor 1 at that point The three-dimensional coordinates (X 2 , Y 2 , Z 2 ) under the scanner coordinate system are converted into three-dimensional coordinates (x 1 , y 1 , z 1 ) and (x 1 , y 1 , z 1 ) under the robot coordinate system through the results of hand-eye calibration. x 2 , y 2 , z 2 ), by calculating the coordinate differences D 1 and D 2 between the arc starting point and the arc ending point, that is, the offset:
Figure PCTCN2022129002-appb-000009
Figure PCTCN2022129002-appb-000009
Figure PCTCN2022129002-appb-000010
Figure PCTCN2022129002-appb-000010
得到将进行引导的起弧坐标位置(X 3,Y 3,Z 3)和收弧坐标位置(X 4,Y 4,Z 4)。 Obtain the starting arc coordinate position (X 3 , Y 3 , Z 3 ) and arc closing coordinate position (X 4 , Y 4 , Z 4 ) that will be guided.
步骤S504:设置焊缝参数信息。本申请实施例可以设置接头相关参数,用于后期建立数据库。Step S504: Set weld parameter information. In this embodiment of the present application, joint-related parameters can be set for later establishment of a database.
步骤S505:计算焊缝位置。本申请实施例可以利用改进的鲁棒性最小二乘直线拟合算法,结合差分检测方法,自动查找激光轮廓信息中定位接头的特征位置XYZ,并依据手眼标定关系,计算接头特征位置XYZ在机器人基坐标系下的三维坐标位置(X 0,Y 0,Z 0)。 Step S505: Calculate the welding seam position. Embodiments of the present application can use the improved robust least squares straight line fitting algorithm, combined with the differential detection method, to automatically find the characteristic position XYZ of the positioning joint in the laser profile information, and calculate the characteristic position XYZ of the joint on the robot based on the hand-eye calibration relationship. The three-dimensional coordinate position (X 0 , Y 0 , Z 0 ) in the base coordinate system.
步骤S506:自适应调用合适的焊接参数。进一步地,本申请实施例可以根据接头特征位置(X 0,Y 0,Z 0),计算示教位置与识别位置的距离,根据接头形式与板间间隙,得到目标焊接参数,选取合适的焊接工艺,并在检测到实际焊缝间隙与初始间隙不一致时,重新匹配实际间隙对应的目标参数,可以有效提高焊接过程的自动化水平,提高焊接质量,避免因焊接热变形导致的焊接质量下降,无需人工从旁辅助检测焊缝位置及焊缝间隙并设置参数,从而降低人工成本,杜绝人为判断失误造成的事故损失。 Step S506: Adaptively call appropriate welding parameters. Further, the embodiment of the present application can calculate the distance between the teaching position and the identification position according to the joint characteristic position (X 0 , Y 0 , Z 0 ), obtain the target welding parameters according to the joint form and the gap between the plates, and select the appropriate welding process, and when it is detected that the actual weld gap is inconsistent with the initial gap, re-match the target parameters corresponding to the actual gap, which can effectively improve the automation level of the welding process, improve the welding quality, and avoid the degradation of welding quality caused by welding thermal deformation, without Manually assist in detecting the welding seam position and welding seam gap and setting parameters, thereby reducing labor costs and eliminating accident losses caused by human judgment errors.
举例而言,当视觉设备进入等待机械手信号状态,本申请实施例识别到寻位信号后,可以根据矩阵计算出线结构光视觉传感器1的线扫描仪当前轮廓数据 的特征点位置,然后将特征点位置的偏移量写入机械手中并设置接头特征识别参数,包括:For example, when the vision device enters the state of waiting for the manipulator signal, after the embodiment of the present application recognizes the positioning signal, the feature point positions of the current contour data of the line scanner of the line structured light vision sensor 1 can be calculated based on the matrix, and then the feature points are The offset of the position is written into the robot and the joint feature identification parameters are set, including:
1、接头编号:JOB号,表示第几个焊接接头;1. Joint number: JOB number, indicating which welding joint;
2、位置名称:表示JOB号的接头命名;2. Position name: the joint name indicating the JOB number;
3、接头形式:对接、角接、搭接;3. Joint form: butt joint, corner joint, lap joint;
4、接头方向:分上升沿和下降沿,根据拐点(接头)左右侧的轮廓走向确定;4. Joint direction: divided into rising edge and falling edge, determined according to the outline of the left and right sides of the inflection point (joint);
5、接头端点:接头位置的左侧点或右侧点;5. Joint end point: left point or right point of the joint position;
6、接头范围分隔线:接头特征位置区域设置屏蔽功能;6. Connector range dividing line: Set the shielding function for the connector characteristic position area;
7、偏移量:在标定等存在固定偏差时增加的XYZ补偿;7. Offset: XYZ compensation added when there is a fixed deviation in calibration;
8、示教点:机器人示教时末端的XYZ值;8. Teaching point: XYZ value at the end of the robot when teaching;
9、图像屏蔽:对反光的区域进行图像使用屏蔽算法。9. Image masking: Use a masking algorithm to image reflective areas.
进一步地,本申请实施例对某一接头,设置完两个位置后,等待机械手信号,进行引导,寻位成功后,在界面上会显示接头位置的线结构光视觉传感器1的线扫描仪坐标(x′,0,z′),机械手坐标(X′,Y′,Z′)及偏移量(ΔX,ΔY,ΔZ)。Furthermore, in the embodiment of this application, after setting two positions for a certain joint, it waits for the robot signal to guide. After the positioning is successful, the line scanner coordinates of the line structured light vision sensor 1 of the joint position will be displayed on the interface. (x′,0,z′), manipulator coordinates (X′,Y′,Z′) and offset (ΔX,ΔY,ΔZ).
步骤S507:TCP/IP信号坐标转换。在实际执行过程中,本申请实施例可以扫描实际焊缝位置,分别得到焊缝起点和焊缝终点的坐标值信息,并通过计算转化成机器人TCP位置坐标,如图4所示,本申请实施例可以利用TCP位置坐标,并通过TCP/IP网络传输至弧焊机器人2。Step S507: TCP/IP signal coordinate conversion. During the actual execution process, the embodiment of the present application can scan the actual welding seam position, obtain the coordinate value information of the welding seam starting point and the welding seam end point respectively, and convert it into the robot TCP position coordinates through calculation, as shown in Figure 4, the implementation of this application For example, TCP position coordinates can be used and transmitted to the arc welding robot 2 through the TCP/IP network.
步骤S508:弧焊机器人2引导焊接。内存单元将坐标值传输给控制单元,控制单元输出信号值机器人私服电机,带动驱动焊枪3至引导焊缝位置,实施焊接作业。Step S508: The arc welding robot 2 guides the welding. The memory unit transmits the coordinate value to the control unit, and the control unit outputs a signal value to the robot's private motor to drive the welding gun 3 to the guided weld position to perform the welding operation.
根据本申请实施例提出的铝合金自动弧焊方法,可以采集铝合金自动弧焊过程中的视觉数据,进而识别实际焊缝位置,计算实际焊缝间隙,进而匹配目标焊接参数,并根据焊接过程中的焊缝变化,自行调用匹配目标焊接参数,从而引导弧焊机器人在对应位置执行焊接动作,使得弧焊机器人在因焊接热变形和累积公差产生的不均匀焊缝间隙的情况下,仍能精准快速找到焊接位置,可以有效提高焊接过程的自动化水平,提高焊接质量,无需人工从旁辅助检测焊缝位置并设置参数,从而降低人工成本,杜绝人为判断失误造成的事故损失。由此,解决了相关技术中由于对焊缝位置的扫描受限,无法实时把控焊接过程中的焊缝变化,使得自动弧焊无法在焊接过程中精准快速找到变化后的焊缝位置,从而影响 焊接质量,增加人工成本的技术问题。According to the aluminum alloy automatic arc welding method proposed in the embodiment of the present application, visual data during the aluminum alloy automatic arc welding process can be collected, and then the actual weld position can be identified, the actual weld gap can be calculated, and the target welding parameters can be matched. According to the changes in the weld seam, the arc welding robot can automatically call the matching target welding parameters to guide the arc welding robot to perform welding actions at the corresponding position, so that the arc welding robot can still achieve uneven weld seam gaps caused by welding thermal deformation and accumulated tolerances. Finding the welding position accurately and quickly can effectively improve the automation level of the welding process and improve the welding quality. There is no need for manual assistance to detect the welding seam position and set parameters, thereby reducing labor costs and eliminating accident losses caused by human judgment errors. This solves the problem in related technologies that due to the limited scanning of the weld position, the inability to control the weld changes in the welding process in real time makes the automatic arc welding unable to accurately and quickly find the changed weld position during the welding process, thus Technical issues that affect welding quality and increase labor costs.
参见图6,本申请实施例提供了一种焊接系统,该焊接系统包括电子设备61、机械臂62和固定于机械臂62的视觉传感器63。其中,电子设备61与视觉传感器63和机械臂62分别通信连接,电子设备61可以通过该通信连接发送信号,从而实现对视觉传感器63和机械臂62的控制。由此,电子设备61可以控制视觉传感器63获取需要进行焊接的焊接处的图像。电子设备61还可以控制机械臂62的末端移动,使得机械臂62的末端对该焊接处进行焊接。Referring to FIG. 6 , an embodiment of the present application provides a welding system, which includes an electronic device 61 , a robotic arm 62 , and a visual sensor 63 fixed to the robotic arm 62 . The electronic device 61 is connected to the visual sensor 63 and the mechanical arm 62 through communication respectively. The electronic device 61 can send signals through the communication connection to control the visual sensor 63 and the mechanical arm 62 . Thereby, the electronic device 61 can control the visual sensor 63 to obtain an image of the welding place to be welded. The electronic device 61 can also control the movement of the end of the robotic arm 62 so that the end of the robotic arm 62 welds the welding point.
示例性地,如图7所示,该机械臂62的一端安装于基座64上,该机械臂62的另一端,也即是该机械臂62的末端,是用于实现焊接的一端。比如,该机械臂62包括焊接元件621,如焊枪等,该焊接元件621包括用于实现焊接的喷嘴,则该喷嘴即为该机械臂62的末端。机械臂62的末端的移动也即是调整了该焊接元件621的位姿,从而可以通过该焊接元件621的喷嘴,也即是机械臂62的末端,来实现焊接处的焊接。其中,位姿包括位置和姿态中的至少一种,包括有焊接元件621的机械臂62和基座64组成一个焊接机器人。For example, as shown in FIG. 7 , one end of the robotic arm 62 is installed on the base 64 , and the other end of the robotic arm 62 , that is, the end of the robotic arm 62 , is the end used for welding. For example, if the robotic arm 62 includes a welding element 621, such as a welding gun, and the welding element 621 includes a nozzle for welding, then the nozzle is the end of the robotic arm 62. The movement of the end of the robotic arm 62 is to adjust the posture of the welding element 621, so that the welding place can be welded through the nozzle of the welding element 621, that is, the end of the robotic arm 62. The pose includes at least one of a position and an attitude, and the robotic arm 62 including the welding element 621 and the base 64 form a welding robot.
此外,该机械臂62上固定有视觉传感器63,该视觉传感器63可以是摄像机、录像机、扫描仪和线结构光视觉传感器等等,在此不作限定,该视觉传感器的误差可以限制在0.1毫米以内。该视觉传感器63可以固定于焊接元件621轴向360度范围内的任意位置。应理解的是,本申请实施例不限定视觉传感器63的固定位置,只要保证机械臂62的移动过程中,不会遮挡视觉传感器63,不影响视觉传感器63获取焊接处的图像即可。In addition, a visual sensor 63 is fixed on the robotic arm 62. The visual sensor 63 can be a camera, a video recorder, a scanner, a line structured light visual sensor, etc. There is no limitation here. The error of the visual sensor can be limited to within 0.1 mm. . The visual sensor 63 can be fixed at any position within a 360-degree range of the welding element 621 axially. It should be understood that the embodiment of the present application does not limit the fixed position of the visual sensor 63, as long as it ensures that the visual sensor 63 is not blocked during the movement of the robotic arm 62, and does not affect the visual sensor 63 in acquiring the image of the welding joint.
示例性地,电子设备61可以通过有线或无线的方式与视觉传感器63和机械臂62分别通信连接。比如,图7所示出的方式属于一种有线的方式,也即是,电子设备61通过网线65与视觉传感器63和机械臂62分别通信连接。该网线65包括但不限于:TCP(Transmission Control Protocol,传输控制协议)/IP(Internet Protocol,互联网协议)通讯网线。继续参见图7,电子设备61可以包括用于控制视觉传感器63的视觉控制主机,以及用于控制机械臂62的机械控制主机。For example, the electronic device 61 may be connected to the visual sensor 63 and the robotic arm 62 through wired or wireless communication. For example, the method shown in FIG. 7 is a wired method, that is, the electronic device 61 communicates with the visual sensor 63 and the robotic arm 62 through the network cable 65 respectively. The network cable 65 includes but is not limited to: TCP (Transmission Control Protocol, Transmission Control Protocol)/IP (Internet Protocol, Internet Protocol) communication network cable. Continuing to refer to FIG. 7 , the electronic device 61 may include a vision control host for controlling the vision sensor 63 , and a mechanical control host for controlling the robotic arm 62 .
另外,图7还示出了承物台66和标定元件67,用于进行手眼标定,手代指机械臂62上的焊接元件621,眼则代指视觉传感器63。下文的方法实施例会对手眼标定的过程进行详细说明,在此不作赘述。In addition, FIG. 7 also shows the object platform 66 and the calibration component 67 for hand-eye calibration. The hand refers to the welding component 621 on the robot arm 62 and the eye refers to the visual sensor 63 . The following method embodiments will describe the process of hand-eye calibration in detail, which will not be described in detail here.
本申请实施例提供了一种焊接方法,该方法可以应用于图6或图7所示的 焊接系统包括的电子设备中。如图8所示,该方法包括如下的步骤801至803。The embodiment of the present application provides a welding method, which can be applied to the electronic equipment included in the welding system shown in Figure 6 or Figure 7. As shown in Figure 8, the method includes the following steps 801 to 803.
步骤801,控制视觉传感器获取焊接处对应的目标图像。Step 801: Control the visual sensor to obtain the target image corresponding to the welding point.
其中,焊接是针对金属材料的一种连接方式,需要在哪里进行金属材料的连接,哪里就是需要进行焊接的焊接处,焊接处又称接头。一个焊接处可以通过一个标识进行唯一指示,该标识可以是一个名称,也可以是一个字符串,字符串例如为JOB(Job Number,作业编号)。另外,金属材料可以是合金,如铝合金等等也可以是纯金属,在此不作限定。而焊接包括但不限于弧焊、气焊等等,在此同样不作限定。Among them, welding is a method of connecting metal materials. Wherever metal materials need to be connected, there is the welding point that needs to be welded. The welding point is also called a joint. A welding point can be uniquely indicated by an identifier, which can be a name or a string. The string is, for example, JOB (Job Number). In addition, the metal material can be an alloy, such as aluminum alloy, etc., or it can be a pure metal, which is not limited here. Welding includes but is not limited to arc welding, gas welding, etc., which are also not limited here.
本申请实施例不限定在视觉传感器何处获取该目标图像。示例性地,电子设备可以获取初始坐标,并控制机械臂的末端到达初始坐标之后,控制视觉传感器获取焊接处对应的目标图像。也就是说,目标图像由视觉传感器在机械臂的末端位于初始坐标的情况下获取。The embodiment of the present application is not limited to where the visual sensor obtains the target image. For example, the electronic device can obtain the initial coordinates, and after controlling the end of the robotic arm to reach the initial coordinates, control the visual sensor to obtain the target image corresponding to the welding point. That is, the target image is acquired by the vision sensor with the end of the robotic arm located at the initial coordinates.
初始坐标是焊接处附近的坐标,可以认为初始坐标是一个预估的、不够准确的坐标。初始坐标可以由人工根据经验或实际需求设置,也可以根据机械臂的体积、金属材料的体积、焊接处的面积等等自动计算得到,在此不限定获取初始坐标的方式。The initial coordinates are coordinates near the welding point. It can be considered that the initial coordinates are estimated and not accurate enough. The initial coordinates can be set manually based on experience or actual needs, or can be automatically calculated based on the volume of the robotic arm, the volume of the metal material, the area of the welding joint, etc. The method of obtaining the initial coordinates is not limited here.
在获取初始坐标之后,通过控制机械臂的末端到达初始坐标。然后,在机械臂的末端位于初始坐标的情况下,控制视觉传感器按照合适的角度获取焊接处对应的目标图像,该目标图像用于确定出目标起点坐标和目标终点坐标。由于本申请实施例保证了机械臂的移动过程中,不会遮挡视觉传感器,因而机械臂的移动过程也不会受到限制,无论机械臂以何种方式移动,视觉传感器均能够获取准确的目标图像。After obtaining the initial coordinates, the initial coordinates are reached by controlling the end of the robotic arm. Then, when the end of the robotic arm is located at the initial coordinates, the vision sensor is controlled to obtain the target image corresponding to the welding point at an appropriate angle. The target image is used to determine the target starting point coordinates and the target end point coordinates. Since the embodiment of the present application ensures that the visual sensor will not be blocked during the movement of the robotic arm, the movement of the robotic arm will not be restricted. No matter how the robotic arm moves, the visual sensor can obtain an accurate target image. .
目标起点坐标和目标终点坐标是较为准确的坐标,比上述的初始坐标更为准确。目标起点坐标和目标终点坐标不再是焊接处附近的坐标,而是能够代表焊接处的、焊接处本身的坐标。比如,参见图9,目标起点坐标就是图9所示的起点的坐标,起点是机械臂的末端开始进行焊接的一点,而目标终点坐标就是图9所示的终点的坐标,终点是机械臂的末端结束进行焊接的一点。The target starting point coordinates and the target end point coordinates are relatively accurate coordinates, more accurate than the above-mentioned initial coordinates. The target starting point coordinates and the target end point coordinates are no longer the coordinates near the welding point, but the coordinates of the welding point itself that can represent the welding point. For example, see Figure 9, the target starting point coordinates are the coordinates of the starting point shown in Figure 9, the starting point is the point at the end of the robotic arm where welding begins, and the target end point coordinates are the coordinates of the end point shown in Figure 9, and the end point is the end point of the robotic arm. The end ends at a point where welding is done.
在本申请实施例中,之所以需要在获取目标图像之后确定目标起点坐标和目标终点坐标,是因为:焊接处可能是不均匀的,这种不均匀是难以预估的,需要在获取目标图像之后,才能确定焊接处的实际情况,从而确定出准确的目标起点坐标和目标终点坐标。示例性地,导致焊接处不均匀的原因可能包括但不限 于:该焊接处之前已经被焊接过一次,之前的焊接过程导致焊接处产生变形和累积公差,从而使得焊接处不均匀。无论是何种原因导致焊接处不均匀,本申请实施例都可以在焊接处不均匀的情况下,确定出准确的目标起点坐标和目标终点坐标,以便于针对该焊接处实现精确的焊接。In the embodiment of this application, the reason why it is necessary to determine the target starting point coordinates and the target end point coordinates after acquiring the target image is because: the welding joint may be uneven, and this unevenness is difficult to predict, and it is necessary to obtain the target image before Only then can the actual situation of the welding joint be determined, thereby determining the accurate target starting point coordinates and target end point coordinates. For example, the causes of uneven welding may include but are not limited to: the welding has been welded once before, and the previous welding process caused deformation and accumulated tolerances in the welding, thus making the welding uneven. No matter what causes the welding joint to be uneven, the embodiment of the present application can determine the accurate target starting point coordinates and target end point coordinates when the welding joint is uneven, so as to achieve accurate welding for the welding joint.
示例性地,由于需要使得机械臂的末端到达该目标起点坐标和目标终点坐标,因而目标起点坐标和目标终点坐标均为机械臂的末端能够识别的坐标,比如,目标起点坐标和目标终点坐标为机械臂的末端对应的末端坐标系下的坐标,此种坐标属于TCP(Tool Center Point,工具中心点)坐标。当然,初始坐标也可以为末端坐标系下的坐标。For example, since the end of the robot arm needs to reach the target starting point coordinates and the target end point coordinates, the target starting point coordinates and the target end point coordinates are coordinates that can be recognized by the end of the robot arm. For example, the target starting point coordinates and the target end point coordinates are The coordinates in the end coordinate system corresponding to the end of the robotic arm. This coordinate belongs to TCP (Tool Center Point) coordinates. Of course, the initial coordinates can also be coordinates in the end coordinate system.
示例性地,初始坐标的数量为一个或多个。比如,初始坐标可以包括初始起点坐标和初始终点坐标,则初始起点坐标是位于焊接处的起点附近的坐标,而初始终点坐标是位于焊接处的终点附近的坐标。相应地,参见图9,控制机械臂的末端到达初始坐标之后,控制视觉传感器获取焊接处对应的目标图像,包括:控制机械臂的末端到达初始起点坐标之后,控制视觉传感器按照合适的第一角度获取焊接处的起点对应的第一图像,还控制机械臂的末端到达初始终点坐标之后,将第一角度调节为第二角度,控制视觉传感器按照第二角度获取焊接处的终点对应的第二图像。其中,第一角度与第二角度相同或不同,上述的目标图像包括第一图像和第二图像。Illustratively, the number of initial coordinates is one or more. For example, the initial coordinates may include an initial starting point coordinate and an initial end point coordinate. The initial starting point coordinate is a coordinate located near the starting point of the welding point, and the initial end point coordinate is a coordinate located near the end point of the welding point. Correspondingly, referring to Figure 9, after controlling the end of the robotic arm to reach the initial coordinates, controlling the visual sensor to obtain the target image corresponding to the welding point includes: controlling the end of the robotic arm to reach the initial starting point coordinates, controlling the visual sensor according to the appropriate first angle Obtain the first image corresponding to the starting point of the welding point, and also control the end of the robotic arm to reach the initial end point coordinates, adjust the first angle to the second angle, and control the visual sensor to obtain the second image corresponding to the end point of the welding point according to the second angle. . Wherein, the first angle is the same as or different from the second angle, and the above-mentioned target image includes the first image and the second image.
应理解的是,机械臂的末端可以先到达初始起点坐标、再到达初始终点坐标,也可以先到达初始终点坐标、再到达初始起点坐标,在此不作限定。It should be understood that the end of the robotic arm can first reach the initial starting point coordinates and then reach the initial end point coordinates, or it can first reach the initial end point coordinates and then reach the initial starting point coordinates, which is not limited here.
步骤802,根据目标图像获取焊接处对应的目标起点坐标和目标终点坐标。Step 802: Obtain the target starting point coordinates and the target end point coordinates corresponding to the welding point according to the target image.
其中,本申请实施例可以根据同一个目标图像获取目标起点坐标和目标终点坐标。或者,本申请实施例也可以根据不同目标图像获取目标起点坐标和目标终点坐标。比如,在目标图像包括第一图像和第二图像的情况下,可以根据第一图像获取目标起点坐标,而根据第二图像获取目标终点坐标。Among them, the embodiment of the present application can obtain the target starting point coordinates and the target end point coordinates based on the same target image. Alternatively, embodiments of the present application may also obtain the target starting point coordinates and the target end point coordinates based on different target images. For example, when the target image includes a first image and a second image, the target starting point coordinates can be obtained according to the first image, and the target end point coordinates can be obtained according to the second image.
示例性地,本申请实施例可以识别目标图像,以得到焊接处的轮廓,轮廓体现了焊接处的长度和位置。其中,如果目标图像记录了全部的焊接处,则可以根据目标图像直接得到该焊接处的全部轮廓,而如果目标图像仅记录了部分的焊接处,则可以根据目标图像得到该焊接处的部分轮廓,而未得到的部分轮廓则通过模拟过程补全。For example, the embodiment of the present application can identify the target image to obtain the outline of the welding point, and the outline reflects the length and position of the welding point. Among them, if the target image records all the welding joints, the entire contour of the welding joint can be obtained directly based on the target image. If the target image only records part of the welding joint, then part of the contour of the welding joint can be obtained based on the target image. , and the unobtained partial contours are completed through the simulation process.
焊接处的轮廓往往由多个点组成,则可以利用一定的算法,从多个点中选择 两个点,将这两个点的坐标分别作为目标起点坐标和目标终点坐标。其中,所利用的算法包括但不限于改进鲁棒性的最小二乘直线拟合算法、差分检测算法等等,在此不作限定。The contour of the welding joint is often composed of multiple points. A certain algorithm can be used to select two points from multiple points, and the coordinates of these two points are used as the target starting point coordinates and the target end point coordinates respectively. Among them, the algorithms used include but are not limited to the least squares straight line fitting algorithm to improve robustness, the differential detection algorithm, etc., which are not limited here.
在示例性实施例中,根据目标图像获取焊接处对应的目标起点坐标和目标终点坐标,包括:从目标图像中确定焊接处所在的区域;基于焊接处所在的区域包括反光像素,根据反光像素周围的其他像素将反光像素更新为非反光像素,得到更新后的目标图像,反光像素为焊接处的反光部分对应的像素;根据更新后的目标图像获取目标起点坐标和目标终点坐标。In an exemplary embodiment, obtaining the target starting point coordinates and the target end point coordinates corresponding to the welding point based on the target image includes: determining the area where the welding point is located from the target image; based on the area where the welding point is located including reflective pixels, based on the surrounding areas of the reflective pixels The other pixels update the reflective pixels to non-reflective pixels to obtain the updated target image. The reflective pixels are the pixels corresponding to the reflective part of the welding joint; the target starting point coordinates and the target end point coordinates are obtained according to the updated target image.
其中,本申请实施例可以通过图像识别的方式,从目标图像中确定焊接处所在的区域。比如,可以将目标图像输入图像识别模型,得到图像识别模型输出的图像,相比于目标图像,该图像识别模型输出的图像多了区域边缘线,区域边缘线围成的区域即为焊接处所在的区域。Among them, the embodiment of the present application can determine the area where the welding place is located from the target image through image recognition. For example, you can input the target image into the image recognition model and obtain the image output by the image recognition model. Compared with the target image, the image output by the image recognition model has more area edge lines. The area surrounded by the area edge lines is where the welding place is. Area.
由于焊接处为金属材料,因而焊接处可能存在反光部分,该反光部分可能会发生反光,导致目标图像中焊接处所在的区域包括反光像素。由于此种反光像素可能会影响目标起点坐标和目标终点坐标的确定,因而需要消除反光,也即是将反光像素更新为非反光像素,得到更新后的目标图像。由此,可以保证所确定的目标起点坐标和目标终点坐标的准确性。示例性地,将反光像素更新为非反光像素时,可以采用屏蔽算法,在此不对所采用的屏蔽算法进行限定。Since the welding joint is a metal material, there may be a reflective part at the welding joint, and the reflective part may reflect light, causing the area where the welding joint is located in the target image to include reflective pixels. Since such reflective pixels may affect the determination of the target starting point coordinates and the target end point coordinates, the reflection needs to be eliminated, that is, the reflective pixels are updated to non-reflective pixels to obtain an updated target image. Thus, the accuracy of the determined target starting point coordinates and target end point coordinates can be ensured. For example, when updating reflective pixels to non-reflective pixels, a masking algorithm may be used, and the masking algorithm used is not limited here.
示例性地,根据目标图像获取焊接处对应的目标起点坐标和目标终点坐标,包括:根据目标图像获取视觉传感器对应的传感器坐标系下的参考起点坐标和参考终点坐标;根据末端坐标系与传感器坐标系之间的第一转换矩阵将参考起点坐标转换为目标起点坐标,根据第一转换矩阵将参考终点坐标转换为目标终点坐标。当然,此种方案可以与上述说明的消除反光的方案相结合,比如在通过消除反光的方案得到更新后的目标图像时,此种方案可以相应的根据更新后的目标图像来获取焊接处对应的目标起点坐标和目标终点坐标。Exemplarily, obtaining the target starting point coordinates and the target end point coordinates corresponding to the welding joint according to the target image includes: obtaining the reference starting point coordinates and the reference end point coordinates in the sensor coordinate system corresponding to the visual sensor according to the target image; according to the end coordinate system and the sensor coordinates The first conversion matrix between the systems converts the reference starting point coordinates into the target starting point coordinates, and converts the reference end point coordinates into the target end point coordinates according to the first conversion matrix. Of course, this solution can be combined with the above-described solution for eliminating reflections. For example, when the updated target image is obtained through the solution for eliminating reflections, this solution can correspondingly obtain the corresponding image of the welding joint based on the updated target image. Target starting point coordinates and target end point coordinates.
其中,由于目标图像是通过视觉传感器获取的,因而根据目标图像直接确定出的坐标,也即是参考起点坐标和参考终点坐标,均为传感器坐标系下的坐标,传感器坐标系与末端坐标系是不同的坐标系。因此,需要根据第一转换矩阵,将传感器坐标下的参考起点坐标和参考终点坐标,转换为末端坐标系下的目标起点坐标和目标终点坐标,以便于机械臂的末端能够识别并到达目标起点坐标和目标终点坐标,实现对焊接处的焊接。Among them, since the target image is obtained through the visual sensor, the coordinates determined directly based on the target image, that is, the reference starting point coordinates and the reference end point coordinates, are coordinates in the sensor coordinate system. The sensor coordinate system and the end coordinate system are different coordinate systems. Therefore, it is necessary to convert the reference starting point coordinates and the reference end point coordinates in the sensor coordinates to the target starting point coordinates and the target end point coordinates in the end coordinate system according to the first conversion matrix, so that the end of the robotic arm can identify and reach the target starting point coordinates and target end point coordinates to achieve welding at the welding point.
比如,参考起点坐标为(M 1,P 1,Q 1),根据第一转换矩阵可以将参考起点坐标转换为目标起点坐标(m 1,p 1,q 1)。参考终点坐标为(M 2,P 2,Q 2),根据第一转换矩阵可以将参考起点坐标转换为目标起点坐标(m 2,p 2,q 2)。 For example, the reference starting point coordinates are (M 1 , P 1 , Q 1 ), and the reference starting point coordinates can be converted into the target starting point coordinates (m 1 , p 1 , q 1 ) according to the first transformation matrix. The reference end point coordinates are (M 2 , P 2 , Q 2 ), and the reference starting point coordinates can be converted into the target starting point coordinates (m 2 , p 2 , q 2 ) according to the first transformation matrix.
示例性地,电子设备可以存储该第一转换矩阵,从而在需要使用第一转换矩阵时,使用已存储的第一转换矩阵。该第一转换矩阵可以由电子设备从其他设备直接获取,或者,该第一转换矩阵可以由电子设备通过手眼标定的过程确定。For example, the electronic device may store the first conversion matrix, so that when the first conversion matrix needs to be used, the stored first conversion matrix is used. The first conversion matrix can be directly obtained by the electronic device from other devices, or the first conversion matrix can be determined by the electronic device through a hand-eye calibration process.
在手眼标定的过程中,参见图9,将标定元件放置于承载台上,该标定元件可以是具有一定直径的、精度较高的球体,直径例如为25毫米。该承载台可以是位于机械臂的末端的下方的一个平面,且该平面具有一定的安全性,标定元件放置于该承载台之后不易摔落损坏。During the hand-eye calibration process, see FIG. 9 , the calibration element is placed on the bearing platform. The calibration element can be a highly precise sphere with a certain diameter, for example, 25 mm in diameter. The bearing platform can be a flat surface located below the end of the robotic arm, and the flat surface has a certain degree of safety. The calibration element is not easily dropped and damaged after being placed on the bearing platform.
在放置好标定元件之后,便可以得到标定元件的中心在机械臂的基座对应的基座坐标系下的第一坐标,该基座坐标系例如为大地坐标系。此外,还需要获取至少两个第二坐标,第二坐标为机械臂的末端属于一定位姿时标定元件的中心在传感器坐标系下的坐标。其中,可以执行如下的过程至少两次,每执行一次得到一个第二坐标,从而得到至少两个第二坐标,每个第二坐标对应一个位姿,该位姿可以通过六自由度信息进行表示。After the calibration element is placed, the first coordinate of the center of the calibration element in a base coordinate system corresponding to the base of the robotic arm can be obtained. The base coordinate system is, for example, a geodetic coordinate system. In addition, at least two second coordinates need to be obtained. The second coordinates are the coordinates of the center of the calibration element in the sensor coordinate system when the end of the robotic arm belongs to a certain orientation. Among them, the following process can be performed at least twice, and each time a second coordinate is obtained, thereby obtaining at least two second coordinates, each second coordinate corresponds to a pose, and the pose can be represented by six degrees of freedom information. .
在该过程中,人工控制机械臂,使得机械臂的末端处于一定的位姿。另外,使得视觉传感器发射激光平面,比如图9中的虚线区域为一个示例性的激光平面,该激光平面入射标定元件,相当于切割标定元件得到截面,且可以使得该截面位于标定元件的中心以上,之后,根据该截面边缘上的各点可以拟合得到一个标定元件的中心在传感器坐标系下的坐标,即一个第二坐标。比如,标定元件为球体时,标定元件的中心为球心,则切割标定元件得到圆形截面,并可以根据圆形截面边缘上的各点拟合出圆形截面的圆心坐标和半径,再结合圆心与球心共线定理和勾股定理确定出球心坐标,即第二坐标。In this process, the robotic arm is manually controlled so that the end of the robotic arm is in a certain position. In addition, the visual sensor is caused to emit a laser plane. For example, the dotted line area in Figure 9 is an exemplary laser plane. The laser plane is incident on the calibration element, which is equivalent to cutting the calibration element to obtain a section, and the section can be located above the center of the calibration element. , and then, according to each point on the edge of the section, the coordinates of the center of a calibration element in the sensor coordinate system can be obtained by fitting, that is, a second coordinate. For example, when the calibration element is a sphere and the center of the calibration element is the center of the sphere, then the calibration element is cut to obtain a circular section, and the center coordinates and radius of the circular section can be fitted according to the points on the edge of the circular section, and then combined The collinear theorem of the center of a circle and the center of a sphere and the Pythagorean theorem determine the coordinates of the center of the sphere, which is the second coordinate.
另外,在不同过程中,机械臂的末端所处的位姿也不同。并且,机械臂的末端的位姿需要处于一定范围内,以避免机械臂的末端处于某个位姿时,机械臂的末端发生抖动,从而影响手眼标定的过程的准确性。In addition, in different processes, the position and posture of the end of the robotic arm are also different. Moreover, the posture of the end of the robotic arm needs to be within a certain range to prevent the end of the robotic arm from shaking when it is in a certain posture, thus affecting the accuracy of the hand-eye calibration process.
在获取第一坐标、至少两个第二坐标和任意一个第二坐标对应的位姿之后,可以直接使用获取的内容求解得到第一转换矩阵,也可以对获取的内容进行补充或者筛选,比如增加或者删减一些第二坐标和这些第二坐标对应的位姿,得到更新后的内容。之后,可以直接使用获取的内容或者更新后的内容,求解得到第 一转换矩阵。比如,在如下的公式(1)的基础上,结合任意一个第二坐标对应的位姿,求解得到第一转换矩阵:After obtaining the first coordinate, at least two second coordinates and the pose corresponding to any second coordinate, the obtained content can be directly used to solve to obtain the first transformation matrix, or the obtained content can be supplemented or filtered, such as adding Or delete some second coordinates and the poses corresponding to these second coordinates to obtain updated content. Afterwards, the obtained content or updated content can be directly used to solve to obtain the first transformation matrix. For example, based on the following formula (1), combined with the pose corresponding to any second coordinate, the first transformation matrix is obtained:
Figure PCTCN2022129002-appb-000011
Figure PCTCN2022129002-appb-000011
在公式(1)中,各个符号的含义如下:In formula (1), the meanings of each symbol are as follows:
Pb表示第一坐标,Ps表示第二坐标;Pb represents the first coordinate, Ps represents the second coordinate;
第二转换矩阵表示为
Figure PCTCN2022129002-appb-000012
该第二转换矩阵为末端坐标系{Ot}与基座坐标系{Ob}之间的转换矩阵,该第二转换矩阵可以根据基座和机械臂的末端之间的连接关系直接获取得到;
The second transformation matrix is expressed as
Figure PCTCN2022129002-appb-000012
The second transformation matrix is a transformation matrix between the end coordinate system {Ot} and the base coordinate system {Ob}. The second transformation matrix can be directly obtained based on the connection relationship between the base and the end of the robotic arm;
需要求解的第一转换矩阵表示为
Figure PCTCN2022129002-appb-000013
该第一转换矩阵为末端坐标系{Ot}与传感器坐标系{Os}之间的转换矩阵,手眼标定的过程就是为了求解得到该第一转换矩阵。
The first transformation matrix that needs to be solved is expressed as
Figure PCTCN2022129002-appb-000013
The first conversion matrix is the conversion matrix between the terminal coordinate system {Ot} and the sensor coordinate system {Os}. The process of hand-eye calibration is to solve and obtain the first conversion matrix.
基于以上的说明可以得出,对于通过手眼标定过程确定第一转换矩阵的方式,方法还包括:获取第一坐标和至少两个第二坐标,第一坐标为标定元件的中心在机械臂的基座对应的基座坐标系下的坐标,至少两个第二坐标中的任意一个第二坐标对应一个位姿,任意一个第二坐标为机械臂的末端处于对应的位姿时标定元件的中心在传感器坐标系下的坐标;根据第一坐标、至少两个第二坐标、任意一个第二坐标对应的位姿和末端坐标系与基座坐标系之间的第二转换矩阵,求解得到第一转换矩阵。Based on the above description, it can be concluded that for the method of determining the first transformation matrix through the hand-eye calibration process, the method also includes: obtaining the first coordinate and at least two second coordinates, where the first coordinate is the center of the calibration element at the base of the robot arm. The coordinates in the base coordinate system corresponding to the base. Any one of at least two second coordinates corresponds to a pose. Any one of the second coordinates is the center of the calibration element when the end of the robotic arm is in the corresponding pose. Coordinates in the sensor coordinate system; solve to obtain the first transformation based on the first coordinate, at least two second coordinates, the pose corresponding to any second coordinate and the second transformation matrix between the end coordinate system and the base coordinate system matrix.
步骤803,控制机械臂的末端从目标起点坐标焊接至目标终点坐标。Step 803: Control the end of the robotic arm to be welded from the target starting point coordinates to the target end point coordinates.
在确定目标起点坐标和目标终点坐标之后,便可以控制机械臂的末端移动。在一些实施方式中,如果目标图像由视觉传感器在机械臂的末端位于初始坐标的情况下获取,则需要先控制机械臂的末端从初始坐标移动至目标起点坐标,则机械臂的末端从目标起点坐标处开始进行焊接,并一边焊接一边移动,直到机械臂的末端到达目标终点坐标处之后结束进行焊接,从而实现了从目标起点坐标焊接至目标终点坐标。或者,在另一些实施方式中,不限定目标图像从何处获取,则只要保证机械臂的末端能够到达目标起点坐标,并从目标起点坐标焊接至目标终点坐标即可。在完成焊接之后,焊接处会形成焊缝,比如图9示出了一种示例性的焊缝。After determining the target starting point coordinates and the target end point coordinates, the end movement of the robotic arm can be controlled. In some embodiments, if the target image is acquired by the vision sensor when the end of the robotic arm is located at the initial coordinate, it is necessary to first control the end of the robotic arm to move from the initial coordinate to the target starting point coordinate, then the end of the robotic arm moves from the target starting point Start welding at the coordinates and move while welding until the end of the robotic arm reaches the target end coordinates and then end the welding, thereby achieving welding from the target starting point coordinates to the target end point coordinates. Or, in other embodiments, there is no limit on where the target image is obtained, as long as it is ensured that the end of the robotic arm can reach the target starting point coordinates and weld from the target starting point coordinates to the target end point coordinates. After the welding is completed, a weld seam will be formed at the welding point. For example, Figure 9 shows an exemplary weld seam.
在示例性实施例中,对于初始坐标包括初始起点坐标和初始终点坐标的情况,方法还包括:确定初始起点坐标与目标起点坐标之间的第一偏移量,确定初 始终点坐标与目标终点坐标之间的第二偏移量;根据第一偏移量和第二偏移量确定移动方式,按照移动方式控制机械臂的末端从初始起点坐标移动至目标起点坐标。In an exemplary embodiment, for the case where the initial coordinates include the initial starting point coordinates and the initial end point coordinates, the method further includes: determining a first offset between the initial starting point coordinates and the target starting point coordinates, and determining the initial end point coordinates and the target end point coordinates. the second offset between them; determine the movement mode according to the first offset and the second offset, and control the end of the robotic arm to move from the initial starting point coordinates to the target starting point coordinates according to the movement mode.
比如,初始起点坐标为(m 3,p 3,q 3),目标起点坐标为(m 1,p 1,q 1),则第一偏移量E 1表示为如下的公式(2): For example, if the initial starting point coordinates are (m 3 , p 3 , q 3 ) and the target starting point coordinates are (m 1 , p 1 , q 1 ), then the first offset E 1 is expressed as the following formula (2):
Figure PCTCN2022129002-appb-000014
Figure PCTCN2022129002-appb-000014
又比如,初始终点坐标为(m 4,p 4,q 4),目标终点坐标为(m 2,p 2,q 2),则第二偏移量W 2表示为如下的公式(3): For another example, if the initial end point coordinates are (m 4 , p 4 , q 4 ) and the target end point coordinates are (m 2 , p 2 , q 2 ), then the second offset W 2 is expressed as the following formula (3):
Figure PCTCN2022129002-appb-000015
Figure PCTCN2022129002-appb-000015
其中,移动方式可以包括移动速度,当第一偏移量和第二偏移量中的至少一个偏移量大于偏移量阈值时,可以确定移动方式为快速移动,以便于机械臂的末端快速的从初始起点坐标到达目标起点坐标,避免由于偏移量较大而影响焊接效率。而如果第一偏移量和第二偏移量均小于或等于该偏移量阈值,则可以确定移动方式为缓慢移动,以保证机械臂在移动过程中的平滑、稳定性。The movement mode may include a movement speed. When at least one of the first offset and the second offset is greater than an offset threshold, the movement mode may be determined to be fast movement, so that the end of the robotic arm can move quickly. from the initial starting point coordinates to the target starting point coordinates to avoid affecting the welding efficiency due to large offsets. If both the first offset and the second offset are less than or equal to the offset threshold, the movement mode can be determined to be slow movement to ensure smoothness and stability of the robotic arm during movement.
或者,移动方式也可以包括移动路径,则可以根据第一偏移量和第二偏移量选择合适的移动路径,移动路径用于机械臂的末端从初始起点坐标移动至目标起点坐标。比如,可以根据第一偏移量和第二偏移量确定多个备选路径,从多个备选路径中,结合机械臂的性能选择出能够使得机械臂稳定、平滑移动的一条备选路径,或是选择出能够使得机械臂的移动成本最低的一条备选路径等等,所选择的备选路径即为移动路径。其中,机械臂的移动成本可以是机械臂按照备选路径移动的过程中所产生的磨损。Alternatively, the movement method may also include a movement path, and an appropriate movement path may be selected based on the first offset and the second offset. The movement path is used for the end of the robotic arm to move from the initial starting point coordinates to the target starting point coordinates. For example, multiple alternative paths can be determined based on the first offset and the second offset, and from the multiple alternative paths, an alternative path can be selected that can make the robotic arm move stably and smoothly based on the performance of the robotic arm. , or select an alternative path that can minimize the movement cost of the robotic arm, etc. The selected alternative path is the movement path. The moving cost of the robotic arm may be the wear and tear generated when the robotic arm moves along the alternative path.
当然,本申请实施例不对移动方式进行限定,该移动方式也可以既包括移动速度又包括移动路径,还可以包括移动速度和移动路径之外的其他内容,在此不作限定。另外,电子设备也可以在确定第一偏移量和第二偏移量之后,通过通信连接向机械臂发送第一偏移量和第二偏移量,由机械臂根据第一偏移量和第二偏移量自行完成移动。此外,电子设备还可以显示第一偏移量和第二偏移量,也可以根据实际需求显示上述的各个坐标,比如初始坐标、参考起点坐标、参考终点坐标、目标起点坐标和目标终点坐标。Of course, the embodiment of the present application does not limit the movement method. The movement method may also include both movement speed and movement path, and may also include other contents besides movement speed and movement path, which are not limited here. In addition, after determining the first offset and the second offset, the electronic device can also send the first offset and the second offset to the robotic arm through the communication connection, and the robotic arm determines the first offset and the second offset. The second offset completes the movement on its own. In addition, the electronic device can also display the first offset and the second offset, and can also display the above coordinates according to actual needs, such as initial coordinates, reference starting point coordinates, reference end point coordinates, target starting point coordinates, and target end point coordinates.
无论怎样进行控制,该机械臂的末端均可以到达目标起点坐标。之后,便需要从目标起点坐标焊接至目标终点坐标。在示例性实施例中,方法还包括:根据 目标图像获取焊接处的特征信息,根据特征信息确定焊接方式,特征信息包括连接形式、连接情况和连接间隙中的至少一种信息;控制机械臂的末端从目标起点坐标焊接至目标终点坐标,包括:控制机械臂的末端按照焊接方式从目标起点坐标焊接至目标终点坐标。No matter how it is controlled, the end of the robot arm can reach the target starting point coordinates. After that, you need to weld from the target starting point coordinates to the target end point coordinates. In an exemplary embodiment, the method further includes: obtaining the characteristic information of the welding place according to the target image, and determining the welding method according to the characteristic information, where the characteristic information includes at least one of connection form, connection situation and connection gap; controlling the mechanical arm. Welding the end from the target starting point coordinates to the target end point coordinates includes: controlling the end of the robotic arm to weld from the target starting point coordinates to the target end point coordinates in a welding manner.
其中,通过对目标图像进行识别,可以获取焊接处的特征信息。根据该特征信息,可以自适应的确定至少一种合适的焊接方式,从而可以按照该焊接方式完成从目标起点坐标至目标终点坐标的焊接,从而保证焊接质量。这些特征信息可以与焊接处的标识对应存储于数据库中,则在需要使用特征信息时,可以根据焊接处的标识从数据库中查询得到焊接处的特征信息。Among them, by identifying the target image, the characteristic information of the welding joint can be obtained. According to the characteristic information, at least one suitable welding method can be adaptively determined, so that the welding from the target starting point coordinate to the target end point coordinate can be completed according to the welding method, thereby ensuring the welding quality. These characteristic information can be stored in the database corresponding to the identification of the welding point. When the characteristic information needs to be used, the characteristic information of the welding point can be obtained from the database according to the identification of the welding point.
由于焊接处也称为接头,因而该特征信息包括的连接形式也称为接头形式,连接情况也称为接头方向。由于焊接处会形成焊缝,比如图9所示的焊缝,因而该特征信息包括的连接间隙也称为焊缝间隙,图9也示出了一种示例性的连接间隙。示例性地,连接形式包括但不限于对接、角接、搭接等,接头方向包括但不限于上升沿方向和下降沿方向,接头方向可以根据接头在图9所示的指定方向上的轮廓走向确定。Since the welding point is also called a joint, the connection form included in this feature information is also called the joint form, and the connection situation is also called the joint direction. Since a weld seam will be formed at the welding point, such as the weld seam shown in Figure 9, the connection gap included in the characteristic information is also called a weld seam gap. Figure 9 also shows an exemplary connection gap. For example, the connection forms include but are not limited to butt joints, corner joints, lap joints, etc., and the joint directions include but are not limited to the rising edge direction and the falling edge direction. The joint direction can be based on the outline of the joint in the specified direction shown in Figure 9 Sure.
示例性地,在特征信息包括连接间隙的情况下,参见图10,根据特征信息确定焊接方式,可以包括:基于连接间隙小于第一数值,确定焊接方式为脉冲式焊接;或者,基于连接间隙大于或等于第一数值且小于第二数值,确定焊接方式为摆动式焊接,第二数值大于第一数值。本申请实施例不限定第一数值和第二数值的取值,比如,第一数值的取值为2毫米,第二数值的取值为4毫米。For example, when the characteristic information includes a connection gap, see FIG. 10 , determining the welding mode according to the characteristic information may include: determining that the welding mode is pulse welding based on the connection gap being smaller than a first value; or, determining the welding mode as pulse welding based on the connection gap being larger than a first value. Or equal to the first value and less than the second value, it is determined that the welding method is swing welding, and the second value is greater than the first value. The embodiments of the present application do not limit the values of the first numerical value and the second numerical value. For example, the first numerical value is 2 mm, and the second numerical value is 4 mm.
其中,在连接间隙大于或等于第一数值且小于第二数值的情况下,说明连接间隙较宽,因而可以采用摆动式焊接,也即是机械臂的末端一边焊接一边在上述的指定方向上摆动,以便于形成足够宽的焊缝填充该较宽的连接间隙,保证焊接质量和焊接成功率。或者,在连接间隙小于第一数值的情况下,说明连接间隙较窄,因而无需再采用摆动式焊接,直接采用脉冲式焊接即可。另外,基于连接间隙大于第二数值,说明连接间隙过宽,焊接难度过大,因而可以停止焊接,还可以提示由人工手动进行焊接。Among them, when the connection gap is greater than or equal to the first value and less than the second value, it means that the connection gap is wide, so swing welding can be used, that is, the end of the robot arm swings in the above specified direction while welding. , in order to form a sufficiently wide weld to fill the wider connection gap and ensure the welding quality and welding success rate. Or, when the connection gap is smaller than the first value, it means that the connection gap is narrow, so there is no need to use swing welding, and pulse welding can be used directly. In addition, based on the fact that the connection gap is greater than the second value, it means that the connection gap is too wide and the welding difficulty is too great, so the welding can be stopped, and a manual welding can also be prompted.
以上,通过步骤801至步骤803,说明了针对一个焊接处进行焊接的过程。如果存在连续的多个焊接处,则可以针对各个焊接处分别执行一次上述的步骤801至803,从而完成焊接。换言之,如果在一些复杂焊接场景下,需要对较长的、不规则的金属材料进行焊接,则可以将需要焊接的部分划分为多个焊接处, 对于每个焊接处分别执行一次上述的步骤801至803。由此,使得本申请实施例提供的焊接方法也能够适用于复杂焊接场景,增强了焊接方法的适用性。Above, through steps 801 to 803, the process of welding a welding point is explained. If there are multiple continuous welding places, the above-mentioned steps 801 to 803 can be performed once for each welding place to complete the welding. In other words, if long, irregular metal materials need to be welded in some complex welding scenarios, the part to be welded can be divided into multiple welding locations, and the above step 801 is performed once for each welding location. to 803. Therefore, the welding method provided by the embodiment of the present application can also be applied to complex welding scenarios, thereby enhancing the applicability of the welding method.
综上所述,本申请实施例由于控制视觉传感器获取了焊接处的目标图像,因而可以根据目标图像准确的确定目标起点坐标和目标终点坐标,实现了对焊接处的位置的准确识别。之后,控制机械臂的末端从目标起点坐标焊接至目标终点坐标,即可实现对焊接处的焊接,保证了焊接精度,并且提高了焊接质量。To sum up, in the embodiment of the present application, the visual sensor is controlled to obtain the target image of the welding point, so the target starting point coordinates and the target end point coordinates can be accurately determined based on the target image, thereby achieving accurate identification of the position of the welding point. After that, the end of the robotic arm is controlled to be welded from the target starting point coordinates to the target end point coordinates, so that the welding point can be welded, ensuring the welding accuracy and improving the welding quality.
其次参照附图描述根据本申请实施例提出的铝合金自动弧焊装置。Next, the aluminum alloy automatic arc welding device proposed according to the embodiment of the present application will be described with reference to the accompanying drawings.
图11是本申请实施例的铝合金自动弧焊装置的方框示意图。Figure 11 is a block diagram of an aluminum alloy automatic arc welding device according to an embodiment of the present application.
如图11所示,该铝合金自动弧焊装置10包括:采集模块100、计算模块200和焊接模块300。As shown in FIG. 11 , the aluminum alloy automatic arc welding device 10 includes: a collection module 100 , a calculation module 200 and a welding module 300 .
采集模块100,用于采集铝合金自动弧焊过程中的视觉数据。The collection module 100 is used to collect visual data during the automatic arc welding process of aluminum alloy.
计算模块200,用于根据视觉数据识别实焊工件的实际焊缝位置,并计算当前焊缝的实际焊缝间隙,且检测实际焊缝间隙与焊接之前的初始焊缝间隙是否一致。The calculation module 200 is used to identify the actual weld position of the actual welded workpiece based on the visual data, calculate the actual weld gap of the current weld, and detect whether the actual weld gap is consistent with the initial weld gap before welding.
焊接模块300,用于在检测到实际焊缝间隙与初始焊缝间隙不一致时,重新匹配实际间隙对应的目标焊接参数,并引导弧焊机器人移动至实际焊缝位置对应的工作位置后,基于目标焊接参数控制弧焊机器人对实焊工件执行焊接动作。The welding module 300 is used to re-match the target welding parameters corresponding to the actual gap when it is detected that the actual weld gap is inconsistent with the initial weld gap, and guide the arc welding robot to move to a working position corresponding to the actual weld position, based on the target The welding parameters control the arc welding robot to perform welding actions on the actual welding workpiece.
可选地,在本申请的一个实施例中,铝合金自动弧焊装置10还包括:转换模块。Optionally, in one embodiment of the present application, the aluminum alloy automatic arc welding device 10 further includes: a conversion module.
其中,转换模块,用于将弧焊机器人的机械手基坐标系、机械手末端工具坐标系与设置于弧焊机器人上的线结构光视觉传感器的线扫描仪坐标系进行坐标转换,得到手眼标定转换关系。Among them, the conversion module is used to perform coordinate conversion between the manipulator base coordinate system of the arc welding robot, the manipulator end tool coordinate system, and the line scanner coordinate system of the line structured light vision sensor installed on the arc welding robot to obtain the hand-eye calibration conversion relationship. .
可选地,在本申请的一个实施例中,计算模块200包括:第一获取单元和第二获取单元。Optionally, in one embodiment of the present application, the computing module 200 includes: a first acquisition unit and a second acquisition unit.
其中,第一获取单元,用于获取视觉数据中的焊缝起点图像和焊缝终点图像。Among them, the first acquisition unit is used to acquire the welding seam starting point image and the welding seam end point image in the visual data.
第二获取单元,用于根据焊缝起点图像与焊缝终点图像模拟整条焊缝长度和位置,得到实际焊缝位置和实际焊缝间隙。The second acquisition unit is used to simulate the length and position of the entire weld based on the weld starting point image and the welding end point image, and obtain the actual welding seam position and the actual welding seam gap.
可选地,在本申请的一个实施例中,焊接模块300包括:查找单元、第一计算单元和匹配单元。Optionally, in one embodiment of the present application, the welding module 300 includes: a search unit, a first calculation unit and a matching unit.
其中,查找单元,用于查找激光轮廓信息中定位接头特征位置。Among them, the search unit is used to find the position of the joint feature in the laser profile information.
第一计算单元,用于基于手眼标定转换关系,计算接头特征位置在机器手基坐标系下的三维坐标位置。The first calculation unit is used to calculate the three-dimensional coordinate position of the joint's characteristic position in the robot hand-based coordinate system based on the hand-eye calibration conversion relationship.
匹配单元,用于根据三维坐标位置计算示教位置与识别位置的距离,并根据接头形式与板间间隙匹配目标焊接工艺,得到目标焊接参数。The matching unit is used to calculate the distance between the teaching position and the identification position based on the three-dimensional coordinate position, and match the target welding process based on the joint form and the gap between the plates to obtain the target welding parameters.
可选地,在本申请的一个实施例中,焊接模块300还包括:扫描单元、第二计算单元和焊接单元。Optionally, in one embodiment of the present application, the welding module 300 further includes: a scanning unit, a second calculation unit and a welding unit.
其中,扫描单元,用于扫描实际焊缝位置,分别得到焊缝起点和焊缝终点的坐标值信息。Among them, the scanning unit is used to scan the actual welding seam position and obtain the coordinate value information of the welding seam starting point and the welding seam end point respectively.
第二计算单元,用于根据焊缝起点和焊缝终点的坐标值信息计算弧焊机器人的TCP位置坐标。The second calculation unit is used to calculate the TCP position coordinates of the arc welding robot based on the coordinate value information of the welding seam starting point and the welding seam end point.
焊接单元,用于基于TCP位置坐标引导弧焊机器人进行焊接。The welding unit is used to guide the arc welding robot for welding based on TCP position coordinates.
需要说明的是,前述对铝合金自动弧焊方法实施例的解释说明也适用于该实施例的铝合金自动弧焊装置,此处不再赘述。It should be noted that the foregoing explanation of the embodiment of the aluminum alloy automatic arc welding method is also applicable to the aluminum alloy automatic arc welding device of this embodiment, and will not be described again here.
根据本申请实施例提出的铝合金自动弧焊装置,可以采集铝合金自动弧焊过程中的视觉数据,进而识别实际焊缝位置,计算实际焊缝间隙,进而匹配目标焊接参数,并根据焊接过程中的焊缝变化,自行调用匹配目标焊接参数,从而引导弧焊机器人在对应位置执行焊接动作,使得弧焊机器人在因焊接热变形和累积公差产生的不均匀焊缝间隙的情况下,仍能精准快速找到焊接位置,可以有效提高焊接过程的自动化水平,提高焊接质量,无需人工从旁辅助检测焊缝位置并设置参数,从而降低人工成本,杜绝人为判断失误造成的事故损失。由此,解决了相关技术中由于对焊缝位置的扫描受限,无法实时把控焊接过程中的焊缝变化,使得自动弧焊无法在焊接过程中精准快速找到变化后的焊缝位置,从而影响焊接质量,增加人工成本的技术问题。According to the aluminum alloy automatic arc welding device proposed in the embodiment of the present application, the visual data during the aluminum alloy automatic arc welding process can be collected, and then the actual weld position can be identified, the actual weld gap can be calculated, and the target welding parameters can be matched. According to the changes in the weld seam, the arc welding robot can automatically call the matching target welding parameters to guide the arc welding robot to perform welding actions at the corresponding position, so that the arc welding robot can still achieve uneven weld seam gaps caused by welding thermal deformation and accumulated tolerances. Finding the welding position accurately and quickly can effectively improve the automation level of the welding process and improve the welding quality. There is no need for manual assistance to detect the welding seam position and set parameters, thus reducing labor costs and eliminating accident losses caused by human judgment errors. This solves the problem in related technologies that due to the limited scanning of the weld position, the inability to control the weld changes in the welding process in real time makes the automatic arc welding unable to accurately and quickly find the changed weld position during the welding process, thus Technical issues that affect welding quality and increase labor costs.
图12为本申请实施例提供的一种焊接装置的结构示意图,该装置应用于焊接系统包括的电子设备,焊接系统还包括机械臂和固定于机械臂的视觉传感器。参见图12,该焊接装置包括如下的几个模块。Figure 12 is a schematic structural diagram of a welding device provided by an embodiment of the present application. The device is applied to electronic equipment included in the welding system. The welding system also includes a robotic arm and a visual sensor fixed to the robotic arm. Referring to Figure 12, the welding device includes the following modules.
第一控制模块1201,用于控制视觉传感器获取焊接处对应的目标图像;The first control module 1201 is used to control the visual sensor to obtain the target image corresponding to the welding joint;
获取模块1202,用于根据目标图像获取焊接处对应的目标起点坐标和目标终点坐标;The acquisition module 1202 is used to obtain the target starting point coordinates and the target end point coordinates corresponding to the welding joint according to the target image;
第二控制模块1203,用于控制机械臂的末端从目标起点坐标焊接至目标终 点坐标。The second control module 1203 is used to control the end of the robotic arm to be welded from the target starting point coordinates to the target end point coordinates.
在示例性实施例中,目标图像由视觉传感器在机械臂的末端位于初始坐标的情况下获取,初始坐标包括初始起点坐标和初始终点坐标;In an exemplary embodiment, the target image is acquired by the vision sensor when the end of the robotic arm is located at initial coordinates, and the initial coordinates include initial starting point coordinates and initial end point coordinates;
获取模块1202,还用于确定初始起点坐标与目标起点坐标之间的第一偏移量,确定初始终点坐标与目标终点坐标之间的第二偏移量;根据第一偏移量和第二偏移量确定移动方式,按照移动方式控制机械臂的末端从初始起点坐标移动至目标起点坐标。The acquisition module 1202 is also used to determine the first offset between the initial starting point coordinates and the target starting point coordinates, and determine the second offset between the initial end point coordinates and the target end point coordinates; according to the first offset and the second The offset determines the movement mode, according to which the end of the robotic arm is controlled to move from the initial starting point coordinates to the target starting point coordinates.
在示例性实施例中,目标起点坐标和目标终点坐标为机械臂的末端对应的末端坐标系下的坐标;In an exemplary embodiment, the target starting point coordinates and the target end point coordinates are coordinates in an end coordinate system corresponding to the end of the robotic arm;
获取模块1202,用于根据末端坐标系与传感器坐标系之间的第一转换矩阵将参考起点坐标转换为目标起点坐标,根据第一转换矩阵将参考终点坐标转换为目标终点坐标。The acquisition module 1202 is configured to convert the reference starting point coordinates into the target starting point coordinates according to the first transformation matrix between the terminal coordinate system and the sensor coordinate system, and convert the reference end point coordinates into the target end point coordinates according to the first transformation matrix.
在示例性实施例中,获取模块1202,还用于获取第一坐标和至少两个第二坐标,第一坐标为标定元件的中心在机械臂的基座对应的基座坐标系下的坐标,至少两个第二坐标中的任意一个第二坐标对应一个位姿,任意一个第二坐标为机械臂的末端处于对应的位姿时标定元件的中心在传感器坐标系下的坐标;根据第一坐标、至少两个第二坐标、任意一个第二坐标对应的位姿和末端坐标系与基座坐标系之间的第二转换矩阵,求解得到第一转换矩阵。In an exemplary embodiment, the acquisition module 1202 is also used to acquire the first coordinate and at least two second coordinates. The first coordinate is the coordinate of the center of the calibration element in the base coordinate system corresponding to the base of the robot arm, Any one of the at least two second coordinates corresponds to a pose, and any second coordinate is the coordinate of the center of the calibration element in the sensor coordinate system when the end of the robotic arm is in the corresponding pose; according to the first coordinate , at least two second coordinates, the pose corresponding to any second coordinate and the second transformation matrix between the end coordinate system and the base coordinate system, and the first transformation matrix is obtained by solving.
在示例性实施例中,获取模块1202,用于从目标图像中确定焊接处所在的区域;基于焊接处所在的区域包括反光像素,根据反光像素周围的其他像素将反光像素更新为非反光像素,得到更新后的目标图像,反光像素为焊接处的反光部分对应的像素;根据更新后的目标图像获取目标起点坐标和目标终点坐标。In an exemplary embodiment, the acquisition module 1202 is used to determine the area where the welding place is located from the target image; based on the area where the welding place is located includes reflective pixels, update the reflective pixels to non-reflective pixels based on other pixels around the reflective pixels, The updated target image is obtained, and the reflective pixels are the pixels corresponding to the reflective part of the welding joint; the target starting point coordinates and the target end point coordinates are obtained according to the updated target image.
在示例性实施例中,获取模块1202,还用于根据目标图像获取焊接处的特征信息,根据特征信息确定焊接方式,特征信息包括连接形式、连接情况和连接间隙中的至少一种信息;In an exemplary embodiment, the acquisition module 1202 is also configured to obtain the characteristic information of the welding place according to the target image, and determine the welding method according to the characteristic information. The characteristic information includes at least one of connection form, connection situation and connection gap;
第二控制模块1203,用于控制机械臂的末端按照焊接方式从目标起点坐标焊接至目标终点坐标。The second control module 1203 is used to control the end of the robotic arm to be welded from the target starting point coordinates to the target end point coordinates in a welding manner.
在示例性实施例中,特征信息包括连接间隙,获取模块1202,用于基于连接间隙小于第一数值,确定焊接方式为脉冲式焊接;或者,基于连接间隙大于或等于第一数值且小于第二数值,确定焊接方式为摆动式焊接,第二数值大于第一数值。In an exemplary embodiment, the characteristic information includes a connection gap, and the acquisition module 1202 is configured to determine that the welding method is pulse welding based on the connection gap being less than a first value; or, based on the connection gap being greater than or equal to the first value and less than a second value. The value determines that the welding method is swing welding, and the second value is greater than the first value.
本申请实施例由于控制视觉传感器获取了焊接处的目标图像,因而可以根据目标图像准确的确定目标起点坐标和目标终点坐标,实现了对焊接处的位置的准确识别。之后,控制机械臂的末端从目标起点坐标焊接至目标终点坐标,即可实现对焊接处的焊接,保证了焊接精度,并且提高了焊接质量。In the embodiment of the present application, the visual sensor is controlled to obtain the target image of the welding point, so the target starting point coordinates and the target end point coordinates can be accurately determined based on the target image, thereby achieving accurate identification of the position of the welding point. After that, the end of the robotic arm is controlled to be welded from the target starting point coordinates to the target end point coordinates, so that the welding point can be welded, ensuring the welding accuracy and improving the welding quality.
图13为本申请实施例提供的一种示例的电子设备的结构示意图。该电子设备可以包括:存储器701、处理器702及存储在存储器701上并可在处理器702上运行的计算机程序。FIG. 13 is a schematic structural diagram of an example electronic device provided by an embodiment of the present application. The electronic device may include: a memory 701, a processor 702, and a computer program stored on the memory 701 and executable on the processor 702.
处理器702执行程序时实现上述实施例中提供的铝合金自动弧焊方法。比如,处理器702执行计算机程序时,电子设备实现图1和图5对应的铝合金自动弧焊方法。或者,处理器702执行计算机程序时,电子设备实现图8对应的焊接方法。When the processor 702 executes the program, the aluminum alloy automatic arc welding method provided in the above embodiment is implemented. For example, when the processor 702 executes the computer program, the electronic device implements the aluminum alloy automatic arc welding method corresponding to Figures 1 and 5. Alternatively, when the processor 702 executes the computer program, the electronic device implements the welding method corresponding to FIG. 8 .
进一步地,电子设备还包括:通信接口703,用于存储器701和处理器702之间的通信。Further, the electronic device also includes: a communication interface 703 for communication between the memory 701 and the processor 702 .
存储器701可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 701 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
如果存储器701、处理器702和通信接口703独立实现,则通信接口703、存储器701和处理器702可以通过总线相互连接并完成相互间的通信。总线可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线、外部设备互连(Peripheral Component,简称为PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,简称为EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图13中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 can be connected to each other through a bus and complete communication with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 13, but it does not mean that there is only one bus or one type of bus.
可选地,如果存储器701、处理器702及通信接口703,集成在一块芯片上实现,则存储器701、处理器702及通信接口703可以通过内部接口完成相互间的通信。Alternatively, if the memory 701, the processor 702 and the communication interface 703 are integrated and implemented on one chip, the memory 701, the processor 702 and the communication interface 703 can communicate with each other through the internal interface.
处理器702可能是一个中央处理器(Central Processing Unit,简称为CPU),或者是特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路。The processor 702 may be a central processing unit (Central Processing Unit, CPU for short), or an Application Specific Integrated Circuit (ASIC for short), or one or more processors configured to implement the embodiments of the present application. integrated circuit.
本实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序 被处理器执行时实现如上的铝合金自动弧焊方法。比如,计算机可读存储介质上存储的计算机程序被处理器执行时,电子设备实现图1和图5对应的铝合金自动弧焊方法,或者实现图8对应的焊接方法。This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by the processor, the above aluminum alloy automatic arc welding method is implemented. For example, when the computer program stored on the computer-readable storage medium is executed by the processor, the electronic device implements the aluminum alloy automatic arc welding method corresponding to Figures 1 and 5, or implements the welding method corresponding to Figure 8.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、或“一些示例”等的描述意指结合该实施例或示例描述的特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的特征、结构、材料或者特点可以在任一个或N个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "examples," or "some examples" or the like means that features, structures, materials, or characteristics are described in connection with the embodiment or example. Included in at least one embodiment or example of this application. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described features, structures, materials or characteristics may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification unless they are inconsistent with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“N个”的含义是至少两个,例如两个,三个等,除非另有明确的限定。In addition, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly limited.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更N个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments, or portions of code that include one or more executable instructions for implementing customized logical functions or steps of the process. , and the scope of the embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in a substantially simultaneous manner or in the reverse order depending on the functionality involved, which should be It is understood by those skilled in the art to which the embodiments of the present application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。The logic and/or steps represented in the flowchart diagrams or otherwise described herein, for example, may be considered a sequenced list of executable instructions for implementing the logical functions, and may be implemented in any computer-readable medium to For use by, or in conjunction with, instruction execution systems, devices or devices (such as computer-based systems, systems including processors or other systems that can fetch instructions from and execute instructions). equipment for use. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
计算机可读介质的示例(非穷尽性列表)包括以下:具有一个或N个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以 是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。Examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or N wires (electronic device), portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, and subsequently edited, interpreted, or otherwise suitable as necessary. process to obtain the program electronically and then store it in computer memory.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,N个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present application can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods may be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if it is implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: discrete logic gate circuits with logic functions for implementing data signals; Logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps involved in implementing the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The program can be stored in a computer-readable storage medium. When executed, one of the steps of the method embodiment or a combination thereof is included.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in various embodiments of the present application can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage media mentioned above can be read-only memory, magnetic disks or optical disks, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above-mentioned embodiments are illustrative and cannot be understood as limitations of the present application. Those of ordinary skill in the art can make modifications to the above-mentioned embodiments within the scope of the present application. The embodiments are subject to changes, modifications, substitutions and variations.

Claims (10)

  1. 一种焊接方法,其特征在于,所述方法应用于焊接系统包括的电子设备,所述焊接系统还包括机械臂和固定于所述机械臂的视觉传感器,所述方法包括:A welding method, characterized in that the method is applied to the electronic equipment included in the welding system, the welding system also includes a mechanical arm and a visual sensor fixed to the mechanical arm, the method includes:
    控制所述视觉传感器获取焊接处对应的目标图像;Control the vision sensor to obtain the target image corresponding to the welding point;
    根据所述目标图像获取所述焊接处对应的目标起点坐标和目标终点坐标;Obtain the target starting point coordinates and target end point coordinates corresponding to the welding point according to the target image;
    控制所述机械臂的末端从所述目标起点坐标焊接至所述目标终点坐标。Control the end of the robotic arm to be welded from the target starting point coordinates to the target end point coordinates.
  2. 根据权利要求1所述的方法,其特征在于,所述目标图像由所述视觉传感器在所述机械臂的末端位于初始坐标的情况下获取,所述初始坐标包括初始起点坐标和初始终点坐标;The method according to claim 1, wherein the target image is acquired by the visual sensor when the end of the robotic arm is located at initial coordinates, and the initial coordinates include initial starting point coordinates and initial end point coordinates;
    所述方法还包括:The method also includes:
    确定所述初始起点坐标与所述目标起点坐标之间的第一偏移量,确定所述初始终点坐标与所述目标终点坐标之间的第二偏移量;Determine a first offset between the initial starting point coordinates and the target starting point coordinates, and determine a second offset between the initial end point coordinates and the target end point coordinates;
    根据所述第一偏移量和所述第二偏移量确定移动方式,按照所述移动方式控制所述机械臂的末端从所述初始起点坐标移动至所述目标起点坐标。A movement mode is determined according to the first offset amount and the second offset amount, and the end of the robotic arm is controlled to move from the initial starting point coordinates to the target starting point coordinates according to the movement mode.
  3. 根据权利要求1所述的方法,其特征在于,所述目标起点坐标和所述目标终点坐标为所述机械臂的末端对应的末端坐标系下的坐标;The method according to claim 1, characterized in that the target starting point coordinates and the target end point coordinates are coordinates in an end coordinate system corresponding to the end of the robotic arm;
    所述根据所述目标图像获取所述焊接处对应的目标起点坐标和目标终点坐标,包括:Obtaining the target starting point coordinates and target end point coordinates corresponding to the welding point according to the target image includes:
    根据所述目标图像获取所述视觉传感器对应的传感器坐标系下的参考起点坐标和参考终点坐标;Obtain the reference starting point coordinates and the reference end point coordinates in the sensor coordinate system corresponding to the visual sensor according to the target image;
    根据末端坐标系与所述传感器坐标系之间的第一转换矩阵将所述参考起点坐标转换为所述目标起点坐标,根据所述第一转换矩阵将所述参考终点坐标转换为所述目标终点坐标。The reference starting point coordinates are converted into the target starting point coordinates according to the first transformation matrix between the terminal coordinate system and the sensor coordinate system, and the reference end point coordinates are converted into the target end point according to the first transformation matrix. coordinate.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, further comprising:
    获取第一坐标和至少两个第二坐标,所述第一坐标为标定元件的中心在所述机械臂的基座对应的基座坐标系下的坐标,所述至少两个第二坐标中的任意一个第二坐标对应一个位姿,所述任意一个第二坐标为所述机械臂的末端处于 对应的位姿时所述标定元件的中心在所述传感器坐标系下的坐标;Obtain a first coordinate and at least two second coordinates. The first coordinate is the coordinate of the center of the calibration element in the base coordinate system corresponding to the base of the robotic arm. Among the at least two second coordinates, Any second coordinate corresponds to a pose, and the any second coordinate is the coordinate of the center of the calibration element in the sensor coordinate system when the end of the robotic arm is in the corresponding pose;
    根据所述第一坐标、所述至少两个第二坐标、所述任意一个第二坐标对应的位姿和所述末端坐标系与所述基座坐标系之间的第二转换矩阵,求解得到所述第一转换矩阵。According to the first coordinate, the at least two second coordinates, the posture corresponding to any one of the second coordinates, and the second transformation matrix between the end coordinate system and the base coordinate system, the solution is the first transformation matrix.
  5. 根据权利要求1-4任一所述的方法,其特征在于,所述根据所述目标图像获取所述焊接处对应的目标起点坐标和目标终点坐标,包括:The method according to any one of claims 1 to 4, characterized in that, obtaining the target starting point coordinates and target end point coordinates corresponding to the welding point according to the target image includes:
    从所述目标图像中确定所述焊接处所在的区域;Determine the area where the weld is located from the target image;
    基于所述焊接处所在的区域包括反光像素,根据所述反光像素周围的其他像素将所述反光像素更新为非反光像素,得到更新后的目标图像,所述反光像素为所述焊接处的反光部分对应的像素;Based on the fact that the area where the welding point is located includes reflective pixels, the reflective pixels are updated to non-reflective pixels according to other pixels around the reflective pixel, and an updated target image is obtained. The reflective pixels are the reflection of the welding point. Partially corresponding pixels;
    根据所述更新后的目标图像获取所述目标起点坐标和所述目标终点坐标。The target starting point coordinates and the target end point coordinates are obtained according to the updated target image.
  6. 根据权利要求1-4任一所述的方法,其特征在于,The method according to any one of claims 1-4, characterized in that,
    所述方法还包括:根据所述目标图像获取所述焊接处的特征信息,根据所述特征信息确定焊接方式,所述特征信息包括连接形式、连接情况和连接间隙中的至少一种信息;The method further includes: obtaining characteristic information of the welding place according to the target image, and determining a welding method according to the characteristic information, where the characteristic information includes at least one of connection form, connection situation and connection gap;
    所述控制所述机械臂的末端从所述目标起点坐标焊接至所述目标终点坐标,包括:控制所述机械臂的末端按照所述焊接方式从所述目标起点坐标焊接至所述目标终点坐标。Controlling the end of the robotic arm to be welded from the target starting point coordinate to the target end point coordinate includes: controlling the end of the robotic arm to be welded from the target starting point coordinate to the target end point coordinate according to the welding method. .
  7. 根据权利要求6所述的方法,其特征在于,所述特征信息包括所述连接间隙,所述根据所述特征信息确定焊接方式,包括:The method according to claim 6, wherein the characteristic information includes the connection gap, and determining the welding method according to the characteristic information includes:
    基于所述连接间隙小于第一数值,确定所述焊接方式为脉冲式焊接;Based on the connection gap being less than the first value, it is determined that the welding method is pulse welding;
    或者,基于所述连接间隙大于或等于所述第一数值且小于第二数值,确定所述焊接方式为摆动式焊接,所述第二数值大于所述第一数值。Alternatively, it is determined that the welding method is swing welding based on the fact that the connection gap is greater than or equal to the first value and less than a second value, and the second value is greater than the first value.
  8. 一种焊接装置,其特征在于,所述装置应用于焊接系统包括的电子设备,所述焊接系统还包括机械臂和固定于所述机械臂的视觉传感器,所述装置包括:A welding device, characterized in that the device is applied to electronic equipment included in the welding system. The welding system also includes a robotic arm and a visual sensor fixed to the robotic arm. The device includes:
    第一控制模块,用于控制所述视觉传感器获取焊接处对应的目标图像;The first control module is used to control the visual sensor to obtain the target image corresponding to the welding joint;
    获取模块,用于根据所述目标图像获取所述焊接处对应的目标起点坐标和 目标终点坐标;An acquisition module, configured to acquire the target starting point coordinates and the target end point coordinates corresponding to the welding point according to the target image;
    第二控制模块,用于控制所述机械臂的末端从所述目标起点坐标焊接至所述目标终点坐标。The second control module is used to control the end of the robotic arm to be welded from the target starting point coordinate to the target end point coordinate.
  9. 一种电子设备,其特征在于,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序,以使得所述电子设备实现如权利要求1-7任一项所述的焊接方法。An electronic device, characterized in that it includes: a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor executes the computer program so that the electronic device The equipment implements the welding method according to any one of claims 1-7.
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行,以使得电子设备用于实现如权利要求1-7任一项所述的焊接方法。A computer-readable storage medium with a computer program stored thereon, characterized in that the computer program is executed by a processor, so that the electronic device is used to implement the welding method according to any one of claims 1-7.
PCT/CN2022/129002 2022-04-22 2022-11-01 Welding method and apparatus, and electronic device and computer-readable storage medium WO2023202031A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210439273.0 2022-04-22
CN202210439273.0A CN114714029B (en) 2022-04-22 2022-04-22 Automatic arc welding method and device for aluminum alloy

Publications (1)

Publication Number Publication Date
WO2023202031A1 true WO2023202031A1 (en) 2023-10-26

Family

ID=82245227

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/129002 WO2023202031A1 (en) 2022-04-22 2022-11-01 Welding method and apparatus, and electronic device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN114714029B (en)
WO (1) WO2023202031A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117226330A (en) * 2023-11-15 2023-12-15 法奥意威(苏州)机器人系统有限公司 Locating method and device based on laser sensing and electronic equipment
CN117444988A (en) * 2023-12-22 2024-01-26 佛山墨家科技有限公司 Method for confirming real starting point and end point of welding line under error of space positioning

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114714029B (en) * 2022-04-22 2023-09-12 奇瑞新能源汽车股份有限公司 Automatic arc welding method and device for aluminum alloy

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5572102A (en) * 1995-02-28 1996-11-05 Budd Canada Inc. Method and apparatus for vision control of welding robots
JP2013035054A (en) * 2011-08-10 2013-02-21 Daihen Corp Welding robot control device
WO2017198299A1 (en) * 2016-05-19 2017-11-23 Abb Schweiz Ag Method of simulating a robotic system
CN110142533A (en) * 2019-05-23 2019-08-20 深圳市科瑞悦电气设备有限公司 A kind of automatic soldering method and welder based on machine vision Yu AI algorithm
CN110480128A (en) * 2019-08-28 2019-11-22 华南理工大学 A kind of real-time welding seam tracking method of six degree of freedom welding robot line laser
CN110524580A (en) * 2019-09-16 2019-12-03 西安中科光电精密工程有限公司 A kind of welding robot visual component and its measurement method
CN113954085A (en) * 2021-09-08 2022-01-21 重庆大学 Intelligent positioning and control method of welding robot based on binocular vision and linear laser sensing data fusion
CN114714029A (en) * 2022-04-22 2022-07-08 奇瑞新能源汽车股份有限公司 Automatic arc welding method and device for aluminium alloy

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102814574B (en) * 2012-09-06 2014-09-10 江苏科技大学 Narrow gap welding monitoring and welding line deviation detecting method based on infrared vision sensing
CN108890135A (en) * 2018-09-21 2018-11-27 吉林大学 Laser-vision sensing weld gap detection device and method
CN111037062B (en) * 2018-10-12 2021-04-13 哈尔滨工业大学 Adaptive control and automatic visual inspection method for GTAW weld forming
AT522660A1 (en) * 2019-06-04 2020-12-15 Smf Friedlbinder Gmbh Method and device for the automatic control of a metal welding process
CN111215747A (en) * 2019-11-22 2020-06-02 西安飞机工业(集团)有限责任公司 Laser welding method capable of adjusting according to assembly clearance
CN112338392A (en) * 2020-09-24 2021-02-09 唐山英莱科技有限公司 Laser vision locating correction method for welding seam gap of industrial robot
CN113369761B (en) * 2021-07-09 2023-07-21 北京石油化工学院 Method and system for positioning welding seam based on vision guiding robot

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5572102A (en) * 1995-02-28 1996-11-05 Budd Canada Inc. Method and apparatus for vision control of welding robots
JP2013035054A (en) * 2011-08-10 2013-02-21 Daihen Corp Welding robot control device
WO2017198299A1 (en) * 2016-05-19 2017-11-23 Abb Schweiz Ag Method of simulating a robotic system
CN110142533A (en) * 2019-05-23 2019-08-20 深圳市科瑞悦电气设备有限公司 A kind of automatic soldering method and welder based on machine vision Yu AI algorithm
CN110480128A (en) * 2019-08-28 2019-11-22 华南理工大学 A kind of real-time welding seam tracking method of six degree of freedom welding robot line laser
CN110524580A (en) * 2019-09-16 2019-12-03 西安中科光电精密工程有限公司 A kind of welding robot visual component and its measurement method
CN113954085A (en) * 2021-09-08 2022-01-21 重庆大学 Intelligent positioning and control method of welding robot based on binocular vision and linear laser sensing data fusion
CN114714029A (en) * 2022-04-22 2022-07-08 奇瑞新能源汽车股份有限公司 Automatic arc welding method and device for aluminium alloy

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117226330A (en) * 2023-11-15 2023-12-15 法奥意威(苏州)机器人系统有限公司 Locating method and device based on laser sensing and electronic equipment
CN117226330B (en) * 2023-11-15 2024-01-26 法奥意威(苏州)机器人系统有限公司 Locating method and device based on laser sensing and electronic equipment
CN117444988A (en) * 2023-12-22 2024-01-26 佛山墨家科技有限公司 Method for confirming real starting point and end point of welding line under error of space positioning
CN117444988B (en) * 2023-12-22 2024-03-12 佛山墨家科技有限公司 Method for confirming real starting point and end point of welding line under error of space positioning

Also Published As

Publication number Publication date
CN114714029B (en) 2023-09-12
CN114714029A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
WO2023202031A1 (en) Welding method and apparatus, and electronic device and computer-readable storage medium
US11565427B2 (en) Robot system
JP6429473B2 (en) Robot system, robot system calibration method, program, and computer-readable recording medium
US8406923B2 (en) Apparatus for determining pickup pose of robot arm with camera
WO2018043525A1 (en) Robot system, robot system control device, and robot system control method
JP6856590B2 (en) Sensing systems, work systems, augmented reality image display methods, and programs
JP2019018272A (en) Motion generation method, motion generation device, system, and computer program
JP2020015128A (en) Sensing system, work system, extended reality image display method, extended reality image memorizing method, and program
WO2020252632A1 (en) Coordinate system calibration method, device, and computer readable medium
CN113369761B (en) Method and system for positioning welding seam based on vision guiding robot
JP6768865B2 (en) Work management system and work management method
JP6973233B2 (en) Image processing system, image processing device and image processing program
JP2021033712A (en) Image processing device, imaging apparatus, robot and robot system
CN109128540A (en) A kind of T connector laser welding focal track determines method
JP5636148B2 (en) Automatic welding machine position detection system
JP2011128020A (en) Device and method for position estimation of moving body
EP4177015B1 (en) Robot teaching system
US20230123629A1 (en) 3d computer-vision system with variable spatial resolution
WO2023013740A1 (en) Robot control device, robot control system, and robot control method
JP2009125839A (en) Weld teaching position correction system
WO2021261411A1 (en) Robot teaching method and robot working method
CN115082550A (en) Apparatus and method for locating position of object from camera image of object
CN113516715A (en) Target area inputting method and device, storage medium, chip and robot
CN117444988B (en) Method for confirming real starting point and end point of welding line under error of space positioning
JP3396072B2 (en) Three-dimensional position measuring method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22938250

Country of ref document: EP

Kind code of ref document: A1