Trajectory planning method for fruit sorting robot based on multi-objective optimization
Through the multi-objective optimization method, the trajectory feature points of the fruit sorting robot are extracted and MOPSO optimized, which solves the problem of insufficient trajectory planning performance in the existing technology and achieves the best balance of trajectory planning and improved robot flexibility.
Patent Information
- Application Number
- CN202410607453.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-05-16
AI Technical Summary
In the existing technology, the trajectory planning method of fruit sorting robots has low trajectory optimization performance, resulting in low flexibility and adaptability, and cannot achieve the best balance.
Using a method based on multi-objective optimization, by obtaining the curve length and time of the joint trajectory, using compression algorithm and discrete differential evolution algorithm to extract trajectory feature points, and performing multi-objective optimization through the MOPSO algorithm to obtain the optimal comprehensive solution to improve trajectory planning performance .
The trajectory optimization performance of the fruit sorting robot is improved, the flexibility and adaptability are enhanced, and the trajectory planning reaches the best balance.
Smart Images

Figure CN118438445B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of trajectory optimization, and in particular to a trajectory planning method for a fruit sorting robot based on multi-objective optimization. Background Art
[0002] In the field of agricultural automation, fruit sorting robots play an increasingly important role. Such robots can achieve fast and accurate sorting of fruits, improve agricultural production efficiency, and reduce labor costs. However, the performance of fruit sorting robots is affected by many factors, among which trajectory planning method is a key technical link.
[0003] The trajectory planning of the fruit sorting robot needs to meet multiple goals. These goals include but are not limited to: sorting accuracy, sorting speed, energy consumption, mechanical wear, etc. In practical applications, these goals often conflict with each other and cannot be optimized at the same time. Therefore, it is necessary to adopt a multi-objective optimization method to coordinate and compromise between multiple goals so that the overall goal can be optimized as much as possible.
[0004] In the prior art, the trajectory planning method for the fruit sorting robot often has low flexibility and adaptability due to the low trajectory optimization performance, which ultimately leads to the trajectory planning failing to achieve the optimal balance.
[0005] In the prior art, there is a lack of a trajectory planning method for a fruit sorting robot based on multi-objective optimization that can improve trajectory optimization performance. Summary of the invention
[0006] The purpose of the present invention is to provide a trajectory planning method for a fruit sorting robot based on multi-objective optimization: at least to solve the problem in the existing solutions that the trajectory planning method for a fruit sorting robot often has low flexibility and adaptability due to low trajectory optimization performance, which ultimately leads to the trajectory planning failing to achieve the optimal balance.
[0007] The purpose of the present invention can be achieved by the following technical solutions:
[0008] A trajectory planning method for a fruit sorting robot based on multi-objective optimization, the method comprising:
[0009] The key trajectory information of the fruit sorting robot is obtained, and the curve length and time of the joint trajectory are obtained based on the key trajectory information. The joint trajectory is compressed by a compression algorithm to obtain the trajectory compression error, and the trajectory compression error is used as the objective function for optimization by a discrete differential evolution algorithm to extract the trajectory feature points in the joint trajectory.
[0010] The MOPSO algorithm is used to perform multi-objective optimization on the trajectory feature points to obtain the optimal solution set;
[0011] The optimal solution set is analyzed according to the trajectory evaluation index to obtain the optimal comprehensive solution, which is used as the final trajectory.
[0012] Furthermore, compressing the joint trajectory by a compression algorithm includes:
[0013] Step S1: Divide the joint trajectory equally based on the curve length of the joint trajectory and the time of the joint trajectory to obtain n segments and n+1 joint trajectory data points;
[0014] Step S2: Solve the synchronous Euclidean distance of the joint trajectory data points except the starting and ending points in the n+1 joint trajectory data points, where the synchronous Euclidean distance is the Euclidean distance between the actual trajectory point in the original trajectory and the virtual trajectory point obtained on the line between the starting and ending points of the trajectory according to the time ratio, and its calculation formula is as follows:
[0015]
[0016] Among them, SED is the joint trajectory data point p(x i ,y i , z i )’s synchronous Euclidean distance;
[0017]
[0018]
[0019]
[0020] Among them, t1 and t2 represent the time of the starting and ending points of the trajectory respectively, and t i is the joint trajectory data point p(x i ,y i , z i ) time, μ x , μ y , μ z is the reference point coordinate value of the virtual trajectory point;
[0021] Step S3: Determine whether the time intervals between the n+1 joint trajectory data points except the start and end points meet the preset interval requirements. If so, use the joint trajectory data points as trajectory feature points. If not, divide this segment of the trajectory into two segments based on the sampling point of the maximum synchronous Euclidean distance, and use the trajectory points in the two segments as sample data points and repeat step S2.
[0022] Further, the trajectory compression error is calculated according to the calculation formula
[0023]
[0024] Among them, L k It is the sum of the distances from the non-trajectory feature points to the nearest trajectory feature points at both ends; M2 is the number of joint trajectory data points before compression, and M1 is the number of joint trajectory data points after compression.
[0025] Furthermore, the trajectory compression error is used as the objective function for optimization through discrete differential evolution algorithm, and the trajectory feature points in the joint trajectory are extracted, including:
[0026] Create a set of candidate solutions, each solution is an encoding of a set of trajectory feature points, where the set is generated by random selection or heuristic method;
[0027] Step 1: For a set of feature points, generate new candidate solutions through differential mutation;
[0028] Step 2: Cross the mutated candidate solution with the original individual to generate a new test individual;
[0029] Step 3: Evaluate the performance of the test individual according to the objective function and compare it with the original individual. If the performance of the test individual is better, it will be retained as part of the next generation population; otherwise, the original individual will be retained.
[0030] Repeat steps 2 and 3 until the preset maximum number of iterations is reached or the trajectory compression error is less than a certain threshold or the population change for several consecutive generations is less than a certain threshold;
[0031] Extract trajectory feature points from joint trajectories:
[0032] When the differential evolution algorithm is completed, the trajectory point in the trajectory feature point set with the best performance is selected as the trajectory feature point.
[0033] Furthermore, the multi-objective optimization of trajectory feature points by MOPSO algorithm includes the following process:
[0034] Initialize algorithm parameters: obtain non-dominated particles, initialize particles, save them through external archives, and calculate particle fitness;
[0035] Update the local and global optimal particles and particle positions;
[0036] Update the position by Gaussian mutation;
[0037] Update external archives through adaptive reference points;
[0038] Determine whether the number of iterations and accuracy requirements are met. If so, stop the optimization;
[0039] Output archive set particle information, i.e. the optimal solution set.
[0040] Furthermore, the optimal solution set is analyzed according to the trajectory evaluation index to obtain the optimal comprehensive solution, and the optimal comprehensive solution is used as the final trajectory, which includes the following processes:
[0041] Obtaining trajectory evaluation indicators, wherein the trajectory evaluation indicators are a time evaluation indicator and an energy consumption evaluation indicator;
[0042] Obtain objective functions corresponding to the time evaluation index and the energy consumption evaluation index respectively;
[0043] Based on the two objective functions, the single objective optimization of the trajectory is performed respectively, and the optimal objective function value obtained by optimization is taken as the ideal solution of each objective function;
[0044] The shortest Euclidean distance LMS between all the undetermined solutions in the optimal solution set and the two ideal solutions is calculated by the calculation formula, which is as follows:
[0045]
[0046] Where f(x) is the objective function, is the ideal solution corresponding to the optimization objective function, γ is the proportion of each objective function, m is the number of undetermined solutions corresponding to the optimal solution set, β is a non-zero constant set by the system, and min is the minimum value calculation formula;
[0047] The LMS corresponding to the two objective functions are summed, and the undetermined solution corresponding to the minimum sum is taken as the optimal comprehensive solution, and the optimal comprehensive solution is taken as the final trajectory.
[0048] Furthermore, the multi-objective optimization of trajectory feature points by using the MOPSO algorithm also includes improving the inertia weight coefficient.
[0049] Compared with the existing solutions, the present invention achieves the following beneficial effects:
[0050] On the one hand, the present invention obtains the curve length of the joint trajectory and the time of the joint trajectory, compresses the joint trajectory through a compression algorithm to obtain a trajectory compression error, and uses a discrete differential evolution algorithm to perform optimization with the trajectory compression error as the objective function to extract trajectory feature points in the joint trajectory; multi-objective optimization is performed on the trajectory feature points through the MOPSO algorithm to obtain an optimal solution set; the optimal solution set is analyzed according to the trajectory evaluation index to obtain an optimal comprehensive solution, and the optimal comprehensive solution is used as the final trajectory, which can improve the trajectory optimization performance, thereby improving the flexibility and adaptability of the fruit sorting robot, and ultimately achieving the best balance in trajectory planning.
[0051] On the other hand, the optimal solution set can be analyzed according to the trajectory evaluation index to select the best trajectory route to improve the flexibility of the fruit sorting robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present application 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 recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0053] Figure 1 It is a workflow diagram of a trajectory planning method for a fruit sorting robot based on multi-objective optimization according to an embodiment of the present invention;
[0054] Figure 2 This is a workflow diagram of another fruit sorting robot trajectory planning method based on multi-objective optimization in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] 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.
[0056] In addition, the described features, structures or characteristics may be combined in one or more example embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the example embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, steps, etc. may be adopted. In other cases, well-known structures, methods, implementations or operations are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0057] This embodiment provides a trajectory planning method for a fruit sorting robot based on multi-objective optimization. Figure 1 is a workflow diagram of a trajectory planning method for a fruit sorting robot based on multi-objective optimization in an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0058] Step S101: Acquire the key trajectory information of the fruit sorting robot, obtain the curve length of the joint trajectory and the time of the joint trajectory based on the key trajectory information, compress the joint trajectory through a compression algorithm to obtain the trajectory compression error, and use a discrete differential evolution algorithm to optimize with the trajectory compression error as the objective function to extract the trajectory feature points in the joint trajectory.
[0059] It is worth mentioning that the fruit sorting robot can be selected as a Delta robot, because the Delta robot has small inertial force fluctuations and can achieve more stable and efficient fruit sorting.
[0060] Step S102: Perform multi-objective optimization on the trajectory feature points through the MOPSO algorithm to obtain the optimal solution set.
[0061] Step S103: Analyze the optimal solution set according to the trajectory evaluation index to obtain the optimal comprehensive solution, and use the optimal comprehensive solution as the final trajectory.
[0062] In summary, the present invention obtains the curve length of the joint trajectory and the time of the joint trajectory, compresses the joint trajectory through a compression algorithm, obtains the trajectory compression error, and uses a discrete differential evolution algorithm to optimize with the trajectory compression error as the objective function to extract the trajectory feature points in the joint trajectory; uses the MOPSO algorithm to perform multi-objective optimization on the trajectory feature points to obtain the optimal solution set; analyzes the optimal solution set according to the trajectory evaluation index to obtain the optimal comprehensive solution, and uses the optimal comprehensive solution as the final trajectory, which can improve the trajectory optimization performance, thereby improving the flexibility and adaptability of the fruit sorting robot, and finally achieving the best balance in trajectory planning. .
[0063] In some embodiments, in step S101, Figure 2 FIG. 4 is another workflow diagram of a trajectory planning method for a fruit sorting robot based on multi-objective optimization according to an embodiment of the present invention. Figure 2 As shown, compressing the joint trajectory by the compression algorithm includes the following steps:
[0064] Step S1: Divide the joint trajectory equally based on the curve length of the joint trajectory and the time of the joint trajectory to obtain n segments and n+1 joint trajectory data points;
[0065] Step S2: Solve the synchronous Euclidean distance of the joint trajectory data points except the starting and ending points in the n+1 joint trajectory data points, where the synchronous Euclidean distance is the Euclidean distance between the actual trajectory point in the original trajectory and the virtual trajectory point obtained on the line between the starting and ending points of the trajectory according to the time ratio, and its calculation formula is as follows:
[0066]
[0067] Among them, SED is the joint trajectory data point p(x i ,y i , z i )’s synchronous Euclidean distance;
[0068]
[0069]
[0070]
[0071] Among them, t1 and t2 represent the time of the starting and ending points of the trajectory respectively, and t i is the joint trajectory data point p(x i ,y i , z i ) time, μ x , μ y , μ z is the reference point coordinate value of the virtual trajectory point;
[0072] Step S3: Determine whether the time intervals between the n+1 joint trajectory data points except the start and end points meet the preset interval requirements. If so, use the joint trajectory data points as trajectory feature points. If not, divide this segment of the trajectory into two segments based on the sampling point of the maximum synchronous Euclidean distance, and use the trajectory points in the two segments as sample data points and repeat step S2.
[0073] In some embodiments, in step S101, the trajectory compression error is calculated according to the calculation formula
[0074]
[0075] Among them, L k It is the sum of the distances from the non-trajectory feature points to the nearest trajectory feature points at both ends; M2 is the number of joint trajectory data points before compression, and M1 is the number of joint trajectory data points after compression.
[0076] Furthermore, the trajectory compression error is used as the objective function for optimization through discrete differential evolution algorithm, and the trajectory feature points in the joint trajectory are extracted, including:
[0077] Create a set of candidate solutions, each solution is an encoding of a set of trajectory feature points, where the set is generated by random selection or heuristic method;
[0078] Step 1: For a set of feature points, generate new candidate solutions through differential mutation. Specifically, it is an evolutionary algorithm for solving global optimization problems of continuous variables. Differential mutation is to generate new candidate solutions by randomly selecting two different individuals from the current population, calculating their differential vectors, and then adding this differential vector to the third individual.
[0079] Step 2: Cross the mutated candidate solutions with the original individuals to generate new test individuals: Differential mutation usually involves selecting different individuals from the current population and generating new candidate solutions through the differences between them, while crossover combines certain parts of two or more individuals to produce new individuals.
[0080] Step 3: Evaluate the performance of the test individual according to the objective function and compare it with the original individual. If the performance of the test individual is better, it will be retained as part of the next generation population; otherwise, the original individual will be retained.
[0081] Repeat steps 2 and 3 until the preset maximum number of iterations is reached or the trajectory compression error is less than a certain threshold or the population change for several consecutive generations is less than a certain threshold;
[0082] Extract trajectory feature points from joint trajectories:
[0083] When the differential evolution algorithm is completed, the trajectory point in the trajectory feature point set with the best performance is selected as the trajectory feature point.
[0084] In summary, the trajectory compression error is used as the objective function for optimization, the effective feature points in the joint trajectory are extracted, and the storage space of the discrete points of the trajectory is reduced. It is applied to joint trajectory interpolation, trajectory simulation and trajectory optimization.
[0085] In some embodiments, in step S102, the MOPSO (Multi-Objective Particle Swarm Optimization) algorithm, i.e., the multi-objective particle swarm optimization algorithm, is an evolutionary algorithm for solving multi-objective optimization problems. The algorithm simulates the foraging behavior of bird flocks or fish schools in nature, and explores the search space and finds the optimal solution by updating the position and velocity of each individual (particle) in the group. The core idea of the MOPSO algorithm is to regard each particle as a potential solution and move in the search space to find the optimal solution. In each iteration, each particle adjusts its speed and position according to its own historical optimal position and the global optimal position of the entire group. This update strategy enables particles to move to better solutions and eventually find a set of non-dominated solutions.
[0086] The multi-objective optimization of trajectory feature points by MOPSO algorithm includes the following processes:
[0087] Initialize algorithm parameters: obtain non-dominated particles, initialize particles, save them through external archives, and calculate particle fitness;
[0088] Update the local and global optimal positions of particles: initialize the particle swarm, randomly generate a group of particles in the search space, each particle has a random position and speed, initialize the individual optimal position of each particle as its current position, and calculate its fitness value, and initialize the global optimal position as the position of the particle with the best fitness value in the particle swarm; evaluate particles, for each particle, calculate its fitness value, which is usually the value of the objective function to be optimized; update the individual optimal position, if the fitness value of the current particle is better than its historical optimal fitness value, update the individual optimal position of the particle to its current position; update the global optimal position, traverse all particles and find the particle with the optimal fitness value; if the fitness value of this optimal particle is better than the current global optimal value, update the global optimal position to the position of the particle.
[0089] Update the position by Gaussian mutation;
[0090] Update external archives through adaptive reference points;
[0091] Determine whether the number of iterations and accuracy requirements are met. If so, stop the optimization;
[0092] Output archive set particle information, i.e. the optimal solution set.
[0093] In some embodiments, in step S103, the optimal solution set is analyzed according to the trajectory evaluation index to obtain the optimal comprehensive solution, and the optimal comprehensive solution is used as the final trajectory, which includes the following process:
[0094] Obtaining trajectory evaluation indicators, wherein the trajectory evaluation indicators are a time evaluation indicator and an energy consumption evaluation indicator;
[0095] Obtain objective functions corresponding to the time evaluation index and the energy consumption evaluation index respectively;
[0096] Based on the two objective functions, the single objective optimization of the trajectory is performed respectively, and the optimal objective function value obtained by optimization is taken as the ideal solution of each objective function;
[0097] The shortest Euclidean distance LMS between all the undetermined solutions in the optimal solution set and the two ideal solutions is calculated by the calculation formula, which is as follows:
[0098]
[0099] Where f(x) is the objective function, is the ideal solution corresponding to the optimization objective function, γ is the proportion of each objective function, m is the number of undetermined solutions corresponding to the optimal solution set, β is a non-zero constant set by the system, and min is the minimum value calculation formula;
[0100] The LMS corresponding to the two objective functions are summed, and the undetermined solution corresponding to the minimum sum is taken as the optimal comprehensive solution, and the optimal comprehensive solution is taken as the final trajectory.
[0101] Furthermore, the multi-objective optimization of trajectory feature points by MOPSO algorithm also includes improving the inertia weight coefficient including:
[0102] Based on the distance-based multi-objective particle swarm algorithm, the inertia weight coefficient is improved. A dynamic weight value is introduced into the algorithm. Compared with a fixed weight value, the algorithm has better solution effect and faster convergence speed. The algorithm performance is improved by setting the inertia weight change strategy. When the inertia weight value is in the range of 0.4 to 0.9, the algorithm calculation effect is best. Therefore, considering the curve characteristics of the exponential function with the natural constant e as the base, an improved inertia weight expression is constructed based on the exponential function to achieve the purpose of dynamic adjustment.
[0103] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0104] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0105] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0106] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only some logical function divisions. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0107] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0108] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0109] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A fruit sorting robot trajectory planning method based on multi-objective optimization, characterized in that: Methods include: The key trajectory information of the fruit sorting robot is obtained, and the curve length and time of the joint trajectory are obtained based on the key trajectory information. The joint trajectory is compressed by a compression algorithm to obtain the trajectory compression error, and the trajectory compression error is used as the objective function for optimization by a discrete differential evolution algorithm to extract the trajectory feature points in the joint trajectory; wherein, compressing the joint trajectory by a compression algorithm includes: Step S1: Divide the joint trajectory equally based on the curve length of the joint trajectory and the time of the joint trajectory to obtain n segments and n+1 joint trajectory data points; Step S2: Solve the synchronous Euclidean distance of the joint trajectory data points except the starting and ending points in the n+1 joint trajectory data points, where the synchronous Euclidean distance is the Euclidean distance between the actual trajectory point in the original trajectory and the virtual trajectory point obtained on the line between the starting and ending points of the trajectory according to the time ratio, and its calculation formula is as follows: Among them, SED is the joint trajectory data point p(x i ,y i , z i )’s synchronous Euclidean distance; Among them, t1 and t2 represent the time of the starting and ending points of the trajectory respectively, and t i is the joint trajectory data point p(x i ,y i , z i ) time, μ x , μ y , μ z is the reference point coordinate value of the virtual trajectory point; Step S3: determine whether the time intervals between the joint trajectory data points except the starting and ending points in the n+1 joint trajectory data points meet the preset interval requirements. If so, the joint trajectory data points are used as trajectory feature points. If not, the trajectory is divided into two segments based on the sampling point of the maximum synchronous Euclidean distance, and the trajectory points in the two segments are used as sample data points to repeat step S2. Calculate the trajectory compression error according to the calculation formula Among them, L k is the sum of the distances from the non-trajectory feature points to the nearest trajectory feature points at both ends; M2 is the number of joint trajectory data points before compression, and M1 is the number of joint trajectory data points after compression; The MOPSO algorithm is used to perform multi-objective optimization on the trajectory feature points to obtain the optimal solution set; According to the trajectory evaluation index, the optimal solution set is analyzed to obtain the optimal comprehensive solution, which is used as the final trajectory: The optimal solution set is analyzed according to the trajectory evaluation index to obtain the optimal comprehensive solution. The optimal comprehensive solution is used as the final trajectory, which includes the following processes: Obtaining trajectory evaluation indicators, wherein the trajectory evaluation indicators are a time evaluation indicator and an energy consumption evaluation indicator; Obtain objective functions corresponding to the time evaluation index and the energy consumption evaluation index respectively; Based on the two objective functions, the single objective optimization of the trajectory is performed respectively, and the optimal objective function value obtained by optimization is taken as the ideal solution of each objective function; The shortest Euclidean distance LMS between all the undetermined solutions in the optimal solution set and the two ideal solutions is calculated by the calculation formula as follows: Among them, f(x) is the objective function, is the ideal solution corresponding to the optimization objective function, γ is the proportion of each objective function, m is the number of undetermined solutions corresponding to the optimal solution set, β is a non-zero constant set by the system, and min is the minimum value calculation formula; The LMS corresponding to the two objective functions are summed, and the undetermined solution corresponding to the minimum sum is taken as the optimal comprehensive solution, and the optimal comprehensive solution is taken as the final trajectory.
2. The fruit sorting robot trajectory planning method based on multi-objective optimization according to claim 1 is characterized in that: The discrete differential evolution algorithm is used to optimize the trajectory compression error as the objective function, and the trajectory feature points extracted from the joint trajectory include: Create a set of candidate solutions, each solution is an encoding of a set of trajectory feature points, where the set is generated by random selection or heuristic method; Step 1: For a set of feature points, generate new candidate solutions through differential mutation; Step 2: Cross the mutated candidate solution with the original individual to generate a new test individual; Step 3: Evaluate the performance of the test individual according to the objective function and compare it with the original individual. If the performance of the test individual is better, it will be retained as part of the next generation population; otherwise, the original individual will be retained. Repeat steps 2 and 3 until the preset maximum number of iterations is reached or the trajectory compression error is less than a certain threshold or the population change for several consecutive generations is less than a certain threshold; Extract trajectory feature points from joint trajectories: When the differential evolution algorithm is completed, the trajectory point in the trajectory feature point set with the best performance is selected as the trajectory feature point.
3. The fruit sorting robot trajectory planning method based on multi-objective optimization according to claim 2 is characterized in that: The multi-objective optimization of trajectory feature points by MOPSO algorithm includes the following processes: Initialize algorithm parameters: obtain non-dominated particles, initialize particles, save them through external archives, and calculate particle fitness; Update the local and global optimal particles and particle positions; Update the position by Gaussian mutation; Update external archives through adaptive reference points; Determine whether the number of iterations and accuracy requirements are met. If so, stop the optimization; Output archive set particle information, i.e. the optimal solution set.
4. The fruit sorting robot trajectory planning method based on multi-objective optimization according to claim 1 is characterized in that: The multi-objective optimization of trajectory feature points through the MOPSO algorithm also includes improving the inertia weight coefficient.
