A method, device and equipment for generating glue spraying trajectory of shoemaking robot

By using the glue spray trajectory generation method in the shoemaking process, the three-dimensional coordinates of the base boundary line and reference line of the upper are obtained, the posture loss is calculated and adjusted, and an accurate glue spray trajectory is generated, which solves the problem of low efficiency and accuracy of the traditional glue spray process. It eliminates the problem of poor quality and toxic gases and improves shoemaking production efficiency and worker safety.

CN114683282BActive Publication Date: 2024-09-10DONGGUAN ZHIRUI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210289273.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-22
Publication Date
2024-09-10
Estimated Expiration
2042-03-22

AI Technical Summary

Technical Problem

The traditional glue spraying process is inefficient and inaccurate during the shoemaking process, and the toxic gases emitted by the adhesive threaten the health of workers.

Method used

The glue spraying trajectory generation method of the shoemaking robot is used to obtain the three-dimensional coordinates of the base boundary line and reference line of the shoe upper, calculate the initial posture, and adjust the posture loss based on the optimization algorithm to generate an accurate glue spraying trajectory and improve the automated glue spraying operation. efficiency.

Benefits of technology

It improves shoe production efficiency, enhances the accuracy of glue spraying operations, reduces the release of toxic gases, and protects workers' health.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114683282B
    Figure CN114683282B
Patent Text Reader

Abstract

The present invention discloses a method, device and equipment for generating glue spraying trajectory of a shoe-making robot. The method comprises obtaining a first point set for constructing a reference boundary line of a shoe upper and a second point set for constructing a reference line of a shoe upper; calculating the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set; considering the error of point position acquisition, jointly adjusting the initial postures of several points in the first point set, and calculating the overall posture loss; calculating a group of postures with the smallest overall posture loss based on an optimization algorithm, and outputting the group of postures as the final posture to generate the glue spraying trajectory of the shoe-making robot. The glue spraying trajectory of the shoe-making robot obtained by the present invention can be applied to the automated glue spraying operation of the sole and upper of the shoe-making process, thereby improving the production efficiency of footwear.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of shoemaking, and in particular relates to a method, a device and equipment for generating a glue spraying trajectory of a shoemaking robot. Background Art

[0002] In the shoemaking industry, the shoemaking process can be roughly divided into the cutting and sewing section, the molding section and the packaging section. Among them, the cutting and sewing section is mainly responsible for making the upper and the sole respectively, that is, by cutting various fabrics, sewing them into the upper by sewing, and making the sole by injection molding or other processes; the molding section is mainly to fit the sole and the upper through roughing, spraying treatment agents and spraying glue; the packaging section is mainly responsible for quality inspection of the finished shoes and packing them into boxes.

[0003] Among them, in the molding section, the sole and upper gluing process is one of the most labor-intensive and time-consuming key processes in the shoemaking process. This process determines the bonding strength between the upper and the sole, and reflects the quality of the footwear. Traditional spraying processes are all manual or semi-automatic. Specifically, the sole and the upper are pressed together manually, and a circle of lines is drawn on the upper along the edge of the sole using a fluorescent pen as the reference boundary line for the upper processing. When the upper is subsequently roughened, treated with a treatment agent, and glued, a purple light is used to illuminate the upper, the upper reference boundary line is manually observed, and the relevant processes of the upper are carried out along the reference boundary line. The entire process is very inefficient and has poor accuracy, and the toxic gases volatilized from the adhesive seriously threaten the health of the operators. Summary of the invention

[0004] The object of the present invention is to provide a method, device and equipment for generating a glue spraying trajectory of a shoemaking robot, so as to solve at least one technical problem existing in the prior art.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, the present invention provides a method for generating a glue spraying trajectory of a shoemaking robot, comprising:

[0007] Acquire a first point set for constructing a vamp reference boundary line and a second point set for constructing a vamp reference line, wherein the vamp reference boundary line is a circular line for marking a position where the sole and the upper are fitted, and the vamp reference line is a circular line spaced a certain distance from the vamp reference boundary line;

[0008] Calculating an initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set;

[0009] Taking into account the error of point acquisition, jointly adjust the initial postures of several points in the first point set, and calculate the overall posture loss;

[0010] Based on the optimization algorithm, a group of postures with the smallest overall posture loss is calculated, and this group of postures is output as the final posture to generate the glue spraying trajectory of the shoemaking robot.

[0011] In a possible design, obtaining a first point set for constructing a shoe upper reference boundary line and a second point set for constructing a shoe upper reference line includes:

[0012] Place the sole tightly against the upper and set a solid upper reference boundary line on the upper along the upper edge of the sole;

[0013] A plurality of interval lines with the same vertex height are arranged at equal distances on the solid upper reference boundary line;

[0014] Using a point acquisition device to acquire the intersection points of each interval line and the physical upper reference boundary line one by one, a set of three-dimensional coordinates of a plurality of intersection points forms a first point set for constructing the upper reference boundary line;

[0015] The three-dimensional coordinates of the vertices of each interval line are collected one by one using a point acquisition device, and a set of three-dimensional coordinates of several vertices forms a second point set for constructing a shoe upper reference line.

[0016] In one possible design, the point acquisition device includes a three-dimensional digitizer.

[0017] In a possible design, calculating the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set includes:

[0018] Assume that n0 and (n+1)0 are the nth point and n+1th point in the first point set, respectively, and assume that n c is the nth point in the second point set, where n c and n0 are points extracted on the same interval line;

[0019] Construct n0, (n+1)0 and n c The plane fitting equation of the plane where it is located is solved to obtain the plane normal vector;

[0020] The initial posture of n0 is calculated based on the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0.

[0021] In one possible design, construct n0, (n+1)0, and n c The plane fitting equation of the plane where it is located is solved to obtain the plane normal vector, including:

[0022] Construct n0, (n+1)0 and n cThe plane fitting equation of the plane where the plane is located is expressed as follows:

[0023] Ax+By+Cz+D=0; (1)

[0024] Among them, A, B, C and D are unknown parameters;

[0025] According to n0, (n+1)0 and n c The unknown parameters of the plane fitting equation are calculated by using the three-dimensional coordinates of each plane. The calculation formula is as follows:

[0026] A=(y3-y1)×(z3-z1)-(z2-z1)×(y3-y1); (2)

[0027] B = (x3-x1) × (z2-z1) - (x2-x1) × (z3-z1); (3)

[0028] C=(x2-x1)×(y3-y1)-(x3-x1)×(y2-y1); (4)

[0029] D=-(A×x1+B×y1+C×z1); (5)

[0030] Among them, (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3) represent n0, (n+1)0 and n respectively. c The three-dimensional coordinates of , (A, B, C) represent the plane normal vector.

[0031] In a possible design, the initial posture of n0 is calculated based on the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0, including:

[0032] According to the plane normal vector (A, B, C), the X-axis rotation component Rx and the Y-axis rotation component Ry of the initial posture of n0 are calculated respectively. The calculation formula is as follows:

[0033]

[0034]

[0035] According to the three-dimensional coordinates of n0 and (n+1)0, the Z-axis rotation component Rz of the initial posture of n0 is calculated. The calculation formula is as follows:

[0036]

[0037] In one possible design, the overall pose loss is calculated, including:

[0038] The sum of the deviations of the adjusted posture of each point in the first point set compared with the initial posture is calculated to obtain the posture deviation loss e1, which is calculated as follows:

[0039]

[0040] in, and respectively represent the X-axis rotation component, Y-axis rotation component and Z-axis rotation component of the initial posture of the i-th point in the first point set;

[0041] The sum of the similarities between each point in the first point set and several adjacent points is calculated to obtain the posture smoothness loss e2, which is calculated as follows:

[0042]

[0043] According to the posture deviation loss e1 and the posture smoothness loss e2, the overall loss e is calculated, and the calculation formula is as follows:

[0044] e=e1+e2. (11)

[0045] In one possible design, the optimization algorithm includes Newton gradient descent method, conjugate gradient descent method or simulated annealing method.

[0046] In a second aspect, the present invention provides a glue spraying trajectory generating device for a shoemaking robot, comprising:

[0047] A point set acquisition module, used to acquire a first point set for constructing a shoe upper reference boundary line and a second point set for constructing a shoe upper reference line, wherein the shoe upper reference boundary line is a circular line for marking a fitting position of the sole and upper, and the shoe upper reference line is a circular line spaced a certain distance from the shoe upper reference boundary line;

[0048] an initial posture calculation module, used to calculate the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set;

[0049] A posture loss calculation module, used for considering the error of point acquisition, jointly adjusting the initial postures of several points in the first point set, and calculating the overall posture loss;

[0050] The glue spraying trajectory generation module is used to calculate a set of postures with the smallest overall posture loss based on an optimization algorithm, and output the set of postures as the final posture to generate the glue spraying trajectory of the shoemaking robot.

[0051] In a possible design, when acquiring a first point set for constructing a shoe upper reference boundary line and a second point set for constructing a shoe upper reference line, the point set acquisition module is specifically used to:

[0052] Place the sole tightly against the upper and set a solid upper reference boundary line on the upper along the upper edge of the sole;

[0053] A plurality of interval lines with the same vertex height are arranged at equal distances on the solid upper reference boundary line;

[0054] Using a point acquisition device to acquire the intersection points of each interval line and the physical upper reference boundary line one by one, a set of three-dimensional coordinates of a plurality of intersection points forms a first point set for constructing the upper reference boundary line;

[0055] The three-dimensional coordinates of the vertices of each interval line are collected one by one using a point acquisition device, and a set of three-dimensional coordinates of several vertices forms a second point set for constructing a shoe upper reference line.

[0056] In one possible design, the point acquisition device includes a three-dimensional digitizer.

[0057] In a possible design, when calculating the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set, the initial posture calculation module is specifically used to:

[0058] Assume that n0 and (n+1)0 are the nth point and n+1th point in the first point set, respectively, and assume that n c is the nth point in the second point set, where n c and n0 are points extracted on the same interval line;

[0059] Construct n0, (n+1)0 and n c The plane fitting equation of the plane where it is located is solved to obtain the plane normal vector;

[0060] The initial posture of n0 is calculated based on the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0.

[0061] In one possible design, when constructing n0, (n+1)0, and n c When the plane fitting equation of the plane is obtained and the plane normal vector is obtained by solving, the initial posture calculation module is specifically used for:

[0062] Construct n0, (n+1)0 and n c The plane fitting equation of the plane where the plane is located is expressed as follows:

[0063] Ax+By+Cz+D=0; (1)

[0064] Among them, A, B, C and D are unknown parameters;

[0065] According to n0, (n+1)0 and n c The unknown parameters of the plane fitting equation are calculated by using the three-dimensional coordinates of each plane. The calculation formula is as follows:

[0066] A=(y3-y1)×(z3-z1)-(z2-z1)×(y3-y1); (2)

[0067] B = (x3-x1) × (z2-z1) - (x2-x1) × (z3-z1); (3)

[0068] C=(x2-x1)×(y3-y1)-(x3-x1)×(y2-y1); (4)

[0069] D=-(A×x1+B×y1+C×z1); (5)

[0070] Among them, (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3) represent n0, (n+1)0 and n respectively. c The three-dimensional coordinates of , (A, B, C) represent the plane normal vector.

[0071] In a possible design, when the initial posture of n0 is calculated according to the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0, the initial posture calculation module is specifically used for:

[0072] According to the plane normal vector (A, B, C), the X-axis rotation component Rx and the Y-axis rotation component Ry of the initial posture of n0 are calculated respectively. The calculation formula is as follows:

[0073]

[0074]

[0075] According to the three-dimensional coordinates of n0 and (n+1)0, the Z-axis rotation component Rz of the initial posture of n0 is calculated. The calculation formula is as follows:

[0076]

[0077] In a possible design, when calculating the overall posture loss, the posture loss calculation module is specifically used to:

[0078] The sum of the deviations of the adjusted posture of each point in the first point set compared with the initial posture is calculated to obtain the posture deviation loss e1, which is calculated as follows:

[0079]

[0080] in, and respectively represent the X-axis rotation component, Y-axis rotation component and Z-axis rotation component of the initial posture of the i-th point in the first point set;

[0081] The sum of the similarities between each point in the first point set and several adjacent points is calculated to obtain the posture smoothness loss e2, which is calculated as follows:

[0082]

[0083] According to the posture deviation loss e1 and the posture smoothness loss e2, the overall loss e is calculated, and the calculation formula is as follows:

[0084] e=e1+e2. (11)

[0085] In one possible design, the optimization algorithm includes Newton gradient descent method, conjugate gradient descent method or simulated annealing method.

[0086] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the method for generating glue spraying trajectories for a shoemaking robot as described in any possible design of the first aspect.

[0087] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are run on a computer, the method for generating a glue spraying trajectory for a shoemaking robot as described in any possible design of the first aspect is executed.

[0088] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the method for generating glue spraying trajectories for a shoemaking robot as described in any possible design of the first aspect.

[0089] Beneficial effects:

[0090] The present invention obtains a first point set for constructing a reference boundary line of the upper and a second point set for constructing a reference line of the upper, and then calculates the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set, and then considers the error of point acquisition, jointly adjusts the initial postures of several points in the first point set, and calculates the overall posture loss, and finally calculates a group of postures with the smallest overall posture loss based on an optimization algorithm, and outputs this group of postures as the final posture to generate a glue spraying trajectory for a shoemaking robot. The present application is based on the precise acquisition of point data of the upper reference boundary line, and adjusts the error of the point data and calculates the posture loss, and finally obtains a group of postures with the smallest overall posture loss based on an optimization algorithm, and uses it as the glue spraying trajectory for a shoemaking robot, which can be applied to the automated glue spraying operation of the sole and upper of the shoemaking process, thereby improving the production efficiency of footwear. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] Figure 1 Flow chart of the method for generating glue spraying trajectory of the shoe-making robot in this embodiment. DETAILED DESCRIPTION

[0092] In order to make the purpose, technical solutions and advantages of the embodiments of this specification more clear, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0093] Example

[0094] In order to solve the technical problems in the prior art that the entire glue spraying process is very inefficient, has poor accuracy, and the toxic gases emitted by the adhesive seriously threaten the health of the operators, the embodiment of the present application provides a method for generating a glue spraying trajectory for a shoemaking robot. The method is based on the precise collection of point data of the upper reference boundary line, and adjusts the error of the point data and calculates the posture loss. Finally, based on the optimization algorithm, a set of postures with the smallest overall posture loss is obtained, and used as the glue spraying trajectory of the shoemaking robot. The method can be applied to the automated glue spraying operation of the sole and upper of the shoemaking process, thereby improving the production efficiency of footwear.

[0095] like Figure 1 As shown, in the first aspect, this embodiment provides a method for generating a glue spraying trajectory of a shoemaking robot, including but not limited to steps S101 to S104:

[0096] Step S101. Obtain a first point set for constructing a vamp reference boundary line and a second point set for constructing a vamp reference line, wherein the vamp reference boundary line is a circular line for marking a sole-vamp fitting position, and the vamp reference line is a circular line spaced a certain distance from the vamp reference boundary line;

[0097] In a specific implementation of step S101, obtaining a first point set for constructing a shoe upper reference boundary line and a second point set for constructing a shoe upper reference line includes:

[0098] Step S1011. Place the sole close to the upper and set a solid upper reference boundary line on the upper along the upper edge of the sole;

[0099] For example, on a shoe upper that has been fitted with a last, a high-temperature invisible pen is used to place the sole close to the shoe upper, and a physical shoe upper reference boundary line is drawn on the shoe upper along the upper edge of the sole. The high-temperature invisible pen can be operated manually or by a robotic arm, which is not limited here.

[0100] Step S1012: setting a plurality of interval lines with the same vertex height at equal distances on the solid upper reference boundary line;

[0101] Preferably, a spacing line is set at every 1 cm interval on the physical upper reference boundary line, so that the intersection point of each spacing line and the physical upper reference boundary line can be collected to obtain discrete data points to achieve reconstruction of the upper reference boundary line. Of course, it can be understood that the spacing distance in this embodiment is not limited to 1 cm, and can also be 0.8 cm, 0.9 cm, 1.1 cm, etc., which is not limited here.

[0102] Preferably, the length of each spacing line can be 1 cm, and the vertex height of each spacing line is consistent with the solid upper reference boundary line. Of course, it can be understood that the length of the spacing line in this embodiment can also be 0.8 cm, 0.9 cm, 1.1 cm, etc., which is not limited here.

[0103] Step S1013. Using a point acquisition device, the intersection points of each interval line and the physical upper reference boundary line are collected one by one, and a set of three-dimensional coordinates of a plurality of intersection points forms a first point set for constructing the upper reference boundary line;

[0104] Preferably, the point acquisition device may be a three-dimensional digitizer, and the three-dimensional coordinates of a certain intersection point may be acquired by pointing the end of the three-dimensional digitizer to the intersection point.

[0105] Step S1014: Use a point acquisition device to collect the three-dimensional coordinates of the vertices of each interval line one by one, and a set of three-dimensional coordinates of several vertices forms a second point set for constructing a shoe upper reference line.

[0106] Preferably, the point acquisition device includes a three-dimensional digitizer, and the three-dimensional coordinates of the vertex can be acquired by pointing the end of the three-dimensional digitizer to the vertex of a certain interval line.

[0107] Step S102. Calculate the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set;

[0108] In a specific implementation of step S102, calculating the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set includes:

[0109] Step S1021. Assume that n0 and (n+1)0 are the nth point and n+1th point in the first point set, respectively, and assume that n c is the nth point in the second point set, where n c and n0 are points extracted on the same interval line;

[0110] Step S1022. Construct n0, (n+1)0 and n c The plane fitting equation of the plane where it is located is solved to obtain the plane normal vector;

[0111] Specifically, n0, (n+1)0 and n c The plane is pointed in the direction of the normal line of the shoe surface, and the normal line direction is the Z axis. The line with n0 as the starting point and (n+1)0 as the end point is the X axis. According to the right hand, the Y axis direction is also uniquely determined. Based on the constructed three-dimensional coordinate system, the subsequent initial posture calculation can be performed.

[0112] In a specific implementation of step S1022, a plane fitting equation of the plane where n0, (n+1)0 and nc are located is constructed, and the plane normal vector is obtained by solving the equation, including:

[0113] Construct a plane fitting equation for the plane where n0, (n+1)0 and nc are located. The expression of the plane fitting equation is as follows:

[0114] Ax+By+Cz+D=0; (1)

[0115] Among them, A, B, C and D are unknown parameters;

[0116] According to the three-dimensional coordinates of n0, (n+1)0 and nc, the unknown parameters of the plane fitting equation are calculated, and the calculation formula is as follows:

[0117] A=(y3-y1)×(z3-z1)-(z2-z1)×(y3-y1); (2)

[0118] B = (x3-x1) × (z2-z1) - (x2-x1) × (z3-z1); (3)

[0119] C=(x2-x1)×(y3-y1)-(x3-x1)×(y2-y1); (4)

[0120] D=-(A×x1+B×y1+C×z1); (5)

[0121] Among them, (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3) represent the three-dimensional coordinates of n0, (n+1)0 and nc respectively, and (A, B, C) represent the plane normal vector.

[0122] Step S1023. Calculate the initial posture of n0 based on the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0.

[0123] In a specific implementation of step S1023, the initial posture of n0 is calculated based on the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0, including:

[0124] According to the plane normal vector (A, B, C), the X-axis rotation component Rx and the Y-axis rotation component Ry of the initial posture of n0 are calculated respectively. The calculation formula is as follows:

[0125]

[0126]

[0127] According to the three-dimensional coordinates of n0 and (n+1)0, the Z-axis rotation component Rz of the initial posture of n0 is calculated. The calculation formula is as follows:

[0128]

[0129] Step S103. Considering the error of point acquisition, the initial postures of several points in the first point set are jointly adjusted, and the overall posture loss is calculated;

[0130] Since there are errors when collecting points, and considering that the boundary of the upper is smooth to a certain extent, in a specific implementation of step S103, the overall posture loss is calculated, including:

[0131] Step S1031. Calculate the sum of the deviations of the adjusted posture of each point in the first point set compared with the initial posture to obtain the posture deviation loss e1, and the calculation formula is as follows:

[0132]

[0133] in, and respectively represent the X-axis rotation component, Y-axis rotation component and Z-axis rotation component of the initial posture of the i-th point in the first point set;

[0134] Step S1032: Calculate the sum of similarities between each point in the first point set and a number of points adjacent to it to obtain the posture smoothness loss e2, and the calculation formula is as follows:

[0135]

[0136] Step S1033: Calculate the overall loss e according to the posture deviation loss e1 and the posture smoothness loss e2. The calculation formula is as follows:

[0137] e=e1+e2. (11)

[0138] Step S104: Calculate a group of postures with the smallest overall posture loss based on the optimization algorithm, and output the group of postures as the final posture to generate the glue spraying trajectory of the shoemaking robot.

[0139] In a specific implementation of step S104, the optimization algorithm includes Newton gradient descent method, conjugate gradient descent method or simulated annealing method. It should be noted that the optimization algorithm in this application adopts an existing algorithm model, and its specific algorithm principle is not repeated here.

[0140] It should be noted that the glue spraying trajectory is a set of six-dimensional posture trajectory sequences including three-dimensional coordinates and postures. By inputting this set of posture trajectory sequences into the shoemaking robot, the shoemaking robot can perform automated glue spraying operations according to this set of posture trajectory sequences; preferably, the shoemaking robot in this embodiment adopts a six-axis robot.

[0141] Based on the above disclosed content, this embodiment obtains a first point set for constructing a reference boundary line of the upper and a second point set for constructing a reference line of the upper, and then calculates the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set, and then considers the error of point acquisition, jointly adjusts the initial postures of several points in the first point set, and calculates the overall posture loss, and finally calculates a group of postures with the smallest overall posture loss based on the optimization algorithm, and outputs this group of postures as the final posture to generate the glue spraying trajectory of the shoemaking robot. This application is based on the precise acquisition of point data of the upper reference boundary line, and adjusts the error of the point data and calculates the posture loss, and finally obtains a group of postures with the smallest overall posture loss based on the optimization algorithm, and uses it as the glue spraying trajectory of the shoemaking robot, which can be applied to the automated glue spraying operation of the sole and upper of the shoemaking process, thereby improving the production efficiency of footwear.

[0142] In a second aspect, the present invention provides a glue spraying trajectory generating device for a shoemaking robot, comprising:

[0143] A point set acquisition module, used to acquire a first point set for constructing a shoe upper reference boundary line and a second point set for constructing a shoe upper reference line, wherein the shoe upper reference boundary line is a circular line for marking a fitting position of the sole and upper, and the shoe upper reference line is a circular line spaced a certain distance from the shoe upper reference boundary line;

[0144] an initial posture calculation module, used to calculate the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set;

[0145] A posture loss calculation module, used for considering the error of point acquisition, jointly adjusting the initial postures of several points in the first point set, and calculating the overall posture loss;

[0146] The glue spraying trajectory generation module is used to calculate a set of postures with the smallest overall posture loss based on an optimization algorithm, and output the set of postures as the final posture to generate the glue spraying trajectory of the shoemaking robot.

[0147] In a possible design, when acquiring a first point set for constructing a shoe upper reference boundary line and a second point set for constructing a shoe upper reference line, the point set acquisition module is specifically used to:

[0148] Place the sole tightly against the upper and set a solid upper reference boundary line on the upper along the upper edge of the sole;

[0149] A plurality of interval lines with the same vertex height are arranged at equal distances on the solid upper reference boundary line;

[0150] Using a point acquisition device to acquire the intersection points of each interval line and the physical upper reference boundary line one by one, a set of three-dimensional coordinates of a plurality of intersection points forms a first point set for constructing the upper reference boundary line;

[0151] The three-dimensional coordinates of the vertices of each interval line are collected one by one using a point acquisition device, and a set of three-dimensional coordinates of several vertices forms a second point set for constructing a shoe upper reference line.

[0152] In one possible design, the point acquisition device includes a three-dimensional digitizer.

[0153] In a possible design, when calculating the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set, the initial posture calculation module is specifically used to:

[0154] Assume that n0 and (n+1)0 are the nth point and n+1th point in the first point set, respectively, and assume that n c is the nth point in the second point set, where n c and n0 are points extracted on the same interval line;

[0155] Construct n0, (n+1)0 and n c The plane fitting equation of the plane where it is located is solved to obtain the plane normal vector;

[0156] The initial posture of n0 is calculated based on the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0.

[0157] In one possible design, when constructing n0, (n+1)0, and n c When the plane fitting equation of the plane is obtained and the plane normal vector is obtained by solving, the initial posture calculation module is specifically used for:

[0158] Construct n0, (n+1)0 and n c The plane fitting equation of the plane where the plane is located is expressed as follows:

[0159] Ax+By+Cz+D=0; (1)

[0160] Among them, A, B, C and D are unknown parameters;

[0161] According to n0, (n+1)0 and n c The unknown parameters of the plane fitting equation are calculated by using the three-dimensional coordinates of each plane. The calculation formula is as follows:

[0162] A=(y3-y1)×(z3-z1)-(z2-z1)×(3-y1); (2)

[0163] B = (x3-1) × (z2-z1) - (x2-x1) × (z3-z1); (3)

[0164] C=(x2-x1)×(y3-y1)-(x3-x1)×(y2-y1); (4)

[0165] D=-(A×x1+B×y1+C×z1); (5)

[0166] Among them, (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3) represent n0, (n+1)0 and n respectively. c The three-dimensional coordinates of , (A, B, C) represent the plane normal vector.

[0167] In a possible design, when the initial posture of n0 is calculated according to the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0, the initial posture calculation module is specifically used for:

[0168] According to the plane normal vector (A, B, C), the X-axis rotation component Rx and the Y-axis rotation component Ry of the initial posture of n0 are calculated respectively. The calculation formula is as follows:

[0169]

[0170]

[0171] According to the three-dimensional coordinates of n0 and (n+1)0, the Z-axis rotation component Rz of the initial posture of n0 is calculated. The calculation formula is as follows:

[0172]

[0173] In a possible design, when calculating the overall posture loss, the posture loss calculation module is specifically used to:

[0174] The sum of the deviations of the adjusted posture of each point in the first point set compared with the initial posture is calculated to obtain the posture deviation loss e1, which is calculated as follows:

[0175]

[0176] in, and respectively represent the X-axis rotation component, Y-axis rotation component and Z-axis rotation component of the initial posture of the i-th point in the first point set;

[0177] The sum of the similarities between each point in the first point set and several adjacent points is calculated to obtain the posture smoothness loss e2, which is calculated as follows:

[0178]

[0179] According to the posture deviation loss e1 and the posture smoothness loss e2, the overall loss e is calculated, and the calculation formula is as follows:

[0180] e=e1+e2. (11)

[0181] In one possible design, the optimization algorithm includes Newton gradient descent method, conjugate gradient descent method or simulated annealing method.

[0182] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the method for generating glue spraying trajectories for a shoemaking robot as described in any possible design of the first aspect.

[0183] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are run on a computer, the method for generating a glue spraying trajectory for a shoemaking robot as described in any possible design of the first aspect is executed.

[0184] In a fifth aspect, the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the method for generating glue spraying trajectories for a shoemaking robot as described in any possible design of the first aspect.

[0185] Finally, it should be noted that the above are only preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for generating a glue spraying trajectory of a shoemaking robot, characterized in that: include: Acquiring a first point set for constructing an upper reference boundary line and a second point set for constructing an upper reference line, specifically comprising: placing the sole close to the upper, and setting a physical upper reference boundary line on the upper along the upper edge of the sole, wherein the upper reference boundary line is a circular line for marking the fitting position of the sole and upper; setting a number of interval lines with the same vertex height at equal distances on the physical upper reference boundary line; using a point acquisition device to collect the intersection points of each interval line with the physical upper reference boundary line one by one, and a collection of three-dimensional coordinates of the several intersection points forms a first point set for constructing the upper reference boundary line; using a point acquisition device to collect the three-dimensional coordinates of the vertices of each interval line one by one, and a collection of the three-dimensional coordinates of the several vertices forms a second point set for constructing the upper reference line, wherein the upper reference line is a circular line that is spaced a certain distance from the upper reference boundary line; According to the three-dimensional coordinates of each point in the first point set and the second point set, the initial posture of each point in the first point set is calculated, specifically including: assuming that n0 and (n+1)0 are the nth point and the n+1th point in the first point set respectively, and assuming that n c is the nth point in the second point set, where n c and n0 are points extracted from the same interval line; construct n0, (n+1)0 and n c The plane fitting equation of the plane is solved to obtain the plane normal vector; according to the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0, the initial posture of n0 is calculated; Construct n0, (n+1)0 and n c The plane fitting equation of the plane where it is located is solved to obtain the plane normal vector, including: constructing n0, (n+1)0 and n c The plane fitting equation of the plane where the plane is located is expressed as follows: Ax+By+Cz+D=0; (1) Among them, A, B, C and D are unknown parameters; according to n0, (n+1)0 and n c The unknown parameters of the plane fitting equation are calculated by using the three-dimensional coordinates of each plane. The calculation formula is as follows: A=(y3-y1)×(z3-z1)-(z2-z1)×(y3-y1); (2) B = (x3-x1) × (z2-z1) - (x2-x1) × (z3-z1); (3) C=(x2-x1)×(y3-y1)-(x3-x1)×(y2-y1); (4) D=-(A×x1+B×y1+C×z1); (5) Among them, (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3) represent n0, (n+1)0 and n respectively. c The three-dimensional coordinates of , (A, B, C) represent the plane normal vector; According to the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0, the initial posture of n0 is calculated, including: according to the plane normal vector (A, B, C), the X-axis rotation component Rx and the Y-axis rotation component Ry of the initial posture of n0 are calculated respectively, and the calculation formula is as follows: According to the three-dimensional coordinates of n0 and (n+1)0, the Z-axis rotation component Rz of the initial posture of n0 is calculated. The calculation formula is as follows: Considering the error of point acquisition, the initial postures of several points in the first point set are jointly adjusted, and the overall posture loss is calculated, which specifically includes: calculating the sum of the deviations of the adjusted posture of each point in the first point set compared with the initial posture to obtain the posture deviation loss e1; calculating the sum of the similarities between each point in the first point set and several adjacent points to obtain the posture smoothness loss e2; according to the posture deviation loss e1 and the posture smoothness loss e2, the overall loss e is calculated, and the calculation formula is as follows: e=e1+e2; Based on the optimization algorithm, a group of postures with the smallest overall posture loss is calculated, and this group of postures is output as the final posture to generate the glue spraying trajectory of the shoemaking robot.

2. The method for generating glue spraying trajectory of a shoemaking robot according to claim 1, characterized in that: The point acquisition device includes a three-dimensional digitizer.

3. The method for generating glue spraying trajectory of a shoemaking robot according to claim 1, characterized in that: The optimization algorithm includes Newton gradient descent method, conjugate gradient descent method or simulated annealing method.

4. A glue spraying trajectory generating device for a shoemaking robot, characterized in that: include: A point set acquisition module, for acquiring a first point set for constructing a vamp reference boundary line and a second point set for constructing a vamp reference line, specifically comprising: placing the sole close to the vamp, and setting a physical vamp reference boundary line on the vamp along the upper edge of the sole, wherein the vamp reference boundary line is a circular line for marking the fitting position of the sole and the vamp; setting a number of interval lines with the same vertex height at equal distances on the physical vamp reference boundary line; using a point acquisition device to collect the intersection points of each interval line with the physical vamp reference boundary line one by one, and the set of three-dimensional coordinates of the several intersection points forms the first point set for constructing the vamp reference boundary line; using a point acquisition device to collect the three-dimensional coordinates of the vertices of each interval line one by one, and the set of three-dimensional coordinates of the several vertices forms the second point set for constructing the vamp reference line, wherein the vamp reference line is a circular line that is spaced a certain distance from the vamp reference boundary line; an initial posture calculation module, for calculating the initial posture of each point in the first point set according to the three-dimensional coordinates of each point in the first point set and the second point set, specifically comprising: assuming that n0 and (n+1)0 are the nth point and the n+1th point in the first point set respectively, and assuming that n c is the nth point in the second point set, where n c and n0 are points extracted from the same interval line; construct n0, (n+1)0 and n c The plane fitting equation of the plane is solved to obtain the plane normal vector; according to the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0, the initial posture of n0 is calculated; Construct n0, (n+1)0 and n c The plane fitting equation of the plane where it is located is solved to obtain the plane normal vector, including: constructing n0, (n+1)0 and n c The plane fitting equation of the plane where the plane is located is expressed as follows: Ax+By+Cz+D=0; (1) Among them, A, B, C and D are unknown parameters; according to n0, (n+1)0 and n c The unknown parameters of the plane fitting equation are calculated by using the three-dimensional coordinates of each plane. The calculation formula is as follows: A=(y3-y1)×(z3-z1)-(z2-z1)×(y3-y1); (2) B = (x3-x1) × (z2-z1) - (x2-x1) × (z3-z1); (3) C=(x2-x1)×(y3-y1)-(x3-x1)×(y2-y1); (4) D=-(A×x1+B×y1+C×z1); (5) Among them, (x1, y1, z1), (x2, y2, z2) and (x3, y3, z3) represent n0, (n+1)0 and n respectively. c The three-dimensional coordinates of , (A, B, C) represent the plane normal vector; According to the plane normal vector, the three-dimensional coordinates of n0 and the three-dimensional coordinates of (n+1)0, the initial posture of n0 is calculated, including: according to the plane normal vector (A, B, C), the X-axis rotation component Rx and the Y-axis rotation component Ry of the initial posture of n0 are calculated respectively, and the calculation formula is as follows: According to the three-dimensional coordinates of n0 and (n+1)0, the Z-axis rotation component Rz of the initial posture of n0 is calculated. The calculation formula is as follows: The posture loss calculation module is used to consider the error of point acquisition, jointly adjust the initial postures of several points in the first point set, and calculate the overall posture loss, specifically including: calculating the sum of the deviations of the adjusted posture of each point in the first point set compared with the initial posture, to obtain the posture deviation loss e1; calculating the sum of the similarities between each point in the first point set and several points adjacent to it, to obtain the posture smoothness loss e2; according to the posture deviation loss e1 and the posture smoothness loss e2, the overall loss e is calculated, and the calculation formula is as follows: e=e1+e2; The glue spraying trajectory generation module is used to calculate a set of postures with the smallest overall posture loss based on an optimization algorithm, and output the set of postures as the final posture to generate the glue spraying trajectory of the shoemaking robot.

5. A computer device, characterized in that: It comprises a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the method for generating glue spraying trajectories of a shoemaking robot as described in any one of claims 1-3.