Automatic butt welding method, device and internal welding machine
The inner welding machine system addresses alignment and posture adjustment challenges in curved pipes by using an impedance controller and predictive models for precise alignment and posture adjustment, enhancing adaptability and stability in complex environments.
Patent Information
- Application Number
- CN202510503177.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2045-04-22
AI Technical Summary
Traditional internal welding machines are difficult to achieve accurate counterparts in the automated welding of bent pipes. Especially in complex environments, existing sensor systems are greatly affected by the external environment, resulting in frequent measurement errors, high equipment costs and poor adaptability.
The impedance controller and six-axis dynamic model are combined with deep neural networks, and the branched driving force is calculated through the attitude adjustment mechanism, and the counter-port guide block and conical head mechanism are used to achieve automatic counter-port, and the contact state between the internal welding machine and the pipeline is adjusted in real time to improve adaptability and stability.
It realizes high-precision automation counterparts in complex environments, reduces the impact of harsh environments on construction, improves welding quality and efficiency, and reduces equipment costs and maintenance difficulties.
Smart Images

Figure CN120055662B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent pipeline welding, and particularly to an automatic butt joint method, device and internal welding machine for an internal welding machine. Background Art
[0002] Traditional internal welding machines face great challenges in the automatic welding of bent pipelines, especially the problems of butt joint positioning and attitude adjustment of bent pipelines. Due to the bending radius and deformation of the pipeline, it is difficult for the mechanical structure of the internal welding machine to adapt, resulting in the inability to accurately dock the pipe orifices, and usually manual intervention is required for positioning and correction. In addition, the errors of the pipeline (such as the perpendicularity error of groove shaping) also make the internal welding machine lack flexibility and autonomy in attitude adjustment, which has a negative impact on welding accuracy and efficiency.
[0003] The prior art usually relies on sensors such as lasers, vision, and rangefinders to assist the internal welding machine in accurate butt joint positioning and attitude adjustment. However, the working performance of these sensors is greatly affected by the external environment (such as strong light, dust, high temperature, etc.), resulting in frequent measurement errors and equipment failures. In addition, this solution relying on a complex sensor system not only increases the equipment cost, but also increases the difficulty of maintenance and operation, and its adaptability is poor, and it cannot work stably in complex terrains and extreme environments.
[0004] Therefore, solving the problem of accurate butt joint of the internal welding machine in a complex environment is still a technical problem to be solved urgently. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide an automatic butt joint method, device and internal welding machine for an internal welding machine to solve the problem that it is difficult for the internal welding machine to accurately butt joint in a complex environment.
[0006] To achieve the above object, embodiments of the present invention provide the following technical solutions:
[0007] The first aspect of the present invention discloses an automatic butt joint method for an internal welding machine, and the method includes:
[0008] When the internal welding machine travels inside the pipeline to a bent pipe through the body movement system, an impedance controller calculates the driving forces of multiple branch chains in the attitude adjustment mechanism according to the actual position of the attitude adjustment mechanism; the control strategy of the impedance controller is pre-created according to the target inertia, target stiffness value and target damping;
[0009] Drive the cone head mechanism in the internal welding machine to deflect according to the driving forces so that the internal welding machine passes through the bent pipe;
[0010] When the internal welding machine travels to the pipe orifice end, raise the butt joint guiding block to perform a butt joint operation with the groove of the pipe orifice end, and the butt joint operation includes:
[0011] Using a prediction model, based on the motion data and current data of the branch chains in the pose adjustment mechanism, predict the current actual thrust of each of the branch chains; the prediction model is pre-trained by using a six-axis dynamics model for a neural network model; the six-axis dynamics model is pre-constructed according to a six-axis platform;
[0012] Through a real-time dynamics forward solution model, according to the current actual thrust of each of the branch chains, calculate the load force and load torque in the moving platform coordinate system; the six-axis platform includes a moving platform and a static platform; the moving platform coordinate system is a coordinate system constructed according to the moving platform;
[0013] Using an admittance controller, according to the load force and the load torque, calculate the pose adjustment amount of the pose adjustment mechanism, and adjust the lengths of the branch chains during the butt joint process so that the butt joint guiding block reaches the groove limit position; the admittance controller is pre-established based on a second-order differential model;
[0014] After completing the butt joint operation, raise the rear expansion shoe to fix the relative position of the cone head mechanism and the groove, and retract the butt joint guiding block;
[0015] When the groove of another pipeline coincides with the groove, raise the front expansion shoe to fix the relative position of the cone head mechanism and the groove of the other pipeline, so that the welding torch in the cone head mechanism welds the two pipelines.
[0016] Preferably, the process of pre-constructing a six-axis dynamics model according to a six-axis platform includes:
[0017] Define the structure of the six-axis platform, and the structure at least includes a static platform, a moving platform, the cylinder barrel of the branch chain and the piston rod of the branch chain;
[0018] Based on the static platform coordinate system, define the motion physical quantities, and combine the force data of the six-axis platform to create the Jacobian matrix of the moving platform, the Jacobian matrix of the cylinder barrel of the branch chain and the Jacobian matrix of the piston rod of the branch chain; the static platform coordinate system is a coordinate system constructed according to the static platform;
[0019] Construct the inertia matrix of the cone head mechanism, the inertia matrix of the cylinder barrel of the branch chain and the inertia matrix of the piston rod of the branch chain;
[0020] Combine all the Jacobian matrices and all the inertia matrices to construct a six-axis dynamics model.
[0021] Preferably, the process of pre-training the neural network model by using a six-axis dynamics model to obtain the prediction model includes:
[0022] Sample a plurality of loads from a preset load space, and for each of the loads, obtain the corresponding motion sequence data from a preset position space and a preset dynamic space;
[0023] Input all the loads and all the motion sequence data into a six-axis dynamics model to obtain initial training data including the motion data of the branch chain, current data, and the thrust data of the branch chain, and preprocess the initial training data to obtain training data;
[0024] Input the training data into a long short-term memory deep neural network model to output the predicted value of the thrust of the branch chain;
[0025] Calculate the loss function of the long short-term memory deep neural network model according to the predicted value;
[0026] If the loss function converges, determine the long short-term memory deep neural network model as the trained prediction model;
[0027] If the loss function does not converge, adjust the parameters of the long short-term memory deep neural network model, and return to execute the step of inputting the training data into the long short-term memory deep neural network model to output the predicted value of the thrust of the branch chain.
[0028] Preferably, the method further includes:
[0029] Obtain the driving force data of the branch chain in multiple different postures in the attitude adjustment mechanism;
[0030] According to the multiple groups of driving force data of the branch chain, calculate the load force and load moment in the moving platform coordinate system through a real-time dynamics forward solution model; the moving platform coordinate system is a coordinate system established according to the moving platform in the attitude adjustment mechanism;
[0031] Establish a linear equation of the load force, load moment, cone head weight, and centroid coordinates received by the moving platform of the attitude adjustment mechanism;
[0032] Calculate the cone head weight and centroid coordinates according to the least squares method and the linear equation;
[0033] Correspondingly, the use of the impedance controller to calculate the driving forces of multiple branch chains in the attitude adjustment mechanism according to the actual position of the attitude adjustment mechanism includes:
[0034] Obtain the actual position of the attitude adjustment mechanism, where the actual position includes the angle between each branch chain of the attitude adjustment mechanism and gravity, the deflection data, and the offset data of the branch chain;
[0035] Use the real-time dynamics forward solution model to calculate the gravity compensation amount of the moving platform to the cone head in the moving platform lower coordinate system according to the angle, the deflection data, the offset data, the cone head weight, and the centroid coordinates;
[0036] Through the real-time dynamic inverse solution model, the gravity compensation amount of the moving platform on the cone head is converted into the gravity compensation amount of the branch chain on the cone head in the current posture; the gravity compensation amount of the branch chain on the cone head is the force exerted by the cone head gravity on each branch chain.
[0037] Input the included angle, the deflection data, the offset data, and the gravity compensation amount of the branch chain on the cone head into the impedance controller, and calculate the driving forces of multiple branch chains in the posture adjustment mechanism.
[0038] Preferably, the using the admittance controller to calculate the pose adjustment amount of the pose adjustment mechanism according to the load force and the load torque, and adjusting the lengths of the respective branch chains during the butt joint process so that the butt joint guiding block reaches the groove limit position includes:
[0039] Using the admittance controller to calculate the pose adjustment amount of the pose adjustment mechanism according to the load force, the load torque, and the gravity compensation amount of the moving platform on the cone head;
[0040] Using the position controller to adjust the lengths of the respective branch chains during the butt joint process according to the pose adjustment amount so that the butt joint guiding block reaches the groove limit position; the position controller is pre-established based on a proportional-derivative controller.
[0041] Preferably, the using the admittance controller to calculate the pose adjustment amount of the pose adjustment mechanism according to the load force, the load torque, and the gravity compensation amount of the moving platform on the cone head includes:
[0042] Calculate the difference between the load force and the load torque minus the gravity compensation amount of the moving platform on the cone head to obtain the actual contact resultant force of several butt joint guiding blocks and the groove in the cone head mechanism;
[0043] Obtain the actual positions and actual speeds of the respective branch chains during the butt joint process;
[0044] Input the preset expected contact resultant force, the actual contact resultant force, the actual positions, and the actual speeds into the admittance controller;
[0045] Combined with the ordinary differential equations in the admittance controller, perform iterative solution according to the time step of the control period to obtain the pose adjustment amount of the pose adjustment mechanism.
[0046] Preferably, the using the position controller to adjust the lengths of the respective branch chains during the butt joint process according to the pose adjustment amount includes:
[0047] Using the position controller to calculate the butt joint output force of the pose adjustment mechanism according to the pose adjustment amount;
[0048] Adjust the lengths of the respective branch chains during the butt joint process through the butt joint output force.
[0049] The second aspect of the present invention discloses an automatic butt - joint device for an internal welding machine, and the device includes:
[0050] A first calculation unit, configured to, when the internal welding machine travels to a bend in the pipeline through the fuselage movement system, calculate the driving forces of multiple branched chains in the attitude adjustment mechanism by using an impedance controller according to the actual position of the attitude adjustment mechanism; the control strategy of the impedance controller is pre - created according to a target inertia, a target stiffness value, and a target damping;
[0051] A driving unit, configured to drive the taper - head mechanism in the internal welding machine to deflect according to the driving force, so that the internal welding machine passes through the bend;
[0052] A butt - joint unit, configured to, when the internal welding machine travels to the pipe - mouth end, raise the butt - joint guiding block and the groove of the pipe - mouth end, and perform a butt - joint operation based on a prediction unit, a second calculation unit, and an adjustment unit;
[0053] A prediction unit, configured to use a prediction model to predict the current actual thrust of each branched chain based on the movement data and current data of the branched chains in the attitude adjustment mechanism; the prediction model is pre - trained by using a six - axis dynamics model for a neural network model; the six - axis dynamics model is pre - constructed according to a six - axis platform;
[0054] A second calculation unit, configured to calculate the load force and load torque in the moving - platform coordinate system according to the current actual thrust of each branched chain through a real - time dynamics forward - solution model; the six - axis platform includes a moving platform and a static platform;
[0055] An adjustment unit, configured to use an admittance controller to calculate the pose adjustment amount of the attitude adjustment mechanism according to the load force and the load torque, and adjust the lengths of the branched chains during the butt - joint process, so that the butt - joint guiding block reaches the groove limiting position; the admittance controller is pre - established based on a second - order differential model;
[0056] A first fixing unit, configured to, after completing the butt - joint operation, raise the rear expansion shoe to fix the relative position of the taper - head mechanism and the groove, and retract the butt - joint guiding block;
[0057] A second fixing unit, configured to, when the groove of another pipeline coincides with the groove, raise the front expansion shoe to fix the relative position of the taper - head mechanism and the groove of the other pipeline, so that the welding torch in the taper - head mechanism welds the two pipelines.
[0058] Preferably, the device further includes:
[0059] A definition unit, configured to define the structure of the six - axis platform, and the structure at least includes a static platform, a moving platform, the cylinder barrel of the branched chain, and the piston rod of the branched chain;
[0060] A first creation unit, configured to define motion physical quantities based on a static platform coordinate system, and create a Jacobian matrix of a moving platform, a Jacobian matrix of a cylinder of a chain link, and a Jacobian matrix of a piston rod of the chain link in combination with force data of a six-axis platform; the static platform coordinate system is a coordinate system constructed according to the static platform;
[0061] A second creation unit, configured to construct an inertia matrix of a cone head mechanism, an inertia matrix of a cylinder of a chain link, and an inertia matrix of a piston rod of the chain link;
[0062] A construction unit, configured to construct a six-axis dynamics model by combining all the Jacobian matrices and all the inertia matrices.
[0063] A third aspect of the present invention discloses an internal welding machine, including a cone head mechanism, a fuselage motion system, an attitude adjustment mechanism, a memory, and a processor;
[0064] The cone head mechanism includes a butt joint guiding block;
[0065] The attitude adjustment mechanism is located between the cone head mechanism and the fuselage motion system; the attitude adjustment mechanism includes at least a plurality of chain links and attitude guiding wheels;
[0066] The memory stores a computer program, and when the processor calls the computer program in the memory, the steps of the internal welding machine automatic butt joint method disclosed in the first aspect of the present invention are implemented.
[0067] Based on the internal welding machine automatic butt joint method, device, and internal welding machine provided in the above embodiments of the present invention, when the internal welding machine travels in a pipeline and contacts a bent pipe, an impedance controller calculates the driving forces of a plurality of chain links according to the actual position of the attitude adjustment mechanism; drives the cone head mechanism to deflect and turn; when reaching the pipe orifice end, raises the butt joint guiding block to perform a groove butt joint operation: uses a prediction model obtained by training a neural network with a six-axis dynamics model to predict the current actual thrust, calculates the load force and load torque in the moving platform coordinate system according to the current actual thrust of each chain link through a real-time dynamics forward solution model; uses an admittance controller to calculate the pose adjustment amount of the attitude adjustment mechanism according to the load force and load torque in the moving platform coordinate system, thereby adjusting the lengths of each chain link to make the butt joint guiding block reach the groove limit; after completing the butt joint, raises the rear expansion shoe to fix the relative position of the cone head mechanism and the groove and retracts the butt joint guiding block; when butt-jointing the grooves of another pipeline, raises the front expansion shoe to fix the cone head and the groove for welding. The contact state between the internal welding machine and the pipeline is adjusted in real time, the adaptability and stability are improved, high-precision automatic butt joint is realized, and the welding quality is improved. Description of the Drawings
[0068] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.
[0069] Figure 1 Structural schematic diagram of an internal welding machine provided by an embodiment of the present invention;
[0070] Figure 2 Schematic diagram of the butt joint guiding block and the bevel groove provided by an embodiment of the present invention;
[0071] Figure 3 Flowchart of an automatic butt joint method for an internal welding machine provided by an embodiment of the present invention;
[0072] Figure 4 Flowchart of the butt joint operation provided by an embodiment of the present invention;
[0073] Figure 5 Control flow block diagram provided by an embodiment of the present invention;
[0074] Figure 6 Schematic diagram of the data curve of the control process of the automatic butt joint method for an internal welding machine provided by an embodiment of the present invention;
[0075] Figure 7 Schematic diagram of the change of the pose of the six-axis platform over time in the moving platform coordinate system (b system) provided by an embodiment of the present invention;
[0076] Figure 8 Schematic diagram of the change of the contact force of the six-axis platform over time in the static platform coordinate system (w system) provided by an embodiment of the present invention;
[0077] Figure 9 Schematic diagram of the relationship between the distance and time between the butt joint device and the bevel groove provided by an embodiment of the present invention;
[0078] Figure 10 Schematic diagram of the relationship between the magnitude of the contact force and time between the butt joint device and the bevel groove provided by an embodiment of the present invention;
[0079] Figure 11 Structural block diagram of an automatic butt joint device for an internal welding machine provided by an embodiment of the present invention;
[0080] Among them, 1 is the cone head mechanism, 2 is the fuselage motion system, 3 is the force sensor, 4 is the support chain, 5 is the attitude guiding wheel, 6 is the traveling mechanism, 7 is the turning attitude guiding wheel, 8 is the butt joint guiding block, 9 is the butt joint device base, 10 is the pipe groove, 1101 is the first calculation unit, 1102 is the driving unit, 1103 is the butt joint unit, 1104 is the first fixing unit, and 1105 is the second fixing unit. Specific embodiments
[0081] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without making creative efforts shall fall within the protection scope of the present invention.
[0082] In this application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements but also other elements not expressly listed, or also elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the presence of additional identical elements in the process, method, article or device including the said element.
[0083] As can be seen from the background technology, traditional internal welders rely on lasers, vision and ranging sensors for precise positioning and adjustment, but are greatly affected by the external environment, resulting in frequent errors and failures, and increasing equipment costs, maintenance difficulties and poor adaptability.
[0084] Therefore, the embodiments of the present invention provide an automatic butt - joint method, device and internal welding machine for an internal welding machine. When the internal welding machine travels inside a pipeline and contacts a bent pipe, an impedance controller calculates the driving forces of multiple branch chains according to the actual position of the attitude adjustment mechanism; drives the cone - head mechanism to deflect and turn; when reaching the pipe orifice end, raises the butt - joint guiding block to perform a bevel butt - joint operation: predicts the current actual thrust using a prediction model obtained by training a neural network with a six - axis dynamics model, calculates the load force and load torque in the moving - platform coordinate system according to the current actual thrust of each branch chain through a real - time dynamics forward - solution model; uses an admittance controller to calculate the pose adjustment amount of the attitude adjustment mechanism according to the load force and load torque in the moving - platform coordinate system, thereby adjusting the lengths of each branch chain to make the butt - joint guiding block reach the bevel limit; after completing the butt - joint, raises the rear expansion shoe to fix the relative position of the cone - head mechanism and the bevel and retracts the butt - joint guiding block; when docking with the bevel of another pipeline, raises the front expansion shoe to fix the cone - head and the bevel for welding. By adjusting the contact state between the internal welding machine and the pipeline in real - time, the adaptability and stability of the internal welding machine are significantly improved, the influence of harsh environments on the construction process is effectively reduced, the high quality of welding operations is ensured, and the overall work efficiency is enhanced.
[0085] See Figure 1 , which shows a structural schematic diagram of an internal welding machine provided by an embodiment of the present invention.
[0086] It should be noted that this internal welding machine is applicable to the internal welding scenario of butt - jointing for any - attitude planar bevels or inclined bevels of various bent pipelines. It has high adaptability, can walk freely inside the bend and complete high - precision automated bevel butt - joint tasks, ensuring reliable welding quality; at the same time, the stability of the internal welding machine is hardly affected by field environmental factors.
[0087] As Figure 1 shown, the internal welding machine at least includes a cone - head mechanism 1, a body motion system 2, an attitude adjustment mechanism, a memory, and a processor.
[0088] In some preferred embodiments, the internal welding machine further includes a force sensor (such as the component "3" shown in Figure 1 ). The force sensor 3 can be arranged on the attitude adjustment mechanism or at the position of the butt - joint guiding block. By arranging the force sensor 3 on the attitude adjustment mechanism, the thrust data of the branch chain 4 can be collected, which helps to improve the control effect during the turning and butt - jointing processes of the internal welding machine.
[0089] Specifically, in the embodiments of the present invention, the cone - head mechanism 1 is composed of several welding units, a tensioning mechanism (including a front expansion shoe and a rear expansion shoe), and a butt - joint device. Among them, a welding torch is installed on the welding unit, and the welding unit moves on a track. Secondly, the butt - joint device includes a hydraulic cylinder, a butt - joint guiding block 8, and a butt - joint device base 9.
[0090] In specific applications, the butt - joint device includes multiple butt - joint guiding blocks 8.
[0091] It can be understood that for the structural schematic diagram of the butt joint device, refer to the embodiments of the present invention Figure 2 for the butt joint guiding block and the groove schematic diagram shown. Among them, the butt joint guiding block 8 is installed on the butt joint device base 9. By pushing the butt joint device base 9 through the hydraulic cylinder, the butt joint guiding block 8 moves towards the pipeline groove 10 and reaches the preset positioning position (i.e., the groove limiting position).
[0092] Specifically, as Figure 1 shown, the attitude adjustment mechanism is located between the cone head mechanism 1 and the fuselage movement system 2; the attitude adjustment mechanism includes at least a plurality of branch chains 4 and bending attitude guiding wheels 5.
[0093] It should be noted that the attitude adjustment mechanism is constructed based on a six-axis platform. Among them, the attitude adjustment mechanism includes six branch chains 4, and the branch chain 4 is an electric cylinder. The attitude adjustment mechanism includes, but is not limited to, a moving platform and a static platform.
[0094] In practical applications, the processor controls the lengths of the respective branch chains 4 (i.e., electric cylinders) so that the cone head mechanism 1 can be flexibly offset and deflected.
[0095] In addition, the fuselage movement system 2 is composed of mechanisms such as a traveling mechanism 6, a braking mechanism, and bottom carrier wheels. The function of the fuselage movement system 2 is to meet the requirements of the internal welder for forward movement, backward movement, and stop movement inside the pipeline.
[0096] In a specific embodiment, as Figure 1 shown, the cone head mechanism 1 further includes a plurality of bending attitude guiding wheels 7.
[0097] It should be noted that a computer program is stored in the memory. When the processor calls the computer program in the memory, the automatic butt joint method of the internal welder as shown in the embodiments of the present invention is realized Figure 3 is achieved.
[0098] Next, in combination with Figure 3 , an explanation of the automatic butt joint method of the internal welder provided by the embodiments of the present invention will be given. The method includes:
[0099] Step S301: When the internal welder travels to a bent pipe inside the pipeline through the fuselage movement system, use the impedance controller to calculate the driving forces of the multiple branch chains in the attitude adjustment mechanism according to the actual position of the attitude adjustment mechanism.
[0100] In the process of specifically implementing step S301, when the internal welder travels to a bent pipe inside the pipeline through the fuselage movement system, obtain the actual position of the attitude adjustment mechanism, input the actual position into the impedance controller, and calculate the driving forces of the multiple branch chains in the attitude adjustment mechanism.
[0101] It should be noted that the fuselage motion system drives the internal welder to move back and forth inside the pipeline through mechanisms such as the traveling mechanism, braking mechanism, and bottom carrying wheels.
[0102] Specifically, the control strategy of the impedance controller is pre-created according to the target inertia, target stiffness value, and target damping.
[0103] In some preferred embodiments, during the entire turning control process, in order to avoid the influence of the cone head gravity (the mass of the cone head is close to 1 ton) on turning, it is necessary to pre-correct the influence of the cone head gravity on the driving force of the attitude adjustment mechanism and adjust the magnitude of the driving force.
[0104] It can be understood that the cone head mechanism is a load object, and under the action of gravity, a force is generated. Through the known included angle, deflection data, and offset data, it is possible to calculate how the gravity of the cone head mechanism acts on each branch chain of the attitude adjustment mechanism. This force is the load force that the branch chain needs to bear.
[0105] The process of the attitude adjustment mechanism performing cone head gravity compensation is first to identify the cone head gravity parameters. Specifically, it is realized based on the linear equations of the load force, load torque, cone head weight, and center of gravity coordinates under the moving platform coordinate system of the attitude adjustment mechanism. Specifically, the establishment process of the linear equation is as follows:
[0106] First, obtain the branch chain driving force data of the attitude adjustment mechanism in multiple different postures. This process requires using a prediction model (see the relevant content of step S401 shown below Figure 4 to convert the branch chain drive current into the actual driving force).
[0107] For example: Obtain no less than 3 groups of branch chain driving force data of the attitude adjustment mechanism in different postures.
[0108] Secondly, convert multiple groups of branch chain driving force data into the load force and load torque in the moving platform coordinate system through the real-time dynamics forward solution model.
[0109] It should be noted that since the real-time feedback control mode is adopted, the accuracy requirement for load force feedback is relatively low. Therefore, the model can be simplified to simplify the calculation amount. Based on this, the following real-time dynamics forward solution model (as shown in formula (1)) is established:
[0110] (1)
[0111] In formula (1), r i is the coordinate of the upper hinge point of the electric cylinder on the attitude adjustment mechanism (i.e., the six-axis platform, which generally has 6 hinge points) in the reference coordinate system, represents the coordinates of the upper hinge points of the six electric cylinders in the reference coordinate system, is the unit direction vector of the electric cylinder, represents six unit direction vectors of the electric cylinders; represents the thrust force of the electric cylinder, that is, the driving force data of the branch chain, is the sum of the weight of the cone head and the contact forces generated by several butt guiding blocks in contact with the groove. Therefore, gravity compensation is required to obtain the resultant force of the contact forces of several guiding blocks.
[0112] Then, based on the least squares method and the load force and load torque in the moving platform coordinate system, a linear equation is established for the load force, load torque, cone head weight, and centroid coordinates of the moving platform of the attitude adjustment mechanism.
[0113] Finally, the cone head weight and cone head centroid coordinates are calculated based on the least squares method.
[0114] It can be understood that with the parameters of the cone head weight and centroid coordinates, the forces and torques exerted by the cone head on the attitude adjustment mechanism at any attitude can be calculated.
[0115] The process of the attitude adjustment mechanism for cone head gravity compensation is followed by compensating for the influence of the forces and torques generated by the cone head mechanism on the attitude adjustment mechanism. Specifically, according to the real-time dynamic inverse solution model, the forces and torques exerted by the above cone head on the attitude adjustment mechanism are converted into the load forces of each branch chain, and this load force is used as the cone head gravity compensation amount.
[0116] Based on the above description of cone head gravity compensation, when performing gravity compensation during impedance control, the cone head gravity compensation amount is added to the driving force calculated by the impedance controller to obtain a sum value, and this sum value is used as the target output force of each branch chain of the attitude adjustment mechanism. When performing gravity compensation during admittance control, the load force obtained by subtracting the cone head gravity compensation amount from the branch chain load force is input into the force and torque obtained from the real-time dynamic forward solution model, that is, the contact force and contact torque generated by the butt guiding block in contact with the groove.
[0117] It should be noted that the specific processes of impedance control and admittance control are described in detail below.
[0118] It can be understood that since the internal welding machine has a high passing speed in the bent pipe and no prior modeling of the bent pipe is carried out, the contact situation between the attitude guiding wheel and the inner wall of the pipe changes rapidly. To cope with this change, during bending, the six-axis motor operates in the thrust control mode.
[0119] When the cone head is subjected to external forces such as extrusion by the inner wall of the pipe, it will displace, but it cannot fully follow the external force. For example, when the internal welding machine advances, if the cone head mechanism is subjected to a backward resistance, without control, the six branch chains of the attitude adjustment mechanism may continuously contract backward to the shortest length, and then lose their motion ability.
[0120] To solve this problem, the embodiment of the present invention adopts an impedance controller. By adjusting the driving forces of multiple branch chains, the six-axis motor can move flexibly with the contact force only in the four required degrees of freedom (up and down translation, left and right translation, up and down rotation, left and right rotation), while the other two degrees of freedom (front and back translation, self-rotation) maintain a relatively high stiffness. That is, in these two directions, even if the external force is large, the displacement is very small. This stiffness is adjusted by the target stiffness coefficient in the impedance controller. At the same time, the target damping and target inertia coefficient are used to control the stability of the six-axis attitude change during the contact with the pipeline, ensuring that even when under a large pressure, the compression amount in the axial direction can be maintained within a very limited range.
[0121] Based on the above content, the specific process of using the impedance controller to calculate the driving forces of multiple branch chains in the attitude adjustment mechanism according to the actual position of the attitude adjustment mechanism is as follows (Process A1 to Process A4):
[0122] Process A1: Obtain the actual position of the attitude adjustment mechanism.
[0123] It can be understood that the actual position includes the angle between each branch chain in the attitude adjustment mechanism and gravity, the deflection data and offset data of the branch chain.
[0124] Process A2: Use the real-time dynamics forward solution model to calculate the gravity compensation amount of the cone head under the moving platform coordinate system in the moving platform according to the angle, deflection data, offset data, cone head weight, and center of gravity coordinates.
[0125] Process A3: Through the real-time dynamics inverse solution model, convert the gravity compensation amount of the cone head under the moving platform into the gravity compensation amount of the branch chain to the cone head in the current attitude.
[0126] It should be noted that the gravity compensation amount of the branch chain to the cone head is the force exerted by the cone head gravity on each branch chain.
[0127] It can be understood that the real-time dynamics inverse solution model is the inverse operation of formula (1), as shown in formula (2):
[0128] (2)
[0129] Among them, the meanings of each parameter in formula (2) can be seen in formula (1) and will not be elaborated here. In addition, in formula (2) represents the sum of the cone head gravity and the contact forces generated by the contact of several butt joint guiding blocks with the groove.
[0130] Process A4: Input the angle, deflection data, offset data, and the gravity compensation amount of the branch chain to the cone head into the impedance controller to calculate the driving forces of multiple branch chains in the attitude adjustment mechanism.
[0131] The specific calculation method of step S301 is shown in formula (3).
[0132] (3)
[0133] In formula (3), x is the actual position. is the derivative of the attitude adjustment mechanism. is the expected position of the attitude adjustment mechanism, which can be set to the initial middle position of the mechanism. is the contact force (in practical applications, this value can be 0 when no force sensor is installed). F is the driving force of the branch chain of the attitude adjustment mechanism. The target stiffness K d and the target damping B d and the target inertia M d are parameters for controlling the dynamic response of the attitude adjustment mechanism during the cornering process. m is the actual mass of the cone head (i.e., the load weight).
[0134] Step S302: Drive the cone head mechanism in the internal welder to deflect according to the driving force, so that the internal welder passes through the elbow pipe.
[0135] In the process of specifically implementing step S302, drive the cone head mechanism in the internal welder to deflect according to the driving force, change the shape of the internal welder, so that the position of the attitude adjustment mechanism of the internal welder in the pipeline changes with the curvature of the pipeline.
[0136] Step S303: When the internal welder travels to the pipe end, raise the butt joint guiding block to perform a butt joint operation with the groove of the pipe end.
[0137] It should be noted that the pipe end is the area near the pipe groove (such as Figure 2 the pipe groove 10 shown).
[0138] In the process of specifically implementing step S303, when the internal welder travels to the pipe end in the pipeline, raise the butt joint guiding block in the cone head mechanism, and perform a butt joint operation with the groove of the pipe end through the butt joint guiding block.
[0139] It can be understood that when the butt joint guiding block is just raised, the position between the cone head mechanism and the groove does not meet the positional relationship required for welding. Therefore, a butt joint operation is required to make the butt joint guiding block reach the groove limiting position. At this time, the position between the cone head mechanism and the groove does not meet the positional relationship required for welding.
[0140] Next, in combination with the content shown in the embodiments of the present invention Figure 4 the detailed process of the butt joint operation will be described. Figure 4 including:
[0141] Step S401: Based on the motion data and current data of the branch chains in the posture adjustment mechanism, use the prediction model to predict the current actual thrust of each branch chain.
[0142] It should be noted that the prediction model is pre-trained by using a six-axis dynamics model for the neural network model. And the six-axis dynamics model is pre-constructed according to the six-axis platform.
[0143] It can be understood that the six-axis dynamics model describes the output forces required by each branch chain under the given displacement, velocity, and acceleration of the posture adjustment mechanism. The six-axis dynamics model is used to train the prediction model. The content of constructing the six-axis dynamics model will be described in detail below through processes B1 to B4.
[0144] Process B1: Define the structure of the six-axis platform.
[0145] Specifically, the structure at least includes a static platform, a moving platform, the cylinder of the branch chain, and the piston rod of the branch chain.
[0146] Process B2: Define the motion physical quantities based on the static platform coordinate system, and create the Jacobian matrix of the moving platform, the Jacobian matrix of the cylinder of the branch chain, and the Jacobian matrix of the piston rod of the branch chain in combination with the force data of the six-axis platform.
[0147] It can be understood that the static platform coordinate system is a coordinate system constructed based on the static platform.
[0148] It should be noted that since the six-axis platform horizontally supports the cone head mechanism and the six branch chains of the six-axis platform are placed horizontally, the cone head mechanism part is used as a load, which is the sum of the gravity, inertia force, and external force at the centroid of the cone head mass, as shown in formula (4):
[0149] (4)
[0150] In formula (4), represents the total force received at the centroid of the cone head composite mass. represents the mass of the cone head mechanism. represents the acceleration vector of the cone head mechanism. g represents the gravitational acceleration vector, usually pointing to the center of the earth. represents the external force applied to the centroid of the cone head composite mass.
[0151] More specifically, the motion physical quantities defined with reference to the six-axis static platform coordinate system include:
[0152] The translational acceleration of the moving platform is expressed as: a p ;
[0153] The rotational angular velocity of the moving platform is expressed as: ω p ;
[0154] The rotational angular acceleration of the moving platform is expressed as: α p ;
[0155] The translational acceleration of the center of mass at the cylinder end of the branch chain i is expressed as: a 1i ;
[0156] The translational acceleration of the center of mass at the piston rod end of the branch chain i is expressed as: a 2i ;
[0157] The rotational angular velocity of the connecting rod i of the branch chain is expressed as: ω i ;
[0158] The rotational angular acceleration of the connecting rod i of the branch chain is expressed as: α i ;
[0159] The acceleration at the center of mass of the conical head composite mass is expressed as: a C ;
[0160] The external force acting on the center of mass of the conical head composite mass forms an external moment expressed as: n e .
[0161] It should be noted that the data of these motion physical quantities are known during the data acquisition stage.
[0162] Based on this, when implementing process B2, in combination with the force data of the six-axis platform, create the Jacobian matrix J of the pose velocity of the moving platform and the telescopic velocities of the 6 branch chains; and create the Jacobian matrix J 1i of the velocity of the center of mass of the cylinder of the branch chain i and the velocities of each branch chain, and create the Jacobian matrix J 2i of the velocity of the center of mass of the piston rod of the branch chain i and the velocities of each branch chain.
[0163] Process B3: Construct the inertia matrix of the conical head mechanism, the inertia matrix of the cylinder of the branch chain, and the inertia matrix of the piston rod of the branch chain.
[0164] Specifically, construct the inertia matrix I C of the conical head mechanism about its center of mass; construct the inertia matrix I 1i of the cylinder of the branch chain i about its center of mass; and construct the inertia matrix I 2i of the piston rod of the branch chain i about its center of mass.
[0165] Process B4: Combine all the Jacobian matrices and all the inertia matrices to construct a six-axis dynamic model.
[0166] It can be understood that by combining all the Jacobian matrices and all the inertia matrices, the six-axis dynamic model established is as shown in formula (5).
[0167] (5)
[0168] In formula (5), represents the thrust of six branched chains (i.e., electric cylinders); J C represents the Jacobian matrix of the velocity of the centroid of the conical head composite mass and the velocity of the moving platform; represents the load force and load torque received by the conical head mechanism; c has no special meaning.
[0169] Specifically, as shown in formula (6).
[0170] (6)
[0171] It should be noted that the above formula (4) only describes the total force (load force) received at the centroid of the conical head composite mass, which belongs to a simplified model and is applicable to simplified analysis. And formula (6) describes the load force and load torque received by the conical head mechanism, which belongs to a complete dynamic model.
[0172] At the same time, the in formula (4) is a classical representation of inertial force (opposite to the direction of acceleration), while the in formula (6) is due to differences in coordinate system definition or derivation of dynamic equations (such as moving the inertial force to the other side of the equation).
[0173] As shown in formula (7).
[0174] (7)
[0175] Among them, m1 represents the mass at the cylinder end.
[0176] As shown in formula (8).
[0177] (8)
[0178] Among them, m2 represents the mass at the piston rod end.
[0179] Based on this, the six-axis dynamic model is established. Using the six-axis dynamic model to design training data helps to provide more accurate and comprehensive input data during the training process of the prediction model. Through the six-axis dynamic model, the mechanical behavior of the system under different states can be simulated and predicted, thereby generating a set of training data covering various working conditions. These data can not only effectively supplement the deficiencies of the model, but also improve the generalization ability of the prediction model, enabling it to adapt to more changing actual scenarios. By combining the physical characteristics of the six-axis dynamic model with real-time feedback control, it can be ensured that the prediction model still maintains a high prediction accuracy and stability when facing a complex dynamic environment.
[0180] The six-axis dynamic model of the attitude adjustment mechanism is established by the above method, aiming to provide guidance for the training of the deep neural network to correct the friction and other unknown non-linear factors inside the branch chain. Finally, the thrust of the branch chain can be accurately predicted through the drive current and motion data.
[0181] The content of training the prediction model is described in detail below through processes C1 to C6.
[0182] Process C1: Sample multiple loads from the preset load space. For each load, obtain the corresponding motion sequence data from the preset position space and preset dynamic space.
[0183] It should be noted that during the data collection process, a scheme for the motion trajectory of the cone head mechanism and the load change of the cone head mechanism is designed, and the thrust of the branch chain is calculated through the six-axis dynamic model. The data collection space is divided into three parts: position space, dynamic space, and load space.
[0184] Position space: Use the telescopic stroke range of the branch chain as the data collection space.
[0185] Dynamic space: Based on the process of the branch chain in the butt contact, record the extreme values of its speed and acceleration to define the dynamic space.
[0186] Load space: Define the load space by adding or reducing loads with known masses at the centroid of the cone head mechanism.
[0187] In the specific implementation of process C1, in these preset spaces, data collection is carried out by random sampling. Each time a load is sampled in the load space, and then according to the sampled load in the position space and dynamic space, the motion trajectory of the branch chain is smoothly generated to determine the target position, speed, and acceleration. The branch chain moves according to the generated trajectory, and the motion sequence data of the branch chain is obtained through the feedback of the motor encoder as the input data for training the model.
[0188] It should be noted that the motion sequence data of the branch chain As shown in formula (9) for example:
[0189] (9)
[0190] In formula (9), - represents the acceleration sequence data, - represents the speed sequence data, - represents the telescopic displacement sequence data.
[0191] It is understandable that this method ensures extensive data collection under different working conditions, which helps to optimize the training process of the model.
[0192] In some embodiments, it is also possible to obtain the time-series data of the current of the branch chain.
[0193] Process C2: Input all the loads and all the motion sequence data into the six-axis dynamics model to obtain the initial training data including the motion data of the branch chain, the current data, and the thrust data of the branch chain, and preprocess the initial training data to obtain the training data.
[0194] In the specific implementation of Process C2, the motion sequence data of all the branch chains and the motion sequence data of the branch chain corresponding load magnitude F C are input into the six-axis dynamics model to obtain the initial training data including the motion data of the branch chain, the current data, and the thrust data of the branch chain (as shown in Equation (10)).
[0195] (10)
[0196] In Equation (10), - represents the thrust sequence data of the branch chain, - represents the current sequence data.
[0197] Specifically, when preprocessing the initial training data, data standardization can be performed, for example, scaling the initial training data to a range with the same scale.
[0198] It is understandable that for the training data set , is the i-th training data sequence.
[0199] The data after standardizing each training data sequence (i.e., the training data) is , .
[0200] Among them, Equation (11) is used to represent the average value of all samples, and Equation (12) is used to represent the standard deviation of the original data.
[0201] It should be noted that i represents the training data sequence, and j represents the j-th data in the i-th sequence.
[0202] Process C3: Input the training data into the long short-term memory deep neural network model to output the predicted value of the thrust of the branch chain.
[0203] It should be specifically noted that in the embodiments of the present invention, a Long Short-Term Memory (LSTM) deep neural network is used to process the current, speed, and position data of the motor, so as to predict the thrust magnitude of the branch chain in the attitude adjustment mechanism.
[0204] The LSTM network structure used in the embodiments of the present invention is composed of several stacked LSTM layers. Each LSTM layer contains several memory units, which can effectively capture the dependencies hidden in the sequence data of the branch chain motion state. Compared with the traditional Recurrent Neural Network (RNN), LSTM can maintain the flow of important information in a long time series by introducing a gating mechanism, thus effectively solving the problem of gradient disappearance or explosion, being able to capture dependencies over a long time span, and having faster training convergence. In the embodiments of the present invention, the three gates of LSTM are specifically defined as follows:
[0205] The specific form of the forget gate is shown in formula (13); the specific form of the input gate is shown in formula (14); the specific form of the candidate memory unit is shown in formula (15); the specific form of the updated memory unit is shown in formula (16); the specific form of the output gate is shown in formula (17); the specific form of the hidden state is shown in formula (18).
[0206] (13)
[0207] (14)
[0208] (15)
[0209] (16)
[0210] (17)
[0211] (18)
[0212] In formulas (13) to (18), represents the hidden state at the current moment, represents the hidden state at the previous moment of the current moment, carrying the memory information of the current moment and the previous moments. represents the input data at the current moment. σ represents the sigmoid activation function. tanh represents the hyperbolic tangent activation function.
[0213] represents the forget gate weight matrix; represents the input gate weight matrix; represents the candidate memory weight matrix; represents the output gate weight matrix.
[0214] represents the forget gate bias term; represents the input gate bias term; represents the candidate memory bias term; represents the output gate bias term.
[0215] represents the output of the forget gate; represents the output of the input gate; represents the output of the output gate.
[0216] represents the long-term memory inside the LSTM cell. represents the potential memory at the current moment, which participates in updating the hidden state at the current moment. represents the potential memory at the previous moment of the current moment.
[0217] It should be noted that, in order to further improve the performance of the model, the embodiments of the present invention optimize the model performance by carefully tuning the hyperparameters. Specifically, the tuning content includes the number of hidden layers, the number of neurons, the activation function, the regularization method, the learning rate, the batch size, the time step, and the number of training epochs for each LSTM layer, aiming to ensure that the network can exhibit the best prediction ability under different data conditions.
[0218] Process C4: Calculate the loss function of the long short-term memory deep neural network model according to the predicted value.
[0219] It should be noted that in the embodiments of the present invention, the loss function is the mean squared error, as shown in formula (19).
[0220] (19)
[0221] In formula (19), represents the predicted value; represents the true value; N represents the number of samples.
[0222] It can be understood that based on the predicted value, the mean squared error method is used to calculate the loss function of the long short-term memory deep neural network model. It can effectively measure the gap between the predicted value and the true value and provide a basis for adjusting the model during the training process.
[0223] Process C5: If the loss function converges, determine the long short-term memory deep neural network model as the trained prediction model.
[0224] It can be understood that when the loss function converges, it indicates that the prediction model can perform predictions more accurately, has a high generalization ability, and can provide reliable prediction results in practical applications.
[0225] Process C6: If the loss function does not converge, adjust the parameters of the long short-term memory deep neural network model, and return to execute Process C3.
[0226] It can be understood that if the loss function does not converge, the error backpropagation algorithm is used to iteratively update the weights and bias values in the long short-term memory deep neural network model. Continue training and evaluation until the loss function converges. Through continuous optimization and adjustment, the prediction performance of the model can be effectively improved, the risk of overfitting or underfitting can be reduced, thereby ensuring the stability and accuracy of the model in various data environments.
[0227] Based on the above content, the specific implementation method of step S402 is: during the alignment process, use the trained prediction model to continuously predict the current actual thrust of each branch chain based on the motion data and current data of the branch chains in the pose adjustment mechanism.
[0228] Step S402: Calculate the load force and load torque in the moving platform coordinate system according to the current actual thrust of each branch chain through the real-time dynamics forward solution model.
[0229] In the process of specifically implementing step S402, use the real-time dynamics forward solution model to calculate the load force and load torque in the moving platform coordinate system in real time according to the current actual thrust of each branch chain during the alignment process.
[0230] It can be understood that the six-axis platform includes a moving platform and a static platform; the moving platform coordinate system is a coordinate system constructed based on the moving platform.
[0231] It should be noted that the electric cylinder coordinates and the unit direction vector of the electric cylinder are determined by inverse kinematics, which will not be elaborated in the embodiments of the present invention.
[0232] Step S403: Use the admittance controller to calculate the pose adjustment amount of the pose adjustment mechanism according to the load force and load torque, and adjust the lengths of the respective branch chains during the alignment process so that the alignment guide block reaches the groove limit position.
[0233] In the process of specifically implementing step S403, first use the admittance controller to calculate the pose adjustment amount according to the load force received by the moving platform (i.e., the load force and load torque in the moving platform coordinate system). Secondly, use the position controller to adjust the lengths of the respective branch chains during the alignment process according to the pose adjustment amount so that the alignment guide block reaches the groove limit position.
[0234] It should be noted that the admittance controller is pre-established based on a second-order differential model, and the specifically established second-order differential model is as follows:
[0235] (20)
[0236] (21)
[0237] (22)
[0238] (23)
[0239] (24)
[0240] (25)
[0241] (26)
[0242] (27)
[0243] (28)
[0244] (29)
[0245] (30)
[0246] (31)
[0247] In formulas (20) to (25), represents the actual position of the moving platform in the x, y, and z directions. represents the execution speed (first derivative of position) of the moving platform in the x, y, and z directions. represents the actual external force acting in the x, y, and z directions. represents the desired external force (target value) in the x, y, and z directions. represents the damping coefficient in the x, y, and z directions (used to suppress speed). represents the stiffness coefficient in the x, y, and z directions (used to suppress position deviation). represents the virtual mass (inertial parameter) in the x, y, and z directions. represents the desired position (target value) in the x, y, and z directions.
[0248] In formulas (26) to (31), represents the actual angle (or angular displacement) of the moving platform about the x, y, and z axes. represents the execution angular velocity (first derivative of angle) of the moving platform about the x, y, and z axes. represents the actual external torque acting about the x, y, and z axes. Denote the expected external torque (target value) about the x, y, and z axes. Denote the damping coefficients about the x, y, and z axes (for suppressing angular velocity). Denote the stiffness coefficients about the x, y, and z axes (for suppressing angular deviation). Denote the virtual moments of inertia about the x, y, and z axes (inertial parameters). Denote the expected angles about the x, y, and z axes (target values).
[0249] In formulas (20) to (31), dx(1), dx(3), dx(5), dx(7), dx(9), dx(11) denote the execution speed / angular velocity. dx(2), dx(4), dx(6), dx(8), dx(10), dx(12) denote the execution acceleration / angular acceleration. The superscript d (e.g., ) represents the preset value of the admittance controller.
[0250] Based on formulas (20) to (31), it can be determined that:
[0251] The actual position with real-time feedback during the movement of the six-axis platform is expressed in the form of an ordinary differential equation system as shown in formula (32). The actual speed with real-time feedback during the movement of the six-axis platform is expressed in the form of an ordinary differential equation system as shown in formula (33). The expected position is expressed in the form of an ordinary differential equation system as shown in formula (34).
[0252] It should be noted that the expected position is the approximate position of the preset pipe groove surface relative to the positioner. The expected position can restrict the range within which the positioner searches for the pipe groove surface. When the distance to the pipe groove surface is too far, the six-axis movement will gradually stop to avoid collision interference of non-positioner components.
[0253] Specifically, the thrust of a single chain predicted by the prediction model, and the actual contact force obtained by subtracting the magnitude of the six-axis load force calculated by the real-time dynamics model from the magnitude of the six-axis load force before the start of the butt welding operation (the gravity compensation amount of the moving platform for the cone head) is expressed in the form of an ordinary differential equation system as shown in formula (35).
[0254] The expected contact force is the target contact force generated by the preset extrusion of the positioner and the pipe groove. The expected contact force is expressed in the form of an ordinary differential equation system as shown in formula (36).
[0255] The target stiffness The expression form of the ordinary differential equation system of the target stiffness is as shown in formula (37). The target damping The expression form of the ordinary differential equation system of the target damping is as shown in formula (38). The target inertia The expression form of the ordinary differential equation system of the target inertia is as shown in formula (39).
[0256] It should be noted that the target stiffness the target damping and the target inertia are parameters for controlling the dynamic response of the six-axis platform during the butt-jointing process. Through these parameters, the butt-jointing speed and the peak value of the contact force during the butt-jointing process can be adjusted, etc.
[0257] Actual position (32)
[0258] Actual speed (33)
[0259] Desired position (34)
[0260] Actual contact force (35)
[0261] Desired contact force (36)
[0262] Target stiffness (37)
[0263] Target damping (38)
[0264] Target inertia (39)
[0265] Among them, the meanings of the various parameters in formulas (32) to (39) are shown in formulas (20) to (31), and will not be elaborated here.
[0266] It can be understood that during the entire butt-jointing process from the non-contact of the butt-jointing device with the pipe groove to the contact and extrusion, the load on the six-axis moving platform will change accordingly. In order to ensure the stable contact between the butt-jointing device and the pipe groove, it is necessary to control the magnitude of the load force received by the six-axis platform.
[0267] Therefore, the embodiment of the present invention adopts a second-order differential model to guide the change relationship between the contact situation of the butt-jointing device and the pipe groove and the magnitude of the six-axis load force, so as to achieve the goal of close and stable contact between the butt-jointing device and the pipe groove surface during the change process of the two.
[0268] It can be understood that in step S403, the specific implementation process of calculating the pose adjustment amount is as follows:[[]]
[0269] First, calculate the difference between the load force and the load moment minus the gravity compensation amount of the cone head on the moving platform to obtain the actual contact resultant force of several pairs of guiding blocks in the cone head mechanism in contact with the groove. Secondly, obtain the actual positions and actual velocities of each branch chain during the alignment process. Then, input the preset desired contact resultant force, actual contact resultant force, actual position, and actual velocity into the admittance controller. Finally, combine the ordinary differential equations in the admittance controller and perform iterative solution according to the time step of the control period to obtain the pose adjustment amount of the pose adjustment mechanism and output it.
[0270] It can be understood that in step S403, the specific implementation process of using the position controller to adjust the lengths of each branch chain during the alignment process according to the pose adjustment amount is as follows:
[0271] First, use the position controller to calculate the alignment output force of the pose adjustment mechanism according to the pose adjustment amount. Secondly, adjust the lengths of each branch chain during the alignment process through the alignment output force.
[0272] It should be noted that the position controller is pre-established based on a proportional-derivative controller, and the expression form of the position controller is shown in formula (40).
[0273] (40)
[0274] In formula (40), represents the actual position; represents the pose adjustment amount; represents the derivative of the pose adjustment mechanism; F is the alignment output force of the pose adjustment mechanism; and represent the positive gain parameters of the position controller.
[0275] In some preferred embodiments, during the entire alignment operation, in order to avoid the influence of the cone head gravity (the mass of the cone head is close to 1 ton) on the alignment, it is necessary to correct the influence of the cone head gravity on the alignment output force of the pose adjustment mechanism and adjust the influence of the alignment output force. For this purpose, the magnitude of the load force is pre-loaded onto the driving forces of each branch chain of the pose adjustment mechanism, thereby compensating for the influence of gravity on the control performance.
[0276] It should be noted that by compensating for the influence of gravity on the control performance, the system can be effectively ensured to execute tasks stably and accurately.
[0277] It should be noted that during the butt-welding process of the internal welding machine, the contact between the butt-welding device and the pipe groove requires extremely high stability and precision. Therefore, in the force control system of the attitude adjustment mechanism in the embodiments of the present invention, an outer-loop position control (i.e., a position controller and a admittance controller) is added. The pose adjustment amount is calculated through the load force and the load torque, and the pose adjustment amount is used to adjust the attitude adjustment mechanism. The pose adjustment can effectively stabilize the attitude change process, and ensuring a stable attitude is beneficial to estimating the magnitude of the external contact force through the drive current of the attitude adjustment mechanism. Although the movement during this butt-welding process is relatively slow, through this optimization, the butt-welding precision and the stability of the contact process are significantly improved, and the overall welding quality and stability are greatly enhanced.
[0278] Step S304: After completing the butt-welding operation, raise the rear expansion shoe to fix the relative position of the cone head mechanism and the groove, and retract the butt-welding guide block.
[0279] It should be specifically noted that after completing the butt-welding operation, the pulling force output by the attitude adjustment mechanism can also keep a certain pre-tightening force between the butt-welding device and the pipe groove. At this time, the welding torch in the cone head mechanism is just aligned with the pipe groove (actually the limiting position of the butt-welding guide block), meeting the welding conditions.
[0280] It can be understood that raising the rear expansion shoe to fix the relative position of the cone head mechanism and the groove in the internal welding machine makes the cone head mechanism no longer move relative to the pipe, which helps to ensure that the movement of the welding torch during the welding process is not disturbed.
[0281] Step S305: When the groove of the other pipe coincides with the groove, raise the front expansion shoe to fix the relative position of the cone head mechanism and the groove of the other pipe, and make the welding torch in the cone head mechanism weld the two pipes.
[0282] In the specific process of implementing step S305, when the groove of the other pipe coincides with the current groove to form a weld seam, raise the front expansion shoe in the tensioning mechanism of the cone head mechanism to fix the relative position of the cone head mechanism and the groove of the other pipe, and make the welding torch in the cone head mechanism weld the weld seam, thereby completing the welding of the two pipes.
[0283] In the embodiments of the present invention, by adjusting the contact state between the internal welding machine and the pipeline in real time, the adaptability and stability of the internal welding machine are significantly improved, the influence of the harsh environment on the construction process is effectively reduced, the high quality of the welding operation is ensured, and the overall working efficiency is enhanced. By precisely utilizing the driving current of the attitude adjustment structure and combining the deep neural network technology with the dynamic model, the contact force between the cone head mechanism and the groove is predicted, and the attitude adjustment control amount during the pipe bending and butt joint process is calculated. This method not only avoids the use and maintenance costs of traditional force sensors, but also adjusts the attitude by feedback of the contact force, ensuring the stability and accuracy of the welding process. This method has strong robustness, can flexibly respond to different pipeline welding requirements, achieve high-precision automatic butt joint, and further improve the welding quality and efficiency.
[0284] To further illustrate the overall process of the automatic butt joint method of the internal welding machine in more detail, refer to Figure 5 , which shows the control flow block diagram provided by the embodiments of the present invention.
[0285] Combined with Figure 5 the content shown:
[0286] First, when the internal welding machine travels to a bent pipe, the attitude adjustment mechanism of the internal welding machine inputs the actual position into the impedance controller to calculate the driving force of the link in the attitude adjustment mechanism, so as to drive the internal welding machine to bend.
[0287] Secondly, the butt joint process is divided into three parts:
[0288] The first part: The internal welding machine passes through the bent pipeline and reaches near the groove position, inputs the link motion data and current data in the attitude adjustment mechanism into the prediction model, and predicts the current actual thrust of each link.
[0289] According to the current actual thrust of each link through the real-time dynamic forward solution model, calculate the load force and load torque received by the moving platform in the attitude adjustment mechanism. Then input the load force and load torque into the admittance controller to calculate the pose adjustment amount x d . Finally, use the position controller to control the butt joint guiding block of the internal welding machine to reach the groove limit position based on the actual position x and the pose adjustment amount x d of the attitude adjustment mechanism, and complete the butt joint operation.
[0290] It should be noted that during the pipe bending and butt joint process, according to the included angle between the link and gravity, the deflection data and offset data of the link, the weight and centroid coordinates of the cone head mechanism in the current attitude of the attitude adjustment mechanism, calculate the driving force of multiple links in the attitude adjustment mechanism in the current attitude, and load the driving force onto each link to compensate for gravity.
[0291] Part 2: The welding gun of the welding unit on the cone head mechanism is just aimed at the groove (before welding the joint, the welding area needs to be polished and shaped, for example: shaping the right end face of pipe A to form a groove, shaping the left end face of pipe B to form another groove, the purpose of the alignment is to combine the two grooves to form a weld and the preset movement trajectory of the welding gun is perfectly overlapped with the weld). At this time, the tensioning mechanism on the cone head extends out to support the pipe wall so that the cone head mechanism is fixed to the pipe.
[0292] Part 3: Next, the groove of the other "new pipe" is overlapped with the groove of the "parent pipe" and the front expansion shoe at the cone head is raised to fix the new pipe. The scene at this time is: the internal welding machine passes through the welded "parent pipe" to the groove position, then expands and fixes it with the parent pipe, the groove of the new pipe overlaps with the groove of the parent pipe, then expands and fixes it with the new pipe, and the welding gun is aimed at the weld.
[0293] The role of the branch chain of the posture adjustment mechanism in the above-mentioned docking process is to adjust the posture of the cone head mechanism by providing push-pull force to meet the posture change requirements of turning and matching the groove.
[0294] Preferably, see the embodiments of the present invention Figure 6 The data curve diagram of the control process of the automatic matching method of the internal welding machine is shown.
[0295] Figure 6 The data sequence of displacement (curve 1), speed (curve 2), and current (curve 3) of a single branch chain in the six-axis attitude adjustment mechanism of the internal welding machine is collected, and the thrust (curve 5) data sequence of the branch chain is predicted using the LSTM neural network model. Curve 4 represents the thrust data calculated by the dynamic model. When curve 4 is close to curve 5, it means that the thrust data predicted by the neural network is consistent with the actual thrust data.
[0296] It should be noted that the vertical axis value ranges of curves 4 and 5 are different, but their values are actually close. Since it is not possible to enlarge the curves to show the similarity of the values, this point is not highlighted.
[0297] Therefore, from Figure 6 The content shown can determine that the advantage of using the LSTM neural network model for thrust prediction is that it can effectively handle complex nonlinear relationships, especially the complex changes between current and torque when the speed is reversed. The neural network provides more accurate predictions than traditional models by learning patterns in historical data, especially in situations that traditional models cannot describe. In addition, the neural network has strong adaptability and can automatically adjust to different loads and working conditions without the need to manually adjust parameters. It also reduces the reliance on complex physical modeling, simplifies the modeling process, and improves the accuracy and generalization of predictions.
[0298] Preferably, refer to the embodiments of the present invention. Figure 7 Schematic diagram of the change of the pose of the six-axis platform over time in the static platform coordinate system (b system).
[0299] It should be noted that the degrees of freedom of the six-axis platform include the front-back translation along the X-axis, Y-axis, and Z-axis, and the rotation around the X-axis, Y-axis, and Z-axis. And before discussing the problem, the directions of these X, Y, and Z axes have been preset.
[0300] Combined with Figure 7 As can be seen from the content shown, during the butt joint operation, the six-axis platform first retreats along the Z-axis. When a certain butt joint guiding block touches the groove, the six-axis senses the resistance and adjusts the pose to avoid excessive extrusion of the butt joint device. The butt joint device that has not touched the groove will continue to approach the groove under the adjustment of the six-axis pose until the limit positions of the three butt joint guiding blocks in the cone head mechanism all touch the groove. At this time, the resultant force of the three contact forces will be perpendicular to the groove surface and collinear, and the magnitude of the resultant force meets the preset contact force requirement. The six-axis movement stops at this time.
[0301] Furthermore, refer to the embodiments of the present invention. Figure 8 Schematic diagram of the change of the contact force of the six-axis platform over time in the moving platform coordinate system (w system).
[0302] In Figure 8 the curves shown, the resultant force of the contact force and the contact moment can be decomposed into components in different axial directions. Specifically, Fx, Fy, and Fz respectively represent the components of the contact resultant force on the x-axis, y-axis, and z-axis; Mx, My, and Mz represent the components of the contact resultant moment around the x-axis, y-axis, and z-axis.
[0303] From Figure 8 it can be seen that at time t = 0s, both the contact force and the moment are zero, indicating that the three butt joint guiding blocks have not yet contacted the groove. When the six-axis platform starts to retreat, the contact force gradually generates. As the adjustment of the six-axis pose is completed, the final contact resultant force acts only in the z-axis direction, and the contact moment is zero. This shows that at this moment, the contact forces of the three butt joint guiding blocks are equal, thus achieving the goal of butt joint control.
[0304] More specifically, refer to the embodiments of the present invention. Figure 9 Schematic diagram of the relationship between the distance between the butt joint device and the groove and time, and the embodiments of the present invention Figure 10 Schematic diagram of the relationship between the magnitude of the contact force between the butt joint device and the groove and time.
[0305] In the embodiments of the present invention, the internal welding machine is equipped with three butt joint devices, and the goal of its butt joint operation is: all three butt joint devices contact the groove, and the extrusion forces generated are equal.
[0306] InFigure 9 and Figure 10 In Figure 10 , when t = 0s, the butt-welding process starts. The three butt-welding devices have not yet contacted the groove, so the contact force between the three butt-welding devices and the groove is zero at this time. Moreover, the distances between the three butt-welding devices and the groove are large and inconsistent, marking the initial state of butt-welding control.
[0307] As the six-axis platform drives the cone head mechanism to retreat, some of the butt-welding devices start to contact the groove and generate contact force, and at the same time, the distance from the groove shortens, while the other butt-welding devices are still not in contact, so the contact force remains zero. At this time, the six-axis platform adjusts its attitude to gradually stabilize the contact force until the contact force increases to 1000 Newtons and finally remains at this value, indicating that the six-axis movement has been completed, the goal of controlling the contact force has been achieved and it remains stationary. At this time, the distance between the three butt-welding devices and the groove is 0.
[0308] It should be noted specifically that in Figure 10 the content shown, when t > 110s, the three contact forces do not fully reach the target of 1000N, which is mainly due to the static error caused by the control accuracy, but the error is within an acceptable range.
[0309] Corresponding to an automatic butt-welding method for an internal welding machine provided by an embodiment of the present invention, refer to Figure 3 , which shows a structural block diagram of an automatic butt-welding device for an internal welding machine provided by an embodiment of the present invention. The device includes: a first calculation unit 1101, a driving unit 1102, a butt-welding unit 1103, a first fixing unit 1104 and a second fixing unit 1105. Figure 11 The first calculation unit 1101 is used to calculate the driving forces of multiple branch chains in the attitude adjustment mechanism according to the actual position of the attitude adjustment mechanism by using an impedance controller when the internal welding machine travels to a bent pipe inside the pipeline through the fuselage movement system; the control strategy of the impedance controller is created in advance according to the target inertia, target stiffness value and target damping.
[0310] The driving unit 1102 is used to drive the cone head mechanism in the internal welding machine to deflect according to the driving force so that the internal welding machine can pass through the bent pipe.
[0311] The butt-welding unit 1103 is used to raise the butt-welding guiding block and the groove at the pipe end when the internal welding machine travels to the pipe end, and perform butt-welding operations based on the prediction unit, the second calculation unit and the adjustment unit.
[0312] The prediction unit is used to predict the current actual thrust of each branch chain based on the branch chain movement data and current data in the attitude adjustment mechanism by using a prediction model; the prediction model is obtained by training a neural network model in advance by using a six-axis dynamics model; the six-axis dynamics model is constructed in advance according to the six-axis platform.
[0313] The second calculation unit is used to calculate the adjustment amount of the attitude adjustment mechanism according to the predicted thrust of each branch chain and the target thrust; the adjustment unit is used to adjust the attitude of the attitude adjustment mechanism according to the adjustment amount calculated by the second calculation unit.
[0314] A second calculation unit, configured to calculate the load force and load torque in the moving platform coordinate system according to the current actual thrust of each branch chain through a real-time kinematic direct solution model; the six-axis platform includes a moving platform and a static platform; the moving platform coordinate system is a coordinate system constructed based on the moving platform.
[0315] An adjustment unit, configured to use a admittance controller to calculate the pose adjustment amount of the pose adjustment mechanism according to the load force and load torque, and adjust the lengths of the respective branch chains during the butt joint process so that the butt joint guiding block reaches the groove limit position; the admittance controller is pre-established based on a second-order differential model.
[0316] A first fixing unit 1104, configured to, after completing the butt joint operation, raise the rear expanding shoe to fix the relative position of the cone head mechanism and the groove, and retract the butt joint guiding block.
[0317] A second fixing unit 1105, configured to, when the groove of another pipeline coincides with the groove, raise the front expanding shoe to fix the relative position of the cone head mechanism and the groove of the other pipeline, so that the welding torch in the cone head mechanism welds the two pipelines.
[0318] In the embodiment of the present invention, by adjusting the contact state between the internal welding machine and the pipeline in real time, the adaptability and stability of the internal welding machine are significantly improved, the influence of the harsh environment on the construction process is effectively reduced, and at the same time, the high quality of the welding operation is ensured, and the overall work efficiency is improved. By accurately utilizing the drive current of the pose adjustment structure, and combining the deep neural network technology and the dynamic model, the contact force between the cone head mechanism and the groove is predicted, and the pose adjustment control amount during the bending and butt joint processes is calculated. By adjusting the pose through the feedback contact force, the stability and accuracy of the welding process are ensured.
[0319] Combined with Figure 11 As shown in the content, the device further includes: a definition unit, a first creation unit, a second creation unit, and a construction unit.
[0320] A definition unit, configured to define the structure of the six-axis platform, and the structure at least includes a static platform, a moving platform, the cylinder barrel of the branch chain, and the piston rod of the branch chain.
[0321] A first creation unit, configured to define kinematic physical quantities based on the static platform coordinate system, and create the Jacobian matrix of the moving platform, the Jacobian matrix of the cylinder barrel of the branch chain, and the Jacobian matrix of the piston rod of the branch chain in combination with the force data of the six-axis platform; the static platform coordinate system is a coordinate system constructed based on the static platform.
[0322] A second creation unit, configured to construct the inertia matrix of the cone head mechanism, the inertia matrix of the cylinder barrel of the branch chain, and the inertia matrix of the piston rod of the branch chain.
[0323] A construction unit, configured to construct a six-axis dynamic model in combination with all the Jacobian matrices and all the inertia matrices.
[0324] Combined with Figure 11 As shown in the content, the device further includes: a first acquisition unit, a preprocessing unit, an output unit, a third calculation unit, a determination unit, and a parameter adjustment unit.
[0325] The first acquisition unit is configured to sample multiple loads from a preset load space, and for each load, acquire corresponding motion sequence data from a preset position space and a preset dynamic space.
[0326] The preprocessing unit is configured to input all the loads and all the motion sequence data into a six-axis dynamics model to obtain initial training data including branch chain motion data, current data, and branch chain thrust data, and preprocess the initial training data to obtain training data.
[0327] The output unit is configured to input the training data into a long short-term memory deep neural network model and output a predicted value of the branch chain thrust.
[0328] The third calculation unit is configured to calculate a loss function of the long short-term memory deep neural network model according to the predicted value.
[0329] The determination unit is configured to, if the loss function converges, determine the long short-term memory deep neural network model as a trained prediction model.
[0330] The parameter adjustment unit is configured to, if the loss function does not converge, adjust the parameters of the long short-term memory deep neural network model and return to execute the output unit.
[0331] Combined with Figure 11 As shown in the content, the device further includes: a second acquisition unit, a fourth calculation unit, and a fifth calculation unit.
[0332] The second acquisition unit is configured to acquire branch chain driving force data at multiple different postures in the posture adjustment mechanism.
[0333] The fourth calculation unit is configured to calculate the load force and load torque in the moving platform coordinate system according to multiple groups of branch chain driving force data through a real-time dynamics forward solution model; the moving platform coordinate system is a coordinate system established according to the moving platform in the posture adjustment mechanism.
[0334] The establishment unit is configured to establish a linear equation of the load force, load torque, cone head weight, and center of gravity coordinates received by the moving platform of the posture adjustment mechanism.
[0335] The fifth calculation unit is configured to calculate the cone head weight and center of gravity coordinates according to the least squares method and the linear equation.
[0336] Correspondingly, the first calculation unit 1101 is specifically configured to: obtain the actual position of the attitude adjustment mechanism, where the actual position includes the angle between each branch chain of the attitude adjustment mechanism and gravity, the deflection data and offset data of the branch chain; use the real-time dynamics forward solution model to calculate the gravity compensation amount of the moving platform for the cone head in the coordinate system of the moving platform according to the angle, deflection data, offset data, cone head weight, and center of gravity coordinates; through the real-time dynamics inverse solution model, convert the gravity compensation amount of the moving platform for the cone head into the gravity compensation amount of the branch chain for the cone head in the current attitude; the gravity compensation amount of the branch chain for the cone head is the force exerted by the cone head gravity on each branch chain; input the angle, deflection data, offset data, and gravity compensation amount of the branch chain for the cone head into the impedance controller to calculate the driving force of multiple branch chains in the attitude adjustment mechanism.
[0337] Combined with Figure 11 the content shown, the adjustment unit includes a calculation module and an adjustment module.
[0338] The calculation module is configured to use the admittance controller to calculate the pose adjustment amount of the attitude adjustment mechanism according to the load force, load torque, and gravity compensation amount of the moving platform for the cone head.
[0339] The adjustment module is configured to use the position controller to adjust the lengths of each branch chain during the butt joint process according to the pose adjustment amount, so that the butt joint guide block reaches the groove limit position; the position controller is pre-established based on a proportional-derivative controller.
[0340] The adjustment module is specifically configured to: use the position controller to calculate the butt joint output force of the attitude adjustment mechanism according to the pose adjustment amount; adjust the lengths of each branch chain during the butt joint process through the butt joint output force.
[0341] Combined with Figure 11 the content shown, the calculation module includes a calculation sub-module, an acquisition sub-module, an input sub-module, and an iterative solution sub-module.
[0342] The calculation sub-module is configured to calculate the difference between the load force and load torque minus the gravity compensation amount of the moving platform for the cone head to obtain the actual contact resultant force of several butt joint guide blocks in the cone head mechanism in contact with the groove.
[0343] The acquisition sub-module is configured to acquire the actual position and actual speed of each branch chain during the butt joint process.
[0344] The input sub-module is configured to input the preset expected contact resultant force, actual contact resultant force, actual position, and actual speed into the admittance controller.
[0345] The iterative solution sub-module is configured to combine the ordinary differential equations in the admittance controller and perform iterative solution according to the time step of the control period to obtain the pose adjustment amount of the attitude adjustment mechanism.
[0346] Each embodiment in this specification is described in a progressive manner. For the identical or similar parts among the embodiments, reference can be made to each other, and the differences between each embodiment and other embodiments are emphasized. In particular, for a system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, reference can be made to the partial description of the method embodiment. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative work.
[0347] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0348] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An automatic butt welding method for an internal welding machine, characterized in that, The method includes: When the internal welding machine travels to a bend inside the pipeline through the body movement system, the impedance controller calculates the driving forces of multiple branch chains in the attitude adjustment mechanism according to the actual position of the attitude adjustment mechanism; the control strategy of the impedance controller is pre-created according to the target inertia, target stiffness value, and target damping; Drive the cone head mechanism in the internal welding machine to deflect according to the driving force, so that the internal welding machine passes through the bend; When the internal welding machine travels to the pipe orifice end, raise the butt joint guiding block to perform a butt joint operation with the groove of the pipe orifice end. The butt joint operation includes: Use the prediction model to predict the current actual thrust of each branch chain based on the branch chain movement data and current data in the attitude adjustment mechanism; the prediction model is pre-trained by using a six-axis dynamics model for a neural network model; the six-axis dynamics model is pre-constructed according to a six-axis platform; Calculate the load force and load torque in the moving platform coordinate system according to the current actual thrust of each branch chain through the real-time dynamics forward solution model; the six-axis platform includes a moving platform and a static platform; the moving platform coordinate system is a coordinate system constructed according to the moving platform; Use the admittance controller to calculate the pose adjustment amount of the attitude adjustment mechanism according to the load force and the load torque, and adjust the lengths of the branch chains during the butt joint process, so that the butt joint guiding block reaches the groove limit position; the admittance controller is pre-established based on a second-order differential model; After completing the butt joint operation, raise the rear expansion shoe to fix the relative position of the cone head mechanism and the groove, and retract the butt joint guiding block; When the groove of another pipeline coincides with the groove, raise the front expansion shoe to fix the relative position of the cone head mechanism and the groove of the other pipeline, so that the welding torch in the cone head mechanism welds the two pipelines; Among them, the process of pre-constructing the six-axis dynamics model according to the six-axis platform includes: Define the structure of the six-axis platform, and the structure at least includes a static platform, a moving platform, the cylinder barrel of the branch chain, and the piston rod of the branch chain; Define the motion physical quantities based on the static platform coordinate system, and create the Jacobian matrix of the moving platform, the Jacobian matrix of the cylinder barrel of the branch chain, and the Jacobian matrix of the piston rod of the branch chain in combination with the force data of the six-axis platform; the static platform coordinate system is a coordinate system constructed according to the static platform; Construct the inertia matrix of the cone head mechanism, the inertia matrix of the cylinder barrel of the branch chain, and the inertia matrix of the piston rod of the branch chain; Combine all the Jacobian matrices and all the inertia matrices to construct the six-axis dynamics model. The six-axis dynamics model includes: Among them, τ represents the thrust of the 6 branches of the six-axis platform; J represents the Jacobian matrix of the pose velocity of the moving platform and the telescopic velocities of the 6 branches; J C represents the Jacobian matrix of the velocity of the centroid of the cone head's comprehensive mass and the velocity of the moving platform; F C represents the load force and load torque received by the cone head mechanism; c has no specific meaning; J 1i represents the Jacobian matrix of the velocity of the centroid of the cylinder barrel of branch i and the velocities of each branch; J 2i represents the Jacobian matrix of the velocity of the centroid of the piston rod of branch i and the velocities of each branch; F C includes: Among them, f e represents the external force loaded at the centroid of the conical head assembly; m C represents the mass of the conical head mechanism; g represents the gravitational acceleration vector; a C represents the acceleration vector of the conical head mechanism; n e represents the external torque formed by f e ; I C represents the inertia matrix of the conical head mechanism about its centroid; α P represents the angular acceleration of rotation of the moving platform; ω p represents the angular velocity of rotation of the moving platform. F 1i including: Among them, m1 represents the mass of the cylinder barrel; a 1i represents the translational acceleration of the centroid of the cylinder barrel in the branch chain i; I 1i represents the inertia matrix of the cylinder barrel of the branch chain i about its centroid; α i represents the angular acceleration of the connecting rod i of the branch chain; ω i represents the angular velocity of the connecting rod i of the branch chain; F 2i including: where, m2 represents the mass of the piston rod; a 2i represents the translational acceleration of the centroid of the piston rod in the branch chain i; I 2i represents the inertia matrix of the piston rod of the branch chain i about its centroid.
2. The method according to claim 1, wherein The process of pre-training the neural network model by using the six-axis dynamics model to obtain the prediction model includes: Sample multiple loads from the preset load space. For each load, obtain the corresponding motion sequence data from the preset position space and the preset dynamic space; Input all the loads and all the motion sequence data into the six-axis dynamics model to obtain the initial training data including branch chain movement data, current data, and branch chain thrust data, and preprocess the initial training data to obtain the training data; Input the training data into the long short-term memory deep neural network model to output the predicted value of the branch chain thrust; Calculate the loss function of the long short-term memory deep neural network model according to the predicted value; If the loss function converges, determine the long short-term memory deep neural network model as the trained prediction model; If the loss function does not converge, adjust the parameters of the long short-term memory deep neural network model, and return to execute the step of inputting the training data into the long short-term memory deep neural network model to output the predicted value of the branch chain thrust.
3. The method according to claim 1, wherein The method further includes: Obtain the branch chain driving force data in multiple different postures of the posture adjustment mechanism; According to the multiple groups of branch chain driving force data, calculate the load force and load torque in the moving platform coordinate system through the real-time dynamic forward solution model; the moving platform coordinate system is a coordinate system established according to the moving platform in the posture adjustment mechanism; Establish a linear equation of the load force, load torque, cone head weight, and centroid coordinates received by the moving platform of the posture adjustment mechanism; Calculate the cone head weight and centroid coordinates according to the least squares method and the linear equation; Correspondingly, the use of the impedance controller to calculate the driving forces of multiple branch chains in the posture adjustment mechanism according to the actual position of the posture adjustment mechanism includes: Obtain the actual position of the posture adjustment mechanism, and the actual position includes the angle between each branch chain of the posture adjustment mechanism and gravity, the deflection data, and the offset data of the branch chain; Use the real-time dynamic forward solution model to calculate the gravity compensation amount of the moving platform to the cone head in the lower coordinate system of the moving platform according to the angle, the deflection data, the offset data, the cone head weight, and the centroid coordinates; Through the real-time dynamic inverse solution model, convert the gravity compensation amount of the moving platform to the cone head into the gravity compensation amount of the branch chain to the cone head in the current posture; the gravity compensation amount of the branch chain to the cone head is the force exerted by the cone head gravity on each branch chain; Input the angle, the deflection data, the offset data, and the gravity compensation amount of the branch chain to the cone head into the impedance controller to calculate the driving forces of multiple branch chains in the posture adjustment mechanism.
4. The method according to claim 3, wherein The use of the admittance controller to calculate the pose adjustment amount of the posture adjustment mechanism according to the load force and the load torque, and adjust the lengths of the respective branch chains during the butting process so that the butting guide block reaches the groove limit position includes: Use the admittance controller to calculate the pose adjustment amount of the posture adjustment mechanism according to the load force, the load torque, and the gravity compensation amount of the moving platform to the cone head; Use the position controller to adjust the lengths of the respective branch chains during the butting process according to the pose adjustment amount so that the butting guide block reaches the groove limit position; the position controller is pre-established based on a proportional-derivative controller.
5. The method according to claim 4, characterized in that, The use of the admittance controller to calculate the pose adjustment amount of the posture adjustment mechanism according to the load force, the load torque, and the gravity compensation amount of the moving platform to the cone head includes: Calculate the difference between the load force and the load torque minus the gravity compensation amount of the moving platform to the cone head to obtain the actual contact resultant force of several butting guide blocks in the cone head mechanism in contact with the groove; Obtain the actual positions and actual speeds of each of the branch chains during the alignment process; Input the preset desired contact force, the actual contact force, the actual position, and the actual speed into the admittance controller; Combined with the ordinary differential equations in the admittance controller, perform iterative solutions according to the time steps of the control period to obtain the pose adjustment amount of the pose adjustment mechanism.
6. The method according to claim 5, wherein The using the position controller to adjust the lengths of each of the branch chains during the alignment process includes: Using the position controller to calculate the alignment output force of the pose adjustment mechanism according to the pose adjustment amount; Adjust the lengths of each of the branch chains during the alignment process through the alignment output force.
7. An automatic butt welding device for internal welding machines, characterized in that, The device includes: A first calculation unit, configured to, when the internal welding machine travels to a bend in the pipeline through the fuselage movement system, calculate the driving forces of multiple branch chains in the pose adjustment mechanism according to the actual position of the pose adjustment mechanism by using an impedance controller; the control strategy of the impedance controller is pre-created according to the target inertia, the target stiffness value, and the target damping; A driving unit, configured to drive the cone head mechanism in the internal welding machine to deflect according to the driving force, so that the internal welding machine passes through the bend; An alignment unit, configured to, when the internal welding machine travels to the pipe orifice end, raise the alignment guide block and the groove of the pipe orifice end, and perform alignment operations based on a prediction unit, a second calculation unit, and an adjustment unit; A prediction unit, configured to use a prediction model to predict the current actual thrust of each of the branch chains based on the branch chain movement data and current data in the pose adjustment mechanism; the prediction model is pre-trained by using a six-axis dynamics model on a neural network model; the six-axis dynamics model is pre-constructed according to a six-axis platform; A second calculation unit, configured to calculate the load force and load torque in the moving platform coordinate system according to the current actual thrust of each of the branch chains through a real-time dynamics forward solution model; the six-axis platform includes a moving platform and a static platform; An adjustment unit, configured to use an admittance controller to calculate the pose adjustment amount of the pose adjustment mechanism according to the load force and the load torque, and adjust the lengths of each of the branch chains during the alignment process, so that the alignment guide block reaches the groove limit position; the admittance controller is pre-established based on a second-order differential model; A first fixing unit, configured to, after completing the alignment operation, raise the rear expansion shoe to fix the relative position of the cone head mechanism and the groove, and retract the alignment guide block; A second fixing unit, configured to, when the groove of another pipeline coincides with the groove, raise the front expansion shoe to fix the relative position of the cone head mechanism and the groove of the other pipeline, so that the welding torch in the cone head mechanism welds the two pipelines; Wherein, the device further includes: A definition unit, configured to define the structure of the six-axis platform, and the structure at least includes a static platform, a moving platform, the cylinder barrel of the branch chain, and the piston rod of the branch chain; A first creation unit, configured to define the motion physical quantities based on the static platform coordinate system, and create the Jacobian matrix of the moving platform, the Jacobian matrix of the cylinder barrel of the branch chain, and the Jacobian matrix of the piston rod of the branch chain in combination with the force data of the six-axis platform; the static platform coordinate system is a coordinate system constructed according to the static platform; A second creation unit, configured to construct the inertia matrix of the cone head mechanism, the inertia matrix of the cylinder barrel of the branch chain, and the inertia matrix of the piston rod of the branch chain; A construction unit, configured to construct a six-axis dynamics model by combining all Jacobian matrices and all inertia matrices, where the six-axis dynamics model includes: Among them, τ represents the thrust of the 6 branches of the six-axis platform; J represents the Jacobian matrix of the pose velocity of the moving platform and the telescopic velocities of the 6 branches; J C represents the Jacobian matrix of the velocity of the centroid of the cone head's overall mass and the velocity of the moving platform; F C represents the load force and load torque received by the cone head mechanism; c has no specific meaning; J 1i represents the Jacobian matrix of the velocity of the centroid of the cylinder barrel of branch i and the velocities of each branch; J 2i represents the Jacobian matrix of the velocity of the centroid of the piston rod of branch i and the velocities of each branch; F C includes: Among them, f e represents the external force loaded at the centroid of the cone head assembly; m C represents the mass of the cone head mechanism; g represents the gravitational acceleration vector; a C represents the acceleration vector of the cone head mechanism; n e represents the external torque formed by f e ; I C represents the inertia matrix of the cone head mechanism about its centroid; α P represents the angular acceleration of rotation of the moving platform; ω p represents the angular velocity of rotation of the moving platform. F 1i including: Among them, m1 represents the mass of the cylinder barrel; a 1i represents the translational acceleration of the centroid of the cylinder barrel in the branch chain i; I 1i represents the inertia matrix of the cylinder barrel of the branch chain i about its centroid; α i represents the angular acceleration of rotation of the connecting rod i of the branch chain; ω i represents the angular velocity of rotation of the connecting rod i of the branch chain; F 2i including: Among them, m2 represents the mass of the piston rod; a 2i represents the translational acceleration of the centroid of the piston rod in the branch chain i; I 2i represents the inertia matrix of the piston rod of the branch chain i about its centroid.
8. An internal welding machine, characterized in that, including a cone head mechanism, a fuselage motion system, an attitude adjustment mechanism, a memory, and a processor; The cone head mechanism includes a butt joint guide block; The attitude adjustment mechanism is located between the cone head mechanism and the fuselage motion system; the attitude adjustment mechanism at least includes a plurality of branch chains and attitude guide wheels; A computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps of the internal welding machine automatic butt joint method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Protective device for a pressure line, pressure line section and hydraulic system
CN102985741A
Method and device for the welding of pipes
CN103282709A