Abstract
This paper presents an innovative approach that integrates a fixed-time control (FTC) algorithm with an improved sparrow search algorithm (ISSA) to enhance the trajectory tracking accuracy of a two-degree-of-freedom (two-DOF) robotic arm. The FTC algorithm, which incorporates barrier Lyapunov function (BLF) and adaptive neural network strategies, ensures rapid convergence, effective vibration suppression, and the robust handling of system uncertainties and input saturation. The ISSA, inspired by the foraging behavior of sparrows, improves search efficiency through dynamic weight adjustments and chaotic mapping, balancing global and local search capabilities. By optimizing control parameters, ISSA minimizes tracking errors. Simulation results demonstrate that the combined FTC and ISSA approach significantly reduces tracking errors and improves response speed compared to the use of FTC alone, underscoring its potential for achieving high-precision control in robotic arms and offering a promising direction for precise robotic control applications.
1. Introduction
The development of robotic arms has seen significant advancements [1,2,3], driven by widespread application in various fields such as manufacturing, medical robotics [2], and aerospace [3]. Robotic arms are integral to operations that require precision and dexterity. However, the inherent flexibility of these systems poses challenges, particularly as regards minimizing tracking errors and suppressing vibrations, exercises which are crucial for maintaining the desired performance and longevity of a system [1,4,5,6]. For example, precise path control is vital for the use of multi-DOF robotic arms in aerospace, while in manufacturing faster responses and greater stability can enhance production efficiency.
In existing research, numerous control methods for robotic arms have been explored, including classical PID control, the assumed mode method (AMM) for multi-degree-of-freedom flexible robotic arms, and adaptive robust control [7,8,9,10,11,12,13]. These methods often struggle to balance rapid error reduction with minimal overshoot and stable transient response, leading to performance trade-offs [14,15,16,17,18,19]. Furthermore, current strategies frequently encounter issues related to input saturation and system uncertainties, further complicating the design and implementation of control mechanisms. Additionally, traditional methods often struggle with the trade-off between fast convergence and vibration suppression. Therefore, the improvement of tracking accuracy and control performance has emerged as a key research focus [2,3]. To address these challenges, we propose an improved sparrow search algorithm (ISSA), which incorporates four significant enhancements to optimize control parameters more effectively.
In the process of controlling robotic arms, it is known that rapid convergence, when dealing with input nonlinearities, can sometimes increase the amplitude of vibrations, thereby making it challenging to achieve both good error convergence and vibration suppression simultaneously. Fixed-time control methods offer an effective solution for attaining high precision and rapid convergence [14,15,16,17]. A major advantage of this control approach is that the setting time is independent of initial conditions and is solely determined by the controller gains. Furthermore, the extensive research on fixed-time control provides valuable references for further exploring its capabilities and applications [18,19,20,21,22,23,24]. The performance of robotic arm control is reflected in the selection of controller gains. When the control gain is too high, the error converges quickly but this is accompanied by oscillations in the output torque. When the control gain is too low, the error converges more slowly, but the output torque is relatively smooth. To solve this problem, we introduce an improved seagull search algorithm to find the appropriate controller gains, ensuring that the tracking error converges to within a small set of values while maintaining a fast convergence rate and relatively stable output torque.
The sparrow search algorithm (SSA) provides an effective global optimization solution for the parameter optimization of robotic control systems by simulating the social behavior and foraging strategies of sparrows. This algorithm is particularly suitable for dynamic environments, where it automatically adjusts control gains to enhance the performance and adaptability of robots [25]. The improved seagull search algorithm includes four key enhancements. Firstly, the ISSA uses good point-to-set mapping to initialize the population, ensuring that there is a well-distributed set of initial solutions that enhances the diversity of the search space [26]. Secondly, the proportion coefficient is adaptively improved, balancing exploration and exploitation to maintain search efficiency throughout the optimization process [27,28]. Thirdly, the explorer’s position update formula is refined to enhance global search capabilities and prevent premature convergence [25]. Finally, the introduction of tent mapping and Cauchy mutation helps the algorithm to escape local optima and improves robustness [29,30,31].
In the context of control design, we focus on addressing system uncertainties and nonlinearities. This includes employing the barrier Lyapunov functions for stability analysis [32] and ensuring that input saturation constraints are managed effectively. The use of a radial basis function (RBF) neural network structure is pivotal in approximating unknown system dynamics, thus improving the adaptive control performance [9,33,34]. Regarding the performance of robotic arms in actual control, the arctan function is employed to avoid input saturation [35]. This approach helps in maintaining the effectiveness of the control signal within the operational limits, thereby enhancing the overall stability and responsiveness of the system [35,36]. Our improved algorithm optimizes control parameters, balancing error convergence and vibration suppression, demonstrating its suitability for various applications.
In order to assess the performance of the proposed control algorithm, we employed a two-DOF robot manipulator. We propose a fixed-time control and optimization scheme for a two-degree-of-freedom robotic arm. Our analysis shows that the improved sparrow search algorithm significantly reduces tracking errors, enhances response speed, and achieves effective transient performance and vibration suppression. Compared to previous research, this paper’s contributions are as follows:
- (1)
- The proposed fixed-time control strategy achieves rapid convergence and enhanced vibration suppression for a n-degree-of-freedom robotic arm. This strategy addresses input saturation, output constraints, and system uncertainties to broaden the arm’s application. A novel adaptive law using logarithmic barrier Lyapunov functions (BLFs) was developed within this framework to manage parameter uncertainties and ensure that outputs stay within set limits.
- (2)
- The improved sparrow search algorithm enhances the traditional method by more effectively searching the solution space and identifying optimal control parameters, thus improving the robotic arm’s motion control performance. This algorithm serves as an optimization mechanism in this paper, boosting the effectiveness of the fixed-time control method in order to optimize the arm’s performance.
In this paper, Section 2 introduces the theoretical background and provides a problem statement. Section 3 analyses the design of the controller. Section 4 conducts simulations of the ISSA algorithm and performs simulations to demonstrate the proposed optimized control performance. Section 5 presents the conclusions.
2. Theoretical Background and Problem Statement
The n-dimensional discretized model of a n-link robotic arm is shown in Figure 1. In the given framework, signifies the angular vector, and denotes the output torque of n-DOF robotic arm. denotes the mass matrix dependent on the robotic arm. denotes the Coriolis and centrifugal force matrix, which depends on the robot’s velocities and accelerations. encapsulates the combined influence of gravity’s forces. Incorporating input saturation nonlinearity is imperative in order to tackle control intricacies and bolster stability within an n-degree-of-freedom robotic arm framework. The asymmetric input saturation can be defined as follows:
Figure 1.
A sketch of a n-degree-of-freedom (n-DOF) robotic arm.
The dashed lines represent the initial positions of the robotic arm, with indicating the joint rotation angles of the robotic arm.
Let , where and specify the maximum and minimum limits of the torque, respectively. The control laws are designed with the known parameters and ; the functions and are nonlinear and unknown with respect to .
The inertia matrix possesses the properties of symmetry and positive definiteness. The matrix demonstrates skew-symmetry.
2.1. Input Saturation Nonlinearity
In applications that require high precision and rapid responses, managing input saturation is a prevalent challenge. The primary role of input saturation nonlinearity in such systems is to regulate the extremities of control inputs, thereby ensuring both system stability and optimal control performance.
The saturation nonlinearity can be described as follows [35]:
where the term denotes the approximation error, and the function is given .
where
By applying the mean value theorem, Equation (4) is formulated as follows:
We initialize = 0 and assume that for . The matrix is defined as a diagonal matrix, with diagonal elements given by . It is determined that is less than and thus less than 0.712. Consequently, it follows that the maximum eigenvalue of the matrix does not exceed 0.712. Finally, the function is reformulated as follows:
2.2. Barrier Lyapunov Function
Within a system described by , when the system incorporates a continuous and strictly positive function , defined on an open set , the function is characterized as differentiable, with its first derivatives maintaining continuity throughout the domain . A notable feature of is its asymptotic behavior: it diverges to infinity as nears the periphery of . Further, for any positive time and any initial condition within , specifically , the function , adheres to a strict upper bound, denoted by . This ensures that remains strictly positive and does not exceed , thereby establishing across the domain.
To facilitate this, the adoption of the following RBF is warranted:
where the parameters dictate that must be greater than zero, with confined within the range of −a to a. Additionally, as the magnitude of approaches , grows infinitely large.
2.3. Radial Basis Function Neural Network
Neural networks are highly adept at modeling diverse nonlinear functions, as evidenced in references [9,32,33,34]. Their streamlined learning protocols enhance computational efficiency, making them ideal for addressing the uncertainties discussed in this study. In neural network models, the function approximation process involves mapping input data to the output , where is a feature vector from real-world applications and . This mapping is achieved through the use of specific activation functions by each neuron in the network, typically Gaussian functions. The mathematical representation of this choice is as follows:
where denotes the weight vector corresponding to the i-th output, and represents feature mapping based on the input . This can be expressed as a collection of Gaussian functions:
Each is a Gaussian basis function, and can be defined as follows:
To handle complex data effectively, the number of nodes l in the neural network must be sufficiently large. The centers of the Gaussian functions are denoted by , and their widths determine the range of these functions. By adjusting the weights and the parameters of the basis functions, this configuration can effectively model the uncertainty of the system.
Working by approximation, the uncertain aspect of the system can be represented as follows [37]:
where denotes the bounded error, enabling the model to approximate nonlinear behaviors within an error constraint. is the ideal weight.
This targets the best weight vector , which minimizes the maximum deviation between the actual function and the neural network approximation across all inputs, enhancing the model’s precision in uncertain environments.
2.4. Improved Sparrow Search Algorithm (ISSA)
The SSA is a nature-inspired optimization algorithm inspired by the foraging behavior and predator evasion tactics of sparrows [7]. In order to solve various optimization problems, this algorithm simulates the patterns of behavior exhibited by sparrow populations when searching for food, being vigilant, and escaping from predators. The sparrow population is typically divided into two main roles: leader sparrows (explorers) and followers. Leader sparrows primarily explore unknown areas to find resources, while followers change their positions based on the information provided by the leader sparrows [25].
Firstly, it is necessary to initialize the positions of the sparrow population. Each sparrow represents a potential solution. Sparrows update their positions either randomly or in a way that is partially guided by relevant information in order to simulate foraging. The formula is often expressed as follows:
where is the position of sparrow at time , and are the best and worst positions in the current population, respectively, and and are random numbers.
While searching for food, sparrows must also remain vigilant to avoid becoming prey. This is typically achieved through another position updating strategy, such as the following:
where , , and are random numbers, is the sign function, and and are the lower and upper bounds of the solution space, respectively.
When sparrows perceive the threat of a predator, they rapidly change location to evade the threat. This process can be modeled with the following formula:
where is a randomly chosen sparrow’s position from the population, and is a random number.
As shown in Figure 2, the improved sparrow search algorithm (ISSA) begins by accepting inputs, such as the population size, maximum iterations, and the lower and upper bounds of the search space. Initially, the population is generated through good point set (GPS) mapping, which enhances the diversity of the population and ensures better coverage of the search space. Following the initialization, the fitness of each individual in the population is calculated using the objective function, and the individuals are sorted based on their fitness values in order to identify the best and worst solutions. As the algorithm progresses, a proportion coefficient is calculated based on a warning threshold (ST) and a disturbance factor (k). This is used to dynamically adjust the balance between exploration and exploitation throughout the iterations. The next step involves calculating the number of explorers (discoverers) and joiners within the population. Explorers, responsible for finding new directions in the search space, update their positions using an improved formula or random perturbations, depending on the current fitness landscape and the global best solution. Joiners, on the other hand, update their positions relative to other individuals in the population, incorporating noise or differential vectors to refine their search. After updating positions, the average fitness of the population is calculated, serving as a criterion for determining which individuals undergo mutation-based operations. Individuals with fitness values below the population average are subjected to Cauchy mutation, introducing larger perturbations in order to facilitate exploration. Meanwhile, individuals with higher fitness values experience tent mapping, which finetunes their positions for exploitation. The algorithm incorporates boundary control to ensure that all individuals remain within the defined search space. This is followed by updates to the fitness values based on the new positions. This process iterates, with continuous updates to the global best solution, until either convergence is reached or the maximum number of iterations is completed, at which point the best position and fitness score are generated as the final outputs.
Figure 2.
The workflow of ISSA.
Although the traditional sparrow search algorithm (SSA) has demonstrated a commendable performance in various optimization problems through its emulation of natural sparrow foraging and predator evasion behaviors, the algorithm encounters challenges when addressing some complex optimization scenarios. In high-dimensional and multimodal problems in particular, traditional SSA can sometimes become trapped in local optima, and its convergence speed may be suboptimal [28,29,30,31]. Moreover, balancing exploration and exploitation capabilities remains a key area for enhancement. To overcome these limitations, this research proposes an improved sparrow search algorithm (ISSA) that incorporates several key innovations to enhance the original framework:
- (1)
- The good point set (GPS) is a strategy for generating initial solution sets characterized by high uniformity and low correlation. It is suitable for use in global optimization problems. This strategy involves selecting the smallest prime number greater than , coupled with the use of the cosine function, to create a point set. The specific formula for generating points is as follows:
Thus, the good point set ensures the uniform distribution of the initial population in the parameter space, effectively enhancing the diversity of solutions and reducing clustering among them. This contributes to improving the global search capabilities and the efficiency of optimization algorithms.
- (2)
- By dynamically adjusting the proportion of discoverers and joiners, this improvement aims to balance exploration and exploitation capabilities. The proportional coefficient changes dynamically with the number of iterations, allowing for more explorers to investigate the solution space early in the search and increasing the number of joiners later on in order to refine potential solution areas already identified [27].
The calculation method for the proportional coefficient is as follows:
where is the current iteration number, and are coefficients, and generates a random number within the [0, 1] interval. indicates the maximum number of iterations.
- (3)
- This enhancement uses an exponential decay factor to adjust the position updates of explorers in order to optimize their efficiency when searching the solution space [25].
If be the position of the j-th explorer at iteration i, the update formula is as follows:
where is a random number within the interval [0, 1].
- (4)
- This improvement increases population diversity by combining a tent map and Cauchy mutation, thereby enhancing the algorithm’s ability to avoid local optima and explore new areas [29,30,31]. Cauchy mutation is used when an individual’s fitness value is less than the average fitness value of the population. Tent mapping is used when an individual’s fitness value is greater than or equal to the average fitness value of the population.
Cauchy mutation is determined. If is the position of the j-th individual at iteration i, the position after Cauchy mutation is calculated as follows:
It is necessary to generate a Cauchy random number
where is a random number within the interval [0, 1].
Is is a random number in the interval [0, 1], the disturbance value tentV is computed as follows:
Then, the position after tent mapping is as follows:
where is a random number within the interval [0, 1], and is the population size.
2.5. Preliminaries
Lemma 1 [38].
This asserts that for any real numbers , and for the inequality is valid. This lemma is essential for bounding the cumulative errors in nonlinear control environments.
Lemma 2 [20].
The Cauchy–Schwarz inequality is formalized as . It plays a critical role in assessing the stability and convergence properties of the system.
Lemma 3 [39].
The inequality for ,,,, and is a form of Young’s inequality, which is useful for controlling product terms in analysis.
Lemma 4 [40].
In Lemma 4, it is posited that , an -dimensional real symmetric positive definite matrix, adheres to a crucial inequality for all . Specifically, the quadratic form for any vector is bounded by and , where and represent the minimum and maximum eigenvalues of respectively. This lemma highlights essential properties of linear algebra and matrix theory, facilitating the estimation of the impact matrix operations have on vectors.
Lemma 5 [14].
It is necessary to assume that for a system , the origin is an equilibrium point, meaning the initial condition is , and the dynamics of the system are described by . If there exists a positive function and constants , with and , the f is determined as follows:
The origin point is stable, the convergence speed does not change with time, and the upper limit of the system’s stable time follows the following relationship:
Remark 1 [41].
There are various definitions for the settling time function , and this article adopts an approach that is distinct from that used in previous research. By employing our definition, we demonstrate the practical efficacy and benefits of the fixed-time control strategy.
3. Fixed-Time Control Design and Lyapunov Function Proof Process
3.1. Fixed-Time Control Design
The error signal between the actual state and the desired trajectory is determined as follows:
The derivative of is given by the following:
The error signal between the actual velocity and the virtual control variable is determined as follows:
where is the virtual control and is the desired trajectory. The barrier Lyapunov function (BLF) is formulated as follows:
The selection of this function aims to ensure that the system state remains within the specified constraints by employing control. It also aims to achieve system stability through the regulation of the error . The parameter serves to enforce the constraints on the system state.
In this formula, , , and are real numbers that satisfy the conditions , ,. These parameters are chosen and tuned based on the required error convergence trajectory.
Taking the time derivative of yields :
α is designed as follows:
In this context, and are design constants.
Given that and that we aim for the system output to remain within the predetermined range where , by substituting (33) into (32), we obtain the following:
The fixed-time control signal is structured as follows:
Here, and based on errors and , are defined as follows:
Key parameters include design gains and , both of which are positive values, and denotes the maximum eigenvalue of the matrix It is recommended that the latter not exceed 0.712. denotes the estimation of .
To address the uncertainties in dynamics, we employ a radial basis function (RBF) neural network to help reduce system errors.
where symbolizes the network’s optimal weight vector, and encompasses the input parameters, including position and velocity . The function represents the basis function deployed within the network, while indicates the bounded approximation error, with signifying the bound.
To ensure the convergence of the speed error, we design as follows:
The result of differentiating obtained through Appendix A is as follows:
represents the weight of the difference between the actual state and the desired value, and we design a rule for use updating the neural network as follows:
where signifies the constant matrices, and denotes the constants employed to augment the robustness of the system. .
We designed to handle system uncertainties and external disturbances, ensuring to improve the robustness of the system.
The result of differentiating , obtained from Appendix B, is as follows:
where
where and are chosen such that .
3.2. Lyapunov Function Proof
To demonstrate that ,, and converge to distinct sets within the convergence time , we derive the following Lyapunov equation based on the preceding discussion:
Deriving the derivative of the above equation yields the following:
where
Using Lemma 2 and Equation (48), we obtain the following:
where and have the following definitions:
To ensure that , , and converge within the corresponding compact sets, and to allow to converge within a specific interval, we eliminate the term B from (50), and set , which allows the system to eventually converge to the set . Furthermore, we design a constant within the interval from 0 to 1, which ensures that . Therefore, Equation (50) can be rephrased as follows:
Let represent the duration required for the system to reach a converged state within a fixed time period. According to Lemma 5, is designed as follows:
Within a time , , , and will each converge towards respectively. These are designed as follows:
With
4. Simulation
4.1. Simulation on ISSA Performance
In the simulation tests, eight standard benchmark functions (F1 to F8) were utilized to evaluate the performance of the ISSA. These functions are designed to test different aspects of the algorithm to ensure its efficiency, accuracy, and robustness. Among them, F1, F2, and F4 are unimodal functions, which are primarily used to test the convergence speed and efficiency of optimization algorithms. They help us to understand the algorithm’s performance as it approaches the optimal solution, as well as the algorithm’s speed and stability. On the other hand, F3, F5, F6, F7, and F8 are multimodal functions, which contain multiple local optima within their domains. This complexity makes it more challenging to locate the global optimum. Therefore, multimodal functions are employed to test the global search capabilities of optimization algorithms, specifically assessing whether the algorithm can effectively escape local optimal values and ultimately locate the global optimum.
In the simulation, we utilized six different optimization algorithms, namely the sparrow search algorithm (SSA), the improved sparrow search algorithm (ISSA), particle swarm optimization (PSO), chimpanzee optimization algorithm (Chimp), the grey wolf optimizer (GWO), and the whale optimization algorithm (WOA). The parameters for the algorithms were set as follows: the maximum number of iterations was set to 500, and the population size was set to 40. For the SSA and ISSA algorithms, the warning value was set to 0.6, the proportion of explorers was 0.7, and the proportion of sparrows aware of the danger was 0.3. In the PSO algorithm, the inertia factor was 0.9, and the learning factor was 2. In Chimp, the exploitation factor was 2. For the GWO and WOA methods, the dynamic adjustment parameter initial value was set to 2. Each function was run independently 10 times. The average value, optimal value, and worst value were recorded for the SSA, ISSA, PSO, GWO, Chimp, and WOA techniques.
The simulations were performed using MATLAB R2021a on a system running Windows 10 (64-bit) with an 11th Gen Intel (R) Core (TM) i5-11400F (Intel, Santa Clara, CA, USA) processor at 2.60 GHz.
Table 1, as regards F7, represents the penalty function, defined as , where k = 100, a = 5, and m = 4. Here, is an indicator function that takes the value 1 if x > a and 0 otherwise, and is another indicator function that takes the value 1 if and 0 otherwise.
Table 1.
Parameters of standard test functions.
In F8, let and for .
Table 2 presents the experimental results for six different algorithms across various functions. To illustrate the optimization performance of the algorithms, Figure 3 displays the iteration curves for each function.
Table 2.
Experimental results for six different optimization algorithms.
Figure 3.
Iteration curves for functions F1 to F8. (a) Iteration curve for F1. (b) Iteration curve for F2. (c) Iteration curve for F3. (d) Iteration curve for F4. (e) Iteration curve for F5. (f) Iteration curve for F6. (g) Iteration curve for F7. (h) Iteration curve for F8.
Figure 3 shows the changes in the fitness values of six optimization algorithms when one is finding the optimal values of eight test functions with increasing iterations. It can be seen from the diagrams that ISSA demonstrates a superior optimization capability in all test functions, with faster convergence and higher solution precision. For instance, in unimodal functions F1, F2, and F4, ISSA’s convergence rate is significantly higher than that of other algorithms, with values matching the theoretical ones, thus showing the highest solution precision. Compared to SSA, which has the second highest solution precision, ISSA’s precision is greater by more than 100 orders of magnitude. In multimodal functions F3, F5, F6, F7, and F8, ISSA performs best when comparing optimal, worst, and average values. In F3, the ISSA algorithm demonstrates a rapid initial decline, stabilizing after approximately 50 iterations, indicating an exceptionally fast convergence rate. In comparison, both the SSA and PSO algorithms also stabilize after around 50 iterations, but their convergence speed and precision values are slightly inferior to those of ISSA. In F5, the final convergence value of ISSA is the lowest among all the algorithms, indicating that there is a more optimal solution. The final convergence values of PSO and GWO are slightly higher than those of ISSA and SSA, but they are still at a relatively good level. WOA and Chimp exhibit significant fluctuations throughout the entire iteration process, resulting in lower final precision values. In F6, neither Chimp nor PSO found the ideal solution, with ISSA showing more than 15 times greater precision. In F6, ISSA and SSA have the same average value of 8.8818 × 10−16, but ISSA converges faster. In F7 and F8, the ISSA solution still exhibits the highest accuracy. Notably, in F7, the Chimp algorithm does not produce an exact solution. The iteration curves from Figure 3 indicate that the ISSA algorithm can prevent a search from becoming trapped in local optima, thus enhancing the solution precision and search capability of the algorithm.
4.2. Two-DOF Robotic Arm Simulation
In this section, the proposed control scheme is applied to a two-degree-of-freedom robotic arm simulation platform to verify its effectiveness. Specific simulation platform parameters are shown in Table 3. The simulations were carried out in two parts, using the proposed fixed-time control combined with an improved sparrow search algorithm. To validate the robustness of the algorithm, we compared it with traditional PD control.
Table 3.
Parameters of the two-DOF robotic arm.
The simulations were performed using MATLAB R2021a on a system running Windows 10 (64-bit) with an 11th Gen Intel (R) Core (TM) i5-11400F processor at 2.60 GHz.
The first part of the simulation was conducted without the sparrow search algorithm. In the second part, we presented the simulation results of the control scheme with the sparrow algorithm and compared them to those of the control without the sparrow search algorithm. To compare control performance, we chose the same desired signals, and , as were utilized for 0.3 rad and 0.2 rad, respectively, and we set the same initial conditions as were used for and .
There are 5 nodes in the hidden layer of the neural network, with the activity centers of the hidden layer nodes set at [−1, −0.5, 0, 0.5, 1], and the variance of the basis function is 1. The control parameters are set to , and , and the initial weight is , where and . Since the desired trajectory is a square wave, the error suddenly changes when the signal jumps. Therefore, was chosen to control the amplitude of oscillation. Symmetric input saturation constraints were chosen with corresponding values of Nm, Nm, Nm and Nm, ,, and .
From Figure 4a and Figure 5a, it can be observed that the first arm reaches a steady state at 0.231 s when tracking the desired trajectory, with an overshoot of 0.311 rad. The steady state error is rad for the first 5 s, and rad for the 5 to 10 s interval. From Figure 4b and Figure 5b, it is noted that the second arm reaches a steady state at 0.296 s when tracking the desired trajectory, with an overshoot of rad. The steady state error is rad for the first 5 s, and rad for the 5 to 10 s interval. From Figure 6, it is known that the maximum control torque of the first and second arms does not exceed the input unsaturated signal.
Figure 4.
The simulation of the trajectory tracking without the ISSA. (a) The simulation results of the first link. (b) The simulation results of the second link.
Figure 5.
The simulation of the trajectory tracking error without the ISSA. (a) The simulation results of the first link. (b) The simulation results of the second link.
Figure 6.
Control torques: (a) the simulation results of the first link; (b) the simulation results of the second link.
A fixed-time improved sparrow search algorithm is employed, with the population size set to 30, and iterated 50 times. For parameters , , , and , the lower bounds are set to 0.5 times , and the upper bounds are set to 2 times . Through multiple iterations and by simulating different controller parameter settings, the corresponding integral of time-weighted absolute error (ITAE) values is calculated. The parameter combination that minimizes the ITAE is selected to achieve the optimization of the overall system.
From Figure 7a and Figure 8a, it is observed that the first arm reaches a steady state in 0.224 s while tracking the desired trajectory, with an overshoot of rad. The steady state error is rad for the first 5 s, and rad for the 5 to 10 s interval. From Figure 7b and Figure 8b, it is noted that the second arm reaches a steady state in 0.279 s while tracking the desired trajectory, with an overshoot of rad. The steady state error is rad for the first 5 s, and rad for the 5 to 10 s interval.
Figure 7.
The simulation of trajectory tracking with the ISSA. (a) The simulation results of the first link. (b) The simulation results of the second link.
Figure 8.
The simulation of trajectory tracking errors with the ISSA. (a) The simulation results of the first link. (b) The simulation results of the second link.
To verify its robustness, we conducted additional comparative simulations using the PD control algorithm alongside the fixed-time control (FTC) algorithm, with the latter optimized by the ISSA (improved sparrow search algorithm). By comparing the tracking error trajectories of both control methods across two joints, we obtained a more comprehensive understanding of the control performance. The PD control is given as follows:
where and represent the proportional gain and differential gain, respectively. The control gains are set to and . Figure 9 presents the corresponding results of the simulations.
Figure 9.
The simulation of PD control: (a) the simulation results of the first link; (b) the simulation results of the second link.
By comparing Figure 9a and Figure 10a, it can be observed that at 3 s, the trajectory errors of the first link of the robotic arm are and , respectively, while at 8 s, the errors are and . Similarly, from the comparison between Figure 9b and Figure 10b, it can be observed that at 3 s, the trajectory errors of the second link of the robotic arm are and , respectively, while at 8 s the errors are and .
Figure 10.
The simulation of fixed-time control with ISSA: (a) the simulation results of the first link; (b) the simulation results of the second link.
It is evident that the steady-state error of the robotic arm under the fixed-time control combined with ISSA is smaller than that under PD control.
To further demonstrate the robustness of the FTC with ISSA, we introduced external disturbances to the two-DOF robotic arm and compared its performance with that of the PD control. This comparison highlights the superior robustness of the FTC-ISSA method under external interference conditions, as reflected in the error convergence and tracking accuracy metrics.
To simulate potential external disturbances that the system might encounter in real-world operations, a random external disturbance force was applied during the 3 to 4 s interval to evaluate the robustness and stability of the control system. The disturbance force acts on both joints of the robotic arm, with each component affecting one of the two degrees of freedom. The disturbance values are constrained within the range of [−10,10] N, ensuring that the magnitude of the perturbation remains within a physically reasonable range. In certain cases, a hyperbolic tangent (tanh) function was used to smooth the randomly generated disturbance, preventing abrupt changes and simulating more continuous and gradual environmental disturbances. These disturbances are introduced into the system’s dynamic equation, directly influencing the joint acceleration , which in turn alters the overall system trajectory. By introducing such disturbances, the control system’s ability to handle uncertainties and maintain performance under external perturbations is rigorously tested, thus assessing the system’s robustness in unpredictable environments.
As shown in Figure 11a,b, the PD control is subjected to larger disturbances compared to the control method combining ISSA and fixed-time control. The errors induced by the disturbances to both the first and second arms of the robotic system are the largest under PD control. Furthermore, the convergence rate after the disturbance is removed is significantly slower under PD control. This clearly demonstrates the superior robustness of the combined ISSA and fixed-time control in handling uncertainty.
Figure 11.
A comparison of errors between ISSA combined with fixed-time control and PD control under external disturbances. (a) The simulation results of the first link. (b) The simulation results of the second link.
4.3. Summary
Compared to two different control methods, it can be concluded that the integration of the ISSA algorithm improves the tracking precision of the first arm by two orders of magnitude, showing a significant enhancement, and also improves the tracking precision of the second arm. Additionally, the response speed is on average 0.007 s faster for the first arm and 0.017 s faster for the second arm compared to the control without ISSA integration. In summary, the figures show that the time-fixed control achieves the goal of rapid convergence, with good control effects and a torque below the input saturation torque. The integration of the ISSA algorithm also achieves the objectives of enhancing control precision and improving response speed. Table 4 and Table 5 summarize the experimental results.
Table 4.
Error summary table.
Table 5.
Overshoot summary table.
I compared an optimized control that combines ISSA and fixed-time control with traditional PD control, and in terms of both trajectory error and robustness, the former proved to be superior.
5. Conclusions
This paper presents a novel approach to the use of the integrated fixed-time control (FTC) algorithm and the improved sparrow search algorithm (ISSA) to minimize the trajectory tracking errors of robotic arms. By integrating the improved ISSA and the FTC, we presented rapid convergence and precise trajectory tracking performance under stringent constraints. The application of barrier Lyapunov functions (BLFs) has proven effective in ensuring the robustness and stability of the control system against disturbances and model uncertainties. While higher DOF systems offer more comprehensive validation, the proposed control algorithms are scalable and adaptable, and we expect similar performances in 3-DOF and 6-DOF systems. Future work will focus on extending this approach to more complex robotic arms in order to further validate its robustness and real-world applicability.
A computer simulation for the two-DOF robotic arm was performed and we confirmed that the proposed hybrid approach significantly reduced tracking errors and improved response speeds compared with the traditional FTC algorithm alone.
According to the chapter on “Simulation on ISSA Performance”, it is evident that ISSA exhibits excellent optimization capabilities and robustness for the system. From the section on “Two-DOF Robotic Arm Simulation”, it is understood that integrating ISSA with fixed-time control yields relatively precise controller parameters, achieving the objectives of reducing errors and enhancing response speed. Compared with traditional PD control methods, its superior robustness has been verified. Our simulation results confirm that there is an enhanced control performance, showcasing significant reductions in tracking errors and faster system responses. This hybrid approach not only leverages the quick convergence properties of fixed-time control but also capitalizes on the global search capabilities of ISSA, finetuning the control actions in order to adapt them dynamically to changing conditions. This study contributes to the field by demonstrating a scalable and reliable control strategy that enhances the operational efficiency of robotic arms in complex environments, paving the way for broader applications in advanced robotic systems.
Author Contributions
Conceptualization, M.T.V. and H.-S.C.; methodology, R.Z.; software, D.J.; validation, M.T.V., R.Z., H.C., P.H.N.A. and H.-S.C.; formal analysis, R.Z.; investigation, H.-S.C. and M.T.V.; resources, D.J. and R.Z.; data curation, H.C. and P.H.N.A.; writing—original draft preparation, R.Z., H.-S.C. and M.T.V.; writing—review and editing, R.Z.; supervision, H.-S.C. and M.T.V.; project administration, H.-S.C.; funding acquisition, H.-S.C. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.
Acknowledgments
This research was supported by Development of mobile laser hull cutting equipment for rapid lifesaving in case of ship capsize (20024457).
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A
In the analysis of the dynamic system, the time derivative of the Lyapunov function was computed. The function is defined as follows:
Taking the time derivative of gives the following:
Because is the skew-symmetric matrix, the expression for can be simplified as follows:
After inserting Equations (37)–(41) into Equation (A3), one obtains the following:
Thus, meets the specified criteria:
Considering Lemma 4, Equation (A7) is written as follows:
Appendix B
This is a study on the time derivative of :
Given in Equation (A9), the following inequality holds:
The expression for in Equation (A9) can be presented as follows:
Using Lemma 3 results in the following:
Moreover, is clear. Considering the inequalities (A12)–(A14), we can rewrite Equation (A11) as follows:
Upon substituting Equations (A10) and (A15) into Equation (A9), the ensuing inequality emerges:
Per Lemma 4, Equation (A16) is reformulated as follows:
According to Lemmas 1 and 2, (A17) is written as follows:
References
- Li, R.; Qiao, H.; Knoll, A. A Survey of Methods and Strategies for High-Precision Robotic Grasping and Assembly Tasks—Some New Trends. IEEE/ASME Trans. Mechatron. 2019, 24, 2718–2732. [Google Scholar] [CrossRef]
- Hesse, S.; Werner, C.; Pohl, M.; Mehrholz, J.; Puzich, U.; Krebs, H.I. Mechanical Arm Trainer for the Treatment of the Severely Affected Arm After a Stroke. Am. J. Phys. Med. Rehabil. 2008, 87, 779–788. [Google Scholar] [CrossRef] [PubMed]
- Ding, X.L.; Wang, Y.C.; Wang, Y.B.; Xu, K. A review of structures, verification, and calibration technologies of space robotic systems for on-orbit servicing. Sci. China Technol. Sci. 2021, 64, 462–480. [Google Scholar] [CrossRef]
- Hu, J.S.; Chang, N.Y.C.; Yang, J.J.; Wang, J.J.; Lossio, R.G.; Chien, M.C.; Chang, Y.J.; Kai, C.Y.; Su, S.H. FPGA-based embedded visual servoing platform for quick response visual servoing. In Proceedings of the 2011 8th Asian Control Conference (ASCC), Kaohsiung, Taiwan, 15–18 May 2011; pp. 263–268. [Google Scholar]
- Lacquaniti, F.; Licata, F.; Soechting, J.F. The mechanical behavior of the human forearm in response to transient perturbations. Biol. Cybern. 1982, 44, 35–46. [Google Scholar] [CrossRef]
- Zhou, F.; Tian, X.; Tian, L. Reliability Analysis of Quick Coupler Attached to Rescue Manipulator Arm. In Proceedings of the 2019 International Conference on Quality, Reliability, Risk, Maintenance, and Safety Engineering (QR2MSE), Zhangjiajie, China, 6–9 August 2019; pp. 703–708. [Google Scholar]
- Dai, Y.; Li, S.; Chen, X.; Nie, X.; Rui, X.; Zhang, Q. Three-dimensional truss path planning of cellular robots based on improved sparrow algorithm. Robotica 2024, 42, 347–366. [Google Scholar] [CrossRef]
- Tee, K.P.; Ge, S.S.; Tay, E.H. Barrier Lyapunov Functions for the control of output-constrained nonlinear systems. Automatica 2009, 45, 918–927. [Google Scholar] [CrossRef]
- Lin, H.; Zhao, B.; Liu, D.; Alippi, C. Data-based fault tolerant control for affine nonlinear systems through particle swarm optimized neural networks. IEEE/CAA J. Autom. Sin. 2020, 7, 954–964. [Google Scholar] [CrossRef]
- Lee, H.-W. The Study of Mechanical Arm and Intelligent Robot. IEEE Access 2020, 8, 119624–119634. [Google Scholar] [CrossRef]
- Qiu, Z.-C.; Li, C.; Zhang, X.-M. Experimental study on active vibration control for a kind of two-link flexible manipulator. Mech. Syst. Signal Process. 2019, 118, 623–644. [Google Scholar] [CrossRef]
- Sun, C.; Gao, H.; He, W.; Yu, Y. Fuzzy Neural Network Control of a Flexible Robotic Manipulator Using Assumed Mode Method. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 5214–5227. [Google Scholar] [CrossRef]
- Jiao, R.; Chou, W.; Ding, R.; Dong, M. Adaptive robust control of quadrotor with a 2-degree-of-freedom robotic arm. Adv. Mech. Eng. 2018, 10, 1687814018778639. [Google Scholar] [CrossRef]
- Zuo, Z.; Tian, B.; Defoort, M.; Ding, Z. Fixed-time consensus tracking for multiagent systems with high-order integrator dynamics. IEEE Trans. Autom. Control 2017, 63, 563–570. [Google Scholar] [CrossRef]
- Song, Y.; Wang, Y.; Krstic, M. Time-varying feedback for stabilization in prescribed finite time. Int. J. Robust Nonlinear Control 2019, 29, 618–633. [Google Scholar] [CrossRef]
- Wang, Y.; Song, Y.; Hill, D.J.; Krstic, M. Prescribed-time consensus and containment control of networked multiagent systems. IEEE Trans. Cybern. 2018, 49, 1138–1147. [Google Scholar] [CrossRef] [PubMed]
- Wang, Y.; Song, Y. Leader-following control of high-order multi-agent systems under directed graphs: Pre-specified finite time approach. Automatica 2018, 87, 113–120. [Google Scholar] [CrossRef]
- Orquera, M.; Campocasso, S.; Millet, D. Topological Optimization of a Mechanical System with Adaptive Convergence Criterion. In Advances on Mechanics, Design Engineering and Manufacturing III, Proceedings of the International Joint Conference on Mechanics, Design Engineering & Advanced Manufacturing, JCM 2020, Aix en Provence, France, 2–4 June 2020; Roucoules, L., Paredes, M., Eynard, B., Morer Camo, P., Rizzi, C., Eds.; Springer: Berlin/Heidelberg, Germany, 2021. [Google Scholar]
- Moubarak, P.; Ben-Tzvi, P. A globally converging algorithm for adaptive manipulation and trajectory following for mobile robots with serial redundant arms. Robotica 2013, 31, 1299–1311. [Google Scholar] [CrossRef]
- Jin, X. Adaptive fixed-time control for mimo nonlinear systems with asymmetric output constraints using universal barrier functions. IEEE Trans. Autom. Control 2018, 64, 3046–3053. [Google Scholar] [CrossRef]
- Li, J.; Yang, Y.; Hua, C.; Guan, X. Fixed-time backstepping control design for high-order strict-feedback non-linear systems via terminal sliding mode. IET Control Theory Appl. 2017, 11, 1184–1193. [Google Scholar] [CrossRef]
- Meng, D.; Zuo, Z. Signed-average consensus for networks of agents: A nonlinear fixed-time convergence protocol. Nonlinear Dyn. 2016, 85, 155–165. [Google Scholar] [CrossRef]
- Zuo, Z. Nonsingular fixed-time consensus tracking for second-order multi-agent networks. Automatica 2015, 54, 305–309. [Google Scholar] [CrossRef]
- Zuo, Z. Non-singular fixed-time terminal sliding mode control of non-linear systems. IET Control Theory Appl. 2015, 9, 545–552. [Google Scholar] [CrossRef]
- Gharehchopogh, F.S.; Namazi, M.; Ebrahimi, L.; Abdollahzadeh, B. Advances in Sparrow Search Algorithm: A Comprehensive Survey. Arch. Comput. Methods Eng. 2023, 30, 427–455. [Google Scholar] [CrossRef] [PubMed]
- Li, Y.; Ni, Z.; Jin, F.; Li, J.; Li, F. Research on clustering method of improved glowworm algorithm based on good-point set. Math. Probl. Eng. 2018, 2018, 1–8. [Google Scholar] [CrossRef]
- Yue, Y.; Cao, L.; Lu, D.; Hu, Z.; Xu, M.; Wang, S.; Li, B.; Ding, H. Review and empirical analysis of sparrow search algorithm. Artif. Intell. Rev. 2023, 56, 10867–10919. [Google Scholar] [CrossRef]
- Xue, J.; Shen, B. A novel swarm intelligence optimization approach: Sparrow search algorithm. Syst. Sci. Control Eng. 2020, 8, 22–34. [Google Scholar] [CrossRef]
- Kadiyala, K.; Murthy, K. Estimation of regression equation with cauchy disturbances. Can. J. Stat. 1977, 5, 111–120. [Google Scholar] [CrossRef]
- Song, W.; Liu, S.; Wang, X.; Wu, W. An improved sparrow search algorithm. In Proceedings of the 2020 IEEE Intl Conf on Parallel & Distributed Processing with Applications, Big Data & Cloud Computing, Sustainable Computing & Communications, Social Computing & Networking (ISPA/BDCloud/SocialCom/SustainCom), Exeter, UK, 7–19 December 2020. [Google Scholar]
- Chen, X.; Huang, X.; Zhu, D.; Qiu, Y. Research on chaotic flying sparrow search algorithm. J. Phys. Conf. Ser. 2021, 1848, 012044. [Google Scholar] [CrossRef]
- Huang, G.-B.; Siew, C.-K. Extreme learning machine: RBF network case. In Proceedings of the ICARCV 2004 8th Control, Automation, Robotics and Vision Conference, Kunming, China, 6–9 December 2004; Volume 2. [Google Scholar]
- Khalfallah, S.; Ghenaiet, A. Radial basis function-based shape optimization of centrifugal impeller using sequential sampling. Proc. Inst. Mech. Eng. Part G J. Aerosp. Eng. 2015, 229, 648–665. [Google Scholar] [CrossRef]
- Chen, Z.; Huang, F.; Sun, W.; Gu, J.; Yao, B. RBF-Neural-Network-based adaptive robust control for nonlinear bilateral teleoperation manipulators with uncertainty and time delay. IEEE/ASME Trans. Mechatron. 2019, 25, 906–918. [Google Scholar] [CrossRef]
- Yu, J.; Zhao, L.; Yu, H.; Lin, C.; Dong, W. Fuzzy finite-time command filtered control of nonlinear systems with input saturation. IEEE Trans. Cybern. 2017, 48, 2378–2387. [Google Scholar] [CrossRef]
- Chen, Z.; Li, Z.; Chen, C.L.P. Adaptive neural control of uncertain MIMO nonlinear systems with state and input constraints. IEEE Trans. Neural Netw. Learn. Syst. 2016, 28, 1318–1330. [Google Scholar] [CrossRef] [PubMed]
- Kong, L.; He, W.; Dong, Y.; Cheng, L.; Yang, C.; Li, Z. Asymmetric bounded neural control for an uncertain robot by state feedback and output feedback. IEEE Trans. Syst. Man Cybern. Syst. 2019, 51, 1735–1746. [Google Scholar] [CrossRef]
- Zhu, Z.; Xia, Y.; Fu, M. Attitude stabilization of rigid spacecraft with finite-time convergence. Int. J. Robust Nonlinear Control 2011, 21, 686–702. [Google Scholar] [CrossRef]
- Wang, H.-Q.; Chen, B.; Lin, C. Adaptive neural tracking control for a class of stochastic nonlinear systems. Int. J. Robust Nonlinear Control 2014, 24, 1262–1280. [Google Scholar] [CrossRef]
- Gao, H.; He, W.; Zhou, C.; Sun, C. Neural network control of a two-link flexible robotic manipulator using assumed mode method. IEEE Trans. Ind. Inform. 2018, 15, 755–765. [Google Scholar] [CrossRef]
- Keighobadi, J.; Mehran, H.-P.; Javad, F. Adaptive neural dynamic surface control of mechanical systems using integral terminal sliding mode. Neurocomputing 2020, 379, 141–151. [Google Scholar] [CrossRef]
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/).