Intelligent recognition method, device and medium for robot arm motion based on digital twin
Recognizing the movements of the robotic arm through digital twin technology solves the problem of inaccurate robotic arm movement recognition in the existing technology and enables accurate judgment and accuracy assessment of the robotic arm's level.
Patent Information
- Application Number
- CN202410854885.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-28
AI Technical Summary
The existing robot arm action recognition method only performs simple recognition through video, and cannot accurately judge the accuracy of the robot arm. Especially when the environment changes, the voltage is abnormal, or a mechanical failure occurs, the torsion angle of the front joint cannot be calculated from the end position. .
An intelligent identification method of robotic arm movements based on digital twins is adopted to collect real-time pose data through the data acquisition module. The model generation module generates a digital twin model. The model analysis module analyzes the accuracy of the model. The robotic arm analysis module calculates and predicts joint torsion angles, and then identifies The level of the robotic arm and sends the level to the display terminal.
It achieves accurate recognition of the robot arm's movements, can identify the robot arm as level one, level two, or level three, and judge its accuracy through the angle deviation value, providing users with trustworthy robot arm level information and avoiding the generation of digital twin models. mistake.
Smart Images

Figure CN118418138B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of intelligent machinery and relates to digital twin technology, specifically to a method, device and medium for intelligent recognition of robot arm movements based on digital twin. Background Art
[0002] Robotic arms account for a major part of modern industrial production, so more and more factories are using digital twin technology to innovate technology and conduct virtual simulation of robotic arms to achieve automation and unmanned operation of the production process. However, when encountering some unexpected situations, such as environmental changes, voltage abnormalities, or mechanical failures, the robotic arms may exhibit abnormal behavior. At the same time, when the factory robotic arms are running, they will inevitably cause abnormal movements of the robotic arms and reduced accuracy of the robotic arms due to loose program logic or insufficient or excessive voltage.
[0003] However, at present, the motion recognition of the robotic arm is limited to simple recognition through video. It is impossible to calculate the degree of twist of the front joint through the position of the end of the robotic arm, and thus it is impossible to accurately judge the accuracy of the robotic arm.
[0004] To this end, we propose a method, equipment and medium for intelligent recognition of robotic arm motion based on digital twins. Summary of the invention
[0005] The purpose of the present invention is to solve the above-mentioned problems and to propose a method, device and medium for intelligent recognition of robotic arm movements based on digital twins, so as to solve the problem raised in the above-mentioned background technology that the current recognition of robotic arm movements is limited to simple recognition through video, and it is impossible to calculate the degree of torque of the front joint of the robotic arm through the position of the end of the robotic arm, and thus it is impossible to accurately judge the accuracy of the robotic arm.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] First, the intelligent recognition method of robot arm motion based on digital twins is as follows:
[0008] Step S101, the data acquisition module acquires real-time posture data of the target robotic arm when executing various operation instructions, and sends the real-time posture information of the target robotic arm to the robotic arm analysis module;
[0009] Step S102, the model generation module generates a digital twin model corresponding to the target robotic arm;
[0010] Step S103: the model analysis module analyzes the accuracy of the digital twin model corresponding to the target robotic arm. If a normal signal is generated, the digital twin model of the target robotic arm is sent to the robotic arm analysis module; if an abnormal signal is generated, it is sent to the display terminal;
[0011] Step S104, the robot arm analysis module calculates the predicted joint torsion angle of the target robot arm according to the position coordinates of the end of the target robot arm, determines whether the target robot arm is a first-level robot arm, a second-level robot arm, or a third-level robot arm, and sends the level of the target robot arm to the display terminal;
[0012] Step S105: If the display terminal receives the level of the target robotic arm, the level of the target robotic arm is informed to the user; if the display terminal receives an abnormal signal, the user is prompted that the digital twin model of the target robotic arm is generated incorrectly.
[0013] Further, the operation instructions include a grab instruction, a placement instruction, a rotation instruction, and a movement instruction of the target robot arm;
[0014] The real-time pose data include the real-time joint torsion angle of each joint in the target robotic arm, the position coordinates and the horizontal offset angle of the end of the target robotic arm.
[0015] Furthermore, the standard information specifically includes the number of links of the target robotic arm, and the link length, link direction, and maximum rotation angle of each link in the target robotic arm.
[0016] Furthermore, in step S103, the analysis process of the model analysis module is as follows:
[0017] Establish a joint coordinate system on each link corresponding to the target robot arm, and use the previous joint coordinate system of the link as the coordinate system of the link, and then obtain the link parameters of each link;
[0018] For each link in the target robot arm, its change matrix is:
[0019] ;
[0020] Take the standard joint vectors of the first six joints and calculate the change matrix of the target robot end position:
[0021] ;
[0022] Solve the real-time joint vectors;
[0023] If the real-time joint vector is consistent with the standard joint vector, it is determined that the digital twin model of the target robotic arm is successfully established and a normal signal is generated;
[0024] If the real-time joint vector is inconsistent with the standard joint vector, it is determined that the digital twin model of the target robotic arm has failed to be established and an abnormal signal is generated.
[0025] Furthermore, the connecting rod parameters include the joint rotation angle θ of the connecting rod i , joint offset d i , connecting rod torsion angle j i and connecting rod length a i ; Wherein, i is the number of each connecting rod, i=1, 2, 3…, z, z is a positive integer.
[0026] Furthermore, the method for determining the joint rotation angle, joint offset, connecting rod torsion angle and connecting rod length of the connecting rod is as follows:
[0027] Joint rotation angle θ i : Around Z i+1 Axis, X i The extension cord and X i+1 The angle between the corresponding translation lines;
[0028] Joint offset d i : Along Z i+1 Axis, X i The extension line of Z i+1 The intersection point P to X i+1 With Z i+1 The distance from the intersection point Q, that is, the distance from point Q to point P;
[0029] Connecting rod torsion angle j i : Around X i+1 Axis, Z i With Z i+1 The angle between the corresponding translation lines;
[0030] Connecting rod length a i : The length of the connecting rod between two joints, i+1 is the number of the next connecting rod.
[0031] Furthermore, in step S104, the analysis process of the robot arm analysis module is as follows:
[0032] Get the real-time joint torsion angle (β1, β2, β3) of the target robot arm;
[0033] Get the length of each link in the target robot arm and record it as Ln, where n=1, 2, 3, ..., z, where z is a positive integer;
[0034] Get the position coordinates (x, y) and horizontal offset angle of the end of the target robot arm , solve the predicted joint torsion angle (θ1, θ2, θ3) of each joint in the robot arm;
[0035] That is equivalent to the known ;
[0036] Solving for this yields:
[0037] ;
[0038] x 2 +y 2 =L1 2 +L2 2 -2×L1×L2×cos (180°-θ2);
[0039] cos(180°-θ2)=(x 2 +y 2 -L1 2 -L2 2 ) / (2×L1×L2);
[0040] Solving for θ2=arccos[-(x 2 +y 2 -L1 2 -L2 2 ) / (2×L1×L2)];
[0041] Or θ2 = -arccos[-(x 2 +y 2 ) / (2×L1×L2)];
[0042] From the cosine theorem, we know that ;
[0043] Due to the horizontal deviation angle is the interior angle of a triangle, we know that 0°< <180°;
[0044] When θ2>0°, θ1=atan2(y,x)- ;
[0045] When θ2<0°, θ1=atan2(y,x)+ ;
[0046] θ3= -θ1-θ2;
[0047] Compare the predicted joint torsion angle with the real-time joint torsion angle, and classify the target robotic arm into grades. If each group of the predicted joint torsion angles is completely equal to the real-time joint torsion angles, the target robotic arm is identified as a grade-one robotic arm.
[0048] If any set of predicted joint torsion angles is different from the real-time joint torsion angles, it is considered that the action of the target manipulator is deviated, and then the angle deviation value JDP of the target manipulator is calculated by the formula JDP=|θ1-β1|+|θ2-β2|+|θ3-β3|, and the angle deviation value with the smallest value is selected as the angle deviation value of the target manipulator;
[0049] If the angle deviation value of the target robot arm is less than or equal to the angle deviation threshold, the target robot arm is identified as a secondary robot arm;
[0050] If the angle deviation value of the target robotic arm is greater than the angle deviation threshold, the target robotic arm is identified as a level 3 robotic arm.
[0051] Furthermore, the accuracy of the primary robotic arm is higher than that of the secondary robotic arm, and the accuracy of the secondary robotic arm is higher than that of the tertiary robotic arm.
[0052] In a second aspect, a computer device is provided, the computer device comprising:
[0053] A memory storing a computer program;
[0054] A processor is communicatively connected to the memory, and when the computer program is executed by the processor, a method for intelligent recognition of robot arm movements based on digital twins is implemented.
[0055] In the third aspect, a computer-readable storage medium stores a computer program, which, when executed by a processor, implements a method for intelligent recognition of robotic arm motions based on digital twins.
[0056] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0057] The present invention generates a digital twin model corresponding to a target robotic arm through a model generation module, and uses a model analysis module to analyze the accuracy of the digital twin model corresponding to the target robotic arm. If a normal signal is generated, the digital twin model of the target robotic arm is sent to the robotic arm analysis module; if an abnormal signal is generated, it is sent to a display terminal. On the other hand, the robotic arm analysis module is used to calculate the predicted joint torsion angle of the target robotic arm according to the position coordinates of the end of the target robotic arm, and the target robotic arm is identified as a first-level robotic arm, a second-level robotic arm or a third-level robotic arm, and the level of the target robotic arm is sent to the display terminal. If the display terminal receives the level of the target robotic arm, the level of the target robotic arm is informed to the user; if the display terminal receives an abnormal signal, the user is prompted that the digital twin model of the target robotic arm is generated incorrectly. The present invention can accurately identify the robotic arm movements. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0059] Figure 1 The figure is a flow chart of the method of the present invention.
[0060] Figure 2 It is a system block diagram of the present invention.
[0061] Figure 3 It is a simple schematic diagram of the mechanical arm in the present invention.
[0062] Figure 4 It is a structural schematic diagram of the joint coordinate system in the present invention.
[0063] Figure 5 It is a schematic diagram of the structure for predicting the torsion angle in the present invention.
[0064] Figure 6 A schematic diagram of the structure of a computer device. DETAILED DESCRIPTION
[0065] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] Digital twin is a technology that connects physical objects, systems or processes in reality with the digital world. It achieves real-time monitoring, simulation and optimization of physical objects by establishing virtual models corresponding to the physical objects.
[0067] In this example, see Figure 1-Figure 5 As shown, the technical solution provided by the present invention is a method for intelligent recognition of robot arm movements based on digital twins, and the method comprises the following steps:
[0068] Step S101, the data acquisition module acquires real-time posture data of the target robotic arm when executing various operation instructions, and sends the real-time posture information of the target robotic arm to the robotic arm analysis module;
[0069] Step S102, the model generation module generates a digital twin model corresponding to the target robotic arm;
[0070] Step S103: the model analysis module analyzes the accuracy of the digital twin model corresponding to the target robotic arm. If a normal signal is generated, the digital twin model of the target robotic arm is sent to the robotic arm analysis module; if an abnormal signal is generated, it is sent to the display terminal;
[0071] Step S104, the robot arm analysis module calculates the predicted joint torsion angle of the target robot arm according to the position coordinates of the end of the target robot arm, determines whether the target robot arm is a first-level robot arm, a second-level robot arm, or a third-level robot arm, and sends the level of the target robot arm to the display terminal;
[0072] Step S105: If the display terminal receives the level of the target robotic arm, the level of the target robotic arm is notified to the user; if the display terminal receives an abnormal signal, the user is prompted that the digital twin model of the target robotic arm is incorrectly generated;
[0073] In this embodiment, the above method involves a data acquisition module, a database, a model generation module, a model analysis module, a mechanical arm analysis module and a display terminal;
[0074] See also Figure 3 As shown, the data acquisition module is used to collect real-time posture data of the target robot arm when executing various operation instructions, and send the real-time posture information of the target robot arm to the robot arm analysis module, wherein the operation instructions specifically include the grabbing instructions, placement instructions, rotation instructions, movement instructions, etc. of the target robot arm, and the real-time posture data specifically include the real-time joint torsion angle of each joint in the target robot arm, the position coordinates of the end of the target robot arm and the horizontal offset angle, wherein the horizontal offset angle refers to the angle between the direction pointed by the end of the target robot arm and the horizontal plane. When the direction pointed by the end of the target robot arm is parallel to the horizontal plane, it does not constitute a horizontal offset angle. The eye-to-hand method in hand-eye calibration is used to use an external camera to collect the position coordinates of the end of the target robot arm;
[0075] In this embodiment, the database is used to store standard information of the target robotic arm, and the standard information specifically includes the number of connecting rods of the target robotic arm, and the connecting rod length, connecting rod direction and maximum rotation angle of each connecting rod in the target robotic arm;
[0076] The model generation module is used to generate a digital twin model corresponding to the target robotic arm, by acquiring the real-time posture data of the target robotic arm collected by the data acquisition module and the standard information of the target robotic arm in the database, and importing them into the Unity3D modeling software to generate a digital twin model corresponding to the target robotic arm;
[0077] In order to facilitate the understanding of subsequent calculations, the following contents need to be explained in advance:
[0078] The pose represents the position and attitude of an object. The position state of any object in the space base coordinate system A (OXYZ) can be accurately described by the pose. For example, if there is a point P in the object, the position of point P in the space base coordinate system can be described by the three-dimensional column vector express;
[0079] When the three-dimensional coordinate system B (O1X1Y1Z1) of the object is established on the object, and when the three-dimensional coordinate system B of the object has the same origin as the space base coordinate system A, the posture of the object can be described by rotation relative to the polar coordinate system, using a 3×3 matrix to represent it: , and in the analysis of the robotic arm, a coordinate system is established at the end of each link. After the position vector and attitude matrix of the origin of the end coordinate system in the space base coordinate system are obtained, the position of each link can be determined;
[0080] However, in actual analysis, different coordinate systems are used to describe the same link, so it is necessary to understand the conversion between different coordinate systems;
[0081] If the coordinate system A and the coordinate system B have the same posture but the origins do not coincide, then point P satisfies in both coordinate systems ;
[0082] If the origins of coordinate system A and coordinate system B coincide but their postures are different, then point P satisfies in both coordinate systems ;
[0083] If the postures of coordinate system A and coordinate system B are different and their origins do not coincide, then the position description of point P satisfies ;
[0084] The model analysis module is used to analyze the accuracy of the digital twin model corresponding to the target robotic arm. The analysis process is as follows:
[0085] See also Figure 3-Figure 4 , establish a joint coordinate system on each link corresponding to the target robot arm, for each link, use the previous joint coordinate system as the link coordinate system, and then obtain the link parameters of each link;
[0086] It should be noted that the connecting rod parameters specifically include the joint rotation angle θ of the connecting rod i : The rotation angle of the common normal of a joint with the next joint and the common normal of the joint with the previous joint around the axis of this joint; joint offset d i : The distance between the common normal of a joint and the next joint and the common normal of the joint and the previous joint along the axis of the joint; the torsion angle of the connecting rod j i : The angle at which the axis of one joint rotates relative to the axis of another joint about their common normal; the length of the link a i : The common normal length between the axes of the two joints; where i is the number of each link, i=1, 2, 3, ..., z, z is a positive integer, and i+1 is the number of the next link;
[0087] See also Figure 4As shown in the figure, the method for determining the joint rotation angle, joint offset, connecting rod torsion angle and connecting rod length of the connecting rod is as follows:
[0088] Joint rotation angle θ i : Around Z i+1 Axis, X i The extension cord and X i+1 The angle between the corresponding translation lines;
[0089] Joint offset d i : Along Z i+1 Axis, X i The extension line of Z i+1 The intersection point P to X i+1 With Z i+1 The distance from the intersection point Q, that is Figure 4 The distance from point Q to point P;
[0090] Connecting rod torsion angle j i : Around X i+1 Axis, Z i With Z i+1 The angle between the corresponding translation lines;
[0091] Connecting rod length a i : The length of the connecting rod between the two joints;
[0092] The connecting rod parameter table of a target robot arm is as follows:
[0093]
[0094] For each link in the target robot arm, its change matrix can be expressed as:
[0095] ;
[0096] The standard joint vectors of the first six joints are Q=[π / 2, 0, -π / 2, 0, 0, 0]. The fkine function is used to calculate the change matrix of the target robot end position:
[0097] ;
[0098] The actual real-time joint vector Qi=[1.5708, 0, -1.5708, 0, 0, 0] is inversely solved by the ikine function;
[0099] If the real-time joint vector is consistent with the standard joint vector, it is determined that the digital twin model of the target robotic arm is successfully established, a normal signal is generated, and the digital twin model of the target robotic arm is sent to the robotic arm analysis module;
[0100] If the real-time joint vector is inconsistent with the standard joint vector, it is considered that the establishment of the digital twin model of the target robot arm has failed, and an abnormal signal is generated and sent to the display terminal;
[0101] Please refer to Figure 5 The robot arm analysis module is used to calculate the predicted joint torsion angle of the target robot arm according to the position coordinates of the end of the target robot arm. The analysis process is as follows:
[0102] It should be noted in advance that due to the nature of inverse trigonometric functions, the value of a trigonometric function corresponds to two angles, so there are multiple sets of solutions. For a general six-degree-of-freedom manipulator, there are eight sets of solution values. For the convenience of explanation, the subsequent analysis process is based on Figure 5 The target robot arm shown is used for explanation;
[0103] Get the real-time joint torsion angle (β1, β2, β3) of the target robot arm;
[0104] Get the length of each link in the target robot arm and record it as Ln, n=1, 2, 3, ..., z, z is a positive integer. Figure 5 There are only two connecting rods in the target robot arm shown, so the lengths L1 and L2 of the corresponding two connecting rods are obtained;
[0105] Get the position coordinates (x, y) and horizontal offset angle of the end of the target robot arm , solve the predicted joint torsion angle (θ1, θ2, θ3) of each joint in the robot arm;
[0106] That is equivalent to the known ;
[0107] Solving for this yields:
[0108] ;
[0109] By decomposing space geometry into plane geometry:
[0110] x 2 +y 2 =L1 2 +L2 2 -2×L1×L2×cos (180°-θ2);
[0111] cos(180°-θ2)=(x 2 +y 2 -L1 2 -L2 2 ) / (2×L1×L2);
[0112] Solving for θ2=arccos[-(x 2 +y 2 -L12 -L2 2 ) / (2×L1×L2)];
[0113] Or θ2 = -arccos[-(x 2 +y 2 ) / (2×L1×L2)];
[0114] From the cosine theorem, we know that ;
[0115] Due to the horizontal deviation angle is the interior angle of a triangle, we know that 0°< <180°;
[0116] When θ2>0°, θ1=atan2(y,x)- ;
[0117] When θ2<0°, θ1=atan2(y,x)+ ;
[0118] θ3= -θ1-θ2;
[0119] Among them, atan2 is a function that returns the arc tangent of y / x expressed in radians;
[0120] Compare the predicted joint torsion angle with the real-time joint torsion angle, and classify the target robotic arm into grades. If each group of the predicted joint torsion angles is completely equal to the real-time joint torsion angles, the target robotic arm is identified as a grade-one robotic arm.
[0121] If any set of predicted joint torsion angles is different from the real-time joint torsion angles, it is considered that the action of the target manipulator is deviated, and then the angle deviation value JDP of the target manipulator is calculated by the formula JDP=|θ1-β1|+|θ2-β2|+|θ3-β3|, and the angle deviation value with the smallest value is selected as the angle deviation value of the target manipulator;
[0122] If the angle deviation value of the target robot arm is less than or equal to the angle deviation threshold, the target robot arm is identified as a secondary robot arm;
[0123] If the angle deviation value of the target robot arm is greater than the angle deviation threshold, the target robot arm is identified as a level 3 robot arm;
[0124] Among them, the accuracy of the first-level robot arm is higher than that of the second-level robot arm, and the accuracy of the second-level robot arm is higher than that of the third-level robot arm. When the first-level robot arm executes the operation instruction, the preset action will be performed accurately, and when the second-level robot arm executes the operation instruction, the preset action will have a slight error, and when the third-level robot arm executes the operation instruction, the preset action will have a large error;
[0125] The robot arm analysis module sends the level of the target robot arm to the display terminal;
[0126] The display terminal is used to receive the level of the target robotic arm or an abnormal signal. If the display terminal receives the level of the target robotic arm, the level of the target robotic arm is notified to the user. If the display terminal receives the abnormal signal, the user is prompted that the digital twin model of the target robotic arm is incorrectly generated and needs to be regenerated;
[0127] In this application, if corresponding calculation formulas appear, the above calculation formulas are all dimensionless and take their numerical calculations. The weight coefficients, proportional coefficients and other coefficients in the formulas are set to a result value obtained by quantifying each parameter. The size of the weight coefficient and the proportional coefficient can be determined as long as it does not affect the proportional relationship between the parameter and the result value.
[0128] Figure 6 The following is a schematic diagram of the physical structure of a computer device, such as Figure 6 As shown, the computer device may include: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. The processor can call the logic instructions in the memory to execute the intelligent recognition method of the robot arm action based on digital twin, which includes: the data acquisition module collects the real-time posture data of the target robot arm when executing multiple operation instructions, and sends the real-time posture information of the target robot arm to the robot arm analysis module; the model generation module generates the digital twin model corresponding to the target robot arm; the model analysis module analyzes the accuracy of the digital twin model corresponding to the target robot arm, and if a normal signal is generated, the digital twin model of the target robot arm is sent to the robot arm analysis module, and if an abnormal signal is generated, it is sent to the display terminal; the robot arm analysis module calculates the predicted joint torsion angle of the target robot arm according to the position coordinates of the end of the target robot arm, determines that the target robot arm is a first-level robot arm, a second-level robot arm or a third-level robot arm, and sends the level of the target robot arm to the display terminal; if the display terminal receives the level of the target robot arm, the level of the target robot arm is notified to the user, and if the display terminal receives an abnormal signal, the user is prompted that the digital twin model of the target robot arm is generated incorrectly.
[0129] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0130] On the other hand, the present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the digital twin-based robotic arm action intelligent recognition method, device and medium provided by the above-mentioned methods. The method includes: a data acquisition module collects real-time posture data of the target robotic arm when executing multiple operation instructions, and sends the real-time posture information of the target robotic arm to a robotic arm analysis module; a model generation module generates a digital twin model corresponding to the target robotic arm; and a model analysis module The accuracy of the digital twin model corresponding to the target robotic arm is analyzed. If a normal signal is generated, the digital twin model of the target robotic arm is sent to the robotic arm analysis module. If an abnormal signal is generated, it is sent to the display terminal. The robotic arm analysis module calculates the predicted joint torsion angle of the target robotic arm based on the position coordinates of the end of the target robotic arm, determines whether the target robotic arm is a first-level robotic arm, a second-level robotic arm or a third-level robotic arm, and sends the level of the target robotic arm to the display terminal. If the display terminal receives the level of the target robotic arm, the level of the target robotic arm is informed to the user. If the display terminal receives an abnormal signal, the user is prompted that the digital twin model of the target robotic arm is generated incorrectly.
[0131] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned methods, devices and media for intelligent recognition of robotic arm actions based on digital twins, the method comprising: a data acquisition module acquires real-time posture data of the target robotic arm when executing multiple operation instructions, and sends the real-time posture information of the target robotic arm to a robotic arm analysis module; a model generation module generates a digital twin model corresponding to the target robotic arm; the model analysis module analyzes the accuracy of the digital twin model corresponding to the target robotic arm, and if a normal signal is generated, sends the digital twin model of the target robotic arm to the robotic arm analysis module, and if an abnormal signal is generated, sends it to a display terminal; the robotic arm analysis module calculates the predicted joint torsion angle of the target robotic arm based on the position coordinates of the end of the target robotic arm, determines that the target robotic arm is a first-level robotic arm, a second-level robotic arm or a third-level robotic arm, and sends the level of the target robotic arm to the display terminal; if the display terminal receives the level of the target robotic arm, the level of the target robotic arm is notified to the user, and if the display terminal receives an abnormal signal, the user is prompted that the digital twin model of the target robotic arm is generated incorrectly.
[0132] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0133] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for intelligent recognition of robotic arm motion based on digital twins, characterized in that: The specific method of intelligent recognition of robot arm movements is as follows: Step S101, the data acquisition module acquires real-time posture data of the target robotic arm when executing various operation instructions, and sends the real-time posture information of the target robotic arm to the robotic arm analysis module; Step S102, the model generation module generates a digital twin model corresponding to the target robotic arm by acquiring the real-time posture data of the target robotic arm collected by the data acquisition module and the standard information of the target robotic arm in the database; Step S103: the model analysis module analyzes the accuracy of the digital twin model corresponding to the target robotic arm. If a normal signal is generated, the digital twin model of the target robotic arm is sent to the robotic arm analysis module; if an abnormal signal is generated, it is sent to the display terminal; Step S104, the robot arm analysis module calculates the predicted joint torsion angle of the target robot arm according to the position coordinates of the end of the target robot arm, determines whether the target robot arm is a first-level robot arm, a second-level robot arm, or a third-level robot arm, and sends the level of the target robot arm to the display terminal; In step S104, the analysis process of the robot arm analysis module is as follows: Get the real-time joint torsion angle (β1, β2, β3) of the target robot arm; Get the length of each link in the target robot arm and record it as Ln, where n=1, 2, 3, ..., z, where z is a positive integer; Get the position coordinates (x, y) and horizontal offset angle of the target robot end , solve the predicted joint torsion angle (θ1, θ2, θ3) of each joint in the robot arm; That is equivalent to the known ; Solving for this yields: ; By decomposing space geometry into plane geometry: x 2 +y 2 =L1 2 +L2 2 -2×L1×L2×cos(180°-θ2); cos(180°-θ2)=(x 2 +y 2 -L1 2 -L2 2 ) / (2×L1×L2); Solving for θ2=arccos[-(x 2 +y 2 -L1 2 -L2 2 ) / (2×L1×L2)]; Or θ2 = -arccos[-(x 2 +y 2 ) / (2×L1×L2)]; From the cosine theorem, we know that , ; Due to the horizontal deviation angle is the interior angle of a triangle, we know that 0°< <180°; When θ2>0°, θ1=atan2(y,x)- ; When θ2<0°, θ1=atan2(y,x)+ ; θ3= -θ1-θ2; Compare the predicted joint torsion angle with the real-time joint torsion angle, and classify the target robotic arm into grades. If each group of the predicted joint torsion angles is completely equal to the real-time joint torsion angles, the target robotic arm is identified as a grade-one robotic arm. If any set of predicted joint torsion angles is different from the real-time joint torsion angles, it is considered that the action of the target manipulator is deviated, and then the angle deviation value JDP of the target manipulator is calculated by the formula JDP=|θ1-β1|+|θ2-β2|+|θ3-β3|, and the angle deviation value with the smallest value is selected as the angle deviation value of the target manipulator; If the angle deviation value of the target robot arm is less than or equal to the angle deviation threshold, the target robot arm is identified as a secondary robot arm; If the angle deviation value of the target robot arm is greater than the angle deviation threshold, the target robot arm is identified as a level 3 robot arm; Step S105: If the display terminal receives the level of the target robotic arm, the level of the target robotic arm is informed to the user; if the display terminal receives an abnormal signal, the user is prompted that the digital twin model of the target robotic arm is generated incorrectly.
2. The method for intelligent recognition of robot arm movements based on digital twins according to claim 1 is characterized in that: The operation instructions include grabbing instructions, placement instructions, rotation instructions, and movement instructions of the target robot arm; The real-time pose data include the real-time joint torsion angle of each joint in the target robotic arm, the position coordinates and the horizontal offset angle of the end of the target robotic arm.
3. The method for intelligent recognition of robot arm movements based on digital twins according to claim 1 is characterized in that: The standard information specifically includes the number of links of the target robot arm, and the link length, link direction, and maximum rotation angle of each link in the target robot arm.
4. The method for intelligent recognition of robot arm movements based on digital twins according to claim 1 is characterized in that: In step S103, the analysis process of the model analysis module is as follows: A joint coordinate system is established on each link corresponding to the target robot arm, and the previous joint coordinate system of the link is used as the coordinate system of the link, and then the link parameters of each link are obtained; wherein the link parameters include the joint rotation angle θ of the link i , joint offset d i , connecting rod torsion angle j i and connecting rod length a i ; Wherein, i is the number of each connecting rod, i=1, 2, 3..., z, z is a positive integer; For each link in the target robot arm, its change matrix is: ; Take the standard joint vectors of the first six joints and calculate the change matrix of the target robot end position to solve the real-time joint vector; If the real-time joint vector is consistent with the standard joint vector, it is determined that the digital twin model of the target robotic arm is successfully established and a normal signal is generated; If the real-time joint vector is inconsistent with the standard joint vector, it is determined that the digital twin model of the target robotic arm has failed to be established and an abnormal signal is generated.
5. The method for intelligent recognition of robot arm movements based on digital twins according to claim 4 is characterized in that: The method for determining the joint rotation angle, joint offset, connecting rod torsion angle and connecting rod length of the connecting rod is as follows: Joint rotation angle θ i : Around Z i+1 Axis, X i The extension cord and X i+1 The angle between the corresponding translation lines; Joint offset d i : Along Z i+1 Axis, X i The extension line of Z i+1 The intersection point P to X i+1 With Z i+1 The distance from the intersection point Q, that is, the distance from point Q to point P; Connecting rod torsion angle j i : Around X i+1 Axis, Z i With Z i+1 The angle between the corresponding translation lines; Connecting rod length a i : The length of the connecting rod between two joints, i+1 is the number of the next connecting rod.
6. The method for intelligent recognition of robot arm movements based on digital twins according to claim 1 is characterized in that: The accuracy of the first-level robot arm is higher than that of the second-level robot arm, and the accuracy of the second-level robot arm is higher than that of the third-level robot arm.
7. A computer device, characterized in that: The computer device comprises: A memory storing a computer program; A processor is communicatively connected to the memory, and when the computer program is executed by the processor, the method for intelligent recognition of robotic arm movements based on digital twins as described in any one of claims 1 to 6 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the method for intelligent recognition of robotic arm movements based on digital twins as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Robot calibration method for digital twinning
CN115179289A
Automatic pitched roof cutting method and control system for digging and anchoring integrated machine
CN116084980A
Feature active learning-feedback digital twinning method for mechanical arm performance monitoring and error compensation
CN117901104A
Inverse kinematics solution and joint speed planning method for three-joint mechanical arm of sprue sawing machine
CN118238133A
Agent control method and apparatus, electronic device, program, and storage medium
WO2023082949A1
