Industrial robot arm control method and system based on digital twin technology
The digital twin model of the industrial robotic arm is constructed through digital twin technology and deep reinforcement learning algorithms, which solves the problems of modeling difficulty and discontinuous motion in traditional control methods, achieves intelligent control and real-time performance of the robotic arm, and improves the degree of automation. and production efficiency.
Patent Information
- Application Number
- CN202211217890.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-09-30
AI Technical Summary
Existing technologies have problems with traditional modeling difficulties, discontinuous motion, and difficulty in real-time information interaction in industrial robot arm control, resulting in poor flexibility and adaptability and the inability to effectively respond to dynamic target position changes.
A deep reinforcement learning algorithm based on digital twin technology is used to construct a digital twin model of the industrial robotic arm. Through the parent-child logical relationship and the proximal strategy optimization algorithm, the adaptive intelligent control of the robotic arm is realized to improve automation and real-time performance.
It solves the problem that traditional methods cannot accurately describe the motion state and get stuck when encountering singular points, realizes intelligent control and real-time information interaction of the robotic arm, and improves flexibility and production efficiency.
Smart Images

Figure CN115446867B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot intelligent control technology, and in particular to an industrial robot arm control method and system based on digital twin technology. Background Art
[0002] The robotic arm is a complex system with high precision, multiple inputs and multiple outputs, high nonlinearity, and strong coupling. Due to its unique operational flexibility, it has been widely used in industrial assembly, safety and explosion protection, and other fields. At present, in industrial production, the teaching method is generally used to control the robotic arm, that is, the robotic arm is moved to each target position in advance by manual dragging or using a teach pendant to adjust, and the position information of each target is saved. Then, when in use, the robotic arm moves in the order of the target points, and in new applications, due to changes in the target position, re-teaching is required. This method is not only labor-intensive, but also has poor flexibility and adaptability, and cannot be dynamically adjusted according to demand. In addition, as a complex system, the robotic arm has uncertainties such as parameter perturbations, external interference, and unmodeled dynamics, so re-teaching is often required.
[0003] To this end, the traditional control method commonly used in the prior art is to model the robot system and control the robot through motion planning theory to reduce the waste of manpower and material resources and improve flexibility and adaptability. The current motion planning theory includes forward kinematics and inverse kinematics. Forward kinematics refers to calculating the position of the end of the robot according to the rotation angle of each axis of the robot, while inverse kinematics is to calculate the required rotation angle of each axis according to the target position of the end of the robot. However, the existing methods still have many problems, including:
[0004] 1. Traditional modeling is difficult. For complex physical robotic arms, the traditional physical modeling process is complex and difficult, and cannot accurately describe the motion state of the robotic arm;
[0005] 2. The robot arm moves discontinuously. Using traditional forward kinematics and inverse kinematics to drive the robot arm to rotate, a singularity may occur, causing the robot arm to get stuck and unable to rotate;
[0006] 3. Real-time information exchange is impossible, and the robot arm controller cannot grasp the operation status of the industrial robot arm in the first place, making it difficult to ensure its real-time performance. Summary of the invention
[0007] In order to solve the shortcomings of the above-mentioned prior art, the present invention provides an industrial robot arm control method and system based on digital twin technology. A digital twin of the industrial robot arm is established through digital twin technology, and the movement of the digital twin is driven by a data-driven deep reinforcement learning algorithm, thereby finally realizing intelligent control of the robot arm and improving the degree of automation and flexibility of the robot arm control.
[0008] In a first aspect, the present disclosure provides an industrial robot arm control method based on digital twin technology, comprising:
[0009] A digital twin model of an industrial robot arm with six degrees of freedom is constructed using digital twin technology; the digital twin model includes six rotary joints and five driven components, and a parent-child logical relationship is set between the rotary joints and the driven components;
[0010] The digital twin model is trained based on a data-driven deep reinforcement learning algorithm to learn the optimal strategy for maximizing the cumulative reward and determine the motion trajectory of the digital twin model.
[0011] Based on the motion trajectory of the digital twin model, the industrial robot arm is driven to rotate adaptively to achieve intelligent control of the industrial robot arm.
[0012] According to a further technical solution, the six rotating joints and five driven components of the digital twin model respectively form a parent-child logical relationship in pairs; the base joint, the first driven component, the shoulder joint, the second driven component, the elbow joint, the third driven component, the first wrist joint, the fourth driven component, the second wrist joint, the fifth driven component and the third wrist joint respectively form a parent-child logical relationship in pairs in sequence.
[0013] A further technical solution, the parent-child logical relationship means that when an object is set as a child object of another object, the object is the child object, the other object is the parent object, the child object changes with the rotation of the parent object, the relative point position does not change, and the parent object does not actively follow the change when the child object rotates.
[0014] A further technical solution, during the modeling process, also includes: setting basic parameters of the digital twin model based on the actual parameters of the industrial robot arm; the basic parameters include joint sensitivity, joint range of motion, and the upper limit of the linear speed and acceleration of each joint.
[0015] A further technical solution is to establish a communication connection between the digital twin model and the industrial robot arm during the modeling process, the industrial robot arm sends the industrial robot arm synchronization parameters to the digital twin model, and the digital twin model receives the target data for simulation and returns the execution data to the industrial robot arm after training;
[0016] The execution data includes the industrial robot arm posture adjustment data, namely, the rotation angle, angular velocity and angular acceleration of each rotation joint.
[0017] A further technical solution is to plan the optimal trajectory of the digital twin model's movement based on the proximal policy optimization algorithm PPO to achieve self-learning function.
[0018] A further technical solution is to set the initial coordinate position and initial joint angle of the digital twin model according to the six-degree-of-freedom robotic arm;
[0019] Based on the target location, the digital twin model selects a strategy from the preset strategy set for simulation operation, obtains the observation results of each strategy operation, assigns rewards based on the observation results, and selects the strategy with the largest reward for iterative operation until the optimal strategy with the maximum cumulative reward is obtained;
[0020] Based on the obtained optimal strategy, the motion trajectory of the digital twin model is determined.
[0021] In a second aspect, the present disclosure provides an industrial robot arm control system based on digital twin technology, including an industrial robot arm with six degrees of freedom and a digital twin simulation platform;
[0022] The digital twin simulation platform is used to execute the industrial robot arm control method based on digital twin technology provided in the first aspect, drive the six-degree-of-freedom industrial robot arm to adaptively rotate, and realize intelligent control of the industrial robot arm.
[0023] In a third aspect, the present disclosure further provides an electronic device, comprising a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the steps of the method described in the first aspect are completed.
[0024] In a fourth aspect, the present disclosure further provides a computer-readable storage medium for storing computer instructions, which, when executed by a processor, complete the steps of the method described in the first aspect.
[0025] One or more of the above technical solutions have the following beneficial effects:
[0026] 1. The present invention provides an industrial robot arm control method and system based on digital twin technology. The digital twin technology is used to construct a digital twin model of the robot arm, connecting the digital world and the physical world, so that uplink and downlink physical information data interaction can be achieved between physical objects and virtual objects, solving nonlinear and uncertainty problems that traditional mechanism models cannot solve, and greatly improving the real-time and generalization capabilities of the robot arm.
[0027] 2. The present invention conducts learning and training on the digital twin model of the robotic arm, and utilizes the Markov reward process to enable the digital twin to learn and select actions that maximize the reward under different environmental conditions, thereby realizing self-learning of the industrial robotic arm and greatly improving the degree of automation.
[0028] 3. The present invention utilizes the proximal strategy optimization algorithm and enables the robotic arm to achieve self-learning adaptive rotation through reinforcement learning training, thereby solving the problem of discontinuity in the motion process of the traditional robotic arm, realizing intelligent control of the robotic arm, and improving the degree of automation and industrial production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0030] Figure 1 This is an overall flow chart of the industrial robot arm control method based on digital twin technology according to the first embodiment of the present invention;
[0031] Figure 2 This is a schematic diagram of the functions implemented by the five layers in the first embodiment of the present invention;
[0032] Figure 3 Schematic diagram of the structure of an industrial robot arm with six degrees of freedom in Embodiment 1 of the present invention.
[0033] Among them, 1. base joint, 2. shoulder joint, 3. elbow joint, 4. first wrist joint, 5. second wrist joint, 6. third wrist joint, 7. base, 8. tool end. DETAILED DESCRIPTION
[0034] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0035] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0036] Embodiment 1
[0037] This embodiment provides an industrial robot arm control method based on digital twin technology. Figure 1 As shown, the following steps are included:
[0038] S1. Using digital twin technology to construct a digital twin model of an industrial robot arm with six degrees of freedom; the digital twin model includes six rotation joints and five driven components, and a parent-child logical relationship is set between the rotation joints and the driven components;
[0039] S2. Based on the data-driven deep reinforcement learning algorithm, the digital twin model is trained to learn the optimal strategy to maximize the cumulative reward and determine the motion trajectory of the digital twin model;
[0040] S3. Based on the motion trajectory of the digital twin model, the industrial robot arm is driven to rotate adaptively to achieve intelligent control of the industrial robot arm.
[0041] This embodiment takes an industrial grabbing robot arm as an example, and analyzes and sets the five layers of physical layer, data layer, transmission layer, virtual layer and service layer to realize intelligent control of the industrial robot arm. Figure 2 As shown, in the physical layer, the six-degree-of-freedom industrial robot arm is used as the basis for the interaction of virtual entities, services, and twin data; in the data layer, the data is divided into an inherent information layer and a posture adjustment layer; in the transmission layer, the Modbus communication protocol based on Socket is used to realize the data transmission between the six-degree-of-freedom industrial robot arm and the Unity3D platform; in the virtual layer, a digital twin model of the industrial grasping robot arm is established on the Unity3D platform, and the rotation angle and speed data of each joint are obtained and output through reinforcement learning training of the digital twin, thereby realizing precise control of the industrial robot arm in the physical space; in the service layer, the motion trajectory related data of the industrial robot arm is visualized.
[0042] In step S1, a digital twin model of an industrial robot arm with six degrees of freedom is constructed using digital twin technology.
[0043] In this embodiment, the structure of the industrial robot arm is as follows: Figure 3 As shown, the robot arm includes 6 rotating joints, 5 driven components, a base and a tool end. Each rotating joint represents a degree of freedom, including a base joint 1, a shoulder joint 2, an elbow joint 3, a first wrist joint 4, a second wrist joint 5 and a third wrist joint 6; a component driven by rotation, i.e., a driven component, is provided between every two joints, and there are 5 driven components in total, a first driven component is provided between the base joint 1 and the shoulder joint 2, a second driven component is provided between the shoulder joint 2 and the elbow joint 3, a third driven component is provided between the elbow joint 3 and the first wrist joint 4, a fourth driven component is provided between the first wrist joint 4 and the second wrist joint 5, and a fifth driven component is provided between the second wrist joint 5 and the third wrist joint 6; in addition, the industrial robot arm also includes a base 7 and a tool end 8, the base is connected to the base joint 1, and is used to connect the robot body and the robot base, and the tool end is connected to the third wrist joint 6, and is used to connect the robot body and the tool.
[0044] Based on the above-mentioned six-degree-of-freedom industrial robot arm, in the virtual layer, the digital twin technology is used to construct a digital twin model of the industrial robot arm. The digital twin model includes 6 rotational joints and 5 driven parts, as well as a fixed base and the tool end at the end of the robot arm, and sets the parent-child logical relationship between the rotational joints and the driven parts.
[0045] The above parent-child logical relationship means that when an object is set as the child object of another object, the object is the child object, and the other object is the parent object. The child object changes with the rotation of the parent object, and the relative point position does not change. When the child object rotates, the parent object does not actively follow and change. A parent object can have multiple child objects, but a child object can only have one parent object, and the child object can become the parent of other objects.
[0046] In this embodiment, the above 11 components (6 rotating joints and 5 driven components) of the digital twin model respectively form a parent-child logical relationship in pairs. Specifically, the base joint 1 and the first driven component are in a parent-child logical relationship, the first driven component and the shoulder joint 2 are in a parent-child logical relationship, and so on. Finally, the base joint 1, the first driven component, the shoulder joint 2, the second driven component, the elbow joint 3, the third driven component, the first wrist joint 4, the fourth driven component, the second wrist joint 5, the fifth driven component and the third wrist joint 6 form a parent-child logical relationship in pairs in sequence.
[0047] In addition, the industrial robot arm also includes a base and a tool end. The base and the base joint 1 form a parent-child logical relationship, and the third wrist joint 6 and the tool end form a parent-child logical relationship.
[0048] The above modeling process also includes: based on the actual parameters of the industrial robot arm, setting the basic parameters of the model, including joint sensitivity, joint range of motion (-175° to 175° in this embodiment), the upper limit of the linear speed and acceleration of each joint, etc., to ensure that the motion trajectory of the digital twin model is closer to the actual motion of the industrial robot arm.
[0049] Specifically, this embodiment uses the Unity3D platform in the virtual layer to build a digital twin model of the industrial robot arm. Unity3D is a multi-platform comprehensive game development tool developed by Unity Technologies that allows players to easily create interactive content such as three-dimensional video games, architectural visualization, and real-time three-dimensional animation. In this embodiment, the six-degree-of-freedom robot arm Aubo-i10 is physically cloned using Blender software, the model is imported into the Unity3D space, and the parent-child logical relationship between the joints is set, that is, in unity, drag an object to the list of another object, then the two objects form a parent-child relationship, and the two objects are the parent object and the child object respectively; the physical properties of the six-degree-of-freedom robot arm Aubo-i10 are mapped to the virtual space, and then the model is reconstructed in the Unity3D space, thereby completing the construction of the digital twin model of the six-degree-of-freedom robot arm Aubo-i10.
[0050] In the process of establishing the digital twin model, a communication connection is established between the digital twin model and the industrial robot arm. The industrial robot arm sends the robot arm synchronization parameters to the digital twin model, that is, the inherent information layer of the data layer, including the parameters of the robot arm itself, such as the above-mentioned components and their corresponding parameters, system resolution, carrying capacity, maximum speed and the actual parameters of the above-mentioned industrial robot arm; the digital twin model receives the data for simulation and returns the data to the industrial robot arm after training through the intelligent framework. The data is the posture adjustment layer of the data layer, including the posture adjustment data of the industrial robot arm, that is, the angle, angular velocity and angular acceleration of each rotating joint.
[0051] In this embodiment, based on the Modbus communication protocol of Socket, a two-end connection is established between the six-degree-of-freedom robot Aubo-i10 and the Unity3D platform to ensure the stability and reliability of data transmission. With Aubo-i10 as the active end and the Unity3D platform as the passive end, first set up the Socket socket on the two ports and confirm the establishment of the connection; in the formal communication process, the active end Aubo-i10 sends the robot arm synchronization parameters to the passive end Unity3D platform, and the Unity3D platform receives the data simulation and returns the data to the active end after training through the intelligent framework, and repeats this cycle. When the passive end Unity3D platform processes the request abnormally, the abnormal function code is fed back to the active end.
[0052] This embodiment uses digital twin technology to construct a digital twin model of the robotic arm, connecting the digital world and the physical world, enabling upstream and downstream physical information data interaction between physical objects and virtual objects, solving nonlinear and uncertainty problems that traditional mechanism models cannot solve, and greatly improving the real-time and generalization capabilities of the robotic arm.
[0053] As another implementation method, before conducting reinforcement learning training of the digital twin model, it also includes: detecting whether the digital twin model obtained by digital twin modeling has the physical characteristics of the six-degree-of-freedom robotic arm Aubo-i10, and whether it has physical characteristics that the six-degree-of-freedom robotic arm Aubo-i10 does not have; if there is a problem, reconstructing the digital twin model of the industrial robotic arm to ensure the accurate completion of subsequent learning training and control.
[0054] In step S2, the digital twin model is trained based on a data-driven deep reinforcement learning algorithm to learn the optimal strategy for maximizing the cumulative reward and determine the motion trajectory of the digital twin model.
[0055] In this embodiment, based on the proximal policy optimization algorithm PPO, the optimal trajectory of the digital twin model movement is planned to achieve self-learning function.
[0056] Specifically, first, according to the six-degree-of-freedom robotic arm, the initial coordinate position and initial joint angle of the digital twin model are set;
[0057] Based on the target location, the digital twin model selects a strategy from the preset strategy set for simulation operation, obtains the observation results of each strategy operation, assigns rewards based on the observation results, and selects the strategy with the largest reward for iterative operation until the optimal strategy with the maximum cumulative reward is obtained;
[0058] Based on the obtained optimal strategy, the motion trajectory of the digital twin model is determined.
[0059] The PPO algorithm is an existing algorithm that is an improvement on the TRPO algorithm (PG algorithm). Each iteration of the TRPO algorithm attempts to select a suitable step size from the current strategy so that the cumulative return obtained by the new strategy increases monotonically. Its objective function is shown in formula (1):
[0060]
[0061] The constraints of the above objective function are:
[0062] in, is the advantage function, is the importance sampling weight, represents the probability distribution of the new strategy, π θ (a t |s t ) represents the probability distribution of the old strategy, s t Indicates the current state, a trepresents the current action, π represents the strategy, which is a function of the state s, and in deep reinforcement learning, the strategy π is composed of a neural network, and the parameter of the neural network is θ, expressed as π θ , KL represents KL divergence.
[0063] In reinforcement learning, π is used to represent the strategy, which represents the probability distribution of the robot arm (agent) selecting an action from the action set in the current state, and then the function f is expected to exist. When the current state (state) is input, the strategy π is output to obtain the next action (action) of the robot arm (agent), that is, π = f (state). If the agent's action can promote the agent to reach the target value as soon as possible, it is necessary to increase the probability of this action being selected, that is, increase the reward (reward); conversely, the probability of this action being selected will decrease, that is, reduce the reward (reward). Based on the neural network model constructed in this way, the expected benefit of the action (action) is estimated, and the parameter θ of the updated model is solved through the above objective function to make the expected benefit higher and output the robot arm action.
[0064] The TRPO algorithm defines a confidence region for each round of optimization of the model. To ensure the stability of the optimization, each optimization does not exceed this range. The limit of this range is controlled by the KL divergence, which requires that the probability distribution of the new strategy should not differ too much from the old strategy in order to maintain stable growth.
[0065] In order to control the update range of the strategy, the PPO algorithm uses a truncated proxy objective function to achieve repeated sampling and speed up training. Restricted to a region, the update step is limited by controlling the size of the region. Compared with TRPO, which uses KL divergence for restriction, PPO The restriction is simpler and easier to implement. The objective function of the PPO algorithm is shown in formula (2):
[0066]
[0067] in, Importance sampling weights The constraints are in the range of (1-∈, 1+∈), where ∈ is a hyperparameter. The min function minimizes the original term and the truncated term. Therefore, when the offset of the policy update exceeds the predetermined interval, the truncated term will play a limiting role.
[0068] The PPO algorithm also uses the advantage function estimation method and the optimization method of adding additional entropy rewards to further improve its performance. Using the generalization advantage estimation to construct the advantage function can reduce the variance and prevent the algorithm from producing large fluctuations. The calculation formula of the generalization advantage estimation GAE is shown in formula (3):
[0069]
[0070] Among them, δ t =r t +γV(d t+1 )-V(s t ).
[0071] When the PPO algorithm is applied to a network structure where the policy and value functions share parameters, in addition to the truncated return, the objective function also adds an error term about the value function estimation and an entropy regularization term of the policy model to encourage exploration. Therefore, the optimized objective function is shown in formula (4):
[0072]
[0073] Among them, c1 and c2 are two constant hyperparameters; c1(V θ (s)-V target ) 2 is the mean square error of the state value function, the smaller the error, the better; H(s,π θ ) represents the strategy π θ The entropy value, the larger the entropy, the better.
[0074] By using the proximal policy optimization algorithm PPO and continuously iterating based on the optimized objective function, the training can be quickly completed and the optimal strategy for the current state of the robot arm can be output. The corresponding actions are performed according to the strategy, and the optimal trajectory of the digital twin model movement is planned through self-learning.
[0075] This embodiment uses a reinforcement learning algorithm to enable the robotic arm to achieve a continuous process of self-learning adaptive rotation to achieve motion, avoiding the situation where the robotic arm is stuck and unable to rotate due to a singularity encountered when driving the robotic arm to rotate using traditional forward kinematics and inverse kinematics; a proximal strategy optimization algorithm is used to enable the digital twin model and the environment to interact to obtain feedback and provide experience for action selection, thereby learning the optimal strategy for maximizing the cumulative reward obtained by the digital twin model. The proximal strategy optimization algorithm is used to enable the robotic arm to achieve self-learning adaptive motion, solving the problem that the traditional robotic arm motion process is discontinuous and it is difficult to use traditional optimization / gradient descent methods to solve a number of contact points that may be generated or disappear at any time, thereby achieving intelligent control of the robotic arm and improving the degree of automation and industrial production efficiency.
[0076] In step S3, based on the motion trajectory of the digital twin model, the industrial robot arm is driven to rotate adaptively to realize intelligent control of the industrial robot arm. Specifically, after obtaining the running trajectory of the digital twin model, the digital twin model returns posture adjustment data to the industrial robot arm, that is, the rotation angle, angular velocity and angular acceleration of each rotating joint, etc., to drive the industrial robot arm to rotate adaptively, thereby realizing intelligent control of the industrial robot arm.
[0077] As another implementation, the rotation of the digital twin model drives the industrial robot arm to rotate adaptively. At the same time, based on the rotation of the digital twin model robot arm, various data in the rotation process are visualized, so that the control personnel can grasp the operation status of the industrial robot arm at the first time, and real-time performance is guaranteed.
[0078] Embodiment 2
[0079] This embodiment provides an industrial robot arm control system based on digital twin technology, including an industrial robot arm with six degrees of freedom and a digital twin simulation platform;
[0080] The digital twin simulation platform is used to execute the industrial robot arm control method based on digital twin technology provided in the above-mentioned embodiment 1, drive the six-degree-of-freedom industrial robot arm to adaptively rotate, and realize intelligent control of the industrial robot arm.
[0081] Specifically, the above-mentioned digital twin simulation platform uses digital twin technology to construct a digital twin model of an industrial robotic arm with six degrees of freedom; the digital twin model is trained based on a data-driven deep reinforcement learning algorithm to learn the optimal strategy for maximizing the cumulative reward and determine the motion trajectory of the digital twin model; based on the motion trajectory of the digital twin model, the industrial robotic arm is driven to adaptively rotate to achieve intelligent control of the industrial robotic arm.
[0082] Embodiment 3
[0083] This embodiment provides an electronic device, including a memory and a processor, and computer instructions stored in the memory and running on the processor. When the computer instructions are executed by the processor, the steps in the industrial robot arm control method based on digital twin technology as described above are completed.
[0084] Embodiment 4
[0085] This embodiment also provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the steps in the industrial robot arm control method based on digital twin technology as described above are completed.
[0086] The steps involved in the above embodiments 2 to 4 correspond to the method embodiment 1, and the specific implementation methods can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.
[0087] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0089] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. An industrial robot arm control method based on digital twin technology, characterized in that: include: A digital twin model of an industrial robot arm with six degrees of freedom is constructed by using digital twin technology; the digital twin model includes six rotational joints and five driven components, and a parent-child logical relationship is set between the rotational joints and the driven components; the six rotational joints and the five driven components of the digital twin model respectively form a parent-child logical relationship in pairs; specifically, the base joint, the first driven component, the shoulder joint, the second driven component, the elbow joint, the third driven component, the first wrist joint, the fourth driven component, the second wrist joint, the fifth driven component and the third wrist joint sequentially form a parent-child logical relationship in pairs; The digital twin model is trained based on the data-driven deep reinforcement learning algorithm to learn the optimal strategy for maximizing the cumulative reward and determine the motion trajectory of the digital twin model. Specifically, based on the proximal policy optimization algorithm PPO, the optimal trajectory of the digital twin model is planned to achieve self-learning function. Among them, the PPO algorithm uses a truncated proxy objective function to achieve repetitive sampling and speed up training. It also uses the advantage function estimation method and the optimization method of adding additional entropy rewards to further improve its performance. The calculation formula of the generalized advantage estimate GAE is as follows: where δ t = r t + γV(s t+1 ) - V(s t ); The objective function in the PPO algorithm also adds an error term about the value function estimation and an entropy regularization term of the policy model to encourage exploration; the optimized objective function is as follows: Where c1 and c2 are two constant hyperparameters; c1(V θ (s)-V target ) 2 is the mean square error of the state value function; H(s,π θ ) represents the strategy π θ The entropy value of Based on the motion trajectory of the digital twin model, the industrial robot arm is driven to rotate adaptively to achieve intelligent control of the industrial robot arm.
2. The industrial robot arm control method based on digital twin technology as claimed in claim 1, characterized in that: The parent-child logical relationship means that when one object is set as the child object of another object, the object is the child object and the other object is the parent object. The child object changes with the rotation of the parent object, and the relative point position does not change. When the child object rotates, the parent object does not actively follow and change.
3. The industrial robot arm control method based on digital twin technology as claimed in claim 1 is characterized in that The modeling process also includes: setting the basic parameters of the digital twin model based on the actual parameters of the industrial robot arm; the basic parameters include joint sensitivity, joint range of motion, and the upper limit of the linear speed and acceleration of each joint.
4. The industrial robot arm control method based on digital twin technology as claimed in claim 1 is characterized in that During the modeling process, a communication connection is established between the digital twin model and the industrial robot arm. The industrial robot arm sends the industrial robot arm synchronization parameters to the digital twin model. The digital twin model receives the target data for simulation and returns the execution data to the industrial robot arm after training. The execution data includes the industrial robot arm posture adjustment data, namely, the rotation angle, angular velocity and angular acceleration of each rotation joint.
5. The industrial robot arm control method based on digital twin technology as claimed in claim 1, characterized in that: According to the six-degree-of-freedom robotic arm, set the initial coordinate position and initial joint angle of the digital twin model; Based on the target location, the digital twin model selects a strategy from the preset strategy set for simulation operation, obtains the observation results of each strategy operation, assigns rewards based on the observation results, and selects the strategy with the largest reward for iterative operation until the optimal strategy with the maximum cumulative reward is obtained; Based on the obtained optimal strategy, the motion trajectory of the digital twin model is determined.
6. An industrial robot arm control system based on digital twin technology, characterized in that: Includes a six-degree-of-freedom industrial robot arm and a digital twin simulation platform; The digital twin simulation platform is used to execute the industrial robot arm control method based on digital twin technology as described in any one of claims 1 to 5, drive the six-degree-of-freedom industrial robot arm to adaptively rotate, and realize intelligent control of the industrial robot arm.
7. An electronic device, characterized in that: It includes a memory and a processor, and computer instructions stored in the memory and running on the processor. When the computer instructions are run by the processor, the steps of an industrial robot arm control method based on digital twin technology as described in any one of claims 1 to 5 are completed.
8. A computer-readable storage medium, characterized in that: Used to store computer instructions, which, when executed by a processor, complete the steps of an industrial robot arm control method based on digital twin technology as described in any one of claims 1-5.
