Mechanical arm rod piece size optimization method under task space

By establishing a kinematic model of the robotic arm and optimizing the length of the rod using a multi-objective genetic algorithm, the problem of flexibility and lightweight design of the robotic arm within a specific task space was solved, and the optimization of rod size and performance improvement were achieved.

CN118690502APending Publication Date: 2024-09-24CHINA ACAD OF SPACE TECH HANGZHOU CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410892276.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology is difficult to optimize the size of the robotic arm rod while meeting the requirements for flexibility and compact structure of the robotic arm. In particular, there are deficiencies in performance and lightweight design within a specific task space.

Method used

By establishing the kinematics model of the robotic arm, calculating the work space and volume, using a fast non-dominated sorting multi-objective genetic algorithm to optimize the length parameters of the rod, combining the Jacobian matrix and flexibility index, the optimization of the rod size is achieved, and in a specific Verification of postural flexibility within task space.

Benefits of technology

The shortening of the length of the robotic arm member is achieved, ensuring the flexibility and performance in the task space, meeting the lightweight design requirements of the robotic arm, and improving the compactness of the structure and operating efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690502A
    Figure CN118690502A
Patent Text Reader

Abstract

The invention provides a mechanical arm rod piece size optimization method in a task space, a mechanical arm comprises a plurality of connecting rods, the adjacent connecting rods are connected through joints, and the optimization method comprises the steps that fixed connection coordinate systems are established on all the connecting rods of the mechanical arm, a kinematic model for describing the relation between the adjacent connecting rod coordinate systems is established, and the kinematic model is established; a kinematics equation of the mechanical arm is obtained, a kinematics forward solution and a kinematics inverse solution of the mechanical arm are obtained, and then a jacobian matrix of the mechanical arm is solved; the working space of the mechanical arm and the volume of the working space are calculated; selecting a mechanical arm rod length utilization rate and a global relative operability index, and setting a target function; based on a fast non-dominated sorting multi-target genetic algorithm with an elitist strategy, mechanical arm rod piece length parameters are optimized, each individual is layered according to the dominated and non-dominated relation, then selection operation is conducted, an optimal solution set of the mechanical arm rod piece length is calculated, and an optimal solution of the rod piece length parameters in a specific task space is selected in the optimal solution set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for optimizing the size of a mechanical arm rod in a task space. Background Art

[0002] A robotic arm is a mechanical device that can simulate the movement of a human arm and complete specific tasks. It is a core component of various automated robots and production lines. In order to ensure that the robotic arm can perform corresponding operations on the target object and make the robotic arm more versatile, it is necessary to pay attention to its flexibility requirements during the design stage, and optimize the size parameters of the robotic arm connecting rod based on this. Existing research at home and abroad has also provided a variety of calculation indicators for the calculation of robotic arm flexibility: such as operability, condition number, global condition index (Global Conditioning Index, GCI) and minimum singular value, and combined multiple indicators for calculation to obtain the optimal rod size to meet the requirements of the robotic arm to perform multiple tasks.

[0003] However, in the actual design and use process, the robot arm needs to meet the weight requirements of the equipment structure while meeting the performance requirements. It also needs to consider its economy and aesthetics, and reduce the bloated and redundant mechanical structure. Therefore, when designing the main body structure, each rod of the robot arm often faces the need for lightweighting. This requires not only optimizing the mechanical arm structure in terms of mechanical properties, but also reducing the size of its rods accordingly to make the overall structure of the equipment more compact.

[0004] Existing analysis indicators often aim to maximize the manipulator's end-of-arm operating performance and optimize its rod length. Summary of the invention

[0005] In structured usage scenarios such as industrial assembly, medical treatment, and rehabilitation, the robot arm usually only needs to complete the corresponding operation tasks within a specific task space and faces some constraints of fixed end position and posture. Therefore, in order to meet the usage requirements and optimize flexibility within a specific task space, the length of the robot arm is optimized, and the shortest rod size that meets the operating performance is explored, which is of great significance to the main structure design of the robot arm and its lightweight.

[0006] In view of this, the present invention provides a method for optimizing the size of a robot arm rod in a task space, which can optimize the size of each rod of the robot arm and obtain the shortest rod length while meeting the flexibility requirements of the task space.

[0007] The present invention provides a method for optimizing the size of a mechanical arm rod in a task space, wherein the mechanical arm includes a plurality of connecting rods, and adjacent connecting rods are connected by joints. The optimization includes:

[0008] S1: Establish a fixed coordinate system on all the links of the robot arm, establish a kinematic model that describes the relationship between the coordinate systems of adjacent links, obtain the kinematic equation of the robot arm, obtain the kinematic forward solution and inverse solution of the robot arm, and then solve the Jacobian matrix of the robot arm;

[0009] S2: Calculate the working space of the robot and the volume of the working space;

[0010] S3: Select the arm length utilization factor f L and the global relative operability ω index, setting the objective function min(f L ),max(ω);

[0011] S4: Based on the fast non-dominated sorting multi-objective genetic algorithm with elite strategy, the length parameters of the robot arm rod are optimized. Each individual is stratified according to the dominant and non-dominated relationship, and then the selection operation is performed to calculate the optimal solution set of the robot arm rod length. The optimal solution of the rod length parameter under the specific task space is selected from the optimal solution set;

[0012] Step S5: Verify the optimal solution of the rod length parameter based on the flexibility of the robot arm posture in a specific task space.

[0013] According to at least one embodiment of the present invention, in step S1, the vector product method is selected to solve the Jacobian matrix of the robot arm, and for the moving joints:

[0014]

[0015] For revolute joints:

[0016]

[0017] in is the position vector of the origin of the robot end coordinate system relative to the coordinate system {i} in the base coordinate system {0}, and z i is the unit vector of the z-axis in the coordinate system {i}.

[0018] According to at least one embodiment of the present invention,

[0019] Robot arm length utilization

[0020] Global relative maneuverability of the robot

[0021] Among them, V is the volume of the workspace that the robot can reach, and L is the length of the robot arm rod;

[0022] det() is the matrix determinant, J is the Jacobian matrix of the robot, λ iis the matrix (JJ T ) eigenvalue, λ1≥λ2≥...≥λ m , m is the number of rows in the matrix.

[0023] According to at least one embodiment of the present invention, in step S2, the convex hull method is used to solve the volume of the robot arm working space.

[0024] According to at least one embodiment of the present invention, step S4 includes:

[0025] S4-1: Set the length of the robot arm and the forearm as the decision variable, and the utilization rate of the robot arm length in a specific task space f L and the global relative operability ω, and set the objective function: min(f L ),max(ω);

[0026] S4-2: Start iterative optimization, give priority to higher non-dominated layers, until a group solution that meets the requirements is evolved;

[0027] S4-3 sorts the optimal solution set of the robot arm rod length according to the demand target, and obtains the optimal solution of the robot arm rod length parameters that meets the flexibility requirements under a specific task space.

[0028] According to at least one embodiment of the present invention, step S4-2 includes: during the calculation process, the evolving population is divided into multiple layers according to the relationship of dominance, the first layer is a collection of non-dominated individuals in the evolving population, and the second layer is a collection of non-dominated individuals obtained after removing the first layer individuals from the evolving population.

[0029] According to at least one embodiment of the present invention, step S4-2 includes:

[0030] Initialize the population;

[0031] Generate discrete workspace points at the end of the robot arm;

[0032] Calculate flexibility indicators;

[0033] Population evolution;

[0034] Compute fast nondominated sort and crowding.

[0035] According to at least one embodiment of the present invention, step S5 includes:

[0036] S5-1: Create a work sphere, grid the specific task space, and divide the task space into N cubes of the same size;

[0037] S5-2: Split the sphere, calculate the end position of the robot arm at a given extreme angle, obtain the end position matrix of the robot arm through forward kinematics calculation, and then find the corresponding points of the end of the robot arm on the spherical surface of the working ball, and split the spherical surface within the angle range according to the corresponding points of the maximum and minimum rotation angles;

[0038] S5-3: Posture verification, evenly distribute N on the segmented sphere b points, and determine the number n of kinematic inverse solutions of the robotic arm under the corresponding posture of each evenly distributed point. If the robotic arm has an inverse solution at each evenly distributed point, it proves that the robotic arm under the rod length parameters can meet the flexibility requirements of the operating angle and posture in the task space.

[0039] According to at least one embodiment of the present invention, in step S5, D=n / N b , when the robot arm can meet the flexibility requirements of use, D = 1, and in the singular position of the robot arm, D = 0.

[0040] The present invention also provides a computer-readable storage medium having software instructions stored thereon, wherein the software instructions implement the above method when executed.

[0041] Through the optimization method proposed by the present invention, the length of the rod of the optimized robot arm is greatly reduced, and it can ensure good performance in the task space. On the premise of lightweight robot arm, the present invention provides a systematic method and idea for optimizing the size of the robot arm in the task space. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The following will further explain the above characteristics, technical features, advantages and implementation methods of the present application in a clear and understandable manner through the description of the preferred embodiments and in combination with the accompanying drawings. The following drawings are only intended to illustrate and explain the present application, and do not limit the scope of the present application. Among them:

[0043] Figure 1 is an overall flow chart of the optimization method of the present invention;

[0044] Figure 2 The connecting rod coordinate system model of the mechanical arm example of the present invention;

[0045] Figure 3a-3d The motion trajectory of the robot end and joints obtained based on kinematic analysis;

[0046] Figure 4a-4d It is the end working space of the robot arm and its task space;

[0047] Figure 5 It is the non-dominated sorting and crowding calculation process in NSGA-Ⅱ genetic algorithm;

[0048] Figure 6a Figure 6b Optimize the process of robot arm length;

[0049] Figure 7 Verify the results of the optimized robot arm posture flexibility. DETAILED DESCRIPTION

[0050] In order to have a clearer understanding of the technical features, purposes and effects of the present application, the specific implementation methods of the present application are now described with reference to the accompanying drawings.

[0051] In the method for optimizing the size of a robot arm rod in a task space provided in the present application, first, forward and inverse kinematics analysis of the robot arm is performed, and the corresponding flexibility index is selected and calculated in combination with a specific task space; then, the flexibility indexes such as operability and rod length utilization rate in the task space are used as functions, and the structural parameters of the robot arm are optimized in combination with a genetic algorithm, and the shortest rod length that meets the requirements of each index is selected, and a comparison of the flexible workspace of the robot arm before and after optimization is drawn; finally, a method is proposed to verify the posture operability of the optimized robot arm in a specific task space to ensure the use and operation performance.

[0052] Specifically, the method for optimizing the size of a robot arm rod in a task space provided by the present invention includes:

[0053] Step S1: Robot arm kinematics analysis.

[0054] The DH (Denavit-Hartenberg) method is used to establish the kinematic model of the manipulator. A fixed coordinate system is established on all the links of the manipulator. The translation and rotation transformation of the position and attitude coordinates are realized through the homogeneous transformation matrix, thereby describing the relationship between the coordinate systems of adjacent links and obtaining the kinematic equation of the serial manipulator. The coordinate transformation relationship between joints i and i+1 is:

[0055]

[0056] Among them, θ represents the joint variable of the rotating joint, d represents the joint variable of the moving joint, a is the vertical distance between the joints, and α is the rotation angle between the joints. Starting from the reference coordinate system of the robot arm, all the way to its end effector, a series of changes between adjacent coordinate systems are completed to obtain the total transformation matrix of the robot arm, that is, to obtain its kinematic solution.

[0057] The inverse kinematics solution of the robot arm is the opposite of the forward solution process. It means that given the position and posture coordinates of the end of the robot arm, the input angles corresponding to each joint are solved. Considering that the axes of the three axes of most of the existing industrial robot arms always intersect at one point, they meet the Pieper criterion. Therefore, this method uses an analytical solution to perform inverse kinematics calculations on the robot arm. This method can obtain accurate inverse kinematics results, thereby obtaining the corresponding angles of each joint of the robot arm under a certain posture.

[0058] After the forward and inverse kinematics calculations, the Jacobian matrix of the robot is solved. Since the solution process involves a lot of complex calculations, the vector product method is selected for the solution.

[0059] For moving joints there are:

[0060]

[0061] For revolute joints:

[0062]

[0063] in is the position vector of the origin of the robot end coordinate system relative to the coordinate system {i} in the base coordinate system {0}, and z i is the unit vector of the z-axis in the coordinate system {i}.

[0064] Step S2: Calculation of the robot working space.

[0065] The workspace solution method is similar to the inverse kinematics solution method, in which the Monte Carlo method plays an important role in solving the robot's workspace. First, the calculation formula is obtained through the robot's forward kinematics solution to obtain the end position vector [p x p y p z ] T , and then take values ​​within the range of motion of each joint, and generate N random variables between 0 and 1 through uniform distribution. Define the same number of random values ​​for each joint.

[0066] θ i =θ imin +(θ imax -θ imin )rand(j)

[0067] Where rand(j) is the random variable value generated, i is the number of joints, and θ imin ~θ imax is the range of joint motion. Finally, the randomly generated values ​​of the N joint motion variables are substituted into the kinematic solution equation to find the corresponding end position. The larger the number of N, the more solutions are needed and the more complete the workspace is.

[0068] Step S3: Calculation of the robot arm flexibility index.

[0069] For the robot system, the longer the length of each rod, the larger the reachable workspace volume, and the robot can achieve a wider range of motion. However, if only based on the optimization index based on the workspace, for a robot with a specific task area, it will cause rod length redundancy and increase the weight of the robot. In summary, in order to consider both the reachable workspace volume and the length of the mechanism rod, the rod utilization index is selected. Its definition is as follows:

[0070]

[0071] V is the volume of the workspace that the robot can reach, L is the length of the robot arm, and f L The smaller it is, the larger the working space can be achieved with a smaller rod length.

[0072] In addition, in order to ensure the motion performance of the robot in the task space, this method selects a general flexibility quantitative calculation index, the maneuverability of the robot. This index is the determinant of the product of the Jacobian matrix of the robot and its transposed matrix:

[0073]

[0074] Where ω is the maneuverability of the robot, det() is the matrix determinant, and J is the Jacobian matrix of the robot. i is the matrix (JJ T ) eigenvalue. λ1≥λ2≥...≥λ m , m is the number of rows in the matrix. On this basis, in order to explore the distribution of the flexibility of the robot in the entire workspace, the maneuverability index of the robot is normalized and the global relative maneuverability is calculated:

[0075] μ i =ω i / ω max

[0076] ω i is the operability of a point in space, ω max is the maximum value of operability in the entire workspace, μ i The value range of μ is [0,1], i When μ = 0, the robot arm is in a singular position. i The larger the value, the better the motion performance of the robot at that position. i The flexibility is better in the region ≥0.4.

[0077] Step S4: Optimize the rod length parameters by combining the NSGA-Ⅱ multi-objective genetic algorithm.

[0078] For the above calculation indicators, the smaller the utilization rate of the rod length of the robot arm, the greater the global relative operability, and the better the performance of the robot arm. There are conflicts between its objectives, and it is difficult to construct a structure to obtain a solution that makes all objective functions optimal. Therefore, the present invention combines a fast non-dominated sorting multi-objective genetic algorithm (NSGA-Ⅱ) with an elite strategy. The genetic algorithm improves the selection and regeneration method, stratifies each individual according to the dominant and non-dominated relationship, and then performs a selection operation to calculate the optimal solution set of the robot arm rod length, also known as the Pareto optimal solution. On this basis, the optimal solution for the rod length parameter under a specific task space is selected.

[0079] S4-1 sets the length of the robot arm and the forearm as the decision variable. Its range is defined as the constraint a≤l i ≤b,i=1,2,...,n, in order to shorten the rod length, set the existing rod length to the maximum value of the rod length range. Calculate the rod length utilization f of the robot arm under a specific task space L and the global relative operability ω, and set the objective function: min(f L ),max(ω).

[0080] S4-2 starts the iteration. This iterative optimization process gives priority to the higher non-dominated layers until a population solution that meets the requirements is evolved. During the calculation process, the evolving population is divided into several layers according to the relationship when it is dominated. The first layer is the set of non-dominated individuals in the evolving population, and the second layer is the set of non-dominated individuals obtained after removing the first layer of individuals from the evolving population. And so on. The selection operation first considers the first layer of non-dominated sets, and then moves downwards in sequence until the requirements of the new evolving population are met.

[0081] Finally, S4-3 sorts the optimal solution set of the robot arm rod length according to the demand target, and obtains the optimal solution of the robot arm rod length parameters that meets the flexibility requirements under a specific task space.

[0082] Step S5: Verification of rod length parameters based on the flexibility of the robot arm posture in the task space.

[0083] In order to ensure the operational performance of the optimized robotic arm, the present invention introduces the concept of a working ball on the basis of the above steps and proposes a method to verify the posture of the robotic arm in the task space:

[0084] S5-1 Create a working sphere: Grid the specific task space and divide it into N small cubes of the same size. Select the center point of each cube and define it as the center point of the sphere. The working sphere is tangent to each small cube. Points are evenly distributed on the surface of the sphere. The line connecting each point on the sphere and the center of the sphere is the corresponding posture of the robot arm. The coordinates of each point on the sphere are p i =[xk y k z k ] T , the pose matrix of each point's coordinate system relative to the base coordinate system is

[0085] S5-2 Segmentation of sphere: Calculate the end position of the robot arm at a given extreme angle, obtain its end position matrix through forward kinematics calculation, and then find its corresponding points on the spherical surface of the working ball. Segment the spherical surface within the angle range according to the corresponding points of the maximum and minimum rotation angles.

[0086] S5-3 Posture verification: N is evenly distributed on the segmented sphere b Points, determine the number n of kinematic inverse solutions of the robot arm under the corresponding posture of each uniformly distributed point. If the robot arm has an inverse solution at each uniformly distributed point, it proves that the robot arm under the rod length parameter can meet the flexibility requirements of operation angle and posture in the task space. Define D = n / N b When the robot can meet the flexibility requirements of use, D = 1. Similarly, in the singular position of the robot, D = 0.

[0087] The present invention will be described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the examples are only for illustrating the present invention and are not intended to limit the scope of use of the present invention.

[0088] Take a specific six-degree-of-freedom robot as an example. The task space of the robot is a rectangular area with a length of 600mm, a width of 600mm, and a height of 1000mm. The center is 1000mm away from the center of the robot and 800mm above the ground. The robot is required to ensure that it can cover various postures when rotating around the Y axis by -10° to 60° and around the isocenter X axis by ±30° in the task space. Figure 1 As shown, the method for optimizing the size of a robot arm rod in a task space provided in this embodiment includes the following steps:

[0089] Step S1: Initialize the robot arm parameters and perform modeling calculations.

[0090] S1-1 obtains the structural parameters of the robot arm and the DH parameter table corresponding to the robot arm.

[0091] Table 1: DH parameter table of the robot arm

[0092]

[0093] The numbers 1...6 represent the 1st...6th joints. The coordinate system is simplified by the robot configuration. Its kinematic model is obtained (such as Figure 2 )

[0094] S1-2 performs forward and inverse kinematics calculations on the robot. Substitute the relationship between the coordinate systems of each link into the homogeneous transformation matrix to obtain the total transformation matrix of the robot and obtain its kinematic solution:

[0095]

[0096] n x =c1[c 23 (c4c5c6-s4s6)-s 23 s5c6]+s1(s4c5c6+c4s6)

[0097] n y =s1[c 23 (c4c5c6-s4s6)-s 23 s5c6]-c1(s4c5c6+c4s6)

[0098] n z =-s 23 (c4c5c6-s4s6)-s 23 s5c6

[0099] o x =c1[c 23 (-c4c5c6-s4s6)+s 23 s5c6]-s1(s4c5c6+c4s6)

[0100] o y =s1[c 23 (-c4c5s4-s4c6)-s 23 s5c6]+c1(s4c5c6-c4s6)

[0101] o z =s 23 (c4c5s6+s4c5)+c 23 s5s6

[0102] a x =-c1(c 23 c4s5+s 23 c5)+c 23 s5s6,a y =-s1(c 23 c4s5+s 23 c5)+c1s4s5

[0103] a z =s 23 c4s5-c 23 c5

[0104] p x =c1(c 23a3-s 23 d4+c2a1+a1),p y =s1(c 23 a3-s 23 d4+c2a1+a1)

[0105] p z =-s 23 a3-c 23 d4-s2a2

[0106] Where c1 = cosθ1,c 23 =cos(θ2+θ3), 1...6 represents the joints of the robot arm, p=[p x p y p z ] T is the position matrix, and R = [n oα] is the attitude matrix.

[0107] After that, the inverse kinematics calculation of the robot arm is performed. First, the angle θ1 of joint 1 is solved. In the formula Multiply both sides from the left get:

[0108]

[0109] According to the trigonometric function solution, θ1 can be solved as:

[0110]

[0111] By comparison, we can get:

[0112] c1a x +s1a y =-c 234 s5,a z =s 234 s5

[0113] When s5=0, θ5=0 or θ5=π, it is singular and cannot solve θ2, θ3, θ4. When s5≠0

[0114]

[0115] c1p x +s1p y =a3c 23 +a2c2-d5s 234

[0116] p z -d1=-a3c 23 -a2s2-d5c 234

[0117] Combining the above two equations:

[0118]

[0119] A=2a2N,B=2a2M, M=c1p x +s1p y -d5c 234 ,

[0120] N=p z -d1+d5c 234 .

[0121] Substituting θ2 into the formula:

[0122]

[0123] By θ 23 We can find that θ4 = θ 234 -θ 23 , θ3=θ 23 -θ2, thus obtaining 6 joint variables.

[0124] Perform forward and inverse kinematics calculations on the robotic arm.

[0125] S1-3 Solve the Jacobian matrix of the robot arm. For the six-degree-of-freedom robot arm selected in this example:

[0126] The joint variable is θ i , the Jacobian matrix finally solved is a 6×6 matrix, and its structure is:

[0127] T J(q)=[ T J1(q) T J2(q) T J3(q) T J4(q) T J5(q) T J6(q)]

[0128] For the first joint Jacobian vector from the end of the robot arm, the corresponding transformation matrix is Substituting n, o, p, a into the formula, we can get the sixth column vector of the Jacobian matrix:

[0129] T J6(q)=[0 0 0 0 0 1] T

[0130] For the second joint Jacobian vector from the end of the robot arm, the corresponding transformation matrix is Substituting n, o, p, a into the formula, we can get the fifth column vector of the Jacobian matrix:

[0131]

[0132] For the third joint Jacobian vector from the end of the robot arm, the corresponding transformation matrix is Substituting n, o, p, a into the formula, we can get the fourth column vector of the Jacobian matrix:

[0133]

[0134] And so on: T J3(q)=[J31 J32 J33 J34 J35 J36] T J31=(c6(s3s5-c3c4c5)+c3s4s6)(d6(c3c5-c4s3s5)+d4c3)

[0135] -(c6(c3s5+c4c5s3)-s3s4s6)(d6(c5s3-c3c4s5)+d4c3)

[0136] J32=(s6(c3s5-c4c5s3)+c6s3s4)(d6(c5s3+c3c4s5)+d4c3)

[0137] -(s6(s3s5-c3c4c5)-c3c6s4)(d6(c3c5-c4s3s5)+d4c3)

[0138] J33=(d6(c3c5-c4s3s5)+d4s3)(c5s3+c3c4s5)-(d6(c5s3-c3c4c5)

[0139] +d4s3)(c3c5-c4s3s5)

[0140] J34=-c4s6-c5c6s4,J35=c5s4s6-c4c6,J36=s4s5 T J2(q) and T The calculation method of J1(q) is the same as above, from which the Jacobian matrices of various orders of the robot can be obtained.

[0141] S1-4 Robotic Arm Model Establishment and Simulation

[0142] The above parameters are used to establish a six-degree-of-freedom serial robot model in MATLAB. After that, the initial and final positions of the robot are given, and the corresponding kinematic calculations are performed to obtain the motion trajectory of the end joint in the workspace (such as Figure 3a-3dThe solution is consistent with the simulation results, and the position, velocity, and acceleration curves of the rotation of each joint of the robot are smooth during the movement. The velocity curve is smooth without sudden changes. It shows that during the movement of the robot, the joints move well, there is no joint impact phenomenon, and it has good movement performance, which also proves the rationality and accuracy of the calculation.

[0143] Step S2: Calculation of the robot working space.

[0144] The relationship between the workspace and the robot joint space is: Where q is the generalized joint variable; Q is the joint space; W R is the workspace; R 3 is a three-dimensional space. ω(q):Q→R 3 is the end space position obtained after forward kinematics calculation. The rotation range of each joint angle of the robot arm is as follows:

[0145]

[0146] In order to quantitatively compare the workspace, the present invention uses the convex hull method to solve the volume of the robot workspace. It is defined as that in a real vector space V, for a given set X, the intersection S of all convex sets X is called the convex hull of X, which can be expressed by all points in X (X1,...,X N ). Using the Convhull function in MATLAB, we can extract the points on the boundary surface of the point cloud image, and on this basis generate an envelope space composed of many triangular facets, so as to calculate the volume of the working space at the end of the robot arm.

[0147] Taking N = 30000, the Monte Carlo method is used to calculate the robot arm workspace and its volume, and the simulation image of the robot arm workspace and envelope space can be obtained, and the corresponding calculation values ​​(such as Figure 4a-4d shown).

[0148] Step S3: Robotic arm parameter optimization based on genetic algorithm

[0149] S3-1 sets genetic algorithm parameter variables.

[0150] According to the parameter optimization goal, the robot arm configuration is first analyzed. Set the decision variables. d1 corresponds to the height of the waist joint. In the design process, it is affected by the internal structure layout, and its length is not easy to change too much. a2 and d4 mainly correspond to the upper arm and lower arm. The initial parameters of the variable rod length are large, and they are mainly supporting structures, which are easy to grow or shorten. Therefore, the length of the robot arm a2 and d4 are set as decision variables. Affected by the size of the connector and the transmission, its parameters cannot be too small, so the range of change is set to

[0151] The present invention sets the mechanical arm length utilization factor f L The objective function is the global relative maneuverability ω. It is calculated based on the robot configuration and its specific task space. According to the design requirements, the activity range of its task space is a cube of 400×400×700, and the area is the green area in the workspace of Figure 4. Therefore, the rod length utilization rate In the formula, V1 is the workspace volume of the manipulator in the workspace. In order to quantitatively compare the manipulatability index of the manipulator with different rod lengths, the workspace points located in the task space are screened, and the global relative manipulatability μ of each point in the task space is calculated. i . i The number of points m with a value of ≥0.4 is defined as its objective function. At this point, the optimization problem of the rod length parameters of the robot arm can be transformed into the problem of solving the optimal value of the evaluation function:

[0152]

[0153] S3-2 Calculate the optimal rod length parameter solution set.

[0154] Substitute the above parameters into the genetic algorithm and start iterative calculation. It is mainly divided into the following six steps:

[0155] (1) Initialize the population: set the distribution range of the robot arm length parameter and set the evolution algebra calculator: i g ←0, the maximum evolutionary generation is I, K individuals are generated as the initial population, and the initial size parameter is taken as an individual in the initial population.

[0156] (2) Generation of discrete workspace points at the end of the robot arm: N workspace points are randomly generated in the workspace area of ​​the robot arm to obtain the workspace of the robot arm with different rod lengths.

[0157] (3) Flexibility index calculation: Calculate the robot arm length utilization and global relative maneuverability μ corresponding to a specific task space. i The number of points m ≥ 0.4.

[0158] (4) Population evolution: The fitness of individuals is evaluated, and selection, crossover and mutation are performed. The crossover operator and mutation operator use fixed-value crossover and mutation probabilities.

[0159] (5) Fast non-dominated sorting and crowding calculation: The paternal population and the child population are merged, and the individuals are fast non-dominated sorting and crowding calculation are performed. The principle is as follows Figure 5, set the ordinal value of an individual that is completely unconstrained to 1, and first select the solution set in rank1 during the screening process. Then calculate the crowding distance between individuals. The higher the crowding degree, the more thoroughly the area is explored, and it is easy to fall into a local optimal solution. Therefore, individuals with a large crowding distance, that is, a low crowding degree, are preferentially selected to enter the next round of screening.

[0160] (6) Judgment of termination condition: Set the number of iterations as the termination condition. If i g < I, then i g = i g + 1, and evolve to the next generation. If i g ≥ I, then terminate the evolution and output the final solution.

[0161] Optimization results of the rod length parameters of S3-3.

[0162] The initial values of the rod length parameters are: a2 = 1.15m, d4 = 1.245m. The number of individuals in the initial population K = 10, and the maximum number of evolution generations is I = 100. The crossover probability is set to 0.8, and the mutation probability is set to 0.2. The optimization process is as Figure 6a shown in the four-dimensional graph. The parameters a2 and d4 correspond to the X and Y coordinate axes in the graph, the rod length utilization rate corresponds to the Z-axis parameter, and the value of m corresponds to the color coordinate axis. The smaller the Z-axis parameter, the larger the value corresponding to the color of m, and the better the performance of the robotic arm under the corresponding parameters. The fitness function of the objective function is as Figure 6b shown. The outermost bold dots are the Pareto optimal solution set obtained after optimization by the genetic algorithm. Select the shortest rod size within this solution set.

[0163] Before optimization, the fitness function value of the rod utilization rate was 1.013, and the position where the global relative manipulability in the divided area was greater than 0.4 was 69.2%. After optimization, a2 = 0.86m, d4 = 0.88m. The length of the large arm of the robotic arm was shortened by 0.29m, the length of the small arm was shortened by 0.365m, and the overall rod length was shortened by 0.655m. The fitness function value of its rod utilization rate was 0.8658, and the position where the global relative manipulability in the divided area was greater than 0.4 was 71.4%. In summary, through the optimization method proposed in the present invention, while shortening the rod length of the robotic arm to make the structure more compact, the rod length utilization rate performance of the robotic arm for a specific task space is better, and the flexibility requirements in the active task space are ensured, achieving better operating performance.

[0164] Step S5: Verify the pose flexibility of the robotic arm after optimizing the rod length parameters.

[0165] In order to ensure the feasibility of the optimization results, the attitude operability working ball method proposed in the present invention is used for verification, and it is calculated whether the robot arm after parameter optimization can meet the posture requirements of the rotation range of its end tool at each position in the specific task space. The task space is evenly divided into 1000 small cubes to create a working ball. Select the four extreme positions of the end of the robot arm rotating -10° around the Y axis and -30° around the X axis; rotating -10° around the Y axis and 30° around the X axis; rotating 60° around the Y axis and -30° around the X axis; rotating 60° around the Y axis and 30° around the X axis, and convert the center position matrix p of each ball into the center position matrix p of each ball. i =[x k y k z k ] T Multiply the rotation angle on the right to get the extreme terminal posture matrix, and divide the working ball. Traverse the postures on the working ball at each position, and perform inverse kinematics solution for each terminal posture.

[0166] If there is an inverse kinematic solution for the position of each point on the working ball, D = 1, it proves that the robot can meet the flexibility requirements required for operation at this point. If the robot can meet the flexibility requirements of each point in the task space after optimization, it proves that there is no singular position in this area, which meets the operation requirements, and the optimization result of the rod length parameter corresponding to the robot is reasonable.

[0167] The results of the posture flexibility of the robot arm at each point in the workspace after optimization are as follows: Figure 7 As shown in the figure, the value of the flexibility D of the robot arm at each point after optimization is represented by different colors. Through verification, after the parameters are optimized by this method, the points where the flexibility of the robot arm meets the requirements can cover the entire task space and meet the requirements of operation and use, proving the feasibility of this method.

[0168] The robot arm parameter optimization method under task space proposed in the present invention effectively makes up for the problem that the optimal rod length of the robot arm is not set for a specific workspace in existing research. It can effectively meet the lightweight design requirements of the robot arm while meeting its operation and use performance.

[0169] Another advantage of the present invention is that a method for verifying the posture of a manipulator in a specific space is proposed. A working ball is created at each position in the task space, and is segmented by extreme postures, and each posture on the working ball is traversed to determine the posture operability of the manipulator. It has been verified that this method can effectively ensure the operability and flexibility of the optimized manipulator. In addition, this method can be generally used to determine whether the manipulator can meet the operational performance of the task space.

[0170] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention.

Claims

1. A method for optimizing the size of a robot arm rod in a task space, wherein the robot arm comprises a plurality of connecting rods, and adjacent connecting rods are connected by joints, and the optimization method comprises: S1: Establish a fixed coordinate system on all the links of the robot arm, establish a kinematic model that describes the relationship between the coordinate systems of adjacent links, obtain the kinematic equation of the robot arm, obtain the kinematic forward solution and inverse solution of the robot arm, and then solve the Jacobian matrix of the robot arm; S2: Calculate the working space of the robot and the volume of the working space; S3: Select the arm length utilization factor f L and the global relative operability ω index, setting the objective function min(f L ),max(ω); S4: Based on the fast non-dominated sorting multi-objective genetic algorithm with elite strategy, the length parameters of the robot arm rod are optimized. Each individual is stratified according to the dominant and non-dominated relationship, and then the selection operation is performed to calculate the optimal solution set of the robot arm rod length. The optimal solution of the rod length parameter under the specific task space is selected from the optimal solution set; Step S5: Verify the optimal solution of the rod length parameter based on the flexibility of the robot arm posture in a specific task space.

2. The method according to claim 1, wherein: In step S1, the vector product method is selected to solve the Jacobian matrix of the robot arm. For the moving joints, there is: For revolute joints: in is the position vector of the origin of the robot end coordinate system relative to the coordinate system {i} in the base coordinate system {0}, and z i is the unit vector of the z-axis in the coordinate system {i}.

3. The method according to claim 1, wherein: Robot arm length utilization Global relative maneuverability of the robot Among them, V is the volume of the workspace that the robot can reach, and L is the length of the robot arm rod; det() is the matrix determinant, J is the Jacobian matrix of the robot, λ i is the matrix (JJ T ) eigenvalue, λ1≥λ2≥...≥λ m , m is the number of rows in the matrix.

4. The method according to claim 1, wherein: In step S2, the convex hull method is used to solve the volume of the robot arm's working space.

5. The method according to claim 1, wherein: Step S4 includes: S4-1: Set the length of the robot arm and the forearm as the decision variable, and the utilization rate of the robot arm length in a specific task space f L and the global relative operability ω, and set the objective function: min(f L ),max(ω); S4-2: Start iterative optimization, give priority to higher non-dominated layers, until a group solution that meets the requirements is evolved; S4-3 sorts the optimal solution set of the robot arm rod length according to the demand target, and obtains the optimal solution of the robot arm rod length parameters that meets the flexibility requirements under a specific task space.

6. The method according to claim 5, wherein: Step S4-2 includes: during the calculation process, the evolutionary population is divided into multiple layers according to the relationship of dominance, the first layer is the collection of non-dominated individuals in the evolutionary population, and the second layer is the collection of non-dominated individuals obtained after removing the first layer individuals from the evolutionary population.

7. The method according to claim 5, wherein: Step S4-2 includes: Initialize the population; Generate discrete workspace points at the end of the robot arm; Calculate flexibility indicators; Population evolution; Compute fast nondominated sort and crowding.

8. The method according to claim 1, wherein: Step S5 includes: S5-1: Create a work sphere, grid the specific task space, and divide the task space into N cubes of the same size; S5-2: Split the sphere, calculate the end position of the robot arm at a given extreme angle, obtain the end position matrix of the robot arm through forward kinematics calculation, and then find the corresponding points of the end of the robot arm on the spherical surface of the working ball, and split the spherical surface within the angle range according to the corresponding points of the maximum and minimum rotation angles; S5-3: Posture verification, evenly distribute N on the segmented sphere b points, and determine the number n of kinematic inverse solutions of the robotic arm under the corresponding posture of each evenly distributed point. If the robotic arm has an inverse solution at each evenly distributed point, it proves that the robotic arm under the rod length parameter can meet the flexibility requirements of the operating angle and posture in the task space.

9. The method according to claim 7, wherein: In step S5, D = n / N b , when the robot arm can meet the flexibility requirements of use, D = 1, and in the singular position of the robot arm, D = 0.

10. A computer-readable storage medium having stored thereon software instructions which, when executed, implement the method of any one of claims 1-9.