Robotic arm spraying control method and system based on high-efficiency performance servo drive

By using servo drive and posture adjustment technology in the robotic arm spray control system, the problem of spray position errors in automated spray operations is solved and higher spray accuracy is achieved.

CN115179304BActive Publication Date: 2024-10-22GUANGDONG TIANTAI ROBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210668341.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-14
Publication Date
2024-10-22
Estimated Expiration
2042-06-14

AI Technical Summary

Technical Problem

Existing automated spraying operations are prone to spraying position errors, mainly because visual positioning cannot accurately determine the spraying position when the angle is deviated, resulting in spraying position errors.

Method used

A robotic arm spraying control method based on high-efficiency servo drive is adopted. Through the communication connection between the robotic arm spraying mechanism and the control management mechanism, the acquisition terminal collects the image of the target object and sends it to the identification terminal. The identification terminal finds the closest object from multiple object templates. template, and perform position and orientation adjustments until the distance threshold is met, and a spraying signal is generated to drive the servo motor and spraying unit to perform spraying operations.

Benefits of technology

Through the rotation and displacement operations of the object template, the coincidence degree with the target image meets the threshold, thereby avoiding errors in the spraying position and improving the spraying accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115179304B_ABST
    Figure CN115179304B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for controlling spraying of a robot arm based on a high-efficiency servo drive, and the method comprises: an acquisition terminal acquires a target image of the current position of a target object and sends it to a recognition terminal; the recognition terminal finds the object template closest to the target image from multiple object templates, and makes a recognition point distance judgment with the target image; if the object template is satisfied, the object template is set as a recognition template; if the object template is not satisfied, the object template after posture adjustment is set as a recognition template; then the spraying color and spraying area of ​​the target object are obtained according to the recognition template, a spraying signal is generated, and sent to a control terminal of a robot arm spraying mechanism; after receiving the spraying signal, the control terminal performs a spraying operation. The system comprises an acquisition module, a recognition module and a spraying module. The method and system for controlling spraying of a robot arm based on a high-efficiency servo drive solve the problem that spraying position errors are prone to occur in existing automated spraying operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mechanical arms, and in particular to a mechanical arm spraying control method and system based on high-efficiency performance servo drive. Background Art

[0002] The robot arm is a new type of device developed in the process of mechanized and automated production. Its characteristics are that it can complete various expected tasks through programming, and it has the advantages of both humans and machines in terms of structure and performance, especially reflecting human intelligence and adaptability. In modern production processes, robot arms are widely used in automatic production lines, which are not only conducive to improving the degree of automation of material transmission, workpiece loading and unloading, and machine assembly, but also can improve labor productivity and reduce production costs. In addition, in high temperature, high pressure, low temperature, low pressure, dust, radioactivity or other toxic pollution, and narrow working space, robot arms are also the only choice to replace manual labor.

[0003] In existing automated spraying operations, visual positioning is generally used to determine the location where spraying is required, and then the robot arm is controlled to move the nozzle to that location to achieve spraying. Existing visual positioning often uses a fixed template to compare with the target object. When the acquisition terminal captures the target image of the target weapon and there is an angle deviation, there may be a visual positioning error, resulting in an error in the spraying position. Summary of the invention

[0004] In view of the above-mentioned defects, the purpose of the present invention is to propose a robot arm spraying control method based on high-efficiency performance servo drive, which solves the problem that spraying position errors are prone to occur in existing automated spraying operations.

[0005] In view of the above-mentioned defects, the purpose of the present invention is to propose a robotic arm spraying control system based on high-efficiency performance servo drive, which solves the problem that spraying position errors are prone to occur in existing automated spraying operations.

[0006] To achieve this purpose, the present invention adopts the following technical solutions: a method for controlling a mechanical arm spraying based on a high-efficiency servo drive, wherein the mechanical arm spraying mechanism is communicatively connected with a control management mechanism; the mechanical arm spraying mechanism comprises a mechanical arm, a control terminal, a servo motor and a spraying unit, and the mechanical arm is driven by a servo motor; the control management mechanism comprises a collection terminal and an identification terminal;

[0007] The robot arm spraying control method comprises the following steps:

[0008] Acquisition step: the acquisition terminal turns to the target object, acquires the target image of the current position of the target object and sends it to the recognition terminal;

[0009] Identification step: the identification terminal confirms the target image, finds the object template closest to the target image from multiple object templates, and makes a recognition point distance judgment with the target image; if the distance is satisfied, the object template is set as the identification template; if not, the posture of the object template is adjusted, and the object template after the posture adjustment is set as the identification template; then the spray color and spray area of ​​the target object are obtained according to the recognition template, and a spray signal is generated and sent to the control terminal of the robot arm spray mechanism;

[0010] Spraying step: After receiving the spraying signal, the control terminal drives the servo motor to drive the robot arm to move according to the spraying signal, and drives the spraying unit to move according to the spraying signal to perform the spraying operation.

[0011] It is worth noting that the step of template presetting is also included: collecting and presetting multiple object templates at the recognition terminal, wherein each object template includes X sub-templates, and the collection angle of each sub-template differs by 360 / X°;

[0012] In the recognition step, the recognition terminal matches the target image with the X sub-templates of each object template to find the object template that is closest to the target image.

[0013] Optionally, the identification point distance determination in the identification step is specifically as follows:

[0014] Preset value distance threshold and quantity threshold;

[0015] Combining the recognition features on the border of the target image and the remaining recognition features into a first recognition point, and finding a second recognition point on the object template corresponding to the first recognition point according to the first recognition point;

[0016] Obtain the distance between the first recognition point and the corresponding second recognition point, determine whether the distance between all the first recognition points and the corresponding second recognition points is greater than a distance threshold; if so, obtain the number of first recognition points that meet the distance threshold, and determine whether the number is greater than the number threshold; if so, set the object template as the recognition template; if not, adjust the posture of the object template until the number of first recognition points that meet the distance threshold is greater than the number threshold, and set the object template after the posture adjustment as the recognition template.

[0017] Specifically, the posture adjustment in the recognition step is as follows:

[0018] Substituting the first recognition point and the second recognition point into the change matrix, adjusting the posture, and obtaining a corrected object template;

[0019] Among them, the change matrix includes a translation matrix and a rotation matrix;

[0020] First, substitute the coordinates of the first identified point and the coordinates of the second identified point into the following formula (1): Where R is the rotation matrix, is the translation matrix, qi and pi are the coordinates of the associated first and second recognition feature points, respectively, n i is the eigenvector, i is a natural integer greater than 1, and ε is the change matrix;

[0021] Then, the smallest deflection angle r between the first identification point and the second identification point is obtained, and the smallest deflection angle r is substituted into the following formula (2) to calculate the minimum value of the rotation matrix R, where formula (2) is as follows:

[0022]

[0023] Substituting the minimum value of the rotation matrix R back into formula (1), we obtain formula (3): where c i =p i ×n i ;

[0024] The partial derivative of formula (3) is obtained and converted into a linear equation to obtain the minimum deflection angle r, the minimum horizontal offset x and the minimum vertical offset y. The process is as follows:

[0025] The partial derivative formula (4) is as follows:

[0026]

[0027]

[0028]

[0029] The process of converting to linear equations to find the minimum deflection angle r, the minimum horizontal offset x, and the minimum vertical offset y is as follows:

[0030]

[0031] Preferably, the robotic arm spraying mechanism comprises N robotic arms and N control terminals, the robotic arms correspond to the control terminals one by one, each robotic arm is assigned a unique robotic arm number, and each control terminal is assigned a unique control number;

[0032] The identification step is specifically as follows: after confirming the identification template, the identification terminal calculates the angle and distance between the robotic arms with different robotic arm numbers and the acquisition terminal respectively, obtains the spraying areas and spraying colors of the spraying units corresponding to all robotic arms, generates spraying signals according to the spraying areas and spraying colors respectively, and sends the spraying signals to the control terminal with the corresponding control number.

[0033] It is worth noting that a high-efficiency servo-driven mechanical arm spraying control system, the mechanical arm spraying mechanism is communicatively connected with the control management mechanism; the mechanical arm spraying mechanism includes a mechanical arm, a control terminal, a servo motor and a spraying unit, the mechanical arm is driven by the servo motor; the control management mechanism includes a collection terminal and an identification terminal;

[0034] The robot arm spraying control system includes an acquisition module, an identification module and a spraying module;

[0035] The acquisition module is used to turn to the target object through the acquisition terminal, and acquire the target image of the current position of the target object and send it to the recognition terminal;

[0036] The recognition module is used to confirm the target image through the recognition terminal, and find the object template closest to the target image from multiple object templates, and make a recognition point distance judgment with the target image; it is also used to set the object template as the recognition template if it meets the requirements; it is also used to adjust the posture of the object template if it does not meet the requirements, and set the object template after the posture adjustment as the recognition template; it is also used to obtain the spray color and spray area of ​​the target object according to the recognition template, generate a spray signal, and send it to the control terminal of the robot arm spray mechanism;

[0037] The spraying module is used to drive the servo motor to drive the robot arm to move according to the spraying signal after receiving the spraying signal through the control terminal, and is also used to drive the spraying unit to move according to the spraying signal to perform the spraying operation.

[0038] Optionally, a template preset module is further included, wherein the template preset module is used to collect and preset multiple object templates in the recognition terminal, wherein each object template includes X sub-templates, and the collection angle of each sub-template differs by 360 / X°;

[0039] The recognition module is further used to match the target image with the X sub-templates of each object template through the recognition terminal to find the object template closest to the target image.

[0040] Specifically, the identification module is also used to preset a distance threshold and a quantity threshold;

[0041] It is also used to combine the recognition features on the border of the target image and the remaining recognition features into a first recognition point, and to find a second recognition point on the object template corresponding to the first recognition point according to the first recognition point;

[0042] It is also used to obtain the distance between the first recognition point and the corresponding second recognition point, and is also used to determine whether the distance between all the first recognition points and the corresponding second recognition points is greater than a distance threshold. If so, it is also used to obtain the number of first recognition points that meet the distance threshold, and to determine whether the number is greater than the number threshold. If so, it is also used to set the object template as the recognition template. If not, it is also used to adjust the posture of the object template until the number of first recognition points that meet the distance threshold is greater than the number threshold, and it is also used to set the object template after the posture adjustment as the recognition template.

[0043] Preferably, the recognition module is further used to substitute the first recognition point and the second recognition point into the change matrix, perform posture adjustment, and obtain a corrected object template;

[0044] Among them, the change matrix includes a translation matrix and a rotation matrix;

[0045] First, substitute the coordinates of the first identified point and the coordinates of the second identified point into the following formula (1): Where R is the rotation matrix, is the translation matrix, qi and pi are the coordinates of the associated first and second recognition feature points, respectively, n i is the eigenvector, i is a natural integer greater than 1, and ε is the change matrix;

[0046] Then, the smallest deflection angle r between the first identification point and the second identification point is obtained, and the smallest deflection angle r is substituted into the following formula (2) to calculate the minimum value of the rotation matrix R, where formula (2) is as follows:

[0047]

[0048] Substituting the minimum value of the rotation matrix R back into formula (1), we obtain formula (3): where c i =p i ×n i ;

[0049] The partial derivative of formula (3) is obtained and converted into a linear equation to obtain the minimum deflection angle r, the minimum horizontal offset x and the minimum vertical offset y. The process is as follows:

[0050] The partial derivative formula (4) is as follows:

[0051]

[0052]

[0053]

[0054] The process of converting to linear equations to find the minimum deflection angle r, the minimum horizontal offset x, and the minimum vertical offset y is as follows:

[0055]

[0056] It is worth noting that the robot arm spraying mechanism includes N robot arms and N control terminals, the robot arms correspond to the control terminals one by one, each robot arm is assigned a unique robot arm number, and each control terminal is assigned a unique control number;

[0057] The recognition module is also used to calculate the angles and distances between the robotic arms with different robotic arm numbers and the acquisition terminal through the recognition terminal after confirming the recognition template, so as to obtain the spraying areas and spraying colors of the spraying units corresponding to all robotic arms; it is also used to generate spraying signals according to the spraying areas and spraying colors, and send the spraying signals to the control terminals with the corresponding control numbers.

[0058] One of the above technical solutions has the following beneficial effects: in the robotic arm spraying control method based on high-efficiency servo drive, before spraying, the object template is also rotated and displaced so that the object template and the target image are brought closer until the degree of overlap between the object template and the target image meets the threshold. At this time, it can be determined that the object template and the target image are almost overlapped. During spraying, the servo motor can be used to drive the robotic arm to the position corresponding to the spraying signal, corresponding to the spraying information of the actual target object, and then the position is sprayed, thereby avoiding the occurrence of spraying position errors and improving the accuracy of spraying. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 is a flow chart of a method for controlling a spraying robot arm in one embodiment of the present invention;

[0060] Figure 2 It is a communication connection block diagram of a robot arm spraying mechanism and a control management mechanism in one embodiment of the present invention;

[0061] Figure 3 It is a system block diagram of a robot arm spraying control system in one embodiment of the present invention. DETAILED DESCRIPTION

[0062] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0063] The disclosure below provides many different embodiments or examples for realizing different structures of embodiments of the present invention. In order to simplify the disclosure of embodiments of the present invention, the components and settings of specific examples are described below. Of course, they are merely examples, and the purpose is not to limit the present invention. In addition, embodiments of the present invention may repeat reference numerals and / or reference letters in different examples, and such repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0064] like Figure 1 and 2 As shown, a robotic arm spraying control method based on high-efficiency performance servo drive, the robotic arm spraying mechanism is communicatively connected with the control management mechanism; the robotic arm spraying mechanism includes a robotic arm, a control terminal, a servo motor and a spraying unit, and the robotic arm is driven by a servo motor; the control management mechanism includes a collection terminal and an identification terminal; specifically, the robotic arm spraying mechanism and the control management mechanism are two independently operated mechanisms.

[0065] The robot arm spraying control method comprises the following steps:

[0066] Collection step: the collection terminal turns to the target object, collects the target image of the current position of the target object and sends it to the recognition terminal; in this embodiment, the collection terminal is connected to a rotation unit, and the rotation unit drives the collection terminal to rotate, so that the collection input port of the collection terminal faces the target object. Preferably, the rotation unit is a motor, and the collection terminal is a camera.

[0067] Identification step: The identification terminal confirms the target image, finds the object template closest to the target image from multiple object templates, and makes an identification point distance judgment with the target image; if satisfied, the object template is set as the identification template; if not satisfied, the object template is posture adjusted, and the object template after posture adjustment is set as the identification template; then the spray color and spray area of ​​the target object are obtained according to the recognition template, a spray signal is generated, and sent to the control terminal of the robot arm spray mechanism; preferably, the identification terminal is an MCU, and the identification terminal is provided with the functions of sending and receiving signals and processing signals. The identification terminal is connected to the control terminal in a wired or wireless manner to realize the transmission of the spray signal.

[0068] Spraying step: After the control terminal receives the spraying signal, it drives the servo motor to drive the robot arm to move according to the spraying signal, and drives the spraying unit to move according to the spraying signal to perform the spraying operation. In this embodiment, the spraying signal contains the X-axis movement amount of the robot arm, the Y-axis movement amount of the robot arm, and the Z-axis movement amount of the robot arm. The robot arm moves a specified distance along the X-axis direction in a preset coordinate system according to the X-axis movement amount of the robot arm, and the robot arm moves a specified distance along the Y-axis direction in a preset coordinate system according to the Y-axis movement amount of the robot arm. The robot arm moves a specified distance along the Z-axis direction in a preset coordinate system according to the Z-axis movement amount of the robot arm, realizing movement in three-dimensional space and finally moving to a specified position, so that the spraying unit faces the specified position of the target object; then the spraying unit selects a specified color according to the spraying signal to spray to the specified position of the target object.

[0069] In the robotic arm spraying control method based on high-efficiency servo drive, before spraying, the object template is also rotated and displaced so that the object template and the target image are brought closer together until the degree of overlap between the object template and the target image meets the threshold. At this time, it can be determined that the object template and the target image are almost overlapped. During spraying, the servo motor can be used to drive the robotic arm to the position corresponding to the spraying signal, corresponding to the spraying information of the actual target object, and then spray the position, thereby avoiding errors in the spraying position and improving the accuracy of spraying.

[0070] In some embodiments, a template presetting step is further included: collecting and presetting multiple object templates in the recognition terminal, wherein each object template includes X sub-templates, and the acquisition angle of each sub-template differs by 360 / X°; in the recognition step, the recognition terminal matches the target image with the X sub-templates of each object template to find the object template closest to the target image. The template presetting step is implemented, and X sub-templates are collected around the object, so that the acquisition angle of each sub-template differs by 360 / X°. In this way, the X sub-templates can just surround the object, so that the features of the object can be acquired without dead angles at 360°. Then, in the recognition step, the X sub-templates are used to match the target object. Even if the target object to be sprayed has a complex structure with multiple edges, multiple faces or asymmetry, since the X sub-templates have covered the entire target object, the position of the target object to be sprayed can be accurately identified, and then the precise spraying can be achieved by controlling the mechanical arm spraying mechanism and the spraying unit. The larger the value of X, the more sub-templates there are, and the more accurate the recognition terminal can recognize, but the larger the storage space required. In one embodiment, 360 sub-templates are collected around the object, and the collection angle of each sub-template differs by 1°. Therefore, the 360 ​​sub-templates can just surround the object, thereby acquiring the features of the object at 360° without blind spots.

[0071] It is worth noting that the identification point distance judgment in the identification step is specifically as follows: preset value distance threshold and quantity threshold; combining the identification features on the border of the target image and the remaining identification features into a first identification point, and finding the second identification point corresponding to the first identification point on the object template according to the first identification point; obtaining the distance between the first identification point and the corresponding second identification point, and judging whether the distance between all first identification points and the corresponding second identification points is greater than the distance threshold; if so, obtaining the number of first identification points that meet the distance threshold, and judging whether the number is greater than the quantity threshold; if so, setting the object template as the identification template; if not, adjusting the posture of the object template until the number of first identification points that meet the distance threshold is greater than the quantity threshold, and setting the object template after the posture adjustment as the identification template.

[0072] In one embodiment of the present invention, the recognition features on the target image border and the remaining recognition features are obtained at a ratio of 3:7 and combined into a first recognition point, wherein the remaining recognition features are recognition features on non-target edges. This ratio can reduce the time for picking out the recognition features of the target border and the remaining recognition features. At the same time, a large number of remaining recognition features can ensure the accuracy of template posture correction.

[0073] The method of obtaining the first identification point and the second identification point is as follows: obtain the tangent of the first identification point, draw a perpendicular line to the tangent of the first identification point, connect the second identification point with the perpendicular line, calculate the length of the perpendicular line, and the length of the perpendicular line is the distance between the first identification point and the second identification point.

[0074] Then, the distance between the first recognition point and the second recognition point that correspond one to one after the association is obtained, and it is determined whether the distance is greater than the distance threshold. Only when it is greater than the distance threshold, it can be explained that the posture of the target part is greatly different from the posture of the template image, and the posture of the object template needs to be adjusted. After obtaining all the first recognition points and second recognition points that meet the distance threshold, the number of the first recognition points and the second recognition points is counted, and the posture of the object template is adjusted only when the number does not meet the number threshold. Because the first recognition point and the second recognition point are mutually associated and correspond in posture, it is possible that the first recognition point is a rotation edge point on the target frame, and the associated second recognition point edge point is only close in posture, and the rotation edge point cannot completely overlap with the edge point. Therefore, when the object template is adjusted to approach the target part, the first recognition point and the second recognition point of this type still meet the requirements of the distance threshold. If only the distance threshold is used to determine whether the posture adjustment is needed, the posture of the object template will be corrected all the time, wasting the system's operating resources.

[0075] Optionally, the posture adjustment in the recognition step is specifically: substituting the first recognition point and the second recognition point into a change matrix, performing posture adjustment, and obtaining a corrected object template;

[0076] Among them, the change matrix includes a translation matrix and a rotation matrix;

[0077] First, substitute the coordinates of the first identified point and the coordinates of the second identified point into the following formula (1): Where R is the rotation matrix, is the translation matrix, qi and pi are the coordinates of the associated first and second recognition feature points, respectively, n i is the eigenvector, i is a natural integer greater than 1, and ε is the change matrix;

[0078] Then, the smallest deflection angle r between the first identification point and the second identification point is obtained, and the smallest deflection angle r is substituted into the following formula (2) to calculate the minimum value of the rotation matrix R, where formula (2) is as follows:

[0079]

[0080] Substituting the minimum value of the rotation matrix R back into formula (1), we obtain formula (3): where c i =p i ×n i ;

[0081] The partial derivative of formula (3) is obtained and converted into a linear equation to obtain the minimum deflection angle r, the minimum horizontal offset x and the minimum vertical offset y. The process is as follows:

[0082] The partial derivative formula (4) is as follows:

[0083]

[0084]

[0085]

[0086] The process of converting to linear equations to find the minimum deflection angle r, the minimum horizontal offset x, and the minimum vertical offset y is as follows:

[0087]

[0088] Specifically, the robotic arm spraying mechanism includes N robotic arms and N control terminals, the robotic arms correspond to the control terminals one-to-one, each robotic arm is assigned a unique robotic arm number, and each control terminal is assigned a unique control number; in this embodiment, robotic arm numbers from 1 to N are assigned to the robotic arms, and control numbers from 1 to N are also assigned to the control terminals, at this time, the robotic arm with robotic arm number 1 corresponds to the control terminal with control number 1, that is, the robotic arm with robotic arm number 1 is communicatively connected to the control terminal with control number 1; the robotic arm with robotic arm number 2 corresponds to the control terminal with control number 2, that is, the robotic arm with robotic arm number 2 is communicatively connected to the control terminal with control number 2; the robotic arm with robotic arm number N corresponds to the control terminal with control number N, that is, the robotic arm with robotic arm number N is communicatively connected to the control terminal with control number N;

[0089] The identification step is specifically as follows: after confirming the identification template, the identification terminal calculates the angle and distance between the robotic arms with different robotic arm numbers and the acquisition terminal respectively, obtains the spraying areas and spraying colors of the spraying units corresponding to all robotic arms, generates spraying signals according to the spraying areas and spraying colors respectively, and sends the spraying signals to the control terminal with the corresponding control number.

[0090] The position of each robotic arm is different. After the identification terminal calculates the angle and distance between the robotic arm and the acquisition terminal, the current position of the robotic arm can be determined. Then, the target object can be equally divided according to the number of robotic arms, so that the area of ​​the spraying area that each robotic arm needs to spray is equal; in the process of equally dividing the target object, the spraying areas of the same robotic arm are connected and will not be dispersed. In this way, it can be ensured that the same robotic arm can spray the spraying area that needs to be sprayed at one time during the spraying operation. If the spraying areas are dispersed, each robotic arm will move to the next small part to spray after spraying a small part. During the movement, it needs to cross the spraying area sprayed by other robotic arms, which increases the difficulty of designing the movement trajectory of the robotic arm and easily causes the two robotic arms to collide. After the target object is divided equally according to the number of robotic arms, the recognition terminal combines the recognition template and the spraying area that each robotic arm needs to spray, obtains the robotic arm movement process required for each robotic arm to spray the spraying area, the spraying color required for each robotic arm to spray the spraying area, and the order of spraying colors, and packages them into spraying signals, and sends each spraying signal to the corresponding control terminal to achieve synchronous spraying, wherein the robotic arm movement process includes the robotic arm X-axis movement, the robotic arm Y-axis movement, and the robotic arm Z-axis movement. It is worth noting that the more robotic arms there are, the finer the spraying area obtained when the target object is divided equally, thereby making the spraying more accurate.

[0091] After the spraying step, a feedback step is also included: the feedback step is specifically as follows: after the spraying operation is completed, the control terminal obtains the angle and distance between itself and the identification terminal, and sends it to the identification terminal; the identification terminal determines whether the spraying is correct based on the angle and distance sent by all control terminals and combined with the identification template; when the spraying is correct, the current spraying operation is ended; when the spraying is incorrect, the acquisition step, the identification step and the spraying step are re-executed. In the process of the identification terminal of the control management agency sending the spraying signal to the control terminal of the mechanical arm spraying mechanism, sometimes due to excessive number of signals or interference, the spraying signal received by the control terminal may be missing, or when the servo motor drives the mechanical arm, due to the error of the servo motor, the spraying color and / or spraying area of ​​the target object will deviate from the predetermined result, resulting in an increase in the defect rate of the product. In this embodiment, the spraying color and spraying area of ​​the target object are confirmed twice through the feedback step to reduce deviation and reduce the defect rate. During spraying, each robot is in a different position. After the recognition terminal calculates the angle and distance between the robot and the acquisition terminal, the current position of the robot can be determined again. The recognition terminal can determine whether the spraying is correct based on the recognition template and the spraying area that each robot needs to spray. When the spraying is correct, it means that the spraying color and / or spraying area of ​​the target object is not different from the predetermined result, and it can be output as a finished product; when the spraying is incorrect, it means that the spraying color and / or spraying area of ​​the target object is different from the predetermined result, indicating that there is a defect and the target object needs to be sprayed again.

[0092] The spray signal generated in the identification step includes a drive instruction and a color instruction; in the spray step, the control terminal drives the servo motor to move according to the drive instruction, and the control terminal drives the spray unit to spray the corresponding color according to the color instruction. In this embodiment, the drive instruction includes the X-axis movement of the robot arm, the Y-axis movement of the robot arm, and the Z-axis movement of the robot arm. The color instruction is a color code input in sequence, and the control terminal drives the coating unit to spray the corresponding color in sequence according to the color code machine input sequence.

[0093] Preferably, Figure 3 As shown, a mechanical arm spraying control system based on high-efficiency performance servo drive, the mechanical arm spraying mechanism is communicatively connected with the control management mechanism; the mechanical arm spraying mechanism includes a mechanical arm, a control terminal, a servo motor and a spraying unit, and the mechanical arm is driven by the servo motor; the control management mechanism includes a collection terminal and an identification terminal;

[0094] The robot arm spraying control system includes an acquisition module, an identification module and a spraying module;

[0095] The acquisition module is used to turn to the target object through the acquisition terminal, and acquire the target image of the current position of the target object and send it to the recognition terminal;

[0096] The recognition module is used to confirm the target image through the recognition terminal, and find the object template closest to the target image from multiple object templates, and make a recognition point distance judgment with the target image; it is also used to set the object template as the recognition template if it meets the requirements; it is also used to adjust the posture of the object template if it does not meet the requirements, and set the object template after the posture adjustment as the recognition template; it is also used to obtain the spray color and spray area of ​​the target object according to the recognition template, generate a spray signal, and send it to the control terminal of the robot arm spray mechanism;

[0097] The spraying module is used to drive the servo motor to drive the robot arm to move according to the spraying signal after receiving the spraying signal through the control terminal, and is also used to drive the spraying unit to move according to the spraying signal to perform the spraying operation.

[0098] In some embodiments, a template preset module is further included, and the template preset module is used to collect and preset multiple object templates in the recognition terminal, wherein each object template includes X sub-templates, and the collection angle of each sub-template differs by 360 / X°; the recognition module is also used to match the target image with the X sub-templates of each object template through the recognition terminal to find the object template closest to the target image.

[0099] It is worth noting that the recognition module is also used to preset a distance threshold and a quantity threshold; it is also used to combine the recognition features on the border of the target image and the remaining recognition features into a first recognition point, and is also used to find the second recognition point corresponding to the first recognition point on the object template based on the first recognition point; it is also used to obtain the distance between the first recognition point and the corresponding second recognition point, and is also used to determine whether the distance between all first recognition points and the corresponding second recognition points is greater than the distance threshold, and is also used to obtain the number of first recognition points that meet the distance threshold if it is satisfied, and determine whether the number is greater than the quantity threshold; it is also used to set the object template as the recognition template if it is satisfied; it is also used to adjust the posture of the object template if it is not satisfied, until the number of first recognition points that meet the distance threshold is greater than the quantity threshold, and is also used to set the object template after the posture adjustment as the recognition template.

[0100] Optionally, the recognition module is further used to substitute the first recognition point and the second recognition point into the change matrix, perform posture adjustment, and obtain a corrected object template;

[0101] Among them, the change matrix includes a translation matrix and a rotation matrix;

[0102] First, substitute the coordinates of the first identified point and the coordinates of the second identified point into the following formula (1): Where R is the rotation matrix, is the translation matrix, qi and pi are the coordinates of the associated first and second recognition feature points, respectively, n i is the eigenvector, i is a natural integer greater than 1, and ε is the change matrix;

[0103] Then, the smallest deflection angle r between the first identification point and the second identification point is obtained, and the smallest deflection angle r is substituted into the following formula (2) to calculate the minimum value of the rotation matrix R, where formula (2) is as follows:

[0104]

[0105] Substituting the minimum value of the rotation matrix R back into formula (1), we obtain formula (3): where c i =p i ×n i ;

[0106] The partial derivative of formula (3) is obtained and converted into a linear equation to obtain the minimum deflection angle r, the minimum horizontal offset x and the minimum vertical offset y. The process is as follows:

[0107] The partial derivative formula (4) is as follows:

[0108]

[0109]

[0110]

[0111] The process of converting to linear equations to find the minimum deflection angle r, the minimum horizontal offset x, and the minimum vertical offset y is as follows:

[0112]

[0113] Specifically, the robot arm spraying mechanism includes N robot arms and N control terminals, the robot arms correspond to the control terminals one by one, each robot arm is assigned a unique robot arm number, and each control terminal is assigned a unique control number;

[0114] The recognition module is also used to calculate the angles and distances between the robotic arms with different robotic arm numbers and the acquisition terminal through the recognition terminal after confirming the recognition template, so as to obtain the spraying areas and spraying colors of the spraying units corresponding to all robotic arms; it is also used to generate spraying signals according to the spraying areas and spraying colors, and send the spraying signals to the control terminals with the corresponding control numbers.

[0115] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0116] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A robotic arm spraying control method based on high-efficiency servo drive, Features: The mechanical arm spraying mechanism is communicatively connected with the control management mechanism; the mechanical arm spraying mechanism comprises a mechanical arm, a control terminal, a servo motor and a spraying unit, and the mechanical arm is driven by the servo motor; the control management mechanism comprises a collection terminal and an identification terminal; The robot arm spraying control method comprises the following steps: Acquisition step: the acquisition terminal turns to the target object, acquires the target image of the current position of the target object and sends it to the recognition terminal; Identification step: the identification terminal confirms the target image, finds the object template closest to the target image from multiple object templates, and makes a distance judgment between the identification point and the target image; if the distance is satisfied, the object template is set as the identification template; If not, the object template is adjusted in position and posture, and the object template after the position and posture adjustment is set as the recognition template; then the spraying color and spraying area of ​​the target object are obtained according to the recognition template, and a spraying signal is generated and sent to the control terminal of the robot arm spraying mechanism; Spraying step: after receiving the spraying signal, the control terminal drives the servo motor to drive the mechanical arm to move according to the spraying signal, and drives the spraying unit to move according to the spraying signal to perform the spraying operation; The identification point distance determination in the identification step is specifically as follows: Preset value distance threshold and quantity threshold; Combining the recognition features on the border of the target image and the remaining recognition features into a first recognition point, and finding a second recognition point on the object template corresponding to the first recognition point according to the first recognition point; Obtain the distance between the first recognition point and the second recognition point corresponding thereto, determine whether the distance between all the first recognition points and the second recognition points corresponding thereto is greater than a distance threshold, and if so, obtain the number of first recognition points satisfying the distance threshold, and determine whether the number is greater than the number threshold; if so, set the object template as the recognition template; if not, adjust the posture of the object template until the number of first recognition points satisfying the distance threshold is greater than the number threshold, and set the object template after the posture adjustment as the recognition template; The posture adjustment in the recognition step is specifically as follows: Substituting the first recognition point and the second recognition point into the change matrix, adjusting the posture, and obtaining a corrected object template; Among them, the change matrix includes the translation matrix and the rotation matrix. First, substitute the coordinates of the first identified point and the coordinates of the second identified point into formula (1): Where R is the rotation matrix, is the translation matrix, q i and p i are the coordinates of the first and second associated recognition feature points, respectively, n i is the eigenvector, i is a natural integer greater than 1, and ε is the change matrix; Then, the smallest deflection angle r between the first identification point and the second identification point is obtained, and the smallest deflection angle r is substituted into formula (2) to calculate the minimum value of the rotation matrix R, where formula (2) is as follows: Substituting the minimum value of the rotation matrix R back into formula (1), we obtain formula (3): where c i =p i ×n i ; The partial derivative of formula (3) is obtained and converted into a linear equation to obtain the minimum deflection angle r, the minimum horizontal offset x and the minimum vertical offset y. The process is as follows: The partial derivative formula (4) is as follows: The process of converting to linear equations to find the minimum deflection angle r, the minimum horizontal offset x, and the minimum vertical offset y is as follows:

2. According to the method for controlling the spraying of a robot arm based on a high-efficiency servo drive according to claim 1, Features: The step of template presetting is also included: collecting and presetting a plurality of object templates at the recognition terminal, wherein each object template includes X sub-templates, and the collection angle of each sub-template differs by 360 / X°; In the recognition step, the recognition terminal matches the target image with the X sub-templates of each object template to find the object template that is closest to the target image.

3. According to the method for controlling the spraying of a robot arm based on a high-efficiency servo drive according to claim 1, Features: The robot arm spraying mechanism includes N robot arms and N control terminals, the robot arms correspond to the control terminals one by one, each robot arm is assigned a unique robot arm number, and each control terminal is assigned a unique control number; The identification step is specifically as follows: after confirming the identification template, the identification terminal calculates the angle and distance between the robotic arms with different robotic arm numbers and the acquisition terminal respectively, obtains the spraying areas and spraying colors of the spraying units corresponding to all robotic arms, generates spraying signals according to the spraying areas and spraying colors respectively, and sends the spraying signals to the control terminal with the corresponding control number.

4. A robotic arm spraying control system based on high-efficiency servo drive, Features: The mechanical arm spraying mechanism is communicatively connected with the control management mechanism; the mechanical arm spraying mechanism comprises a mechanical arm, a control terminal, a servo motor and a spraying unit, and the mechanical arm is driven by the servo motor; the control management mechanism comprises a collection terminal and an identification terminal; The robot arm spraying control system includes an acquisition module, an identification module and a spraying module; The acquisition module is used to turn to the target object through the acquisition terminal, and acquire the target image of the current position of the target object and send it to the recognition terminal; The recognition module is used to confirm the target image through the recognition terminal, find the object template closest to the target image from multiple object templates, and make a recognition point distance judgment with the target image; It is also used to set the object template as the recognition template if the conditions are met; it is also used to adjust the posture of the object template if the conditions are not met, and set the object template after the posture adjustment as the recognition template; it is also used to obtain the spraying color and spraying area of ​​the target object according to the recognition template, generate a spraying signal, and send it to the control terminal of the robot arm spraying mechanism; The spraying module is used to drive the servo motor to drive the mechanical arm to move according to the spraying signal after receiving the spraying signal through the control terminal, and is also used to drive the spraying unit to move according to the spraying signal to perform the spraying operation; The identification module is also used to preset a distance threshold and a quantity threshold; It is also used to combine the recognition features on the border of the target image and the remaining recognition features into a first recognition point, and to find a second recognition point on the object template corresponding to the first recognition point according to the first recognition point; It is also used to obtain the distance between the first recognition point and the second recognition point corresponding thereto, and to determine whether the distance between all the first recognition points and the second recognition points corresponding thereto is greater than a distance threshold, and if so, to obtain the number of first recognition points that meet the distance threshold, and to determine whether the number is greater than a number threshold; if so, to set the object template as a recognition template; if not, to adjust the posture of the object template until the number of first recognition points that meet the distance threshold is greater than the number threshold, and to set the object template after the posture adjustment as a recognition template; The recognition module is further used to substitute the first recognition point and the second recognition point into the change matrix, perform posture adjustment, and obtain a corrected object template; Among them, the change matrix includes the translation matrix and the rotation matrix. First, substitute the coordinates of the first identified point and the coordinates of the second identified point into formula (1): Where R is the rotation matrix, is the translation matrix, q i and p i are the coordinates of the first and second associated recognition feature points, respectively, n i is the eigenvector, i is a natural integer greater than 1, and ε is the change matrix; Then, the smallest deflection angle r between the first identification point and the second identification point is obtained, and the smallest deflection angle r is substituted into formula (2) to calculate the minimum value of the rotation matrix R, where formula (2) is as follows: Substituting the minimum value of the rotation matrix R back into formula (1), we obtain formula (3): where c i =p i ×n i ; The partial derivative of formula (3) is obtained and converted into a linear equation to obtain the minimum deflection angle r, the minimum horizontal offset x and the minimum vertical offset y. The process is as follows: The partial derivative formula (4) is as follows: The process of converting to linear equations to find the minimum deflection angle r, the minimum horizontal offset x, and the minimum vertical offset y is as follows:

5. According to the high-efficiency servo-driven robot arm spraying control system of claim 4, Features: It also includes a template preset module, which is used to collect and preset multiple object templates in the recognition terminal, wherein each object template includes X sub-templates, and the collection angle of each sub-template differs by 360 / X°; The recognition module is further used to match the target image with the X sub-templates of each object template through the recognition terminal to find the object template closest to the target image.

6. According to the high-efficiency servo-driven robot arm spraying control system of claim 4, Features: The robot arm spraying mechanism includes N robot arms and N control terminals, the robot arms correspond to the control terminals one by one, each robot arm is assigned a unique robot arm number, and each control terminal is assigned a unique control number; The recognition module is also used to calculate the angles and distances between the robotic arms with different robotic arm numbers and the acquisition terminal through the recognition terminal after confirming the recognition template, so as to obtain the spraying areas and spraying colors of the spraying units corresponding to all robotic arms; it is also used to generate spraying signals according to the spraying areas and spraying colors, and send the spraying signals to the control terminals with the corresponding control numbers.