Path Optimization of Two-Posture Manipulator of Apple Packing Robots
Abstract
:Featured Application
Abstract
1. Introduction
2. Literature Background
3. Materials and Methods
3.1. Materials
3.2. Path Optimization Method for the Manipulator of Apple Packing Robots
3.2.1. Working Principle of Packing Robot
3.2.2. Kinematic Analysis of the Manipulator
3.2.3. Packing Path Analysis of the Manipulator
3.2.4. Packing Path Optimization Algorithm
Improved Genetic Algorithm
- (1)
- Two-level chromosome coding and population creation
- (2)
- Fitness function design
- (3)
- Region crossover operation
- a.
- The crossover regions are determined. Two positive integers named acr_node and acr_len are first randomly generated. acr_node is the starting code of the crossover region, and the value range is [2, 2n + 1]. acr_len is the length of the crossover step, and the value range is [0, 2n − 1]. The sum of acr_node and acr_len equals 2n + 1 when the sum of acr_node and acr_len is greater than 2n + 1.
- b.
- Codes in crossover regions are interchanged. When two paternal chromosomes that need to be changed are named A and B, respectively, they are interchanged from the acr_nodeth code to the (acr_node + acr_len)th code, and the progeny chromosomes are A1 and B1.
- c.
- Repeated codes in interchanged chromosomes are recognized and marked. The unchanged codes in A1 and B1 are compared with those in the changed regions. When the positive numbers in the unchanged regions have the same or adjacent numbers as the positive numbers of the changed regions, then these numbers in the unchanged regions are marked and replaced with the value of 200. Thus, chromosomes A1 and B1 are replaced by chromosomes A2 and B2.
- d.
- Repeated codes in interchanged chromosomes are replaced and updated. The current chromosomes A2 and B2 are scanned code by code to mark the positive number codes that are not equal to 200. These marked positive numbers are mapped to placing points, indicating that apples are already placed in these marked placing points. Then, these marked placing points are removed from the initial placing point matrix Pos, and these unmarked placing points form a new matrix Pos_New. Subsequently, every number of 200 in the chromosome is randomly replaced with the marked number of any rotation angle solution for any unmarked placing points. The same placing points cannot be repeatedly selected. The progeny chromosomes are updated to be A3 and B3. The process of the crossover operator is shown in Figure 8, where the values of acr_node and acr_len are 6 and 12, respectively.
- (4)
- Mutation operation
- (5)
- Comparison and substitution operation
- (6)
- Termination condition setting
Optimal Parameter Selection Algorithm
- (1)
- Determination of the ranges of the four parameters. The range of population size is [10, 100]. The ranges of crossover probability, mutation probability, and comparison substitution coefficient are (0, 1), and the values are rounded to two decimal places. A total of 365 groups of nonrepeating valid parameter values within their ranges are obtained.
- (2)
- Acquisition of the target path and program running times. The target path time denotes the packing time taken to fill up an apple tray corresponding to the optimal paths of the mechanic arm acquired by the genetic algorithm, and the program running time is the time taken to run the genetic algorithm. A total of 365 valid parameter values are inputted into the improved genetic algorithm, and the corresponding target path and program running times are obtained, as shown in Table 1.
- (3)
- Fitting between the two types of time and the corresponding four parameters. The four parameters were regarded as inputs, and the target path and program running times were regarded as outputs. SPSS was used for data analysis to establish a linear regression model between the inputs and outputs. The standardized residuals of the target path and program running times were obtained on the basis of the data in Table 1, as shown in Figure 11.
4. Results and Discussion
4.1. Comparative Study of the Improved Performance
4.2. Comparative Study of the Optimal Performance under Different Numbers of Grasping and Placing Points
- (1)
- A two-level coding genetic algorithm can solve the packing path optimization problem of a two-posture manipulator.
- (2)
- The traditional genetic algorithm was improved and a region crossover operator was designed. In contrast to traditional single-point crossover, multi-point crossover, dislocation crossover, and random crossover, the crossover operator is based on the region set by two chromosomes to cross each other, and further modifies the crossover result to eliminate the repeated coding. The crossover operator has the advantage of retaining excellent gene fragments and making the optimization process more stable.
- (3)
- Aiming at the problem that the traditional genetic algorithm is not well targeted based on empirical parameters, an optimal parameter-fitting exhaustive algorithm was designed. The algorithm obtained the corresponding packing time after uniformly sampling each parameter value, and then established the multiple linear regression model between the packing time and each parameter. The parameter values corresponding to the minimum packing time were obtained by exhaustive enumerations, as the optimal parameters of the genetic algorithm and the improved genetic algorithm were combined to realize the optimal path planning of the manipulator. It has the advantage of high time-optimization range, and overcomes the disadvantage of the traditional genetic algorithm, namely, that it can easily fall into a local optimum.
5. Conclusions
- (1)
- The improved genetic algorithm fused with the optimal parameter selection algorithm can effectively avoid the premature convergence of the traditional genetic algorithm.
- (2)
- The improved genetic algorithm fused with the optimal parameter selection algorithm provides an effective automatic packing method in the apple packing industry by reducing the packing time and improving the efficiency.
- (3)
- The two-level chromosome coding method used in the improved genetic algorithm can solve the packing path optimization problem of the two-posture manipulator.
- (4)
- The optimal parameter-fitting exhaustive algorithm can automatically determine the optimal parameter value of the proved genetic algorithm.
6. Patents
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Yu, J.H.; Wang, J.S.; Lu, H.; Ma, D.J.; Li, X.F. Research on the Manipulator for Packing Apple Based on its Material Function. Appl. Mech. Mater. 2013, 437, 517–521. [Google Scholar] [CrossRef]
- Ling, X.; Zhao, Y.S.; Gong, L.; Liu, C.L.; Wang, T. Dual-arm Cooperation and Implementing for Robotic Harvesting Tomato Using Binocular Vision. Robot. Auton. Syst. 2019, 114, 134–143. [Google Scholar] [CrossRef]
- Levin, M.; Degani, A. A Conceptual Framework and Optimization for a Task-Based Modular Harvesting Manipulator. Comput. Electron. Agric. 2019, 166, 104987. [Google Scholar] [CrossRef]
- Hayashi, S.; Shigematsu, K.; Yamamoto, S.; Kobayashi, K.; Kohno, Y.; Kamata, J.; Kurita, M. Evaluation of a Strawberry-harvesting Robot in a Field Test. Biosyst. Eng. 2010, 105, 160–171. [Google Scholar] [CrossRef]
- Yu, X.J.; Fan, Z.M.; Wang, X.D.; Wan, H.; Wang, P.B.; Zeng, X.L.; Jia, F. A Lab-Customized Autonomous Humanoid Apple Harvesting Robot. Comput. Electron. Eng. 2021, 96, 107459. [Google Scholar] [CrossRef]
- Zhao, D.A.; Lv, J.D.; Ji, W.; Zhang, Y.; Chen, Y. Design and Control of an Apple Harvesting Robot. Biosyst. Eng. 2011, 110, 112–122. [Google Scholar]
- Arad, B.; Balendonck, J.; Barth, R.; Ben-Shahar, O.; Edan, Y.; Hellstrom, T.; Kurtser, P.; Ringdahl, O.; Tielen, T.; van Tuijl, B.; et al. Development of a Sweet Pepper Harvesting Robot. J. Field Robot. 2020, 37, 1027–1039. [Google Scholar] [CrossRef]
- Zhang, K.X.; Lammers, K.; Chu, P.Y.; Li, Z.J.; Lu, R.F. System Design and Control of an Apple Harvesting Robot. Mechatronics 2021, 79, 102644. [Google Scholar] [CrossRef]
- Bu, L.; Chen, C.; Hu, G.; Sugirbay, A.; Sun, H.; Chen, J. Design and Evaluation of a Robotic Apple Harvester Using Optimized Picking Patterns. Comput. Electron. Agric. 2022, 198, 107092. [Google Scholar] [CrossRef]
- Jun, J.; Kim, J.; Seol, J.; Kim, J.; Son, H.I. Towards an Efficient Tomato Harvesting Robot: 3D Perception, Manipulation, and End-Effector. IEEE Access 2021, 9, 17631–17640. [Google Scholar] [CrossRef]
- Bulanon, D.M.; Kataoka, T. Fruit Detection System and an End Effector for Robotic Harvesting of Fuji Apples. Agric. Eng. Int. CIGR J. 2010, 12, 203–210. [Google Scholar]
- Xiong, Y.; Peng, C.; Grimstad, L.; From, P.J.; Isler, V. Development and Field Evaluation of a Strawberry Harvesting Robot with a Cable-driven Gripper. Comput. Electron. Agric. 2019, 157, 392–402. [Google Scholar] [CrossRef]
- Tang, Z.L.; Xu, L.J.; Wang, Y.C.; Kang, Z.L.; Xie, H. Collision-Free Motion Planning of a Six-Link Manipulator Used in a Citrus Picking Robot. Appl. Sci. 2021, 11, 11336. [Google Scholar] [CrossRef]
- Kukker, A.; Sharma, R. Stochastic Genetic Algorithm-Assisted Fuzzy Q-Learning for Robotic Manipulators. Arab. J. Sci. Eng. 2021, 46, 9527–9539. [Google Scholar] [CrossRef]
- Barakat, A.N.; Gouda, K.A.; Bozed, K.A. Kinematics analysis and simulation of a robotic arm using MATLAB. In Proceedings of the International Conference on Control Engineering & Information Technology, Changsha, China, 23 July 2017. [Google Scholar]
- Feng, Q.C.; Zou, W.; Fan, P.F.; Zhang, C.F.; Wang, X. Design and Test of Robotic Harvesting System for Cherry Tomato. Int. J. Agric. Biol. Eng. 2018, 11, 96–100. [Google Scholar] [CrossRef]
- Salloom, T.; Yu, X.B.; He, W.; Kaynak, O. Adaptive Neural Network Control of Underwater Robotic Manipulators Tuned by a Genetic Algorithm. J. Intell. Robot. Syst. 2020, 97, 657–672. [Google Scholar] [CrossRef]
- Wang, M.M.; Luo, J.J.; Zheng, L.L.; Yuan, J.P.; Walter, U. Generate Optimal Grasping Trajectories to the End-Effector Using an Improved Genetic Algorithm. Adv. Space Res. 2020, 66, 1803–1817. [Google Scholar] [CrossRef]
- Qadir, Z.; Ullah, F.; Munawar, H.S.; Al-Turjman, F. Addressing disasters in smart cities through UAVs path planning and 5G communications: A systematic review. Comput. Commun. 2021, 168, 114–135. [Google Scholar] [CrossRef]
- Jovanovic, A.; Uzelac, A.; Kukic, K.; Teodorovic, D. The shortest-path and bee colony optimization algorithms for traffic control at single intersection with NetworkX application. Demonstr. Math. 2024, 57. [Google Scholar] [CrossRef]
- Nazarahari, M.; Khanmirza, E.; Doostie, S. Multi-objective multi-robot path planning in continuous environment using an enhanced genetic algorithm. Expert Syst. Appl. 2019, 115, 106–120. [Google Scholar] [CrossRef]
- Zhang, Y.; Zhang, R.; Li, H.F. Mixed-integer trajectory optimization with no-fly zone constraints for a hypersonic vehicle. Acta Astronaut. 2023, 207, 331–339. [Google Scholar] [CrossRef]
- Li, H.H.; Lin, Z.G.; Du, J. Excavator Autonomous Mining Segmentation Variable Order Polynomial Trajectory Planning. Trans. Chin. Soc. Agric. Mach. 2016, 47, 319–325. (In Chinese) [Google Scholar]
- Reynosomora, P.; Chen, W.; Tomizuka, M. On the Time-optimal Trajectory Planning and Control of Robotic Manipulators along Predefined Paths. In Proceedings of the American Control Conference, Washington, DC, USA, 17–19 June 2013; IEEE: Piscataway, NJ, USA, 2013; pp. 371–377. [Google Scholar]
- Ju, H.H.; Fu, R. Time-Optimal Trajectory Planning Algorithm Based on GA for Manipulator. Control. Eng. China 2012, 3, 112–117. (In Chinese) [Google Scholar]
- Lehman, J.; Stanley, K.O. Novelty search and the problem with objectives. In Genetic Programming Theory and Practice IX; Springer: Berlin/Heidelberg, Germany, 2011; pp. 37–56. [Google Scholar]
- Naredo, E.; Trujillo, L.; Legrand, P.; Silva, S.; Muñoz, L. Evolving genetic programming classifiers with novelty search. Inf. Sci. 2016, 369, 347–367. [Google Scholar] [CrossRef]
- He, L.Y.; Yang, T.W.; Wu, C.Y.; Yu, Y.X.; Tong, J.H.; Chen, J.C. Optimization of Replugging Tour Planning Based on Greedy Genetic Algorithm. Trans. Chin. Soc. Agric. Mach. 2017, 5, 41–48. (In Chinese) [Google Scholar]
- Lamini, C.; Benhlima, S.; Elbekri, A. Genetic Algorithm Based Approach for Autonomous Mobile Robot Path Planning. Procedia Comput. Sci. 2018, 127, 180–189. [Google Scholar] [CrossRef]
- Liu, J.X.; Cai, Y.B.; Cao, Y. A Robot Path-Planning Method Based on an Improved Genetic Algorithm. Trans. FAMENA 2024, 48, 141–153. [Google Scholar] [CrossRef]
- Reiter, A.; Muller, A.; Gattringer, H. On Higher-Order Inverse Kinematics Methods in Time-Optimal Trajectory Planning for Kinematically Redundant Manipulators. IEEE Trans. Ind. Inform. 2018, 14, 1681–1690. [Google Scholar] [CrossRef]
- Jin, X.; Li, D.Y.; Ma, H.; Ji, J.T.; Zhao, K.X.; Pang, J. Development of Single Row Automatic Transplanting Device for Potted Vegetable Seedlings. Int. J. Agric. Biol. Eng. 2018, 11, 67–75. [Google Scholar] [CrossRef]
No. | Population Size | Crossover Probability/% | Mutation Probability/% | Comparison Substitution Coefficient/% | Target Path Time/s | Program Running Time/s |
---|---|---|---|---|---|---|
1 | 33 | 0.92 | 0.93 | 0.13 | 23.19 | 1.52 |
2 | 59 | 0.77 | 0.17 | 0.52 | 27.58 | 1.74 |
3 | 13 | 0.29 | 0.10 | 0.69 | 32.28 | 0.25 |
4 | 20 | 0.57 | 0.32 | 0.75 | 29.95 | 0.51 |
5 | 77 | 0.30 | 0.51 | 0.33 | 26.22 | 0.93 |
6 | 13 | 0.58 | 0.98 | 0.51 | 27.06 | 0.53 |
7 | 76 | 0.81 | 0.74 | 0.36 | 23.90 | 2.12 |
8 | 54 | 0.75 | 0.34 | 0.22 | 24.12 | 1.81 |
9 | 22 | 0.26 | 0.29 | 0.58 | 29.66 | 0.35 |
10 | 16 | 0.54 | 0.03 | 0.53 | 32.17 | 0.37 |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
361 | 63 | 0.2 | 0.7 | 0.88 | 28.12 | 0.60 |
362 | 46 | 0.61 | 0.73 | 0.53 | 27.78 | 1.08 |
363 | 63 | 0.27 | 0.39 | 0.60 | 28.54 | 0.76 |
364 | 17 | 0.75 | 0.13 | 0.28 | 28.63 | 0.55 |
365 | 18 | 0.07 | 0.84 | 0.31 | 28.02 | 0.14 |
S | 9-Groove | 12-Groove | 14-Groove | 16-Groove | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
No. | T-F /s | T-T /s | O-A /% | T-F /s | T-T /s | O-A /% | T-F /s | T-T /s | O-A /% | T-F /s | T-T /s | O-A /% |
2 | 13.23 | 14.59 | 9.32 | 18.54 | 20.29 | 8.62 | 22.90 | 26.48 | 13.52 | 26.96 | 31.44 | 14.25 |
3 | 13.77 | 15.84 | 13.07 | 19.08 | 22.30 | 14.44 | 22.32 | 26.96 | 17.21 | 28.18 | 32.46 | 13.19 |
4 | 13.60 | 16.77 | 18.90 | 18.84 | 23.79 | 20.81 | 23.86 | 28.51 | 16.31 | 28.91 | 34.37 | 15.89 |
5 | 13.22 | 16.07 | 17.73 | 19.32 | 23.23 | 16.83 | 23.52 | 28.15 | 16.45 | 28.22 | 31.60 | 10.70 |
6 | 14.02 | 16.33 | 14.15 | 19.71 | 23.58 | 16.41 | 24.02 | 29.19 | 17.71 | 28.54 | 33.62 | 15.11 |
ave. | 13.57 | 15.92 | 14.63 | 19.10 | 22.64 | 15.42 | 23.32 | 27.86 | 16.24 | 28.16 | 32.70 | 13.82 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Xiang, R.; Feng, B. Path Optimization of Two-Posture Manipulator of Apple Packing Robots. Appl. Sci. 2024, 14, 8849. https://doi.org/10.3390/app14198849
Xiang R, Feng B. Path Optimization of Two-Posture Manipulator of Apple Packing Robots. Applied Sciences. 2024; 14(19):8849. https://doi.org/10.3390/app14198849
Chicago/Turabian StyleXiang, Rong, and Binbin Feng. 2024. "Path Optimization of Two-Posture Manipulator of Apple Packing Robots" Applied Sciences 14, no. 19: 8849. https://doi.org/10.3390/app14198849
APA StyleXiang, R., & Feng, B. (2024). Path Optimization of Two-Posture Manipulator of Apple Packing Robots. Applied Sciences, 14(19), 8849. https://doi.org/10.3390/app14198849