[go: up one dir, main page]

CN115476333A - A positioning method and system for a spraying robot - Google Patents

A positioning method and system for a spraying robot Download PDF

Info

Publication number
CN115476333A
CN115476333A CN202211112840.8A CN202211112840A CN115476333A CN 115476333 A CN115476333 A CN 115476333A CN 202211112840 A CN202211112840 A CN 202211112840A CN 115476333 A CN115476333 A CN 115476333A
Authority
CN
China
Prior art keywords
sensor
chassis
workpiece
real
edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211112840.8A
Other languages
Chinese (zh)
Inventor
王天昊
谢继伟
施成
曾子敬
杨乐
文文
王天池
陈昶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Railway Science & Industry Group Co ltd
Original Assignee
China Railway Science & Industry Group Co ltd
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 China Railway Science & Industry Group Co ltd filed Critical China Railway Science & Industry Group Co ltd
Priority to CN202211112840.8A priority Critical patent/CN115476333A/en
Publication of CN115476333A publication Critical patent/CN115476333A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J5/00Manipulators mounted on wheels or on carriages
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J11/00Manipulators not otherwise provided for
    • B25J11/0075Manipulators for painting or coating
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • B25J9/1664Programme controls characterised by programming, planning systems for manipulators characterised by motion, path, trajectory planning
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Manipulator (AREA)
  • Spray Control Apparatus (AREA)
  • Application Of Or Painting With Fluid Materials (AREA)

Abstract

本发明提供了一种喷涂机器人的定位方法及系统,通过获取传感器上传的测量数据;根据所述边缘距离和所述边缘角度分析得到所述传感器相对于工件喷涂表面的传感器实时位姿。通过一套激光雷达传感器,获取传感器与工件表面的位置关系,并且由于传感器与机器人底盘之间的安装位置关系相对固定,进而可以分析得到机器人底盘和工件表面之间的位置关系,此时机器人的定位仅与工件表面有关,不受外界因素的干扰,不需要预先扫描建图或人工操作(粘贴磁体或色带),无需底盘相对地面定位后机械臂再相对喷涂表面定位,机器人可根据工件喷涂表面自适应喷涂作业,提高喷涂机器人的定位精度和稳定性、降低操作复杂度。

Figure 202211112840

The invention provides a positioning method and system for a spraying robot. By acquiring measurement data uploaded by a sensor, and analyzing the edge distance and the edge angle, the real-time pose of the sensor relative to the spraying surface of a workpiece is obtained. Through a set of lidar sensors, the positional relationship between the sensor and the workpiece surface is obtained, and since the installation position relationship between the sensor and the robot chassis is relatively fixed, the positional relationship between the robot chassis and the workpiece surface can be analyzed. Positioning is only related to the surface of the workpiece, free from interference from external factors, no need for pre-scanning and mapping or manual operation (sticking magnets or ribbons), no need for the chassis to be positioned relative to the ground, and then the robot arm is then positioned relative to the spraying surface, the robot can spray according to the workpiece The surface self-adaptive spraying operation improves the positioning accuracy and stability of the spraying robot and reduces the operation complexity.

Figure 202211112840

Description

一种喷涂机器人的定位方法及系统A positioning method and system for a spraying robot

技术领域technical field

本发明涉及机器人控制技术领域,具体而言,涉及一种喷涂机器人的定位方法及系统。The invention relates to the technical field of robot control, in particular to a positioning method and system for a spraying robot.

背景技术Background technique

随着科学技术的快速发展,以及企业数字化转型的必然需求。喷涂机器人作为特殊作业的工业机器人,除了可极大地降低工人的劳动强度和改善工作环境外,也满足高效环保、高质高量的喷涂要求,是未来自动化喷涂发展的必然趋势。目前小型工件或特定场景(车库等)的喷涂较易实现,因小型工件无需移动,特定场景特征明显易于定位。对于大型工件,如桥梁节段等几十米级别的工件喷涂则涉及移动底盘相对喷涂表面的定位导航问题,保证机械臂喷涂位姿符合喷涂路径规划,否则底盘难以保证与喷涂表面行走平行,从而导致喷涂质量问题。而且这种大型工件的厂房一般较为空旷,特征较少,且工件摆放每次不同,则需要一套传感器可以实时检测工件特征从而实时进行闭环控制底盘的位置导航。但工件表面一般较为平坦,在较大范围内可能无明显特征,如何保证移动机器人行走时相对喷涂表面进行定位与导航,从而保证喷涂质量,是目前的技术难题。With the rapid development of science and technology, and the inevitable demand for digital transformation of enterprises. As an industrial robot for special operations, spraying robots can not only greatly reduce the labor intensity of workers and improve the working environment, but also meet the requirements of high-efficiency, environmental protection, high-quality and high-quantity spraying, which is an inevitable trend in the development of automated spraying in the future. At present, the spraying of small workpieces or specific scenes (garages, etc.) is easier to achieve, because small workpieces do not need to be moved, and the characteristics of specific scenes are obviously easy to locate. For large-scale workpieces, such as bridge segments, the spraying of tens of meters of workpieces involves the positioning and navigation of the mobile chassis relative to the spraying surface to ensure that the spraying pose of the manipulator conforms to the spraying path planning, otherwise it is difficult to ensure that the chassis is parallel to the spraying surface, thus Lead to spray quality problems. Moreover, the factory building for such large workpieces is generally relatively empty, with few features, and the placement of workpieces is different each time. A set of sensors is needed to detect the characteristics of the workpiece in real time so as to perform closed-loop control of the position navigation of the chassis in real time. However, the surface of the workpiece is generally relatively flat, and there may be no obvious features in a large range. How to ensure the positioning and navigation of the mobile robot relative to the spraying surface when walking, so as to ensure the quality of spraying, is a current technical problem.

现有技术中,一般解决方案为磁条、色带、slam(Simultaneous localizationandmapping、同步定位与建图)等。但这些方法均存在:1)精度一般,通常只能达到厘米甚至分米级精度,且工件摆放每次均有偏差,工件坐标与机器人地图坐标存在误差,难以检测,需要额外传感器;2)操作复杂,若为磁条或色带情况则需要每次重新贴放等操作,且喷涂环境恶劣可能造成涂料覆盖或其他干扰导致精度问题。若slam则因为一般大型工件厂房尺寸较大且空旷,特征点较少,且可能每次喷涂发生变化,这就需要每次环境变化后重新操作机器人沿厂房行走一遍进行扫图建图,操作复杂麻烦;3)稳定性较差,slam容易遇到各类问题,如定位丢失、原点丢失、狭窄路径难以通过等。In the prior art, the general solutions are magnetic stripes, ribbons, slam (Simultaneous localization and mapping, simultaneous localization and mapping), etc. However, these methods all have: 1) the accuracy is average, usually only centimeter or even decimeter-level accuracy can be achieved, and the workpiece placement has deviations every time, and there is an error between the coordinates of the workpiece and the robot map coordinates, which is difficult to detect and requires additional sensors; 2) The operation is complicated. In the case of magnetic strips or ribbons, operations such as re-positioning are required each time, and the harsh spraying environment may cause paint coverage or other interferences to cause accuracy problems. In the case of slam, because the general large-scale workpiece workshop is large in size and empty, with few feature points, and may change every time it is sprayed, it is necessary to re-operate the robot to walk along the workshop to scan and build maps after each environmental change, which is complicated to operate. Trouble; 3) The stability is poor, and slam is prone to various problems, such as loss of positioning, loss of origin, and difficulty in passing through narrow paths.

发明内容Contents of the invention

本发明所要解决的问题是如何提高喷涂机器人的定位精度和稳定性以及降低操作复杂度。The problem to be solved by the invention is how to improve the positioning accuracy and stability of the spraying robot and reduce the operation complexity.

为解决上述问题,一方面,本发明提供了一种喷涂机器人的定位方法,包括:In order to solve the above problems, on the one hand, the present invention provides a positioning method for a spraying robot, including:

获取传感器上传的测量数据;其中,所述测量数据包括所述传感器到工件边缘位置的边缘距离以及工件边缘位置相对于所述传感器的边缘角度;Acquiring measurement data uploaded by the sensor; wherein the measurement data includes the edge distance from the sensor to the edge position of the workpiece and the edge angle of the edge position of the workpiece relative to the sensor;

根据所述边缘距离和所述边缘角度分析得到所述传感器相对于工件喷涂表面的传感器实时位姿;According to the edge distance and the edge angle analysis, the real-time pose of the sensor relative to the sprayed surface of the workpiece is obtained;

根据所述传感器实时位姿以及所述传感器与机器人底盘的位置关系,得到所述底盘相对于所述工件喷涂表面的底盘实时位姿;According to the real-time pose of the sensor and the positional relationship between the sensor and the robot chassis, the real-time pose of the chassis relative to the sprayed surface of the workpiece is obtained;

获取所述机器人底盘的预设路径轨迹,根据所述预设路径轨迹和所述底盘实时位姿,分析得到底盘运行的控制量;Obtaining the preset path trajectory of the robot chassis, analyzing and obtaining the control amount of the chassis operation according to the preset path trajectory and the real-time pose of the chassis;

根据所述底盘运行的控制量修正所述机器人的运行轨迹。The running track of the robot is corrected according to the control amount of the running of the chassis.

进一步地,所述根据所述边缘距离和所述边缘角度分析得到所述传感器相对于工件喷涂表面的传感器实时位姿包括:Further, the analyzing and obtaining the real-time pose of the sensor relative to the sprayed surface of the workpiece according to the edge distance and the edge angle includes:

根据所述边缘距离和所述边缘角度分析得到所述传感器在所述工件表面的投影点到所述工件边缘位置的投影距离;Obtain the projection distance from the projection point of the sensor on the surface of the workpiece to the edge position of the workpiece according to the edge distance and the edge angle analysis;

根据所述边缘距离、所述边缘角度和所述投影距离分析得到传感器空间坐标和传感器旋转矩阵;Obtaining sensor space coordinates and sensor rotation matrix according to the analysis of the edge distance, the edge angle and the projection distance;

根据所述传感器空间坐标和所述传感器旋转矩阵得到所述传感器相对于工件喷涂表面的传感器实时位姿。The real-time pose of the sensor relative to the sprayed surface of the workpiece is obtained according to the sensor space coordinates and the sensor rotation matrix.

进一步地,所述根据所述边缘距离和所述边缘角度分析得到所述传感器在所述工件表面的投影点到所述工件边缘位置的投影距离包括:Further, the obtaining the projection distance from the projection point of the sensor on the surface of the workpiece to the edge position of the workpiece according to the edge distance and the edge angle analysis includes:

结合余弦定理,根据所述边缘距离和所述边缘角度分析得到所述传感器在所述工件表面的投影点到所述工件边缘位置的投影距离;其中所述投影距离为:In combination with the law of cosines, according to the analysis of the edge distance and the edge angle, the projection distance from the projection point of the sensor on the surface of the workpiece to the edge position of the workpiece is obtained; wherein the projection distance is:

Figure BDA0003844240720000031
Figure BDA0003844240720000031

其中,所述L1表示传感器投影点到工件标定边缘的距离;d0表示传感器偏转角度为0°时传感器距离工件表面的距离;d1表示传感器到标定边缘连线的直线距离;θ1表示标定边缘对应的边缘角度,即传感器到标定边缘的连线与d0之间的夹角。Wherein, said L1 represents the distance from the sensor projection point to the workpiece calibration edge; d0 represents the distance between the sensor and the workpiece surface when the sensor deflection angle is 0°; d1 represents the straight-line distance from the sensor to the calibration edge line; θ1 represents the calibration edge corresponding The edge angle of , that is, the angle between the line from the sensor to the calibration edge and d0.

进一步地,所述传感器旋转矩阵为:Further, the sensor rotation matrix is:

Figure BDA0003844240720000032
Figure BDA0003844240720000032

其中,α=90-(θ11');Among them, α=90-(θ 11 ');

Figure BDA0003844240720000033
Figure BDA0003844240720000033

R表示底盘绕y轴旋转的旋转矩阵;定义机器人底盘前进方向为正方向,α表示所述机器人底盘前进方向与x轴的夹角;θ1′表示直线L1与d1之间的夹角。R represents the rotation matrix of the chassis rotating around the y-axis; the forward direction of the robot chassis is defined as the positive direction, α represents the angle between the forward direction of the robot chassis and the x-axis; θ 1 ' represents the angle between the straight line L1 and d1.

进一步地,所述传感器实时位姿为:

Figure BDA0003844240720000034
Further, the real-time pose of the sensor is:
Figure BDA0003844240720000034

其中,R表示传感器旋转矩阵,P表示传感器空间坐标;Among them, R represents the sensor rotation matrix, and P represents the sensor space coordinates;

所述底盘实时位姿为:The real-time pose of the chassis is:

Figure BDA0003844240720000035
Figure BDA0003844240720000035

其中,R0表示底盘旋转矩阵,P0表示底盘的空间坐标,T0’表示传感器相对于底盘的旋转矩阵。Among them, R0 represents the chassis rotation matrix, P0 represents the space coordinates of the chassis, and T0' represents the rotation matrix of the sensor relative to the chassis.

进一步地,所述控制量为:Further, the control amount is:

u=Kp*(t-tj)+Kd*(dt-dtj);u=K p *(tt j )+K d *(dt-dt j );

其中,u表示控制量,t=[α,P0]’表示底盘实时位姿,tj=[αj,Pj]’表示预设路径轨迹,Kp表示增益系数,Kd表示微分系数,dt表示底盘速度或角速度;dtj表示预设的速度或角速度。Among them, u represents the control amount, t=[α,P0]' represents the real-time pose of the chassis, tj=[αj,Pj]' represents the preset path trajectory, Kp represents the gain coefficient, Kd represents the differential coefficient, dt represents the chassis speed or Angular velocity; dtj represents the preset velocity or angular velocity.

进一步地,所述喷涂机器人的定位方法还包括:Further, the positioning method of the spraying robot also includes:

根据所述传感器实时位姿以及所述传感器与机械臂底座的位置关系,得到所述机械臂底座相对于所述工件喷涂表面的底座实时位姿;According to the real-time pose of the sensor and the positional relationship between the sensor and the base of the manipulator, the real-time pose of the base of the base of the manipulator relative to the sprayed surface of the workpiece is obtained;

获取所述机械臂底座的预设喷涂路径,根据所述预设喷涂路径和所述底座实时位姿,分析得到机械臂末端实时位姿;Obtaining the preset spraying path of the base of the manipulator, analyzing and obtaining the real-time pose of the end of the manipulator according to the preset spraying path and the real-time pose of the base;

将机械臂末端实时位姿下发至机械臂控制器,对机械臂进行控制。Send the real-time pose of the end of the robotic arm to the robotic arm controller to control the robotic arm.

进一步地,所述底座实时位姿为:Further, the real-time pose of the base is:

Figure BDA0003844240720000041
Figure BDA0003844240720000041

其中,R1表示机械臂底座旋转矩阵,P1表示机械臂底座的空间坐标,R表示传感器旋转矩阵,P表示传感器空间坐标,T1’表示传感器相对于机械臂底座的旋转矩阵。Among them, R1 represents the rotation matrix of the manipulator base, P1 represents the space coordinates of the manipulator base, R represents the sensor rotation matrix, P represents the sensor space coordinates, and T1’ represents the rotation matrix of the sensor relative to the manipulator base.

进一步地,所述机械臂末端实时位姿为:Further, the real-time pose of the end of the mechanical arm is:

T=inv(T1)*Tk;T=inv(T1)*Tk;

其中,所述T1表示底座实时位姿,TK表示机械臂底座预设喷涂路径。Wherein, the T1 represents the real-time pose of the base, and TK represents the preset spraying path of the base of the robotic arm.

另外一方面,本发明还提供了一种喷涂机器人的定位系统,包括:In another aspect, the present invention also provides a positioning system for a spraying robot, including:

数据获取模块,用于获取传感器上传的测量数据;其中,所述测量数据包括所述传感器到工件边缘位置的边缘距离以及工件边缘位置相对于所述传感器的边缘角度;A data acquisition module, configured to acquire measurement data uploaded by the sensor; wherein the measurement data includes the edge distance from the sensor to the edge position of the workpiece and the edge angle of the edge position of the workpiece relative to the sensor;

传感器位姿分析模块,用于根据所述边缘距离和所述边缘角度分析得到所述传感器相对于工件喷涂表面的传感器实时位姿;The sensor pose analysis module is used to analyze and obtain the real-time pose of the sensor relative to the sprayed surface of the workpiece according to the edge distance and the edge angle analysis;

底盘位姿分析模块,用于根据所述传感器实时位姿以及所述传感器与机器人底盘的位置关系,得到所述底盘相对于所述工件喷涂表面的底盘实时位姿;The chassis pose analysis module is used to obtain the real-time pose of the chassis relative to the workpiece sprayed surface according to the real-time pose of the sensor and the positional relationship between the sensor and the robot chassis;

控制量分析模块,用于获取所述机器人底盘的预设路径轨迹,根据所述预设路径轨迹和所述底盘实时位姿,分析得到底盘运行的控制量;The control quantity analysis module is used to obtain the preset path trajectory of the robot chassis, and analyze and obtain the control quantity of the chassis operation according to the preset path trajectory and the real-time pose of the chassis;

修正模块,用于根据所述底盘运行的控制量修正所述机器人的运行轨迹。A correction module, configured to correct the running track of the robot according to the control amount of the running of the chassis.

与现有技术相比,本发明具有如下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明提供的一种喷涂机器人的定位方法及系统,通过例如一套激光雷达传感器,便可获取传感器与工件表面的位置关系,并且由于传感器与机器人底盘之间的安装位置关系相对固定,进而可以分析得到机器人底盘和工件表面之间的位置关系,此时机器人的定位仅与工件表面有关,不受外界因素的干扰,不需要预先扫描建图或人工操作(粘贴磁体或色带),无需底盘相对地面定位后机械臂再相对喷涂表面定位,机器人可根据工件喷涂表面自适应喷涂作业,提高喷涂机器人的定位精度和稳定性、降低操作复杂度。A positioning method and system for a spraying robot provided by the present invention can obtain the positional relationship between the sensor and the workpiece surface through, for example, a set of laser radar sensors, and since the installation positional relationship between the sensor and the robot chassis is relatively fixed, it can further Analyze the positional relationship between the robot chassis and the workpiece surface. At this time, the positioning of the robot is only related to the workpiece surface and is not disturbed by external factors. It does not require pre-scanning and mapping or manual operations (sticking magnets or ribbons), and no chassis After positioning relative to the ground, the robotic arm is then positioned relative to the spraying surface. The robot can adapt to the spraying operation according to the spraying surface of the workpiece, improving the positioning accuracy and stability of the spraying robot and reducing the complexity of the operation.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单的介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will give a brief introduction to the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1示出了传统喷涂机器人的喷涂流程图;Fig. 1 shows the spraying flowchart of traditional spraying robot;

图2示出了本发明实施例中一种喷涂机器人底盘定位方法流程图;Fig. 2 shows a flow chart of a chassis positioning method for a painting robot in an embodiment of the present invention;

图3示出了本发明实施例中喷涂机器人与大型工件之间的位置关系示意图;Fig. 3 shows the schematic diagram of the positional relationship between the spraying robot and the large workpiece in the embodiment of the present invention;

图4示出了本发明实施例中在XY平面内传感器位置示意图;Fig. 4 shows a schematic diagram of the position of the sensor in the XY plane in the embodiment of the present invention;

图5示出了本发明实施例中在XZ平面内传感器空间位置示意图;Fig. 5 shows a schematic diagram of the spatial position of the sensor in the XZ plane in the embodiment of the present invention;

图6示出了本发明实施例中一种喷涂机器人的定位系统结构示意图;Fig. 6 shows a schematic structural diagram of a positioning system of a spraying robot in an embodiment of the present invention;

图7示出了本发明实施例中喷涂机器人的工作流程图。Fig. 7 shows the working flow chart of the spraying robot in the embodiment of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地说明,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

传统的色带、磁条或slam方案具体流程如图1所示,每次工件放置后,需要人为进行测量进行贴磁条或色带操作,该环节需要人工操作,且精度较差。如果利用slam则可能需要重新建图,因为支撑工件的墩柱可能每次位置并不相同。随后机器人需要指定起点位置,可采用遥控或自行导航的方式进行,随后进行喷涂作业。完成后下一工件到位后重复操作。这些定位方式的本质为底盘相对大地坐标系进行定位,而非相对喷涂表面进行定位,若喷涂要求较高,则还需要在机械臂上安装额外的冗余传感器进行喷涂的精定位。The specific process of the traditional ribbon, magnetic stripe or slam solution is shown in Figure 1. After each workpiece is placed, it needs to be manually measured to attach the magnetic stripe or ribbon. This link requires manual operation and the accuracy is poor. If you use slam, you may need to re-build the map, because the position of the pier supporting the workpiece may be different each time. Then the robot needs to specify the starting position, which can be done by remote control or self-navigation, and then spraying operation. After completion, repeat the operation after the next workpiece is in place. The essence of these positioning methods is that the chassis is positioned relative to the earth coordinate system, not relative to the spraying surface. If the spraying requirements are high, it is necessary to install additional redundant sensors on the robotic arm for precise positioning of the spraying.

图2示出了本发明实施例中一种喷涂机器人底盘定位方法流程图,所述喷涂机器人的定位方法包括:Fig. 2 shows a flow chart of a chassis positioning method for a painting robot in an embodiment of the present invention, the positioning method of the painting robot includes:

步骤1:获取传感器上传的测量数据;其中,所述测量数据包括所述传感器到工件边缘位置的边缘距离以及工件边缘位置相对于所述传感器的边缘角度;Step 1: Obtain measurement data uploaded by the sensor; wherein the measurement data includes the edge distance from the sensor to the edge position of the workpiece and the edge angle of the edge position of the workpiece relative to the sensor;

步骤2:根据所述边缘距离和所述边缘角度分析得到所述传感器相对于工件喷涂表面的传感器实时位姿;Step 2: According to the edge distance and the edge angle analysis, the real-time position and orientation of the sensor relative to the sprayed surface of the workpiece is obtained;

步骤3:根据所述传感器实时位姿以及所述传感器与机器人底盘的位置关系,得到所述底盘相对于工件喷涂表面的底盘实时位姿;Step 3: According to the real-time pose of the sensor and the positional relationship between the sensor and the robot chassis, obtain the real-time pose of the chassis relative to the sprayed surface of the workpiece;

步骤4:获取所述机器人底盘的预设路径轨迹,根据所述预设路径轨迹和所述底盘实时位姿,分析得到底盘运行的控制量;Step 4: Obtain the preset path trajectory of the robot chassis, and analyze and obtain the control amount of the chassis operation according to the preset path trajectory and the real-time pose of the chassis;

步骤5:根据所述底盘运行的控制量修正所述机器人的运行轨迹。Step 5: Correcting the running track of the robot according to the control amount of the running of the chassis.

具体的,以图3所示喷涂机器人与大型工件之间的位置关系示意图为例,在机器人底盘固连的支柱上安装有两个单线激光雷达,两个激光雷达检测工件边缘,进行定位导航,以长方体箱体喷涂为例(其他复杂结构工件可考虑结构化简为凸体并分解为若干矩形进行问题简化),在图3中,机器人底盘上部署有水平和竖直放置的两个单线激光雷达,并且两个激光雷达互补干涉,通常激光的检测半径可达十几米甚至几十米,因此工件的四个边缘均可检测到。常激光雷达扫描频率可达几十赫兹,因此底盘可根据雷达扫描信息进行计算,并实时做闭环控制。需要说明的是,单线雷达传感器可替换任意扫描到边缘的其他传感器,在此不作限制。Specifically, take the schematic diagram of the positional relationship between the spraying robot and the large workpiece shown in Figure 3 as an example. Two single-line laser radars are installed on the pillars fixed to the robot chassis. The two laser radars detect the edge of the workpiece for positioning and navigation. Taking the spraying of a cuboid box as an example (other complex structural workpieces can be simplified into a convex body and decomposed into several rectangles for problem simplification), in Figure 3, two single-line lasers placed horizontally and vertically are deployed on the robot chassis Radar, and two laser radars complement each other. Usually, the detection radius of the laser can reach more than ten meters or even tens of meters, so the four edges of the workpiece can be detected. Usually, the scanning frequency of lidar can reach tens of hertz, so the chassis can calculate according to the radar scanning information, and perform closed-loop control in real time. It should be noted that the single-line radar sensor can replace any other sensor that scans to the edge, and there is no limitation here.

通过例如一套激光雷达传感器,便可获取传感器与工件表面的位置关系,并且由于传感器与机器人底盘之间的安装位置关系相对固定,进而可以分析得到机器人底盘和工件表面之间的位置关系,此时机器人的定位仅与工件表面有关,不受外界因素的干扰,不需要预先扫描建图或人工操作(粘贴磁体或色带),无需底盘相对地面定位后机械臂再相对喷涂表面定位,机器人可根据工件喷涂表面自适应喷涂作业,提高喷涂机器人的定位精度和稳定性、降低操作复杂度。Through a set of lidar sensors, for example, the positional relationship between the sensor and the workpiece surface can be obtained, and since the installation position relationship between the sensor and the robot chassis is relatively fixed, the positional relationship between the robot chassis and the workpiece surface can be analyzed. When the positioning of the robot is only related to the surface of the workpiece, it is not disturbed by external factors. It does not require pre-scanning and mapping or manual operation (sticking magnets or ribbons), and it does not need to position the chassis relative to the ground and then position the robot arm relative to the spraying surface. According to the self-adaptive spraying operation on the sprayed surface of the workpiece, the positioning accuracy and stability of the spraying robot are improved and the operation complexity is reduced.

进一步地,步骤2:根据所述边缘距离和所述边缘角度分析得到所述传感器相对于工件喷涂表面的传感器实时位姿包括:Further, step 2: analyzing and obtaining the real-time pose of the sensor relative to the sprayed surface of the workpiece according to the edge distance and the edge angle includes:

步骤20:根据所述边缘距离和所述边缘角度分析得到所述传感器在工件表面的投影点到所述工件边缘位置的投影距离。Step 20: Obtain the projection distance from the projection point of the sensor on the workpiece surface to the edge position of the workpiece according to the edge distance and the edge angle analysis.

根据图3所示的位置关系示意图,在箱体左下角顶点处建立空间坐标系,其中坐标系原点与箱体顶点重合,其中坐标系的X轴与形体长边重合,坐标系的Y轴与箱体高重合,坐标系Z轴与箱体宽边重合,图4示出了本发明实施例中在XY平面内传感器位置示意图,从图中xy坐标平面内,传感器距离工件四边的投影距离为L1、L2、L3和L4,由此可知传感器P点在XY坐标平面内的坐标为(L1、L3)。According to the schematic diagram of the position relationship shown in Figure 3, a spatial coordinate system is established at the apex of the lower left corner of the box, where the origin of the coordinate system coincides with the apex of the box, where the X-axis of the coordinate system coincides with the long side of the shape, and the Y-axis of the coordinate system coincides with the long side of the body. The height of the box coincides, and the Z axis of the coordinate system coincides with the wide side of the box. Figure 4 shows a schematic diagram of the position of the sensor in the XY plane in the embodiment of the present invention. From the xy coordinate plane in the figure, the projection distance between the sensor and the four sides of the workpiece is L1, L2, L3, and L4. From this, it can be known that the coordinates of the sensor point P in the XY coordinate plane are (L1, L3).

图5示出了本发明实施例中在XZ平面内传感器空间位置示意图,通常雷达会给出扫描的每个点的角度与距离信息,通过距离突变可轻易判断四个边缘位置相对传感器的角度与距离(θ,d),以及传感器0°时的距离d0,底盘前进方向及速度为Vx。Fig. 5 shows a schematic diagram of the spatial position of the sensor in the XZ plane in the embodiment of the present invention. Generally, the radar will provide the angle and distance information of each point scanned, and the angle and distance of the four edge positions relative to the sensor can be easily judged by the distance mutation. The distance (θ, d), and the distance d0 when the sensor is 0°, the forward direction and speed of the chassis are Vx.

L1-L4可根据余弦定理计算出来,根据所述边缘距离和所述边缘角度分析得到所述传感器在工件表面的投影点到所述工件边缘位置的投影距离;其中以投影距离L1为例:L1-L4 can be calculated according to the cosine theorem, and the projection distance from the projection point of the sensor on the workpiece surface to the edge position of the workpiece can be obtained according to the edge distance and the edge angle analysis; where the projection distance L1 is taken as an example:

Figure BDA0003844240720000071
Figure BDA0003844240720000071

其中,所述L1表示传感器投影点到工件标定边缘的距离;d0表示传感器偏转角度为0°时传感器距离工件表面的距离;d1表示传感器到标定边缘连线的直线距离;θ1表示标定边缘对应的边缘角度,即传感器到标定边缘的连线与d0之间的夹角。Wherein, said L1 represents the distance from the sensor projection point to the workpiece calibration edge; d0 represents the distance between the sensor and the workpiece surface when the sensor deflection angle is 0°; d1 represents the straight-line distance from the sensor to the calibration edge line; θ1 represents the calibration edge corresponding The edge angle of , that is, the angle between the line from the sensor to the calibration edge and d0.

步骤21:根据所述边缘距离、所述边缘角度和所述投影距离分析得到传感器空间坐标和传感器旋转矩阵。Step 21: Analyzing and obtaining the sensor space coordinates and the sensor rotation matrix according to the edge distance, the edge angle, and the projection distance.

所述传感器空间坐标为:

Figure BDA0003844240720000081
The sensor space coordinates are:
Figure BDA0003844240720000081

其中,

Figure BDA0003844240720000082
in,
Figure BDA0003844240720000082

定义机器人底盘前进方向为正方向,其绕y轴旋转夹角及在xz平面与x轴夹角为α,传感器绕y轴旋转矩阵为:Define the forward direction of the robot chassis as the positive direction, its rotation angle around the y-axis and the angle between the xz plane and the x-axis is α, and the rotation matrix of the sensor around the y-axis is:

Figure BDA0003844240720000083
Figure BDA0003844240720000083

其中,α=90-(θ11')Among them, α=90-(θ 11 ')

R表示底盘绕y轴旋转的旋转矩阵;定义机器人底盘前进方向为正方向,α表示所述机器人底盘前进方向Vx与x轴的夹角,需要说明的是,在图5中,d0始终与Vx垂直,当Vx发生偏转时,Vx与L1L2所在直线之间产生夹角或者偏离L1L2所在直线;θ1′表示直线L1与d1之间的夹角。R represents the rotation matrix of the chassis rotating around the y-axis; the forward direction of the robot chassis is defined as the positive direction, and α represents the angle between the forward direction Vx of the robot chassis and the x-axis. It should be noted that, in Figure 5, d0 is always the same as Vx Vertically, when Vx deflects, an angle is formed between Vx and the straight line where L1L2 is located or deviates from the straight line where L1L2 is located; θ 1 ′ indicates the included angle between straight line L1 and d1.

步骤22:根据所述传感器空间坐标和所述传感器旋转矩阵得到所述传感器相对于工件喷涂表面的传感器实时位姿。Step 22: Obtain the real-time pose of the sensor relative to the sprayed surface of the workpiece according to the sensor space coordinates and the sensor rotation matrix.

由于传感器与底盘为固连,则在坐标系中,传感器到底盘可通过设计的尺寸计算出底盘相对于传感器的旋转矩阵T0’,结合传感器相对于工件表面的关系,进一步可以计算出底盘相对于工件表面的实时位姿为:Since the sensor and the chassis are fixedly connected, in the coordinate system, the sensor and the chassis can calculate the rotation matrix T0' of the chassis relative to the sensor through the designed size, and combine the relationship between the sensor and the workpiece surface, and further calculate the relative The real-time pose of the workpiece surface is:

Figure BDA0003844240720000084
Figure BDA0003844240720000084

其中,R0表示底盘旋转矩阵,P0表示底盘的空间坐标,T0’表示传感器相对于底盘的旋转矩阵。Among them, R0 represents the chassis rotation matrix, P0 represents the space coordinates of the chassis, and T0' represents the rotation matrix of the sensor relative to the chassis.

在T0的最终表达中,

Figure BDA0003844240720000085
表示传感器实时位姿,其中,R表示传感器旋转矩阵,P表示传感器空间坐标。In the final expression of T0,
Figure BDA0003844240720000085
Represents the real-time pose of the sensor, where R represents the sensor rotation matrix, and P represents the sensor space coordinates.

喷涂过程中,可采用边走边喷或停止时喷涂两种情况。因为底盘姿态只可能沿y轴旋转,因此简化机器人底盘轨迹,表示为与y轴夹角及位置相关,机器人底盘需要预先规划好路径轨迹tj=[αj,Pj]’,其中αj表示底盘前进方向与y轴夹角,Pj表示底盘相对坐标系原点的位置坐标。During the spraying process, two situations can be adopted: spraying while walking or spraying while stopping. Because the chassis attitude can only rotate along the y-axis, the trajectory of the robot chassis is simplified, expressed as being related to the angle and position of the y-axis. The robot chassis needs to plan a path trajectory tj=[αj,Pj]' in advance, where αj represents the forward direction of the chassis The included angle with the y-axis, Pj represents the position coordinates of the chassis relative to the origin of the coordinate system.

底盘根据实时位姿t=[α,P0]’,α等于上述公式中实时计算的绕y轴旋转夹角,P0等于上述公式T0中的底盘实时位置,并做实时闭环,计算控制量为:The chassis is based on the real-time pose t=[α,P0]’, α is equal to the angle of rotation around the y-axis calculated in real time in the above formula, P0 is equal to the real-time position of the chassis in the above formula T0, and a real-time closed loop is performed, and the calculated control amount is:

u=Kp*(t-tj)+Kd*(dt-dtj);u=K p *(tt j )+K d *(dt-dt j );

其中,u表示控制量,可根据具体底盘输入速度或扭矩而定;t=[α,P0]’表示底盘实时位姿,tj=[αj,Pj]’表示预设路径轨迹,Kp表示增益系数,Kd表示微分系数,dt表示对底盘实时位姿求导或底盘速度或角速度;dtj表示预设的速度或角速度。根据所述底盘运行的控制量修正所述机器人的运行轨迹。Among them, u represents the control amount, which can be determined according to the specific input speed or torque of the chassis; t=[α,P0]' represents the real-time pose of the chassis, tj=[αj,Pj]' represents the preset path trajectory, and Kp represents the gain coefficient , Kd represents the differential coefficient, dt represents the derivation of the real-time pose of the chassis or the speed or angular velocity of the chassis; dtj represents the preset speed or angular velocity. The running track of the robot is corrected according to the control amount of the running of the chassis.

在本发明的一种实施例中,所述喷涂机器人的定位方法还包括:In an embodiment of the present invention, the positioning method of the spraying robot also includes:

步骤6:根据所述传感器实时位姿以及所述传感器与机械臂底座的位置关系,得到所述机械臂底座相对于工件喷涂表面的底座实时位姿;Step 6: According to the real-time pose of the sensor and the positional relationship between the sensor and the base of the manipulator, obtain the real-time pose of the base of the base of the manipulator relative to the sprayed surface of the workpiece;

同样的,由于机械臂底座与机器人底座之间的连接关系相对固定,进而机械臂底座与传感器的位置关系就是固定的,通过设计尺寸,与上述计算机器人底盘的实时位姿过程相同,分析计算出机械臂底座实时位姿为:Similarly, since the connection relationship between the base of the manipulator and the base of the robot is relatively fixed, the positional relationship between the base of the manipulator and the sensor is fixed. Through the design size, it is the same as the process of calculating the real-time pose of the robot chassis above. The real-time pose of the base of the robotic arm is:

Figure BDA0003844240720000091
Figure BDA0003844240720000091

其中,R1表示机械臂底座旋转矩阵,P1表示机械臂底座的空间坐标,R表示传感器旋转矩阵,P表示传感器空间坐标,T1’表示传感器相对于机械臂底座的旋转矩阵。Among them, R1 represents the rotation matrix of the manipulator base, P1 represents the space coordinates of the manipulator base, R represents the sensor rotation matrix, P represents the sensor space coordinates, and T1’ represents the rotation matrix of the sensor relative to the manipulator base.

步骤7:获取所述机械臂底座的预设喷涂路径,根据所述预设喷涂路径和所述底座实时位姿,分析得到机械臂末端实时位姿。Step 7: Obtain the preset spraying path of the base of the robotic arm, and analyze and obtain the real-time pose of the end of the robotic arm according to the preset spraying path and the real-time pose of the base.

同理,机械臂也应当有规划好的预设喷涂路径tk=Tk,Tk为与T1形式相同的四维位姿矩阵。机械臂的控制可通过计算机械臂末端相对机械臂底座的位姿进行控制,在某一时刻,假设机械臂底座实时位姿为T1,预设喷涂路径为Tk,则控制机械臂末端实时位姿为:Similarly, the robotic arm should also have a planned preset spraying path tk=Tk, where Tk is a four-dimensional pose matrix in the same form as T1. The control of the robot arm can be controlled by calculating the pose of the end of the robot arm relative to the base of the robot arm. for:

T=inv(T1)*Tk;T=inv(T1)*Tk;

其中,inv(T1)为对T1进行求逆的运算。该T包含机械臂末端相对机械臂底座的位姿。Wherein, inv(T1) is an operation for inverting T1. This T contains the pose of the end of the manipulator relative to the base of the manipulator.

步骤8:将机械臂末端实时位姿下发至机械臂控制器,控制器内部即可计算各个关节的角度,并对机械臂进行控制。Step 8: Send the real-time pose of the end of the robotic arm to the robotic arm controller, and the controller can calculate the angles of each joint and control the robotic arm.

图6示出了本发明实施例中一种喷涂机器人的定位系统结构示意图,所述喷涂机器人的定位系统包括:Fig. 6 shows a schematic structural diagram of a positioning system of a spraying robot in an embodiment of the present invention, the positioning system of the spraying robot includes:

数据获取模块100,用于获取传感器上传的测量数据;其中,所述测量数据包括所述传感器到工件边缘位置的边缘距离以及工件边缘位置相对于所述传感器的边缘角度;The data acquisition module 100 is used to acquire the measurement data uploaded by the sensor; wherein the measurement data includes the edge distance from the sensor to the edge position of the workpiece and the edge angle of the edge position of the workpiece relative to the sensor;

传感器位姿分析模块200,用于根据所述边缘距离和所述边缘角度分析得到所述传感器相对于工件喷涂表面的传感器实时位姿;The sensor pose analysis module 200 is used to analyze and obtain the real-time pose of the sensor relative to the sprayed surface of the workpiece according to the edge distance and the edge angle analysis;

底盘位姿分析模块300,用于根据所述传感器实时位姿以及所述传感器与机器人底盘的位置关系,得到所述底盘相对于工件喷涂表面的底盘实时位姿;The chassis pose analysis module 300 is used to obtain the real-time pose of the chassis relative to the workpiece spraying surface according to the real-time pose of the sensor and the positional relationship between the sensor and the robot chassis;

控制量分析模块400,用于获取所述机器人底盘的预设路径轨迹,根据所述预设路径轨迹和所述底盘实时位姿,分析得到底盘运行的控制量;The control quantity analysis module 400 is used to obtain the preset path trajectory of the robot chassis, and analyze and obtain the control quantity of the chassis operation according to the preset path trajectory and the real-time pose of the chassis;

修正模块500,用于根据所述底盘运行的控制量修正所述机器人的运行轨迹。The correction module 500 is configured to correct the running trajectory of the robot according to the control amount of the chassis running.

图7示出了本发明实施例中喷涂机器人的工作流程图,将工件放置在指定位置,此时对于工件放置的精度要求较为宽松,只需要工件在指定位置附近即可,此时机器人也从起点出发,在出发时或出发前传感器就开始进行数据的测量和收集,将数据反馈到系统中,对机器人的路径轨迹以及机械臂末端的位姿进行修正和实时调整,每次只需要在机器人喷涂完成后退后,与工件保持一定距离,利用传感器定位,保证在放置工件的过程中,不损坏工件,实现无人化操作。Fig. 7 shows the work flow chart of the spraying robot in the embodiment of the present invention, the workpiece is placed in the specified position, the accuracy requirement for the workpiece placement is relatively loose at this time, only the workpiece needs to be near the specified position, and the robot also starts at this time Starting from the starting point, the sensor starts to measure and collect data at or before departure, feeds the data back to the system, and corrects and adjusts the path trajectory of the robot and the pose of the end of the mechanical arm in real time. After the spraying is completed, keep a certain distance from the workpiece, and use the sensor to locate the workpiece to ensure that the workpiece is not damaged during the process of placing the workpiece, and realize unmanned operation.

尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Although the present invention has been described in detail with reference to the aforementioned embodiments, those of ordinary skill in the art should understand that: it can still modify the technical solutions described in the aforementioned embodiments, or perform equivalent replacements for some of the technical features; and these The modification or replacement does not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

1.一种喷涂机器人的定位方法,其特征在于,包括:1. A positioning method for a spraying robot, characterized in that, comprising: 获取传感器上传的测量数据;其中,所述测量数据包括所述传感器到工件边缘位置的边缘距离以及工件边缘位置相对于所述传感器的边缘角度;Acquiring measurement data uploaded by the sensor; wherein the measurement data includes the edge distance from the sensor to the edge position of the workpiece and the edge angle of the edge position of the workpiece relative to the sensor; 根据所述边缘距离和所述边缘角度分析得到所述传感器相对于工件喷涂表面的传感器实时位姿;According to the edge distance and the edge angle analysis, the real-time pose of the sensor relative to the sprayed surface of the workpiece is obtained; 根据所述传感器实时位姿以及所述传感器与机器人底盘的位置关系,得到所述底盘相对于所述工件喷涂表面的底盘实时位姿;According to the real-time pose of the sensor and the positional relationship between the sensor and the robot chassis, the real-time pose of the chassis relative to the sprayed surface of the workpiece is obtained; 获取所述机器人底盘的预设路径轨迹,根据所述预设路径轨迹和所述底盘实时位姿,分析得到所述底盘运行的控制量;Obtaining the preset path trajectory of the robot chassis, and analyzing and obtaining the control amount of the chassis operation according to the preset path trajectory and the real-time pose of the chassis; 根据所述底盘运行的控制量修正所述机器人的运行轨迹。The running track of the robot is corrected according to the control amount of the running of the chassis. 2.根据权利要求1所述的喷涂机器人的定位方法,其特征在于,所述根据所述边缘距离和所述边缘角度分析得到所述传感器相对于工件喷涂表面的传感器实时位姿包括:2. the positioning method of spraying robot according to claim 1, is characterized in that, described according to described edge distance and described edge angle analysis and obtains the sensor real-time pose of described sensor relative to workpiece spraying surface comprises: 根据所述边缘距离和所述边缘角度分析得到所述传感器在所述工件表面的投影点到所述工件边缘位置的投影距离;Obtain the projection distance from the projection point of the sensor on the surface of the workpiece to the edge position of the workpiece according to the edge distance and the edge angle analysis; 根据所述边缘距离、所述边缘角度和所述投影距离分析得到传感器空间坐标和传感器旋转矩阵;Obtaining sensor space coordinates and sensor rotation matrix according to the analysis of the edge distance, the edge angle and the projection distance; 根据所述传感器空间坐标和所述传感器旋转矩阵得到所述传感器相对于所述工件喷涂表面的所述传感器实时位姿。The real-time pose of the sensor relative to the sprayed surface of the workpiece is obtained according to the sensor space coordinates and the sensor rotation matrix. 3.根据权利要求2所述的喷涂机器人的定位方法,其特征在于,所述根据所述边缘距离和所述边缘角度分析得到所述传感器在所述工件表面的投影点到所述工件边缘位置的投影距离包括:3. The positioning method of the spraying robot according to claim 2, characterized in that, according to the analysis of the edge distance and the edge angle, the projection point of the sensor on the workpiece surface to the edge position of the workpiece is obtained The throw distances include: 结合余弦定理,根据所述边缘距离和所述边缘角度分析得到所述传感器在所述工件表面的投影点到所述工件边缘位置的投影距离;其中所述投影距离为:In combination with the law of cosines, according to the analysis of the edge distance and the edge angle, the projection distance from the projection point of the sensor on the surface of the workpiece to the edge position of the workpiece is obtained; wherein the projection distance is:
Figure FDA0003844240710000021
Figure FDA0003844240710000021
其中,L1表示传感器投影点到工件标定边缘的距离;d0表示传感器偏转角度为0°时传感器距离工件表面的距离;d1表示传感器到标定边缘连线的直线距离;θ1表示标定边缘对应的边缘角度,即传感器到标定边缘的连线与d0之间的夹角。Among them, L1 represents the distance from the sensor projection point to the calibration edge of the workpiece; d0 represents the distance between the sensor and the workpiece surface when the sensor deflection angle is 0°; d1 represents the straight-line distance from the sensor to the calibration edge; θ1 represents the edge corresponding to the calibration edge Angle, that is, the angle between the line connecting the sensor to the calibration edge and d0.
4.根据权利要求3所述的喷涂机器人的定位方法,其特征在于,所述传感器旋转矩阵为:4. the positioning method of spraying robot according to claim 3, is characterized in that, described sensor rotation matrix is:
Figure FDA0003844240710000022
Figure FDA0003844240710000022
其中,α=90-(θ11');Among them, α=90-(θ 11 ');
Figure FDA0003844240710000023
Figure FDA0003844240710000023
R表示底盘绕y轴旋转的旋转矩阵;定义机器人底盘前进方向为正方向,α表示所述机器人底盘前进方向与x轴的夹角;θ1′表示直线L1与d1之间的夹角。R represents the rotation matrix of the chassis rotating around the y-axis; the forward direction of the robot chassis is defined as the positive direction, α represents the angle between the forward direction of the robot chassis and the x-axis; θ 1 ' represents the angle between the straight line L1 and d1.
5.根据权利要求4所述的喷涂机器人的定位方法,其特征在于,所述传感器实时位姿为:
Figure FDA0003844240710000024
5. the positioning method of spraying robot according to claim 4, is characterized in that, described sensor real-time pose is:
Figure FDA0003844240710000024
其中,R表示传感器旋转矩阵,P表示传感器空间坐标;Among them, R represents the sensor rotation matrix, and P represents the sensor space coordinates; 所述底盘实时位姿为:The real-time pose of the chassis is:
Figure FDA0003844240710000025
Figure FDA0003844240710000025
其中,R0表示底盘旋转矩阵,P0表示底盘的空间坐标,T0’表示传感器相对于底盘的旋转矩阵。Among them, R0 represents the chassis rotation matrix, P0 represents the space coordinates of the chassis, and T0' represents the rotation matrix of the sensor relative to the chassis.
6.根据权利要求5所述的喷涂机器人的定位方法,其特征在于,所述控制量为:6. the positioning method of spraying robot according to claim 5, is characterized in that, described control amount is: u=Kp*(t-tj)+Kd*(dt-dtj);u=K p *(tt j )+K d *(dt-dt j ); 其中,u表示控制量,t=[α,P0]’表示底盘实时位姿,tj=[αj,Pj]’表示预设路径轨迹,Kp表示增益系数,Kd表示微分系数,dt表示底盘速度或角速度;dtj表示预设的速度或角速度。Among them, u represents the control amount, t=[α,P0]' represents the real-time pose of the chassis, tj=[αj,Pj]' represents the preset path trajectory, Kp represents the gain coefficient, Kd represents the differential coefficient, dt represents the chassis speed or Angular velocity; dtj represents the preset velocity or angular velocity. 7.根据权利要求1所述的喷涂机器人的定位方法,其特征在于,还包括:7. the positioning method of spraying robot according to claim 1, is characterized in that, also comprises: 根据所述传感器实时位姿以及所述传感器与机械臂底座的位置关系,得到所述机械臂底座相对于所述工件喷涂表面的底座实时位姿;According to the real-time pose of the sensor and the positional relationship between the sensor and the base of the manipulator, the real-time pose of the base of the base of the manipulator relative to the sprayed surface of the workpiece is obtained; 获取所述机械臂底座的预设喷涂路径,根据所述预设喷涂路径和所述底座实时位姿,分析得到机械臂末端实时位姿;Obtaining the preset spraying path of the base of the manipulator, analyzing and obtaining the real-time pose of the end of the manipulator according to the preset spraying path and the real-time pose of the base; 将所述机械臂末端实时位姿下发至机械臂控制器,对机械臂进行控制。Send the real-time pose of the end of the robotic arm to the robotic arm controller to control the robotic arm. 8.根据权利要求7所述的喷涂机器人的定位方法,其特征在于,所述底座实时位姿为:8. the positioning method of spraying robot according to claim 7, is characterized in that, described base real-time pose is:
Figure FDA0003844240710000031
Figure FDA0003844240710000031
其中,R1表示机械臂底座旋转矩阵,P1表示机械臂底座的空间坐标,R表示传感器旋转矩阵,P表示传感器空间坐标,T1’表示传感器相对于机械臂底座的旋转矩阵。Among them, R1 represents the rotation matrix of the manipulator base, P1 represents the space coordinates of the manipulator base, R represents the sensor rotation matrix, P represents the sensor space coordinates, and T1’ represents the rotation matrix of the sensor relative to the manipulator base.
9.根据权利要求8所述的喷涂机器人的定位方法,其特征在于,所述机械臂末端实时位姿为:9. The positioning method of the spraying robot according to claim 8, wherein the real-time pose of the end of the mechanical arm is: T=inv(T1)*Tk;T=inv(T1)*Tk; 其中,所述T1表示底座实时位姿,TK表示机械臂底座预设喷涂路径。Wherein, the T1 represents the real-time pose of the base, and TK represents the preset spraying path of the base of the robotic arm. 10.一种喷涂机器人的定位系统,其特征在于,包括:10. A positioning system for a spraying robot, comprising: 数据获取模块,用于获取传感器上传的测量数据;其中,所述测量数据包括所述传感器到工件边缘位置的边缘距离以及工件边缘位置相对于所述传感器的边缘角度;A data acquisition module, configured to acquire measurement data uploaded by the sensor; wherein the measurement data includes the edge distance from the sensor to the edge position of the workpiece and the edge angle of the edge position of the workpiece relative to the sensor; 传感器位姿分析模块,用于根据所述边缘距离和所述边缘角度分析得到所述传感器相对于工件喷涂表面的传感器实时位姿;The sensor pose analysis module is used to analyze and obtain the real-time pose of the sensor relative to the sprayed surface of the workpiece according to the edge distance and the edge angle analysis; 底盘位姿分析模块,用于根据所述传感器实时位姿以及所述传感器与机器人底盘的位置关系,得到所述底盘相对于所述工件喷涂表面的底盘实时位姿;The chassis pose analysis module is used to obtain the real-time pose of the chassis relative to the workpiece sprayed surface according to the real-time pose of the sensor and the positional relationship between the sensor and the robot chassis; 控制量分析模块,用于获取所述机器人底盘的预设路径轨迹,根据所述预设路径轨迹和所述底盘实时位姿,分析得到底盘运行的控制量;The control quantity analysis module is used to obtain the preset path trajectory of the robot chassis, and analyze and obtain the control quantity of the chassis operation according to the preset path trajectory and the real-time pose of the chassis; 修正模块,用于根据所述底盘运行的控制量修正所述机器人的运行轨迹。A correction module, configured to correct the running track of the robot according to the control amount of the running of the chassis.
CN202211112840.8A 2022-09-14 2022-09-14 A positioning method and system for a spraying robot Pending CN115476333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211112840.8A CN115476333A (en) 2022-09-14 2022-09-14 A positioning method and system for a spraying robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211112840.8A CN115476333A (en) 2022-09-14 2022-09-14 A positioning method and system for a spraying robot

Publications (1)

Publication Number Publication Date
CN115476333A true CN115476333A (en) 2022-12-16

Family

ID=84424050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211112840.8A Pending CN115476333A (en) 2022-09-14 2022-09-14 A positioning method and system for a spraying robot

Country Status (1)

Country Link
CN (1) CN115476333A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118570235A (en) * 2024-05-10 2024-08-30 钛玛科(北京)工业科技有限公司 Object edge position detection method based on convolutional neural network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105945897A (en) * 2016-06-28 2016-09-21 江苏捷帝机器人股份有限公司 Full-automatic intelligent mechanical arm and working method thereof
CN205704217U (en) * 2016-05-10 2016-11-23 华讯方舟科技有限公司 A kind of robot
JP2020020206A (en) * 2018-08-02 2020-02-06 株式会社大林組 Spray device and spray method
US20200242544A1 (en) * 2013-07-25 2020-07-30 IAM Robotics, LLC System and method for piece picking or put-away with a mobile manipulation robot

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200242544A1 (en) * 2013-07-25 2020-07-30 IAM Robotics, LLC System and method for piece picking or put-away with a mobile manipulation robot
CN205704217U (en) * 2016-05-10 2016-11-23 华讯方舟科技有限公司 A kind of robot
CN105945897A (en) * 2016-06-28 2016-09-21 江苏捷帝机器人股份有限公司 Full-automatic intelligent mechanical arm and working method thereof
JP2020020206A (en) * 2018-08-02 2020-02-06 株式会社大林組 Spray device and spray method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118570235A (en) * 2024-05-10 2024-08-30 钛玛科(北京)工业科技有限公司 Object edge position detection method based on convolutional neural network

Similar Documents

Publication Publication Date Title
CN106643805B (en) Position calibration method of laser positioning sensor in AGV car
CN106247932B (en) A robot online error compensation device and method based on a camera system
CN111300481A (en) Robot grabbing pose correction method based on vision and laser sensor
CN109914756A (en) Indoor wall 3D putty based on indoor construction intelligent robot prints smooth processing method
US20130123982A1 (en) Calibration method for tool center point of a robot manipulator
CN106595474A (en) Double-robot base coordinate system calibration method based on laser tracker
CN105798431A (en) Online welding line tracking method of welding curved line of arc welding robot
CN103759635A (en) Scanning measurement robot detection method allowing precision to be irrelevant to robot
WO2020125732A1 (en) Zero calibration method and device for robot arm joint sensor
CN109764805A (en) A kind of mechanical arm positioning device and method based on laser scanning
CN105855668A (en) Linear online seam tracking method for arc welding robot during welding
CN109176517A (en) Series connection industrial robot link parameters scaling method based on the constraint of end name point
TW202302301A (en) Automated calibration system and method for the relation between a profile scanner coordinate frame and a robot arm coordinate frame
CN114474003A (en) Vehicle-mounted construction robot error compensation method based on parameter identification
CN110174074B (en) Measuring device and method for thermal deformation error compensation of industrial robot
CN115476333A (en) A positioning method and system for a spraying robot
CN107953333A (en) A control method and system for manipulator end tool calibration
CN108073163B (en) Control method for determining accurate position of robot by using two-dimensional code feedback value compensation
CN110624732A (en) Automatic workpiece spraying system
CN114442054B (en) Sensor and chassis combined calibration system and method for mobile robot
Chen et al. Object-based terminal positioning solution within task-boosted global constraint for improving mobile robotic stacking accuracy
CN115284330A (en) Method for calibrating laser profilometer by welding robot
CN118528253A (en) Control method and device for operation robot
CN110561400A (en) Efficient and accurate positioning system and method for parts uniformly distributed on circumference
CN113671527B (en) Accurate operation method and device for improving distribution network live working robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination