Research on Optimal Design of Robotic Arm Joint Angle Path Based on Optimization Algorithms

Research Article
Open access

Research on Optimal Design of Robotic Arm Joint Angle Path Based on Optimization Algorithms

Cheng Dong 1 , Shijie Fei 2 , Haoran Gao 3*
  • 1 Department of Computer and Software, Chengdu Neusoft University, Chengdu, Sichuan Province, China    
  • 2 Department of Computer Science Management, Chengdu Neusoft University, Chengdu, Sichuan Province, China    
  • 3 Department of Computer Science Management, Chengdu Neusoft University, Chengdu, Sichuan Province, China    
  • *corresponding author 371553307@qq.com
Published on 26 August 2025 | https://doi.org/10.54254/2755-2721/2025.26214
ACE Vol.170
ISSN (Print): 2755-273X
ISSN (Online): 2755-2721
ISBN (Print): 978-1-80590-218-8
ISBN (Online): 978-1-80590-183-9

Abstract

This paper takes a six-degree-of-freedom robotic arm as the research object and proposes a unified framework for "joint angle path optimization": First, a zero-position precise kinematic model is established using D-H parameters; then, four typical working conditions are sequentially solved—under only precision constraints, the Whale Optimization Algorithm (WOA) yields joint angles [97.34, –103.88, 13.55, 21.68, 94.19, 89.49] in a single search, with an end-effector error of 2.5×10⁻⁶ m; when introducing an energy consumption model and targeting both error and energy consumption, the WOA-Monte Carlo hybrid algorithm provides [43.56, –57.16, 38.46, –67.52, –90, 0], with an error of 198 mm and energy consumption of 98.1 J; in obstacle avoidance scenarios, an A* algorithm first plans a collision-free base path, and then the same optimizer is called at each station, resulting in [44.73, –44.72, 38.53, –67.19, –89.62, 0.23], with performance comparable to previous results; for multi-objective grasping tasks, after A* generates a traversal path, each target is independently optimized, achieving a cumulative error of 510 mm and total energy consumption of 119 J. Experiments demonstrate that the integrated method of "D-H kinematics + A* base planning + WOA-MC joint optimization" significantly outperforms baseline approaches in terms of precision, energy consumption, obstacle avoidance, and multi-objective scenarios, showcasing strong potential for engineering applications.

Keywords:

D-H parameter method Monte Carlo algorithm, whale optimization algorithm, A* (A-star) algorithm

Dong,C.;Fei,S.;Gao,H. (2025). Research on Optimal Design of Robotic Arm Joint Angle Path Based on Optimization Algorithms. Applied and Computational Engineering,170,42-49.
Export citation

1. Introduction

Robotic arms, crucial automation equipment, play an important role in industrial production, precision operations, etc. They can perform tasks like grasping and welding, improving efficiency, reducing labor costs, and ensuring safety. However, robotic arm path planning is complex. To complete tasks, they adjust joint angles, consume energy during motion, and the end - effector must reach the target with limited errors. Therefore, optimal design of joint angle paths is critical for enhancing performance. An excellent solution can minimize errors and energy consumption. For Problem 1, draw a simplified diagram of the six - degree - of - freedom robotic arm in the zero position, establish a motion mathematical model, and optimize the joint angle trajectory to minimize end - effector error [1]. For Problem 2, based on Problem 1, with the combined mass of the arm and end load being 5 kg, given each joint's moment of inertia and average angular velocity, and an allowable end - effector error range of ±200 mm, optimize the joint angle trajectory with dual objectives of minimizing error and energy consumption.

2. Problem analysis

For Problem 1, this question requires drawing a schematic of a six-degree-of- freedom robotic arm and establishing its kinematic model to optimize the joint angle path for minimizing end - effector error. First, draw the schematic based on the given zero-position state. Then, establish the forward kinematic model using D-H parameters to calculate the end - effector position. Finally, determine the target point coordinates and use an optimization algorithm to find the optimal joint angle path.

For Problem 2, the requirement is to optimize the joint angle trajectory while minimizing end - effector error and energy consumption. First, establish an energy consumption model using data in Table 2 to calculate each joint's energy consumption. Next, construct the objective function with Broussonetia papyrifera, considering both end-effector error and energy consumption. Finally, use multi-objective optimization algorithms as required to find the optimal joint angle trajectory [2].

3. Assumptions and justifications

(1) Assume the trolley returns to zero position after each cargo - grasping operation by the robotic arm, and the energy consumption in this process is not recorded.

(2) Assume the machine won't contact obstacles in the zero position state.

(3) Assume the gravitational acceleration in the robotic arm's operating environment is 9.81 m/s² and remains constant.

(4) Assume the influence of the robotic arm's dynamic characteristics and ambient temperature is negligible.

Table 1. symbol description

symbol

explain

unit

ai

Chain length

mm

αi

A twist of the ankle

°

di

Dash offset

mm

θi

i Range of joint angle variation

°

Eerror

End-point error

mm

Etotal

Total energy consumption

J

Wi

Angular velocity of joint i

Rad/s

Ii

Moment of inertia of joint i

kg∙m2

4. Analysis of global pet industry developments

4.1. Zero-position schematic diagram drawing

The zero position state refers to each joint angle of the robotic arm being in an initial configuration. Drawing a simplified diagram of a six-degree-of-freedom robotic arm in the zero position state facilitates the structural analysis of the robotic arm (Broussonetia papyrifera) and determines the initial state, while also visualizing the trajectory to lay the foundation for subsequent model establishment and solution.

To facilitate subsequent modeling, this paper utilizes the D-H parameter table provided in the problem statement and employs MATLAB programming to generate a simplified diagram of the robotic arm in the zero position state, as shown in the figure below,θ1=0°,θ2=-90°, θ3=0°,θ4=180°,θ5=-90°,θ6=0°

4.1.1. Establishment of the robotic arm motion model

The DH (Denavit - Hartenberg) model is a mathematical model for describing the kinematic characteristics of robotic homo sapiens. It defines the geometric relationship between adjacent links via a set of parameters, allowing the computation of the end - effector's position and orientation. Based on the machine homo sapiens linkage coordinate system and geometric parameters, the general formula for linkage coordinate transformation can be derived. The D - H transformation matrix is as follows:

Ai=[cosθisinθicosαisinθisinαiαicosθisinθicosθicosαicosθisinαiαisinθi0sinαicosαidi0001]

By multiplying the D-H matrices of the six joints, the position and orientation of the end effector in the base coordinate system can be obtained as follows:

T=A1A2A3A4A5A6

4.1.2. Terminal position calculation

Based on the D-H parameters and joint angles, the position of the robotic arm's end effector can be calculated. This paper substitutes the provided D-H parameters from the problem into the formulas, derives the transformation matrices for each joint, and ultimately computes the position and state of the end effector. Due to space constraints, the derivation process is not detailed here. The final calculated position of the end effector is as follows:

[xyz1]=T[0001]

4.1.3. Establishment of the joint angle path optimization model

Target position: By establishing the motion model of the robotic arm, this paper further optimizes the key angular path to minimize end-effector error. The target position that the robotic arm needs to reach is:

(xtarget,ytarget,ztarget)=(1500mm,1200mm,200mm)

minEerror=i=16Ei

E=(xxtarget)2+(yytarget)2+(zztarget)2

4.1.4. Design of the whale optimization algorithm

This paper uses the whale optimization algorithm (WOA) in reference [3] to rapidly search and globally optimize the "Homo sapiens employee - shift" solution space of Utheisa kong, aiming to minimize sorting centers' total labor cost while meeting business constraints. The implementation has six steps: First, encoding: represent a shift schedule as a whale position vector storing the number of formal workers X and temporary workers Y for each shift at all sorting centers daily. Second, population initialization: randomly generate multiple position vectors in the feasible domain as the initial whale population. Third, fitness evaluation: construct a fitness function reflecting labor costs and constraint violations, estimate costs via Monte Carlo sampling, and use penalty functions for constraints like shift limits. Fourth, iterative optimization: update position vectors by simulating three whale behaviors for local refinement and global exploration. Fifth, termination criterion: stop when the Monte Carlo-estimated mean fitness improvement is below a threshold for consecutive generations or the max iteration count is reached. Sixth, decoding output: convert the optimal position vector into specific worker counts to get the lowest - cost labor allocation. This framework uses WOA's features to solve unified discrete-continuous hybrid optimization problems in complex scenarios. .

4.1.5. Solution of the joint angle path model

This paper solves the established joint angle path model using the whale optimization algorithm, and the results are shown in the following table:

Table 2. Optimal joint angle table
θ1 θ2 θ3 θ4 θ5 θ6

97.3351°

-103.8794°

13.5491°

21.6751°

94.1897°

89.4875°

Emin=2.498456le6

(x,y,z)=(1499.999833mm,1200.000154mm,199.999354mm)

(x,y,z)=(1500mm,1200mm,200mm)

4.1.6. Analysis of the solution results

From the joint - angle optimization results, each joint angle has been optimized. Joints 1, 2, 5, and 6 have relatively large angle changes, while the other two joints have smaller variations. This shows that during the optimization to minimize end- effector position error, adjustments mainly focused on joints 1, 2, 5, and 6. The optimized end-effector position closely matches the target position, proving the accuracy of the simulated annealing algorithm in this study. The calculated end- effector error is 2.4984561e-6, which is relatively small, indicating that the optimized robotic arm's end position has basically reached the target position.

4.2. Establishment of the energy consumption calculation model

In the first sub - question, this paper establishes the robotic arm's kinematic model and optimizes the joint angle path to minimize end - effector error. Then, based on this, it adds energy consumption as an optimization objective by determining the energy consumption model to optimize the robotic arm's joint path. The establishment of the energy consumption model is related to the moment of inertia and average angular velocity, and its specific parameters in this sub - question are as follows:

Table 3. Joint rotation energy consumption parameters

joint i

moment of inertia(kg∙m2)           mean angular velocity(rad/s)

1

0.5

2.0

2

0.3

1.5

3

0.4

1.0

4

0.6

2.5

5

0.2

3.0

6

0.4

2.0

4.3. Kinetic energy consumption model

Erot,i=12Iiwi2

4.3.1. Gravitational potential energy consumption model

The work done against gravity is related to the mass of the robotic arm and the change in height. It is worth noting that the gravitational potential energy in this sub-question is tied to the change in height, so the value of the change must be non-negative.

Epot=mg

4.3.2. Total energy consumption model

Etotal=i=1612Iiwi2+mg

minw1Eerror+w2Etotal

Eerror=(xxtarget)2+(yytarget)2+(zztarget)2

{160θ1160150θ215200θ380180θ4180120θ5120180θ6180

Eerror200mm

4.3.3. Monte carlo method--whale optimization algorithm design

Monte Carlo is a numerical simulation method based on probability and statistics for solving complex problems and assessing risks. Referencing [4], this paper uses Monte Carlo as the evaluation function in Step 3 of the algorithm to conduct fitness assessment and introduce stochastic factors, guiding the optimization process. In this study, the Monte Carlo method evaluates the fitness of each solution according to two criteria: (1) whether the joint angle range meets requirements; (2) whether the end - effector error is within constraints. Introducing stochastic factors helps more accurately evaluate joint angle optimization schemes, adds diversity to the whale optimization algorithm (WOA), and prevents convergence to local optima. To show the optimization effect of Monte Carlo on the WOA algorithm, this paper visualizes the fitness trend, and the optimization process and solution improvements can be observed through Figure [5].

4.3.4. Optimization model solution for robotic arm joint angle path

Table 4. Optimal joint angle table
θ1 θ2 θ3 θ4 θ5 θ6

43.5649

-57.1564

38.4571

-67.5167

-90

0

(x,y,z)=(1500.739833mm,1199.010154mm,199.995614mm)

(x,y,z)=(1500mm,1200mm,200mm)

Emin=198.00032151

Etotal=98.156751J

4.3.5. Analysis of solution results

This sub - question uses the Whale Optimization Algorithm to solve the established joint angle path optimization model for the robotic arm, controlling the end - effector error within the permissible range. The results show that while meeting the end - effector error requirements, the end position is close to the target position. Moreover, reasonable optimization adjustments were made to each joint angle to minimize energy consumption.

5. Conclusion

To verify the superiority of the "Monte Carlo-Whale Optimization Algorithm (WOA)," this paper compares it with traditional genetic algorithms, demonstrating that WOA converges faster and achieves higher efficiency. At the model level, the D-H parameter method is first employed to precisely characterize the geometric and kinematic relationships of a six-degree-of-freedom robotic arm. Subsequently, a comprehensive energy consumption model is constructed by integrating kinetic and gravitational potential energy with Broussonetia papyrifera, ensuring more accurate results. Algorithmically, a simulated annealing-adaptive particle swarm framework is adopted, offering flexibility, adjustability, and ease of extension to multi-objective, multi-constraint scenarios. However, this approach requires significant time for tuning multiple parameters, and its precision depends on the accurate measurement of D-H and physical parameters. Future improvements could involve stepwise solving to reduce complexity, increasing iterations and constraints to enhance accuracy, and incorporating emerging methods such as reinforcement learning to further strengthen optimization and decision-making capabilities.


References

[1]. Yu, A. (2024). Research on automatic control system design of translation robot based on the D-H model. Automation & Instrumentation, (5), 163-167.

[2]. Zhu, J., Fu, W., Ma, N., Ji, W., Su, T., & Chen, S. (2024). A whale optimization algorithm with multi-population evolution and differential mutation. Small Microcomputer Systems, 1-11.

[3]. Zhu, J., Gong, B., Xu, K., Zhu, K., & He, M. (2024). Study on the cost of precast UHPC power-facility foundations optimized by Monte Carlo algorithm. Engineering Economics, 34(2), 55-64.

[4]. Li, J. (2023). Dynamic path planning for mobile robots based on an improved A algorithm. Heilongjiang Science, 14(16), 47-52+56.

[5]. Xia, L., & Zhang, Z. (2024). Decomposability test for parameters in fully functional linear regression models. Applied Mathematics, 37(2), 509-518.


Cite this article

Dong,C.;Fei,S.;Gao,H. (2025). Research on Optimal Design of Robotic Arm Joint Angle Path Based on Optimization Algorithms. Applied and Computational Engineering,170,42-49.

Data availability

The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.

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 EWA Publishing and/or the editor(s). EWA Publishing 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.

About volume

Volume title: Proceedings of the 7th International Conference on Computing and Data Science

ISBN:978-1-80590-218-8(Print) / 978-1-80590-183-9(Online)
Editor:Marwan Omar
Conference website: https://2025.confcds.org/
Conference date: 25 September 2025
Series: Applied and Computational Engineering
Volume number: Vol.170
ISSN:2755-2721(Print) / 2755-273X(Online)

© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license. Authors who publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See Open access policy for details).

References

[1]. Yu, A. (2024). Research on automatic control system design of translation robot based on the D-H model. Automation & Instrumentation, (5), 163-167.

[2]. Zhu, J., Fu, W., Ma, N., Ji, W., Su, T., & Chen, S. (2024). A whale optimization algorithm with multi-population evolution and differential mutation. Small Microcomputer Systems, 1-11.

[3]. Zhu, J., Gong, B., Xu, K., Zhu, K., & He, M. (2024). Study on the cost of precast UHPC power-facility foundations optimized by Monte Carlo algorithm. Engineering Economics, 34(2), 55-64.

[4]. Li, J. (2023). Dynamic path planning for mobile robots based on an improved A algorithm. Heilongjiang Science, 14(16), 47-52+56.

[5]. Xia, L., & Zhang, Z. (2024). Decomposability test for parameters in fully functional linear regression models. Applied Mathematics, 37(2), 509-518.