Grinding robot trajectory planning optimization method and equipment based on machine vision
By using machine vision-based methods, combined with image recognition and multi-objective genetic algorithms, the trajectory planning of the polishing robot is optimized, solving the problems of inflexible and inaccurate trajectory planning in the existing technology, and achieving smoothness and accuracy of the robot's movement.
Patent Information
- Application Number
- CN202411009695.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing grinding robot's trajectory planning lacks flexibility and intelligence, and it cannot automatically adjust the trajectory planning according to the shape of the grinding area, resulting in unstable and imprecise movement.
Using a method based on machine vision, by determining the Cartesian coordinates and joint coordinates of the grinding area, combined with image recognition technology and multi-objective genetic algorithms, a multi-objective optimization function is established to optimize trajectory planning and ensure that the trajectory meets kinematic constraints.
It improves the flexibility and intelligence level of the polishing robot, ensures the smoothness and accuracy of movement, and avoids unfeasible or unreasonable optimization trajectories.
Smart Images

Figure CN118848975A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of robot trajectory planning optimization, and specifically designs a polishing robot trajectory planning optimization method and equipment based on machine vision. Background Art
[0002] At present, with the rapid development of China's intelligent manufacturing, grinding robots are increasingly widely used. The existing grinding robot trajectory planning is generally to manually set the joint angle, speed, acceleration and other parameters of the robot arm after the trajectory is given, and the motion trajectory is planned by manual teaching programming, or one of the trajectory planning strategies such as polynomial interpolation and B-spline interpolation is used for planning. It is impossible to automatically adjust the trajectory planning strategy according to the shape of the grinding area, thus limiting the flexibility and intelligence level of the grinding robot.
[0003] In actual production applications, the motion trajectory of the polishing robot also needs to be optimized to ensure optimal time and smoothness and vibration-free movement of the robot, thereby improving production efficiency. However, most of the existing technologies do not consider both kinematic constraints and design variables at the same time, which may result in the optimized trajectory not meeting the actual kinematic requirements, thereby generating an unfeasible or unreasonable optimized trajectory, and failing to ensure the smoothness and accuracy of the robot's movement.
[0004] Therefore, the polishing robot in the prior art lacks flexibility and intelligence, and cannot guarantee the stability and accuracy of movement. Summary of the invention
[0005] In order to overcome the above technical defects, the present invention provides a polishing robot trajectory planning optimization method and equipment based on machine vision, which can improve the flexibility and intelligence level of the polishing robot while ensuring the stability and accuracy of the movement.
[0006] In order to solve the above problems, the present invention provides a polishing robot trajectory planning optimization method based on machine vision, comprising:
[0007] Determine the Cartesian coordinates of the joint point in the grinding area;
[0008] Determine the joint coordinates of the joint point based on the DH model and the Cartesian coordinates;
[0009] Determining the characteristics of the polishing area based on image recognition technology;
[0010] Determining a trajectory planning strategy according to the characteristics of the polishing area;
[0011] Establishing a multi-objective optimization function based on the trajectory planning strategy, the joint coordinates, the time interval sequence between the joint points and the joint average pulse;
[0012] The multi-objective optimization function is solved by improving the multi-objective genetic algorithm to determine the optimal trajectory.
[0013] Compared with the prior art, the beneficial effects of the machine vision-based polishing robot trajectory planning optimization method provided by the present invention are as follows: the trajectory planning strategy is determined by the characteristics of the polishing area, instead of using a fixed trajectory planning strategy to plan the trajectory, thereby improving the flexibility and intelligence level of the polishing robot; the constraints can be obtained according to the joint coordinates, and the time interval sequence between the joint points and the average joint pulse are used as design variables to achieve trajectory optimization while considering the constraints and design variables, avoiding the generation of infeasible or unreasonable optimization trajectories, and ensuring the smoothness and accuracy of the polishing robot's movement.
[0014] Optionally, determining the Cartesian coordinates of the joint points in the polishing area includes:
[0015] Determining point cloud data of the polishing area through a three-dimensional visual inspection system;
[0016] The Cartesian coordinates are determined according to the point cloud data.
[0017] Optionally, determining the joint coordinates of the joint point based on the DH model and the Cartesian coordinates includes:
[0018] Establishing the DH model according to kinematic parameters;
[0019] Through the DH model, the inverse kinematics of the Cartesian coordinates is solved to determine the joint coordinates of the joint point.
[0020] Optionally, determining the features of the polishing area based on image recognition technology includes:
[0021] Preprocessing the image of the polishing area by using the image recognition technology of the three-dimensional visual inspection system;
[0022] Based on a convolutional neural network, a target Yolov3-tiny algorithm, and the image after the preprocessing, extracting features of different levels in the image;
[0023] The features at different levels are fused to determine the features of the polishing area.
[0024] Optionally, the target Yolov3-tiny algorithm is an improved Yolov3-tiny algorithm, and the Yolov3-tiny algorithm is improved to obtain the target Yolov3-tiny algorithm, including:
[0025] Add convolutional layers to the network of the Yolov3-tiny algorithm;
[0026] The convolutional layers are densely connected to extract high-level features of the image.
[0027] Optionally, determining the trajectory planning strategy according to the characteristics of the polishing area includes:
[0028] Determining the type of the polishing area according to the characteristics of the polishing area;
[0029] The polishing area includes a polishing edge area and a polishing surface area;
[0030] When the polishing edge area is a straight line or an arc, and the polishing surface area is a plane or a simple curved surface, linear interpolation or circular interpolation is determined as the trajectory planning strategy;
[0031] When the polishing edge area is a complex curve and the polishing surface area is a complex curved surface, B-spline interpolation is determined as the trajectory planning strategy.
[0032] Optionally, the multi-objective optimization function is established based on the trajectory planning strategy, the joint coordinates, the time interval sequence between the joint points and the joint average pulse, including:
[0033] Using the trajectory planning strategy as the optimization target of the multi-objective optimization function;
[0034] According to the joint coordinates, the joint angle, angular velocity, angular acceleration, angular jerk and joint torque of each axis are obtained, and used as constraints of the multi-objective optimization function;
[0035] Using the time interval sequence between the joint points and the joint average pulse as the design variables of the multi-objective optimization function;
[0036] The multi-objective optimization function is established according to the optimization objective, the constraint conditions and the design variables.
[0037] Optionally, solving the multi-objective optimization function by improving the multi-objective genetic algorithm to determine the optimal trajectory includes:
[0038] Randomly generate a parent population of size N, and set the initial values of the crossover distribution coefficient and the variation distribution coefficient;
[0039] Generate a child population of size N from the parent population through non-dominated sorting, selection, crossover and mutation operations, and merge the parent population and the child population to obtain a merged population of size 2N;
[0040] Performing a fast non-dominated sort on the merged population to obtain non-dominated ranks corresponding to individuals in the merged population;
[0041] assigning the individuals to different non-dominated layers according to the non-dominated levels;
[0042] Calculating the individual crowding degree in the non-dominated layer;
[0043] Based on the non-dominated level, individual crowding degree and machine learning model, select N individuals from the merged population as a new parent population;
[0044] Based on the improved crossover strategy and mutation strategy, a new offspring population with a size of N is generated from the new parent population;
[0045] When the maximum evolutionary generation is reached, the output of the improved multi-objective genetic algorithm is determined as the optimal trajectory.
[0046] Optionally, the method for improving the crossover strategy includes: the crossover operator of the improved multi-objective genetic algorithm adopts simulated binary crossover, and the crossover distribution coefficient is dynamically adjusted according to the evolutionary state of the population;
[0047] The method for improving the mutation strategy includes: the mutation operator of the improved multi-objective genetic algorithm adopts polynomial mutation, and the mutation distribution coefficient is dynamically adjusted according to the evolutionary state of the population.
[0048] The present invention also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the trajectory planning optimization method. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A flow chart of the trajectory planning optimization method of the present invention;
[0050] Figure 2 It is a schematic diagram of the D-H model in the present invention;
[0051] Figure 3 This is the D-H parameter table of FANUC R-2000iC / 165F robot;
[0052] Figure 4 The network structure diagram of the target Yolov3-tiny algorithm in the present invention;
[0053] Figure 5 is a schematic diagram of a dense module in the present invention;
[0054] Figure 6 The kinematic constraint parameter table of the FANUC R-2000iC / 165F robot of the present invention;
[0055] Figure 7 The figure is a flow chart of the improved multi-objective genetic algorithm in the present invention. DETAILED DESCRIPTION
[0056] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0057] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0058] See also Figure 1 As shown, the present invention provides a polishing robot trajectory planning optimization method based on machine vision, comprising:
[0059] S1: Determine the Cartesian coordinates of the joint point in the grinding area;
[0060] Determine the Cartesian coordinates of the joint points in the grinding area, including: according to the given grinding area, determine the point cloud data of the grinding area through the three-dimensional visual detection system, and obtain the Cartesian coordinates of a series of joint points, which are expressed in the form of [Q 1 ,Q 2 ,…,Q m ], where 1, 2, …m are the joint point numbers.
[0061] S2: Determine the joint coordinates of the joint point based on the DH model and the Cartesian coordinates;
[0062] Based on the DH model and the Cartesian coordinates, the joint coordinates of the joint points are determined, including: establishing the DH model according to the kinematic parameters, performing inverse kinematics on the Cartesian coordinates through the DH model, and determining the joint coordinates of the joint points, where the joint coordinates are the angle values of each joint of the grinding robot [q 1i ,q 2i ,...,q mi ] n×m , where i=1,2,…,n is the degree of freedom of the robot and 1,2,…,m is the ordinal number of the joint points.
[0063] In one embodiment of the present invention, the above planning method is performed by a FANUC R-2000iC / 165F robot, and the position and posture of the robot end tool coordinate system {N} relative to the base coordinate system {0} can be determined by solving the joint angles of the robot.
[0064] The DH model is used to describe the position and posture of each arm of the FANUC R-2000iC / 165F robot in Cartesian space. Figure 2 As shown, the posture parameter model of the robot is established according to the DH modeling method and the driver direction of the robot.
[0065] See also Figure 3 The following table shows the parameter table of FANUC R-2000iC / 165F robot DH.
[0066] The homogeneous transformation matrix from joint i-1 to joint i is calculated by DH parameters:
[0067]
[0068] in, represents the homogeneous transformation matrix from joint i-1 to joint i, c i represents cos(θ i ), s i represents sin(θ i ), ca i represents cos(α i ), i represents sin(α i ), d i Indicates the joint distance in the DH parameter table, a i Indicates the connecting rod length in the DH parameter table, θ i Represents the joint angle in the DH parameter table, α i Represents the connecting rod torsion angle in the DH parameter table. The homogeneous transformation matrix of the robot end coordinate system {N} relative to the base coordinate system {0} is obtained by multiplying the robot arm coordinate system transformation matrix.
[0069]
[0070] The above formula is the forward kinematics equation of the robot. Under the condition of known robot DH parameters, the position and posture of the robot end effector in Cartesian space are obtained.
[0071] Aiming at the needs of smooth grinding, the Pieper-based parameterized calculation method of the low-angle posture of the smooth grinding robot manipulator is used to solve the inverse kinematics and calculate the low-angle posture θ of the manipulator 1 ,θ 2 ,θ 3 ,θ4 ,θ 5 ,θ 6 The method is as follows: Given the target point position Target, use a simple displacement transformation to obtain the target position Target. The Target position and the origin of the coordinate system {4} 0 P 4ORG coincide with the origin 0 P 4ORG Only the first three joints are relevant, so you can use 0 P 4ORG Solving for θ 1 ,θ 2 ,θ 3 The Z of the next three joints 4 , Z 5 , Z 6 intersect at one point, and Z 5 With Y 4 , Y 6 Coaxial, the rotation order is the same as the ZYZ Euler angle. Using the ZYZ Euler angle solution method, θ can be solved 4 ,θ 5 ,θ 6 .
[0072] S3: Determine the characteristics of the polishing area based on image recognition technology;
[0073] Based on image recognition technology, the characteristics of the grinding area are determined, including:
[0074] Through the image recognition technology of the 3D visual inspection system, the image of the polishing area is preprocessed such as edge detection and area segmentation to extract the preliminary features of the polishing area.
[0075] Based on convolutional neural network, target Yolov3-tiny algorithm and preprocessed images, features at different levels in the image are extracted.
[0076] See also Figure 4 As shown, the target Yolov3-tiny algorithm is an improved Yolov3-tiny algorithm. The Yolov3-tiny algorithm is improved to obtain the target Yolov3-tiny algorithm, including: adding a convolutional layer to the network of the Yolov3-tiny algorithm and introducing a dense module.
[0077] See also Figure 5 As shown in the figure, the dense module is composed of convolutional layers connected to each other, and the layers are connected by dense connections to extract high-level features of the image. The features of different levels are fused to determine the features of the polishing area, so that the complex features of the polishing area can be effectively identified.
[0078] Through the image recognition technology of the 3D visual inspection system, the improved Yolov3-tiny algorithm adopts different trajectory planning strategies according to the shapes of different polishing surfaces of the workpiece, which improves the intelligence level of the polishing robot and enables the polishing robot to adapt to the changes in the target polishing path, enhancing the adaptability to workpieces with different polishing surfaces, thereby increasing the flexibility of the polishing robot. At the same time, the improved Yolov3-tiny algorithm adds convolutional layers to the original network and introduces dense modules to make the network narrower and calculate fewer parameters, prevent overfitting, and further alleviate the gradient disappearance problem. By combining the number of feature mapping channels through layer connection, the transmission of features and gradients is more effective, and the network is better trained.
[0079] S4: determining a trajectory planning strategy according to the characteristics of the polishing area;
[0080] According to the characteristics of the grinding area, determine the trajectory planning strategy, including:
[0081] Determine the type of the polishing area according to the characteristics of the polishing area, that is, determine the type of the polishing area according to information such as the geometric contour, size, direction of edge lines or texture flow direction of the characteristics of the polishing area;
[0082] The grinding area includes a grinding edge area and a grinding surface area;
[0083] The polished edge area includes straight lines, arcs and complex curves. The straight line features include uniform edge strength and consistent directionality, the arc features include continuity of curvature and periodic changes in edge strength, and the complex curve features include irregular edge changes and variable directionality.
[0084] The polishing surface area includes planes, simple curved surfaces and complex curved surfaces. The plane features include the parallelism of edge lines and the uniform distribution of textures. The simple curved surface features include the gradual texture flow and contour lines. The complex curved surface features include highly irregular textures and contours.
[0085] When the grinding edge area is a straight line or an arc, and the grinding surface area is a plane or a simple curved surface, linear interpolation or circular interpolation is determined as the trajectory planning strategy. The trajectory points are densified by linear interpolation or circular interpolation. The grinding processing posture can also be interpolated by the quaternion spherical linear interpolation method, as shown in the following formula, to obtain a smooth processing path in the workspace.
[0086]
[0087] where q 0 and q 1 is the target state of the two nodes in the polishing path, t is the interpolation parameter, the value range is t∈[0,1], ω is q 0 and q 1 The angle between two nodes.
[0088] When the grinding edge area is a complex curve and the grinding surface area is a complex surface, B-spline interpolation is determined as the trajectory planning strategy. By performing three non-uniform B-spline interpolations in the joint space, a low-impact stable trajectory can be obtained. The definition of B-spline interpolation and the De Boor-Cox recursive method are shown in the following formula.
[0089]
[0090] Where p(u) is the k-order non-uniform B-spline curve trajectory, d i is the control point of the B-spline curve trajectory, k is the order of the B-spline basis function, N i,1 (u) is the first-order basis function of the ith control point, N i,k (u) is the k-order basis function of the ith control point, and u is the node interval [u i ,u i+1 ] given parameters.
[0091] S5: establishing a multi-objective optimization function based on the trajectory planning strategy, the joint coordinates, the time interval sequence between the joint points and the joint average pulse;
[0092] Based on the trajectory planning strategy, joint coordinates, time interval sequence between joint points and joint average pulse, a multi-objective optimization function is established, including:
[0093] Taking trajectory planning strategy as the optimization target of multi-objective optimization function;
[0094] According to the joint coordinates, the joint angle, angular velocity, angular acceleration, angular jerk and joint torque of each axis are obtained, and they are used as the constraints of the multi-objective optimization function. Considering the constraints of the joint angle, angular velocity, angular acceleration, angular jerk and joint torque of each axis, the trajectory with the shortest running time and the smoothest movement is planned. The kinematic constraints of the robot are:
[0095]
[0096] Among them, m represents the mth joint, θ m (t), v m (t), a m (t), j m (t), τ m (t) respectively represent the rotation angle, velocity, acceleration, jerk and torque of the mth joint at time t, T represents the actual processing time, Ω m represents the range limit of the mth joint motion, v m,max 、a m,max 、j m,max , τm,max Respectively represent the maximum velocity, maximum acceleration, maximum jerk and maximum torque of the mth joint, T max Indicates the maximum processing time.
[0097] The time interval sequence between joint points and the joint average pulse are used as design variables of the multi-objective optimization function;
[0098] According to the optimization objectives, constraints and design variables, a multi-objective optimization function is established, including:
[0099] Initialize the time interval sequence between every two nodes in the joint space, that is, convert the constraint formula into the upper and lower limits of the time interval sequence between every two nodes of the design variable. Take the FANUC R-2000iC / 165F robot as an example, its kinematic parameter constraints refer to Figure 6 As shown, the upper and lower limits of the design variables are calculated according to the following formula.
[0100] m Δθ i = m P i - m P i-1 ,m=1,2,...,M; i=1,2,...,N
[0101]
[0102] t i,min =max{ ω t i,min , a t i,min , j t i,min , aω,ω t i,min , jaω,ω t i,min , jaω,a t i,min , jaω,aω t i,min}
[0103] t i,max =kt i,min
[0104] Among them, M and N represent the number of joint points and trajectory points respectively. m Δθ i represents the distance of the i-th trajectory of the m-th joint, m P i represents the i-th trajectory node of the m-th joint, m P i-1 represents the i-1th trajectory node of the mth joint, m ωmax , m a max , m j max Respectively represent the maximum angular velocity, maximum acceleration and maximum jerk of the mth joint. i,min It represents the shortest time required for the i-th trajectory to move in a straight line at a uniform speed. a t i,min represents the shortest time required for the i-th trajectory to move in a uniformly accelerated manner, j t i,min It represents the shortest time required for the i-th trajectory to move with uniform acceleration. aω,ω t i,min It indicates the shortest time required for the i-th segment of the trajectory to first move at a uniform acceleration until the angular velocity reaches the maximum value and then move in a straight line at a uniform speed. jaω,ω t i,min It indicates the shortest time required for the i-th segment of the trajectory to first accelerate until the angular velocity reaches the maximum value and then move in a straight line at a uniform speed. jaω, a t i,min It indicates the shortest time required for the i-th segment of the trajectory to first move in accelerated motion until the angular acceleration reaches its maximum value and then move in uniform accelerated motion. jaω,aω t i,min It represents the shortest time required for the i-th trajectory to move in the order of variable acceleration-uniform acceleration-uniform speed, t i,min It represents the lower limit of the running time of the i-th trajectory, which is obtained from the maximum running time of the seven motion conditions. i,max Indicates the upper limit of the running time of the i-th trajectory, which is t i,min k times of , generally k is 5.
[0105] Finally, the multi-objective optimization function of the efficient and low-impact trajectory is obtained as follows:
[0106]
[0107] where f 1 is the processing time function, t i+1 -t i represents the time consumed from the i-th trajectory point to the i+1-th trajectory point, f 2 is the average impulse function of all joints, j m represents the jerk of the m-th joint, represents the impulse of the m-th joint.
[0108] When initializing the design variables for multi-objective optimization, kinematic constraints are introduced into the upper and lower limits of the design variables, so that the trajectory can be optimized while taking into account the efficiency and stability of the polishing time, ensuring that the solution satisfies the kinematic constraints, avoiding the generation of infeasible solutions, preventing the optimization trajectory from being unreasonable or inaccurate, and improving the search efficiency and the quality of the solution.
[0109] S6: solving the multi-objective optimization function by improving the multi-objective genetic algorithm to determine the optimal trajectory;
[0110] See also Figure 7 As shown in the figure, the multi-objective optimization function is solved by improving the multi-objective genetic algorithm to determine the optimal trajectory, including:
[0111] Randomly generate a parent population P of size N t , and set the cross-distribution coefficient η c and the coefficient of variation distribution η m The initial value of
[0112] Through non-dominated sorting, selection, crossover and mutation operations, from the parent population P t The offspring population Q of size N is generated t , and the parent population P t and the offspring population Q t Merge to obtain a merged population R of size 2N t ;
[0113] For the combined population R t To perform a fast non-dominated sort, first perform a double loop to traverse the merged population R t , perform non-dominated comparison between two individuals, store the dominated individuals or record the number of dominated individuals. Then traverse the non-dominated rank 0 (Rank0) individuals and find all Rank1 individuals from the dominated set dominated by Rank0. Loop through until the merged population R t All individuals in are classified into levels, and the combined population R is obtained. t The non-dominant level corresponding to the individuals in ;
[0114] According to the non-dominance level, individuals are assigned to different non-dominant layers;
[0115] Calculate the individual crowding degree in the non-dominated layer. In the same non-dominated level, that is, in the same non-dominated layer, the individual crowding degree is equal to the sum of the distances of its adjacent individuals in each target dimension. The calculation formula is as follows:
[0116] D i =|f i+1,1 -f i-1,1 |+|f i+1,2 -f i-1,2 |+…+|fi+1,m -f i-1,m |
[0117] i=1,2,…,K
[0118] m=1,2,…,M
[0119] Where D i is the crowding degree of the ith individual, f i+1,m represents the function value of the i+1th individual under the mth objective function, f i-1,m It represents the function value of the i-1th individual in the mth objective function, K is the number of individuals with the same non-dominated level, and M is the target number.
[0120] Based on non-dominated rank, individual crowding degree and machine learning model, the merged population R t Select N individuals as the new parent population P t+1 ,include:
[0121] The machine learning model is introduced as a prediction model, which can predict the optimization potential of individuals based on their historical performance and characteristics, and serve as an auxiliary basis for the selection process. t According to the non-dominated level, individual crowding degree, and the score of the prediction model, appropriate individuals are selected to form a new parent population P of size N. t+1 .
[0122] Based on the improved crossover strategy and mutation strategy, the new parent population P t+1 A new offspring population Q of size N is generated t+1 , the new parent population P t+1 With the new offspring population Q t+1 The new merged population R is composed of a size of 2N t+1 , repeat the above operations until the condition for the end of the improved multi-objective genetic algorithm is met, that is, when the maximum evolutionary generation is reached, the output of the improved multi-objective genetic algorithm is determined as the optimal trajectory.
[0123] Dynamically adjust the crossover distribution coefficient η based on the evolutionary state of the population or feedback during the evolutionary process c and the coefficient of variation distribution η m In the early stages of the algorithm, a smaller cross-distribution coefficient η is set c and the coefficient of variation distribution η m To explore a wide range of solution spaces, thereby enhancing the global exploration capability. As the algorithm evolves, the values of these parameters are gradually increased to reduce the difference between the offspring population and the parent population, improve the local search accuracy for discovered good areas, and thus refine the quality of the solution.
[0124] The improvement methods of the crossover strategy include: improving the crossover operator of the multi-objective genetic algorithm to adopt simulated binary crossover, and dynamically adjusting the crossover distribution coefficient according to the evolutionary state of the population;
[0125] Coefficient of variation β qi The calculation formula is as follows:
[0126]
[0127] Among them, η c (g) represents the crossover distribution coefficient under the current generation, which is adaptively adjusted according to population diversity or evolution progress. Randomly generate a μ i ∈[0,1] Substitute into the above formula, we can determine the difference coefficient β qi , then let the two parents Crossover generates two offspring Its expression form:
[0128]
[0129] The improvement methods of mutation strategy include: improving the mutation operator of multi-objective genetic algorithm to adopt polynomial mutation, and dynamically adjusting the mutation distribution coefficient according to the evolutionary state of the population;
[0130] Coefficient of variation β i The calculation formula is as follows:
[0131]
[0132] Among them, η m (g) represents the coefficient of variation distribution under the current generation, which is also adaptively adjusted based on the population state and randomly generates a μ i ∈[0,1] Substitute into the above formula, we can determine the difference coefficient β i , and substitute it into the following offspring mutation formula:
[0133]
[0134] Among them, i = 1, 2, ..., d is the dimension of the design variable, t represents the number of generations, and They represent the upper and lower limits of the design variable of the i-th dimension respectively.
[0135] The improved multi-objective genetic algorithm adopts fast non-dominated sorting and individual crowding sorting to reduce the complexity of the sorting algorithm, greatly improve the algorithm's search ability and convergence speed, and has high optimization efficiency. At the same time, the algorithm introduces a machine learning model to evaluate the potential performance of each individual in the population, selects suitable individuals to enter the next generation based on the prediction results, and uses improved mutation and crossover strategies to dynamically adjust crossover and mutation parameters to achieve adaptive balance between global exploration and local development in different areas of the solution space, improve the algorithm's adaptability and the intelligence of the selection process, and thus find a higher quality solution for the trajectory planning problem of the polishing robot guided by machine vision in the context of multi-objective optimization.
[0136] Through the multi-objective optimization function, after the time-impact multi-objective optimization problem of the polishing robot is solved, the time-impact optimal trajectory plan of the polishing robot is output.
[0137] The present invention also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the aforementioned trajectory planning optimization method.
[0138] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0139] The memory can be used to store the computer program or module, and the processor realizes various functions of the trajectory planning optimization method by running or executing the computer program or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0140] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A polishing robot trajectory planning optimization method based on machine vision, characterized in that: include: Determine the Cartesian coordinates of the joint point in the grinding area; Determine the joint coordinates of the joint point based on the DH model and the Cartesian coordinates; Determining the characteristics of the polishing area based on image recognition technology; Determining a trajectory planning strategy according to the characteristics of the grinding area; Establishing a multi-objective optimization function based on the trajectory planning strategy, the joint coordinates, the time interval sequence between the joint points and the joint average pulse; The multi-objective optimization function is solved by improving the multi-objective genetic algorithm to determine the optimal trajectory.
2. According to the machine vision-based polishing robot trajectory planning optimization method of claim 1, it is characterized in that: Determining the Cartesian coordinates of the joint point in the polishing area includes: Determining point cloud data of the polishing area through a three-dimensional visual inspection system; The Cartesian coordinates are determined according to the point cloud data.
3. The method for optimizing trajectory planning of a polishing robot based on machine vision according to claim 1, characterized in that: The determining the joint coordinates of the joint point based on the DH model and the Cartesian coordinates includes: Establishing the DH model according to kinematic parameters; Through the DH model, the inverse kinematics of the Cartesian coordinates is solved to determine the joint coordinates of the joint point.
4. The method for optimizing trajectory planning of a polishing robot based on machine vision according to claim 1, characterized in that: The determining of the features of the polishing area based on the image recognition technology includes: Preprocessing the image of the polishing area by using the image recognition technology of the three-dimensional visual inspection system; Based on a convolutional neural network, a target Yolov3-tiny algorithm, and the image after the preprocessing, extracting features of different levels in the image; The features at different levels are fused to determine the features of the polishing area.
5. The method for optimizing trajectory planning of a polishing robot based on machine vision according to claim 4, characterized in that: The target Yolov3-tiny algorithm is an improved Yolov3-tiny algorithm. The Yolov3-tiny algorithm is improved to obtain the target Yolov3-tiny algorithm, including: Add convolutional layers to the network of the Yolov3-tiny algorithm; The convolutional layers are densely connected to extract high-level features of the image.
6. The method for optimizing trajectory planning of a polishing robot based on machine vision according to claim 4, characterized in that: Determining the trajectory planning strategy according to the characteristics of the polishing area includes: Determining the type of the polishing area according to the characteristics of the polishing area; The polishing area includes a polishing edge area and a polishing surface area; When the polishing edge area is a straight line or an arc, and the polishing surface area is a plane or a simple curved surface, linear interpolation or circular interpolation is determined as the trajectory planning strategy; When the polishing edge area is a complex curve and the polishing surface area is a complex curved surface, B-spline interpolation is determined as the trajectory planning strategy.
7. The method for optimizing trajectory planning of a polishing robot based on machine vision according to claim 1, characterized in that: The multi-objective optimization function is established based on the trajectory planning strategy, the joint coordinates, the time interval sequence between the joint points and the joint average pulse, including: Using the trajectory planning strategy as the optimization target of the multi-objective optimization function; According to the joint coordinates, the joint angle, angular velocity, angular acceleration, angular jerk and joint torque of each axis are obtained, and used as constraints of the multi-objective optimization function; Using the time interval sequence between the joint points and the joint average pulse as the design variables of the multi-objective optimization function; The multi-objective optimization function is established according to the optimization objective, the constraint conditions and the design variables.
8. The method for optimizing trajectory planning of a polishing robot based on machine vision according to claim 1, characterized in that: Solving the multi-objective optimization function by improving the multi-objective genetic algorithm to determine the optimal trajectory includes: Randomly generate a parent population of size N, and set the initial values of the crossover distribution coefficient and the variation distribution coefficient; Generate a child population of size N from the parent population through non-dominated sorting, selection, crossover and mutation operations, and merge the parent population and the child population to obtain a merged population of size 2N; Performing a fast non-dominated sort on the merged population to obtain non-dominated ranks corresponding to individuals in the merged population; assigning the individuals to different non-dominated layers according to the non-dominated levels; Calculating the individual crowding degree in the non-dominated layer; Based on the non-dominated level, individual crowding degree and machine learning model, select N individuals from the merged population as a new parent population; Based on the improved crossover strategy and mutation strategy, a new offspring population with a size of N is generated from the new parent population; When the maximum evolutionary generation is reached, the output of the improved multi-objective genetic algorithm is determined as the optimal trajectory.
9. The method for optimizing trajectory planning of a polishing robot based on machine vision according to claim 8, characterized in that: The improved method for the crossover strategy includes: the crossover operator of the improved multi-objective genetic algorithm adopts simulated binary crossover, and the crossover distribution coefficient is dynamically adjusted according to the evolutionary state of the population; The method for improving the mutation strategy includes: the mutation operator of the improved multi-objective genetic algorithm adopts polynomial mutation, and the mutation distribution coefficient is dynamically adjusted according to the evolutionary state of the population.
10. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the trajectory planning optimization method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Curved surface polishing track planning method and device and electronic equipment
CN118060981A
Hub grinding robot trajectory planning method based on 3D visual curve technology
CN118123594A
Robot grinding track planning method and device based on machine vision
CN118342505A
Lamp panel aluminum frame polishing equipment
CN217255123U
Trajectory planning apparatus, trajectory planning method, and production system
US20190275675A1
Cited By
Casting cleaning robot self-adaptive cleaning method based on machine vision and trajectory planning
CN119501946A
Track optimization method and system considering redundancy characteristics of robot macro-micro force control grinding and polishing system
CN121680286A
Trajectory planning method and device
CN122770017A
Robot trajectory and pose optimization method and device based on comprehensive pose performance index
CN122807921A
