Inverse kinematics optimization solution method and system for robotic arm based on joint independent decision-making

By combining joint independent decision-making and the concept of Pareto dominance, the improved particle swarm algorithm solves the versatility and convergence issues of the multi-objective optimization problem of the inverse kinematics of the robotic arm, achieves optimal control of the robotic arm joint rotation, and improves control accuracy. and efficiency.

CN118493405BActive Publication Date: 2024-09-17BEIJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410953990.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-17
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

Existing algorithms for solving multi-objective optimization problems of inverse kinematics of manipulators have limitations in versatility, convergence and result optimality. They cannot effectively consider the individuality of joints and the similarities and differences between joints, making it difficult to determine the optimal solution in practical applications. Excellent solution.

Method used

Using a method based on joint independent decision-making, through the Pareto dominance concept in game theory and the improved particle swarm algorithm, the Pareto optimal solution set is defined, and a penalty term representing the coupling relationship between joints is added to the objective function to improve the solution Algorithm versatility and global search capabilities.

Benefits of technology

It achieves the versatility of the multi-objective optimization problem of the inverse kinematics of the robotic arm and the convergence of the solution process, ensures the optimality of the results and the accuracy of joint rotation, and improves the accuracy and efficiency of the robotic arm control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118493405B
    Figure CN118493405B
Patent Text Reader

Abstract

The present invention discloses a method and system for optimizing and solving the inverse kinematics of a robot arm based on joint independent decision-making, and relates to the technical field of kinematics of a robot arm. The method comprises the following steps: first, taking the joints of the robot arm as the main body, establishing an optimization and solving problem for the inverse kinematics of the robot arm; second, introducing the concept of Pareto dominance in game theory, proposing an improved particle swarm algorithm, solving the optimization and solving problem for the inverse kinematics of the robot arm, and taking the Pareto optimal solution obtained when the final number of iterations is reached as the optimal decision variable; finally, controlling the rotation of the joints of the robot arm based on the optimal decision variable. The present invention designs the objective function of the inverse kinematics optimization and solving problem based on the concept of joint independent decision-making, fully considers the individualization and uniqueness of the joints of the robot arm, designs penalty terms, reduces constraints, and establishes the connection between the targets of each joint, introduces the concept of Pareto dominance into the solving algorithm, and improves the global search capability in the particle optimization process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robot arm kinematics, and in particular to a robot arm inverse kinematics optimization solution method and system based on joint independent decision-making. Background Art

[0002] Robot forward and inverse kinematics are the foundation of robot development. Among them, forward kinematics is the mapping from joint motion to the end motion of the robot arm, which can be solved directly using the joint structure. However, in actual robot control and application, the target is usually the end position of the robot arm in Cartesian space. In order to make the end of the robot arm reach the target position, robot inverse kinematics is used to obtain the joint position in the joint space corresponding to the end target position. Existing research has proposed improved numerical solutions and optimization solutions for the versatility of inverse kinematics solutions, the comprehensiveness of solutions, the optimality of solutions, the computational cost, and the smoothness of results. It transforms the traditional inverse kinematics solution from the end to the joint into a solution from the joint to the end like forward kinematics, which can effectively solve the problem of singular solutions and has no special requirements for the robot configuration, and has received widespread attention.

[0003] However, the existing research on inverse kinematics optimization of robotic arms focuses on the main body of the robotic arm, ignoring the individuality of the joints and the cost changes of a single joint. It is impossible to explore the potential of inverse kinematics optimization of robotic arms in practical applications based on the similarities and differences of each joint. After considering the independence of the objectives of each joint of the robotic arm, it is obviously impossible to directly determine the optimal solution of the multi-objective problem through a single objective function value, and the existing algorithms for solving inverse kinematics multi-objective optimization problems have their limitations. In view of the above problems, how to ensure the universality of the algorithm for solving the inverse kinematics multi-objective optimization problem of robotic arms, the convergence of the optimization process and the optimality of the results have become technical problems that need to be solved urgently. Summary of the invention

[0004] The purpose of the present invention is to provide a method and system for solving the inverse kinematics optimization of a robotic arm based on joint independent decision-making, which can ensure the universality of the algorithm for solving the multi-objective optimization problem of inverse kinematics of the robotic arm, the convergence of the optimization process and the optimality of the results.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] On the one hand, the present invention provides a method for optimizing and solving inverse kinematics of a robotic arm based on joint independent decision-making, comprising the following steps:

[0007] Taking the joints of the robot arm as the main body, the inverse kinematics optimization problem of the robot arm is established; the inverse kinematics optimization problem of the robot arm includes the optimization problem of each joint; the objective function of the optimization problem of any joint includes the completion cost of the joint's action according to the rotation angle and the penalty term designed using the Lagrangian operator method.

[0008] For the inverse kinematics optimization problem of the robotic arm, the Pareto optimal solution set is defined based on the concept of Pareto dominance in game theory. The Pareto optimal solution set includes several Pareto optimal solutions. The Pareto optimal solution is a decision variable that is not Pareto dominated by any decision variable in the feasible domain space. The decision variables include the rotation angle of each joint.

[0009] Based on the improved particle swarm algorithm, the inverse kinematics optimization problem of the robotic arm is solved, and the Pareto optimal solution obtained when the final number of iterations is reached is used as the optimal decision variable; the optimal decision variable is the decision variable when the objective function of the inverse kinematics optimization problem of the robotic arm is minimized; in each iteration of the improved particle swarm algorithm, the Pareto optimal solution set obtained in each iteration is used to update the position and velocity of each particle in the population.

[0010] Based on the optimal decision variables, the joints of the robotic arm are controlled to rotate.

[0011] Optionally, taking the joints of the robotic arm as the main body, a robotic arm inverse kinematics optimization solution problem is established, which specifically includes the following steps:

[0012] For any joint of the robotic arm, take the joint as the main body and establish the optimization solution problem of the joint.

[0013] The optimization solutions of all joints are integrated to establish the inverse kinematics optimization solution of the robotic arm.

[0014] Optionally, the objective function of the inverse kinematics optimization problem of the robot arm can be expressed as follows:

[0015] .

[0016] in, The objective function for solving the inverse kinematics optimization problem of the robot arm is: For the The objective function of the optimization problem for each joint is , is the number of joints, is the cost of completing the action of the joint according to the rotation angle, is the penalty term coefficient, The penalty term designed for the Lagrangian operator method is: For the The rotation angle of each joint, for The lower limit of for The upper limit of is the set of rotation angles of all joints, is the feasible domain space of the rotation angle set.

[0017] The penalty term can be expressed as follows:

[0018] .

[0019] in, , and are row and column numbers, respectively. is the coupling matrix between joints, is the coupling matrix between joints Line The elements of the column, is the end pose matrix of the robot arm, is the pose matrix of the end of the robot relative to the base of the robot, , The transformation matrix that represents the coupling relationship between two adjacent joints.

[0020] The transformation matrix of the coupling relationship between two adjacent joints can be expressed as follows:

[0021] .

[0022] in, represents the cosine function cos, represents the sine function sin, is the offset of the connecting rod between two adjacent joints, is the length of the connecting rod between two adjacent joints, is the torsion angle of the connecting rod between two adjacent joints.

[0023] Optionally, the penalty term coefficient satisfies the following formula:

[0024] .

[0025] in, To find the gradient function.

[0026] Alternatively, the Pareto optimal solution set can be expressed as follows:

[0027] .

[0028] in, is the Pareto optimal solution set, is the decision variable corresponding to the Pareto optimal solution, is any decision variable in the feasible domain, is the feasible domain space, Represents decision variables Pareto Dominance Decision Variables .

[0029] Pareto dominance can be expressed as follows:

[0030] .

[0031] in, and They all represent the joint numbers. To use decision variables Time The objective function of the optimization problem for each joint is and are decision variables, Indicates that for any joint, the decision variable is used The objective function of the joint optimization problem calculated is less than or equal to the decision variable The objective function of the joint optimization problem is calculated; Indicates that there is at least one matching joints.

[0032] Optionally, based on the improved particle swarm algorithm, the inverse kinematics optimization problem of the robot arm is solved, and the Pareto optimal solution obtained when the final number of iterations is reached is used as the optimal decision variable, which specifically includes the following steps:

[0033] Get the target position and current position of the robot arm.

[0034] Generate an initial population and use it as the current population; the initial population includes several particles; the particles are decision variables.

[0035] Calculate the fitness of each particle in the current population, and determine the optimal position of the individual particle and the mean position of the particle; the fitness of the particle is the objective function value of the inverse kinematics optimization solution of the manipulator when the decision variable corresponding to the particle is used.

[0036] Calculate the dominance of each particle in the current population and obtain the Pareto optimal solution set.

[0037] According to the individual optimal position of the particle, the mean value of the particle position and the Pareto optimal solution set, the position and velocity of each particle in the current population are updated to obtain an intermediate population; the intermediate population includes several updated particles.

[0038] It is determined whether a maximum number of iterations has been reached, and a first determination result is obtained.

[0039] If the first judgment result is no, the intermediate population is used as the current population, and the process jumps to step: calculating the fitness of each particle in the current population, and determining the optimal position of the individual particle and the mean value of the particle position.

[0040] If the first judgment result is yes, the fitness of each particle in the current population is calculated, and the Pareto optimal solution in the current population is determined as the optimal decision variable.

[0041] Optionally, update the particle's position according to:

[0042] .

[0043] in, represents the number of iterations, Indicates The position of the i-th particle at the iteration, Indicates The velocity of the i-th particle at iteration .

[0044] Optionally, update the particle's velocity according to:

[0045] .

[0046] in, , , and are all random numbers in the range [0,1]. , and All are The learning factor of a particle, For the The optimal individual position of particles, is the position of any non-dominated particle, is the mean particle position.

[0047] On the other hand, the present invention provides a robotic arm inverse kinematics optimization solution system based on joint independent decision-making. When the robotic arm inverse kinematics optimization solution system based on joint independent decision-making is run by a computer, it executes the robotic arm inverse kinematics optimization solution method based on joint independent decision-making as described above.

[0048] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0049] The present invention provides a method and system for optimizing and solving inverse kinematics of a robot arm based on independent joint decision-making. The method comprises the following steps: taking the joints of the robot arm as the main body, establishing an optimization and solving problem for inverse kinematics of the robot arm; defining a Pareto optimal solution set for the optimization and solving problem for inverse kinematics of the robot arm based on the concept of Pareto dominance in game theory; solving the optimization and solving problem for inverse kinematics of the robot arm based on an improved particle swarm algorithm, and taking the Pareto optimal solution obtained when the final number of iterations is reached as the optimal decision variable, that is, the decision variable when the objective function of the optimization and solving problem for inverse kinematics of the robot arm is minimized; and controlling the rotation of the joints of the robot arm based on the optimal decision variable. The present invention designs the objective function of the inverse kinematics optimization problem based on the concept of independent joint decision-making, shifts the focus from the main body of the robotic arm to the joints of the robotic arm, fully considers the individualization and uniqueness of the joints of the robotic arm, adds a non-convex constraint that characterizes the coupling relationship between joints as a penalty term in the objective function, and establishes the connection between the objectives of each joint while reducing the constraints. In addition, the concept of Pareto dominance in game theory is introduced into the design of the solution algorithm, and an improved inverse kinematics particle swarm algorithm is proposed, which improves the global search capability in the particle optimization process. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 A flowchart of a method for optimizing and solving inverse kinematics of a robotic arm based on independent joint decision-making provided in Example 1 of the present invention.

[0052] Figure 2 A specific flow chart of step A3 in a method for optimizing inverse kinematics of a robotic arm based on independent joint decision-making provided in Example 1 of the present invention.

[0053] Figure 3 Schematic diagram of the operation results of the joint objective functions for solving the target posture 1 in Example 1 of the present invention.

[0054] Figure 4 Schematic diagram of the operation results of the joint objective functions for solving the target posture 2 in Example 1 of the present invention.

[0055] Figure 5 A module block diagram of a robotic arm inverse kinematics optimization solution system based on joint independent decision-making provided in Example 2 of the present invention.

[0056] Figure 6This is a diagram of the internal structure of a computer device provided in Example 4 of the present invention. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not 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.

[0058] The purpose of the present invention is to provide a method and system for solving the inverse kinematics optimization of a robotic arm based on joint independent decision-making, aiming to ensure the versatility of the algorithm for solving the multi-objective optimization problem of inverse kinematics of the robotic arm, the convergence of the optimization process and the optimality of the results.

[0059] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0060] Example 1.

[0061] like Figure 1 As shown, a method for optimizing the inverse kinematics of a robot arm based on independent joint decision-making in this embodiment includes the following steps:

[0062] A1. Taking the joints of the robot arm as the main body, establish the optimization solution of the inverse kinematics of the robot arm. The optimization solution of the inverse kinematics of the robot arm includes the optimization solution of each joint; the objective function of the optimization solution of any joint includes the completion cost of the joint's action according to the rotation angle and the penalty term designed using the Lagrangian operator method. In this embodiment, step A1 specifically includes the following steps:

[0063] A11. For any joint of the robotic arm, take the joint as the main body and establish the optimization solution problem of the joint.

[0064] A12. Comprehensively solve the optimization problems of all joints and establish the inverse kinematics optimization problem of the robot arm. The objective function of the inverse kinematics optimization problem of the robot arm can be expressed by formula (1):

[0065] (1).

[0066] in, The objective function for solving the inverse kinematics optimization problem of the robot arm is: For the The objective function of the optimization problem for each joint is , is the number of joints, is the cost of completing the action of the joint according to the rotation angle, is the penalty term coefficient, The penalty term designed for the Lagrangian operator method is: For the The rotation angle of each joint, for The lower limit of for The upper limit of is the set of rotation angles of all joints, is the feasible domain space of the rotation angle set.

[0067] Penalty coefficient Need to satisfy formula (2):

[0068] (2).

[0069] in, To find the gradient function.

[0070] Specifically, the penalty It can be expressed by formula (3):

[0071] (3).

[0072] in, , and are row and column numbers, respectively. is the coupling matrix between joints, is the coupling matrix between joints Line The elements of the column, is the end pose matrix of the robot arm, is the pose matrix of the end of the robot relative to the base of the robot, , The transformation matrix that represents the coupling relationship between two adjacent joints.

[0073] Transformation matrix of the coupling relationship between two adjacent joints It can be expressed by formula (4):

[0074] (4).

[0075] in, represents the cosine function cos, represents the sine function sin, is the offset of the connecting rod between two adjacent joints, is the length of the connecting rod between two adjacent joints, is the torsion angle of the connecting rod between two adjacent joints. For a certain robot arm, the transformation matrix Divide the rotation angle of the joint All other parameters have been determined.

[0076] A2. For the optimization problem of inverse kinematics of the robot arm, the Pareto optimal solution set is defined based on the concept of Pareto dominance in game theory. The Pareto optimal solution set includes several Pareto optimal solutions; the Pareto optimal solution is a decision variable that is not Pareto dominated by any decision variable in the feasible domain space; the decision variable includes the rotation angle of each joint. Specifically, the Pareto optimal solution set can be expressed by formula (5):

[0077] (5).

[0078] in, is the Pareto optimal solution set, is the decision variable corresponding to the Pareto optimal solution, is any decision variable in the feasible domain, is the feasible domain space, Represents decision variables Pareto Dominance Decision Variables .

[0079] The Pareto dominance relationship can be expressed by formula (6):

[0080] (6).

[0081] in, and They all represent the joint numbers. To use decision variables Time The objective function of the optimization problem for each joint is and are decision variables, Indicates that for any joint, the decision variable is used The objective function of the joint optimization problem calculated is less than or equal to the decision variable The objective function of the joint optimization problem is calculated; Indicates that there is at least one matching joints.

[0082] The essence of solving the inverse kinematics problem with joints as the main body is similar to the game problem. In this embodiment, the inverse kinematics problem is matched with the game problem through the above step A2. The joint can be regarded as a game problem participants; rotation angles of joints It can be regarded as the strategy of the participants in the game problem, and the decision variable set can be regarded as the feasible domain of the variables, that is, the strategy set The feasible space of decision variables; the decision value in the decision variable set It can be regarded as a combination of strategies of the participants; the value of the objective function of each joint Can be regarded as participants in the game problem The constraints of the inverse kinematics optimization problem can be regarded as the constraints of the game problem.

[0083] A3. Based on the improved particle swarm algorithm, the inverse kinematics optimization problem of the robot is solved, and the Pareto optimal solution obtained when the final number of iterations is reached is used as the optimal decision variable. The optimal decision variable is the decision variable when the objective function of the inverse kinematics optimization problem of the robot is minimized; in each iteration of the improved particle swarm algorithm, the position and velocity of each particle in the population are updated using the Pareto optimal solution set obtained in each iteration. In this embodiment, a metaheuristic algorithm is used to accelerate the solution, such as Figure 2 In the flowchart shown, step A3 specifically includes the following steps:

[0084] A31. Obtain the target position and current position of the robot arm.

[0085] A32. Generate an initial population and use the initial population as the current population; the initial population includes a number of particles; the particles are decision variables.

[0086] A33. Calculate the fitness of each particle in the current population, and determine the optimal position of the individual particle and the mean position of the particle; the fitness of the particle is the objective function value of the inverse kinematics optimization solution of the robot arm when the decision variable corresponding to the particle is used.

[0087] A34. Calculate the dominance of each particle in the current population and obtain the Pareto optimal solution set.

[0088] A35. Update the position and velocity of each particle in the current population according to the optimal position of the individual particle, the mean value of the particle position and the Pareto optimal solution set to obtain an intermediate population; the intermediate population includes several updated particles. Specifically, update the position of the particle according to formula (7):

[0089] (7).

[0090] in, represents the number of iterations, Indicates The iteration The position of the particle, in this problem, is strategy of a combination of strategies, Indicates The iteration The speed of a particle.

[0091] Update the particle velocity according to formula (8):

[0092] (8).

[0093] Among them, the speed update item includes four parts: , , and are all random numbers in the range of [0,1], which are the weights of the four parts. The first part is the part where the particle learns about its previous motion state. The second part is the part where each particle learns individually. For the The second learning factor of particles, , For the The third part is the part where the dominant particle learns from the non-dominated particle. For the The third learning factor of the particle, represents any non-dominated particle, ,when hour, , which means that the dominated particle randomly learns from a non-dominated particle. The fourth part is the part where the particle learns from the entire population. For the The fourth learning factor of the particle is is the mean value of particle position, which represents the mean value of all dimensional elements of all particles. , is the number of particles, and this part indicates that the particles learn from the average amount of the entire particle group.

[0094] A36. Determine whether the maximum number of iterations has been reached, and obtain a first determination result.

[0095] If the first judgment result is no, execute step A37: use the middle population as the current population and jump to step A33.

[0096] If the first judgment result is yes, then execute step A38: calculate the fitness of each particle in the current population, and determine the Pareto optimal solution in the current population as the optimal decision variable.

[0097] A4. Based on the optimal decision variables, control the joints of the robot arm to rotate. Specifically, since there are many Pareto optimal solutions, based on the optimal decision variables and combined with the actual problem requirements, a set of optimal decision variables is selected to control the joints of the robot arm to rotate.

[0098] The following takes a 2-DOF robot as an example to solve the inverse kinematics problem. The DH parameter settings of the robot are shown in Table 1.

[0099] Table 1 DH parameters of the robot arm

[0100]

[0101] The target pose 1 is set as shown in equation (9), and the target pose 2 is set as shown in equation (10).

[0102] (9).

[0103] (10).

[0104] The algorithm provided in this embodiment is used to solve the joint rotation angles corresponding to the target posture 1 and the target posture 2 respectively and calculate the posture error. Figure 3~4 , which mainly shows the distribution of non-dominated particles, such as Figure 3~4 As shown in Figure 2, the set of non-dominated particles forms a boundary, the Pareto front. The positions of non-dominated particles This is the joint rotation angle required to solve the inverse kinematics problem of the robot. The running results are shown in Tables 2 and 3.

[0105] Table 2 Optimization results of target pose 1

[0106]

[0107] Table 3 Optimization results of target pose 2

[0108]

[0109] Tables 2 and 3 show the non-dominated solution results and their corresponding objective function values ​​and pose errors. According to Tables 2 and 3, it can be found that target pose 1 has 25 non-dominated solutions and target pose 2 has 20 non-dominated solutions.

[0110] In practical applications, after obtaining the Pareto front, a group of suitable solutions must be selected from multiple groups of solutions as input information. Generally, the selection is made according to the characteristics and preferences of the problem. In this embodiment, a group of solutions with the smallest posture error is selected as the input information for the final application. As shown in Table 2, in the optimization solution results of the target posture 1, the solution with the smallest posture error is the 22nd group of solutions, which represents the joint rotation angle value of (-2.9584e-05, 1.8273), the corresponding objective function value is (0.0002, 0.5482), and the posture error is 5.6848e-05. As shown in Table 3, in the optimization solution results of the target posture 2, the solution with the smallest posture error is the 3rd group of solutions, which represents the joint rotation angle value of (-7.2198e-04, 1.0484), the corresponding objective function value is (2.1785e-04, 0.3145), and the posture error is 5.3691e-07.

[0111] The results show that the proposed algorithm can run effectively and obtain a converged solution set in a finite number of iterations. The error between the actual pose and the expected pose is small, and the result is highly accurate.

[0112] The present embodiment provides a method for optimizing and solving the inverse kinematics of a robotic arm based on independent joint decision-making, including: establishing an optimization and solving problem for the inverse kinematics of the robotic arm with the joints of the robotic arm as the main body; defining a Pareto optimal solution set for the optimization and solving problem for the inverse kinematics of the robotic arm based on the concept of Pareto dominance in game theory; solving the optimization and solving problem for the inverse kinematics of the robotic arm based on an improved particle swarm algorithm, and using the Pareto optimal solution obtained when the final number of iterations is reached as the optimal decision variable, that is, the decision variable when the objective function of the optimization and solving problem for the inverse kinematics of the robotic arm is minimized; and controlling the rotation of the joints of the robotic arm based on the optimal decision variable. In this embodiment, the objective function of the inverse kinematics optimization problem is designed based on the concept of independent joint decision-making, and the focus is shifted from the main body of the robot to the joints of the robot. The individuality and uniqueness of the joints of the robot are fully considered, and a non-convex constraint that characterizes the coupling relationship between joints is added to the objective function as a penalty term. While reducing the constraints, the connection between the targets of each joint is established. In addition, the concept of Pareto dominance in game theory is introduced into the design of the solution algorithm. An improved inverse kinematics particle swarm algorithm is proposed, which improves the global search capability in the particle optimization process.

[0113] Example 2.

[0114] In addition, the inverse kinematics optimization solution method of the robot arm based on joint independent decision-making in Example 1 of the present invention can also be solved by Figure 5 The architecture of the robot inverse kinematics optimization solution system based on joint independent decision-making is realized as shown in the figure. Figure 5As shown, the robot inverse kinematics optimization solution system may include a robot inverse kinematics optimization solution problem establishment module M1, a Pareto optimal solution set definition module M2, an improved particle swarm algorithm solution module M3, and a robot joint control module M4; some modules may also have sub-units for realizing their functions, for example, the module M1 also includes a joint optimization solution problem establishment unit and a robot inverse kinematics optimization solution problem synthesis unit. Of course, Figure 5 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different functions. Figure 5 One or at least two components of the system shown.

[0115] Example 3.

[0116] A computer program product includes a computer program, which, when executed by a processor, implements the steps of a method for optimizing inverse kinematics of a robotic arm based on joint independent decision-making in Example 1.

[0117] Example 4.

[0118] A computer device, which may be a database, may have an internal structure as shown in Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for optimizing the inverse kinematics of a robot arm based on independent joint decision-making in Example 1 is implemented.

[0119] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0120] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0121] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0122] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for optimizing the inverse kinematics of a robotic arm based on joint independent decision making, characterized in that: include: Taking the joints of the robot arm as the main body, establish the inverse kinematics optimization solution of the robot arm; The inverse kinematics optimization problem of the robot arm includes the optimization problem of each joint; the objective function of the optimization problem of any joint includes the completion cost of the joint's action according to the rotation angle and the penalty term designed using the Lagrangian operator method; For the inverse kinematics optimization solution problem of the robot arm, a Pareto optimal solution set is defined based on the concept of Pareto dominance in game theory; the Pareto optimal solution set includes several Pareto optimal solutions; the Pareto optimal solution is a decision variable that is not Pareto dominated by any decision variable in the feasible domain space; the decision variable includes the rotation angle of each joint; Based on the improved particle swarm algorithm, the inverse kinematics optimization problem of the robot arm is solved, and the Pareto optimal solution obtained when the final number of iterations is reached is used as the optimal decision variable; the optimal decision variable is the decision variable when the objective function of the inverse kinematics optimization problem of the robot arm is minimized; In each iteration of the improved particle swarm algorithm, the position and velocity of each particle in the population are updated using the Pareto optimal solution set obtained in each iteration; Based on the optimal decision variables, control each joint of the robotic arm to rotate; The objective function of the inverse kinematics optimization problem of the robot arm can be expressed by the following formula: ; in, The objective function for solving the inverse kinematics optimization problem of the robot arm is: For the The objective function of the optimization problem for each joint is , is the number of joints, is the cost of completing the action of the joint according to the rotation angle, is the penalty term coefficient, The penalty term designed for the Lagrangian operator method is: For the The rotation angle of each joint, for The lower limit of for The upper limit of is the set of rotation angles of all joints, is the feasible domain space of the rotation angle set; The penalty term can be expressed by the following formula: ; in, , and are row and column numbers, respectively. is the coupling matrix between joints, is the coupling matrix between joints Line The elements of the column, is the end pose matrix of the robot arm, is the pose matrix of the end of the robot relative to the base of the robot, , The transformation matrix that represents the coupling relationship between two adjacent joints; The transformation matrix of the coupling relationship between two adjacent joints can be expressed as follows: ; in, represents the cosine function cos, represents the sine function sin, is the offset of the connecting rod between two adjacent joints, is the length of the connecting rod between two adjacent joints, is the torsion angle of the connecting rod between two adjacent joints; Based on the improved particle swarm algorithm, the inverse kinematics optimization problem of the robot arm is solved, and the Pareto optimal solution obtained when the final number of iterations is reached is used as the optimal decision variable, specifically including: Get the target position and current position of the robot arm; Generate an initial population, and use the initial population as the current population; the initial population includes a plurality of particles; the particles are decision variables; Calculating the fitness of each particle in the current population, and determining the optimal position of the individual particle and the mean value of the particle position; the fitness of the particle is the objective function value of the inverse kinematics optimization solution of the manipulator when the decision variable corresponding to the particle is used; Calculate the dominance of each particle in the current population to obtain a Pareto optimal solution set; According to the individual optimal position of the particle, the mean value of the particle position and the Pareto optimal solution set, the position and speed of each particle in the current population are updated to obtain an intermediate population; the intermediate population includes a plurality of updated particles; Determine whether the maximum number of iterations has been reached, and obtain a first determination result; If the first judgment result is no, the intermediate population is used as the current population, and the process jumps to the step of calculating the fitness of each particle in the current population, and determining the optimal position of the individual particle and the mean value of the particle position; If the first judgment result is yes, the fitness of each particle in the current population is calculated, and the Pareto optimal solution in the current population is determined as the optimal decision variable.

2. The method for optimizing the inverse kinematics of a robot arm based on joint independent decision-making according to claim 1, characterized in that: Taking the joints of the robotic arm as the main body, the inverse kinematics optimization problem of the robotic arm is established, including: For any joint of the robot arm, taking the joint as the main body, an optimization problem for the joint is established; The optimization solutions of all joints are integrated to establish the inverse kinematics optimization solution of the robotic arm.

3. The method for optimizing the inverse kinematics of a robot arm based on joint independent decision-making according to claim 1, characterized in that: The penalty term coefficient satisfies the following formula: ; in, To find the gradient function.

4. The method for optimizing the inverse kinematics of a robot arm based on joint independent decision-making according to claim 1, characterized in that: The Pareto optimal solution set can be expressed by the following formula: ; in, is the Pareto optimal solution set, is the decision variable corresponding to the Pareto optimal solution, is any decision variable in the feasible domain, is the feasible domain space, Represents decision variables Pareto Dominance Decision Variables ; Pareto dominance can be expressed as follows: ; in, and All represent the joint numbers. To use decision variables Time The objective function of the optimization problem for each joint is and are decision variables, Indicates that for any joint, the decision variable is used The objective function of the joint optimization problem calculated is less than or equal to the decision variable The calculated objective function of the joint optimization problem; Indicates that there is at least one matching joints.

5. The method for optimizing the inverse kinematics of a robot arm based on joint independent decision-making according to claim 1, characterized in that: Update the particle's position according to the following formula: ; in, represents the number of iterations, Indicates The position of the i-th particle at the iteration, Indicates The velocity of the i-th particle at iteration .

6. The method for optimizing the inverse kinematics of a robot arm based on joint independent decision-making according to claim 5, characterized in that: Update the particle's velocity according to the following formula: ; in, , , and are all random numbers in the range [0,1]. , and All are The learning factor of a particle, For the The optimal individual position of particles, is the position of any non-dominated particle, is the mean particle position.

7. A robot arm inverse kinematics optimization solution system based on joint independent decision-making, characterized in that: When the robot arm inverse kinematics optimization solution system based on joint independent decision-making is run by a computer, it executes the robot arm inverse kinematics optimization solution method based on joint independent decision-making as described in any one of claims 1 to 6.