Next Article in Journal
Integral Reinforcement Learning-Based Stochastic Guaranteed Cost Control for Time-Varying Systems with Asymmetric Saturation Actuators
Previous Article in Journal
Decoupling-Free Attitude Control of UAV Considering High-Frequency Disturbances: A Modified Linear Active Disturbance Rejection Method
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Velocity Trajectory Planning and Tracking Control Based on Basis Function Superposition and Metaheuristic Algorithms for Planar Underactuated Manipulators

1
School of Electrical and Information Engineering, Wuhan Institute of Technology, Wuhan 430205, China
2
Fujian Provincial Key Laboratory of Data-Intensive Computing, Quanzhou Normal University, Quanzhou 362000, China
3
Anhui Province Key Laboratory of Special Heavy Load Robot, Ma’anshan 243032, China
4
Fujian Provincial University Applied Technology Engineering Center for Textile and Garment Science and Technology and Culture, Quanzhou Vocational and Technical University, Jinjiang 362268, China
5
School of Mechanical & Electrical Engineering, Wuhan Institute of Technology, Wuhan 430205, China
*
Author to whom correspondence should be addressed.
Actuators 2025, 14(10), 505; https://doi.org/10.3390/act14100505
Submission received: 2 September 2025 / Revised: 9 October 2025 / Accepted: 16 October 2025 / Published: 18 October 2025
(This article belongs to the Section Actuators for Robotics)

Abstract

Planar underactuated manipulators are widely used in aerospace and deep-sea exploration. Due to their passive joints without actuation, it is difficult to perform trajectory planning and direct control. In this paper, an angular velocity trajectory planning method is proposed, aiming to calculate the velocity trajectory by using a superposition of basis functions and transforming the planning problem into an optimization problem by using a metaheuristic algorithm. According to the underactuated constraint relationship, the planning trajectory of the passive joint is obtained, which ensures that the passive joint can be indirectly controlled to reach the target angle while tracking the trajectory of the active joint. For the tracking control problem, a sliding mode controller with an exponential convergence rate is used to track the trajectory. Lastly, three sets of simulations are run to demonstrate the efficacy of the suggested approach.

1. Introduction

Underactuated systems have extensive applications in the domains of aerospace, deep-sea exploration, automotive engineering, and biomedical fields, in the form of quadcopter drones, surface ships, and soft-bodied robots [1,2,3]. In this kind of system, the number of degrees of freedom is greater than the number of inputs in the system’s motion space. One common example of an underactuated system is the planar underactuated manipulator (PUM). PUMs are commonly utilized in micro-gravity deep-sea exploration and gravity-free space exploration because every point on the motion plane is an equilibrium point and it is not affected by gravity [4].
There are many reasons for the possible emergence of underactuated manipulators: (1) The experimental systems for nonlinear control theory are designed, such as inverted pendulums, ball–beam systems, and rotating pendulums [5,6,7]. (2) Soft robots are designed based on bionics, such as snake-like robots, underwater bionic crab soft robots, and bio-inspired fish robots [8,9,10]. (3) One of the manipulator actuators is damaged [11,12].
Due to the existence of these underactuated manipulators, many researchers have conducted in-depth research on control methods for such systems. The planar two-link underactuated manipulator (PTLUM) is a typical class of underactuated manipulator with nonlinear characteristics. Based on the passive joint’s position, the PTLUM is currently classified into a planar Acrobot (PA) and a planar Pendubot (PP).
The first joint of a PA system has no driving device. Ref. [13] described in detail this angular constraint of a PA and proposed a stabilizing control strategy based on this constraint. Ref. [14] studied the stability of the PTLUM and proposed a trajectory tracking control strategy. Ref. [15] proposed a periodic control law that causes the second link to reciprocate, so that the PA’s energy is stabilized at the desired level. Ref. [16] proposed a stable manifold-based optimum control strategy to address the oscillation and stability problems of a PA.
A PP system’s end joint lacks a driving mechanism, and the mathematical relationship between the active and passive joints is difficult to ascertain directly. Ref. [17] designed a controller with a constant harmonic term by using the Fourier transform approach to achieve reliable control of the PP. Ref. [18] proposed a unified Pendubot control scheme based on nonlinear model predictive control and nonlinear moving horizon estimation, and obtained an effective solution for the underlying nonlinear optimization problem through sequential quadratic programming. Ref. [19] used a control law based on the weak control Lyapunov function to increase the energy of the driving link in the swing region and control its attitude, and selected a parameter of the weak control Lyapunov function as a nonlinear function of the state to avoid singularity.
Underactuated systems have obvious nonlinear characteristics and nonholonomic constraint characteristics. The commonly used control methods include feedback linearization, sliding mode control, backstepping, and nonlinear model predictive control. There are also intelligent control methods such as fuzzy control, reinforcement learning, and artificial neural networks. In [20], a nonlinear predictive control model is used to deal with the uncertainty of the system, and the discrete-time fast terminal sliding mode is used to achieve tracking control, which enables the stable control of a PUM with an unknown parameter disturbance and external disturbance. Ref. [21] proposed a swing control method combining a deep deterministic policy gradient algorithm and a transfer learning method. The deep deterministic strategy gradient algorithm and reward function are used for training, and the transfer learning method is used to achieve strategy transfer. Ref. [22] compared model-free virtual reference feedback tuning control, sliding mode control, and model predictive adaptive control for nonlinear control problems. The results show that sliding mode control has a slight advantage in fast transient response, but it cannot make the transient response faster due to the existence of chattering. In Ref. [23], a fuzzy sliding mode control method is proposed to eliminate the chattering problem of the conventional sliding mode and improve the transient response speed of the system.
At present, there are many studies on PTLUM, but general trajectory planning and control research frameworks are lacking. All the active joints in a fully actuated manipulator system can be controlled directly to achieve the control function. A PTLUM system can only plan and track the trajectory of the active joint and indirectly drive the passive joint to the desired position because of the presence of passive joints. As a result, the trajectory planning of a PTLUM system becomes more difficult, and the trajectory change of the passive joint must be considered. Therefore, it is necessary to consider a simple and efficient trajectory planning and control method for PTLUM systems.
In this paper, the superposition of the basis function is used to form target trajectories with variable parameters based on the analysis of the constraint relationship of the PTLUM system. This method makes the trajectory more flexible and variable due to more trajectory parameters, which are optimized using a metaheuristic algorithm. Trajectory planning is mainly carried out directly for the angle trajectory of the manipulator, making it easy to cause the peak torque of the manipulator drive mechanism to be too large or to experience torque jumps. When planning the angular acceleration of the joint, although a continuous torque can be obtained, a cumulative error will be generated after the second integration, resulting in a large angle error at the planning stage. Therefore, trajectory planning with angular velocity was chosen to satisfy torque continuity and to minimize the integration error. After completing the angular velocity trajectory planning, a sliding mode controller (SMC) was designed for the PTLUM system.
The following elements cover this paper’s primary contributions:
(1)
The dynamic PTLUM model and underactuated constraint relationship are analyzed in detail;
(2)
A method for designing angular velocity trajectories using the intelligent optimization algorithm and basis function superposition is proposed;
(3)
The stability of the SMC’s reference tracking trajectory is proved using the Lyapunov method.
The rest of the paper is structured as follows. Section 2 establishes the dynamic PTLUM model and analyzes the underactuated constraint relationship. In Section 3, the methodology for designing angular velocity trajectories based on the intelligent optimization algorithm and basis function superposition is described in detail. In Section 4, we design an SMC for the active links to follow the planned trajectory. In Section 5, simulations are conducted to confirm the effectiveness of the proposed methodology. In Section 6, the contributions of this paper are summarized, and future works are proposed.

2. Model and Characteristics

2.1. Dynamic Modeling

The dynamic model and underactuated constraint analysis are described carefully in this section. The PP and PA are two-link manipulators with one underactuated joint. Figure 1a shows the PP system, with the second joint being the passive joint ( τ 2 = 0 ). Figure 1b shows the PA system, where the first joint is the passive joint ( τ 1 = 0 ). For the ith ( i = 1 , 2 ) link of the system, l i is the distance from its joint to its center of mass and half the length of L i , q i , m i , L i , and J i are its angle, mass, length, and the moment of inertia around the endpoint, separately.
The dynamic model of the PTLUM is established by the Lagrange method [19]
J 1 + J 2 + m 1 l 1 2 + m 2 ( L 1 2 + L 2 2 ) + 2 m 2 L 1 l 2 cos q 2 q ¨ 1 + J 2 + m 2 l 2 2 + L 1 l 2 cos q 2 q ¨ 2 m 2 L 1 l 2 q ˙ 2 2 sin q 2 2 m 2 L 1 l 2 q ˙ 1 q ˙ 2 sin q 2 = τ 1 J 2 + m 2 l 2 2 + L 1 l 2 cos q 2 q ¨ 1 + J 2 + m 2 l 2 2 q ¨ 2 + m 2 L 1 l 2 q ˙ 1 2 sin q 2 = τ 2
To facilitate the analysis, Equation (1) is rewritten in the following matrix–vector form:
M ( q ) q ¨ + H ( q , q ˙ ) = τ
The vector τ = [ τ 1 , τ 2 ] T is the control torque. When τ 1 = 0 , the PTLUM is a PA system; when τ 2 = 0 , the PTLUM is a PP system.
M ( q ) = m 11 m 12 m 21 m 22 ,   H ( q , q ˙ ) = [ h 1 , h 2 ] T
where
m 11 = J 1 + J 2 + m 1 l 1 2 + m 2 ( L 1 2 + L 2 2 ) + 2 m 2 L 1 l 2 cos q 2 m 12 = J 2 + m 2 l 2 2 + L 1 l 2 cos q 2 m 22 = J 2 + m 2 l 2 2 m 21 = m 12 h 1 = m 2 L 1 l 2 q ˙ 2 2 sin q 2 2 m 2 L 1 l 2 q ˙ 1 q ˙ 2 sin q 2 h 2 = m 2 L 1 l 2 q ˙ 1 2 sin q 2 .

2.2. Underactuated Constraint Analysis

Since the passive joint of the PTLUM has no torque input, its dynamic model has an underactuated constraint relationship. We separate the underactuated equation from the expansion of Equation (2)
M p a q ¨ a + M p p q ¨ p + H p = 0
where a and p denote the active and passive parts, respectively. When the system is a planar Pendubot, a = 1 , p = 2 ; when the system is a planar Acrobot, a = 2 , p = 1 . M p a represents the coupling moment of inertia between the driving joint and the passive joint, and M p p represents the effective inertia moment of the passive joint.
From Equation (4), we can get
q ¨ p = M p a q ¨ a H p M p p .
The underactuated constraint relationship can be obtained by an integral operation as follows:
q ˙ p = 0 t f M p a q ¨ a + H p M p p d t q ˙ p 0 q p = 0 t f q ˙ p d t + q p 0
where q ˙ p 0 and q p 0 are the initial states of the passive joint, t is the integral variable, and t f is the end time.

3. Trajectory Planning

According to the constraint relationship found between the active and passive joints in (6), the active joint’s trajectory can be used to indirectly determine the trajectory of the passive joint. A basis function superposition method is used to generate the active joint’s velocity trajectory with decision variables, and the metaheuristic algorithm is used to transform the trajectory planning problem into an optimization problem of decision variables. The decision variables here are the trajectory parameters. As one kind of metaheuristic algorithm, the particle swarm optimization (PSO) algorithm has the characteristics of simple algorithm implementation, strong global search ability, and parallel processing. The particles of PSO conduct collaborative search by tracking individual optimization and global optimization. This social learning mechanism can quickly converge to the global optimal solution. The iterative process of the PSO algorithm only involves simple algebraic operations, which exhibit low computational complexity and high efficiency [24]. Therefore, the PSO algorithm was selected as the optimization algorithm to achieve parameter optimization. This section mainly introduces the sinusoidal trapezoidal function, the velocity trajectory parameterization of the joints, and parameter optimization based on the PSO algorithm.

3.1. Sinusoidal Trapezoidal Function

Commonly used basis function types usually include the trapezoidal, monomial, Gaussian, and Spline functions. The monomial function will oscillate violently at the endpoint. The Gaussian function is not flexible enough because of its complex expression, and the Spline function is also less flexible due to its node limit. The trapezoidal function is simple and flexible, but due to the discontinuity of the derivative function of the trapezoidal function, joint acceleration will jump. This will have an impact on the driving mechanism of the manipulator, reducing the service life of the driving device, and in severe cases may damage the driving device. Therefore, we replace the ascending and descending parts of the trapezoidal function with a sinusoidal function to avoid the acceleration jump problem.
The selected basis function is as follows:
V t = 1 2 1 cos π t t 1 , 0 t t 1 1 , t 1 < t < t 2 1 2 1 + cos π t t f t 1 t 1 , t 2 t t f
where
t 1 = ( t f ρ ) / 2 t 2 = ( t f + ρ ) / 2
in which ρ is the peak hold time.

3.2. Velocity Trajectory Parameterization of Joints

After selecting the appropriate basis function, it is necessary to obtain the joint velocity trajectory by superposition. This superposition method is similar to the inverse process of signal decomposition. The velocity trajectory is finally superimposed by a k-order basis function (k is a positive integer, k = 1 , 2 , 3 ), which is similar to the harmonic component of the signal.
The trajectory function formed by the superposition of the k-order sinusoidal trapezoidal basis function is
q ˙ a ( t ) = β 11 V 11 ( ρ 1 , t ) + i = 1 2 β 2 i V 2 i ( ρ 2 , t ) + + i = 1 k β k i V k i ( ρ k , t )
where V k i ( t ) is a k-order basis function, β k i is the superposition factor of the k-order basis function, and ρ k is the peak holding time of the k-order basis function.
V k i ( ρ k , t ) = 1 2 1 cos π ( t t k i 1 ) t i 1 , t k i 1 t t i 1 1 , t i 1 < t < t i 2 1 2 1 + cos π t t k i 2 t i 1 t i 1 , t i 2 t t k i 2 0 , other
where
t k i 1 = i 1 k t f ,   t k i 2 = i k t f t i 1 = t k i 1 + 1 2 ( t f k ρ k ) ,   t i 2 = t k i 2 1 2 ( t f k ρ k ) .
After obtaining the angular velocity trajectory of the active joint, the angle trajectory q a ( t ) can be obtained by integrating q ˙ a ( t ) as shown in Equation (10):
q a ( t ) = 0 T q ˙ a ( t ) d t + q 0 ( t ) .
To build the active joint’s angular velocity trajectory, we select the basis function’s order k = 3 . If the order of the basis function is too small, the trajectory is not flexible enough to complete the optimization goal. If the order of the basis function is too high, the computational complexity will increase and the optimization efficiency will decrease. The three-order basis function is an intermediate choice that can ensure trajectory flexibility and complete the optimization goal without the computational complexity being too high.
The resulting trajectory expression is
q ˙ a ( t ) = β 11 V 1 ( ρ 1 , t ) + i = 1 2 β 2 i V 2 i ( ρ 2 , t ) + i = 1 3 β 3 i V 3 i ( ρ 3 , t )
where ρ 1 , ρ 2 , ρ 3 , ρ 11 , β 2 i ( i = 1 , 2 ) , and β 3 i ( i = 1 , 2 , 3 ) are the trajectory parameters.
To show the basis function superposition approach more conveniently, assume that the trajectory parameters are
p i = [ ρ 1 , ρ 2 , ρ 3 , β 11 , β 21 , β 22 , β 31 , β 32 , β 33 ] = 1 .
Based on Equation (7), (10) and (12), we can obtain the basis function trajectory shown in Figure 2. Figure 2a shows the one-order basis function trajectory, Figure 2b shows the two-order basis function trajectory, and Figure 2c shows the three-order basis function trajectory. The one-order, two-order, and three-order basis function trajectories are superimposed by the basis function superposition method to form the superposition trajectory shown in Figure 2d.

3.3. Parameter Optimization Based on PSO Algorithm

This section describes how to use the PSO algorithm to optimize the trajectory parameters. It mainly includes the construction of the fitness function and the optimisation process for the parameters.
After obtaining the angular velocity trajectory of the PTLUM’s active joint by means of basis function superposition, the parameters in the trajectory need to be optimized according to the constraints of Equation (6) to meet the optimization objectives.
Combining Equations (7) and (11), it can be seen that q ˙ a = 0 at t = t f . Therefore, the constraint component of the active joint’s velocity need not be included in the fitness function. According to the underactuated constraint relationship given by Equation (6), it is possible to determine the passive joint’s angle trajectory and angular velocity trajectory.
The fitness function h is set to ensure that the planned trajectory enables the active and passive joints to reach their target positions while their angular velocities are zero:
h = q a ( t f ) q a d + q p ( t f ) q p d + q ˙ p ( t f )
where q a ( t f ) , q p ( t f ) , q ˙ p ( t f ) , q a d , and q p d represent the active link angle, the passive link angle, the angular velocity, and the target states of the active joint and passive joint, respectively.
The rules for updating the position and velocity of the particle swarm are as follows:
v i + 1 = w v i + c 1 · r a n d   ( p b e s t p i ) + c 2 · r a n d ( g b e s t p i ) p i + 1 = p i + v i + 1
where w is the inertia weight, c 1 is the individual learning factor, c 2 is the group learning factor, and p i and v i are the position and velocity of the particle swarm, respectively.
The inertia weight w determines the particle’s trust in its own historical speed, which affects its global search and local exploration abilities. The larger w is, the stronger the global search ability, the smaller w is, the stronger the local search ability. The values of w are usually selected in the range of 0∼1. c 1 and c 2 determine the influence of the empirical information of the particle itself and the empirical information of other particles on the particle trajectory, which reflects the information exchange between the particle swarms. The values of c 1 and c 2 are usually selected in the range of 1∼2. The number of iterations G is related to whether the optimization can be successful. If the number of iterations G is too low, there is a failure to converge to a given fitness value within the specified number of iterations G. The number of iterations G is determined by the dimension of the optimization problem. Generally, within the range 50∼200, the more complex the optimization problem, the greater the number of iterations G that is required.
The position of the population p i is taken as a trajectory parameter to get the active joint trajectory according to Equations (8) and (10). The passive joint trajectories are obtained by calculating the constraint relationship in Equation (6).
The following are the specific steps to optimize the trajectory parameters by PSO:
Step 1: 
Random initialization of p i and v i —set the PSO algorithm parameters, the number of iterations G, the number of particles N, the inertia weight w, learning factors c 1 and c 2 , and input the initial state q i 0 and target state q i d of the system;
Step 2: 
According to Equations (8) and (10), q a and q ˙ a are calculated; according to the underactuated constraint relation of Equation (6), q p and q ˙ p are calculated;
Step 3: 
Calculate the fitness value h combined with Equation (13);
Step 4: 
If h is less than h m i n (a small positive number), the output is x i . If not, update the population position p i and velocity v i and go back to Step 2.
The computational complexity of the PSO algorithm mainly includes time complexity and space complexity. Space complexity describes the data storage requirements of the PSO algorithm at runtime, which mainly depend on the number and dimensions of the particles. In this paper, the number of parameters to be optimized is nine, so the space dimension is nine. The space required to store them is much lower than that of conventional computer memory, so it is not necessary to consider space complexity. The computational complexity of the PSO algorithm is mainly affected by time complexity. Time complexity includes three stages: initialization, iteration, and termination. The most time-consuming of them is the iteration stage, accounting for more than 95% of the total time.
Figure 3 shows the framework of trajectory planning and tracking control. The upper portion of Figure 3 depicts the trajectory planning procedure. The initial state q i 0 , the target state q i d , and the initialized particle swarm p i are input into the basis function superposition module; the active joint angle trajectory q a and the angular velocity trajectory q ˙ a are calculated. Then the active joint trajectory is brought into the underactuated constraint relationship to obtain the trajectory of the passive joint, and the fitness value h is calculated and compared with h m i n . If h is less than h m i n , trajectory planning is achieved, and the optimized target trajectory is input into the control part. If h is greater than or equal to h m i n , the v i and p i of the particle swarm are updated, and the iteration is continued until h < h m i n or the set number of iterations is reached. The question mark symbol symbol in Figure 3 indicates the judgment of whether h is less than h m i n .

4. Controller Design

This section designs an SMC to track the planning trajectory. When a joint of a planar two-link manipulator system is damaged, the system is transformed into a PTLUM system. The underactuated joint does not have any driving ability, and the underactuated link can only be pulled to the target position by the action of the active joint. Consequently, we decided to use the metaheuristic algorithm to plan the active link’s trajectory and design the SMC to achieve the control objective. Figure 3 displays the control system’s composition. After the trajectory parameters p i obtained by the metaheuristic algorithm are brought into Equations (8) and (10), the planned reference trajectory y d is obtained. The error between the reference trajectory y d and the actual trajectory y is used as the input of the SMC, and the torque is used as the control output to drive the link motion.
Let the state space variable of the PTLUM system be x = [ x 1 x 2 x 3 x 4 ] T = [ q 1   q 2   q ˙ 1   q ˙ 2 ] T .
According to Equation (2), it can be concluded that
q ¨ = M 1 ( q ) H ( q , q ˙ ) + M 1 ( q ) τ .
Expanding Equation (15), we can get
q ¨ 1 = λ ( m 22 h 1 + m 12 h 2 + m 22 τ 1 m 12 τ 2 ) q ¨ 2 = λ ( m 21 h 1 + m 11 h 2 m 21 τ 1 + m 11 τ 2 )
where
λ = 1 m 11 m 22 m 12 m 21
where h 1 , h 2 , m 11 , m 12 , m 21 , and m 22 have been given in Section 2.
When the system is a PP, τ 2 = 0 ; when the system is a PA, τ 1 = 0 . Since M ( q ) is a positive definite symmetric matrix, there is no singularity in the Equation (16).
According to the selection of state variables and the Equation (16), the equation of state is obtained as
x ˙ 1 = x 3 x ˙ 2 = x 4 x ˙ 3 = λ ( f 1 ( x ) + m 22 τ 1 m 12 τ 2 ) x ˙ 4 = λ ( f 2 ( x ) m 21 τ 1 + m 11 τ 2 )
where
f 1 ( x ) = m 22 h 1 + m 12 h 2 f 2 ( x ) = m 21 h 1 + m 11 h 2 .
The following equation is the construction of the sliding surface:
S = μ e + e ˙
where μ is a positive number
e = x a ( t ) q a ( t ) e ˙ = x ˙ a ( t ) q ˙ a ( t )
where e and e ˙ are the angular and velocity tracking errors, respectively.
The derivation of S yields
S ˙ = μ e ˙ + e ¨ = μ e ˙ + x ¨ a q ¨ a ( t ) .
Generally, the exponential convergence law is S ˙ = φ S ε sgn ( S ) , but the jump of the sign function at the zero point will cause chattering. Therefore, we use the S / ( S + ζ ) with continuous zeros to approximate the sign function
S ˙ = φ S ε S ( S + ζ )
where φ and ε are constant, and ζ is a small positive number.
In order to reduce the chattering effect caused by the sign function, we use S / ( S + ζ ) instead of the sign function. The controller is obtained by deducing from Equations (20) and (21) as follows:
τ a = 1 m p p [ λ ( φ S ε S ( S + ζ ) μ e ˙ + q ¨ a ( t ) ) f a ( x ) ] .
Choose the Lyapunov function as
V = 1 2 S 2 .
Deriving Equation (23) and combining Equations (20) and (21), we have
V ˙ = S S ˙ = φ S 2 ε S S ( S + ζ ) = φ S 2 ε S 2 ( S + ζ ) 0 .
When S + , V + , V is a radial unbounded function. When V ˙ 0 , S 0 , according to the LaSalle’s invariance principle [25], the system is asymptotically stable.

5. Simulations

To verify the efficacy of the trajectory planning algorithm and control approach suggested in this research, simulation tests are conducted on the PTLUM system. In Simulation I, the initial state, target state, and chosen structural parameters are identical to those found in Ref. [26]. Simulation II selected different structural parameters from Simulation I. Based on Simulation II, Simulation III establishes distinct initial and target states.
The PSO algorithm in the three groups of simulations selects the same variable selection domain. The constraint domain of the superposition coefficients ρ 1 , ρ 2 and ρ 3 of the basis function is set to [−4, 4]. The constraint domain of the basis function peak time β 11 is [ 0.01 , t f 0.5 ] , the constraint domain of the basis function peak time β 21 and β 22 is [ 0.01 , t f / 2 0.5 ] , and the constraint domain of the basis function peak time is β 31 , β 32 , and β 33 is [ 0.01 , t f / 3 0.5 ] .
The initial angle and target angle of the three sets of simulations are shown in Table 1. The initial angular velocity and the terminal angular velocity of the three groups of simulations are both 0 rad/s. The structural parameters of the PTLUM in the three groups of simulations are shown in Table 2. After simulation tests, the optimization can be completed within the iterative upper bound when the trajectory time is t f = 3 s. Table 3 displays the trajectory parameters that were acquired following the optimization process.

5.1. Simulation I

Simulation I selects the same initial state, target state, and structural parameters as those in Ref. [26], as shown in Table 1 and Table 2.

5.1.1. Simulation I for the PP System

The PSO parameters are as follows: iteration times G = 100, number of particles N = 100 , inertia weight w = 0.8, and learning factors c 1 = c 2 = 1.5. The results obtained by the optimization algorithm are shown in the second column of Table 3. The following are the parameters of SMC: μ = 0.20, φ = 1.00, ε = 1.30, ζ = 0.01 . According to the trajectory parameters in Table 3, the reference trajectory can be obtained by combining Equations (8) and (10), and then the designed SMC controller is used to track the trajectory to enable the PP system to reach the target state.
As shown in Figure 4a,b, the PP system achieves the control objectives; the PP system’s active link torque curve is displayed in Figure 4c. Figure 4 illustrates that the PP system reaches the goal state prior to t = 3 s and maintains stability following t = 3 s, and the peak velocity is less than q ˙ = ± 5 rad/s, and the peak torque does not exceed τ = ± 3   N · m . Compared with the stability time of more than 6 s in Ref. [26], it has the advantage of shorter stabilization time.

5.1.2. Simulation I for the PA System

The PSO parameters are as follows: iteration times G = 100, number of particles N = 100 , inertia weight w = 0.8, learning factors c 1 = c 2 = 1.5, minimum fitness function value h m i n = 0.0005. The results obtained by the optimization algorithm are shown in the third column of Table 3. The following are the parameters of SMC: μ = 0.25, φ = 1.10, ε = 1.25, ζ = 0.01 .
As shown in Figure 5a,b, the PA system achieves the control objectives shown in Table 1. The PA system’s active link torque curve is displayed in Figure 5c. Figure 5 illustrates that the PA system reaches the goal state prior to t = 3 s and maintains stability following t = 3 s, and the peak velocity is less than q ˙ = ± 9 rad/s, and the maximum torque does not exceed τ = ± 10   N · m . The stability time in [26] is more than 3 s, the peak torque is close to 80 N · m , and the peak angular velocity is close to 30 rad/s. Compared with [26], it has the advantages of shorter stability time and smaller peak angular velocity and peak torque.

5.2. Simulation II

To confirm that the control mechanism remains successful when different structural characteristics are chosen, simulation II selects different structural parameters from Simulation I, as shown in Table 2. Table 1 demonstrates that both the initial and final states are consistent with Simulation I.

5.2.1. Simulation II for the PP System

The PSO parameters are as follows: iteration times G = 100, number of particles N = 100 , inertia weight w = 0.8, learning factors c 1 = c 2 = 1.5, minimum fitness function value h m i n = 0.0005. The results of the trajectory parameters obtained by the optimization algorithm are shown in the fourth column of Table 3. The following are the parameters of SMC: μ = 0.22, φ = 1.15, ε = 1.10, ζ = 0.01 .
As shown in Figure 6a,b, the PP system achieves the control objectives shown in Table 1. The PP system’s active link torque curve is displayed in Figure 6c. Figure 6 illustrates that the PP system reaches the goal state prior to t = 3 s and maintains stability following t = 3 s, and the peak velocity is less than q ˙ = ± 3 rad / s , and the maximum torque does not exceed τ = ± 15   N · m . Compared with Simulation I, the reason for the larger peak torque is that the mass of the active link in the system structure parameters increases from 0.2 kg to 0.5 kg. The decrease in the maximum angular velocity is due to the increase of the length of the active link in the system’s structure parameters from 0.5 m to 1.0 m.

5.2.2. Simulation II for the PA System

The PSO parameters are as follows: iteration times G = 100, number of particles N = 100 , inertia weight w = 0.8, learning factors c 1 = c 2 = 1.5, and minimum fitness function value h m i n = 0.0005. The results of the trajectory parameters obtained by the optimization algorithm are shown in the fifth column of Table 3. The following are the parameters of the SMC: μ = 0.15, φ = 1.20, ε = 1.28, ζ = 0.01 .
As shown in Figure 7a,b, the PA system achieves the control objectives shown in Table 1. The PA system’s active link torque curve is displayed in Figure 7c. Figure 7 illustrates that the PA system reaches the goal state prior to t = 3 s and maintains stability following t = 3 s, and the peak velocity is less than q ˙ = ± 8 rad/s, and the maximum torque does not exceed τ = ± 40   N · m . Compared with simulation I, the reason for the larger peak torque is that the mass of the active link in the system structure parameters increases from 1.0 kg to 1.5 kg. The decrease of the maximum angular velocity is due to the increase of the length of the active link in the system structure parameters from 1.0 m to 2.0 m.

5.3. Simulation III

As indicated in Table 1, simulation III sets various initial states and target states than simulation I in order to confirm that the control mechanism remains effective in diverse initial states and target states. As seen in Table 2, the PTLUM system’s structural parameters equal those of simulation I.

5.3.1. Simulation III for the PP System

The PSO parameters are as follows: iteration times G = 100, number of particles N = 100 , inertia weight w = 0.8, learning factors c 1 = c 2 = 1.5, minimum fitness function value h m i n = 0.0005. The results obtained by the optimization algorithm are shown in the sixth column of Table 3. The following are the parameters of SMC: μ = 0.25, φ = 1.24, ε = 1.20, ζ = 0.01 .
As shown in Figure 8a,b, the PP system achieves the control objectives shown in Table 1. Figure 8c shows the active linkage torque curve of the PP system. Figure 8 illustrates that the PP system reaches the goal state prior to t = 3 s and maintains stability following t = 3 s, and the peak velocity is less than q ˙ = ± 6 rad/s, and the maximum torque does not exceed τ = ± 25   N · m .

5.3.2. Simulation III for the PA System

The PSO parameters are as follows: iteration times G = 100, number of particles N = 100 , inertia weight w = 0.8, learning factors c 1 = c 2 = 1.5, minimum fitness function value h m i n = 0.0005. The results obtained by the optimization algorithm are shown in the seventh column of Table 3. The following are the parameters of SMC: μ = 0.23, φ = 1.16, ε = 1.22, ζ = 0.01 .
As shown in Figure 9a,b, the PA system achieves the control objectives shown in Table 1. Figure 9c shows the active linkage torque curve of the PA system. Figure 9 illustrates that the PA system reaches the goal state prior to t = 3 s and maintains stability following t = 3 s, and the maximum velocity does not exceed q ˙ = ± 1.5 rad/s, and the maximum torque does not exceed τ = ± 3   N · m .

5.4. Simulation Results Analysis

The parameters selection of the three groups of simulation trajectory parameters optimization algorithms is consistent as follows: iteration times G = 100, number of particles N = 100 , inertia weight w = 0.8, learning factors c 1 = c 2 = 1.5, minimum fitness function value h m i n = 0.0005. The optimization goal can be completed under this parameters selection, indicating that the optimization problem is not difficult and is not sensitive to parameters selection. After testing, the trajectory end time t f = 3 s is a small and easy to obtain time. If you want to continue to shorten t f , you need to modify the algorithm parameters to adapt to the change. The parameters of SMC are set by empirical method. In order to ensure the control effect, the SMC parameters of each group are not consistent. Three groups of simulations show that the proposed method is effective and can adapt to PTLUM with different parameters and states. Additionally, the method in this work can successfully reduce the peak torque, the maximum angular velocity, and the control time, according to a comparison of the simulation results with previous studies [26].
The method proposed in this paper also has some limitations. The PSO algorithm optimization in this paper is carried out offline, and the real-time performance is insufficient in engineering practice. Trajectory planning and tracking control methods are based on nominal models without considering model uncertainties and disturbance factors.

6. Conclusions

In this paper, an angular velocity trajectory planning strategy and a sliding mode control strategy are proposed to address the stability control of PTLUM. First, the dynamic PTLUM model and underactuated constraint relationship are analyzed in detail. Next, the angular velocity trajectories of the joints are formed using the combination of a basis function and an optimization algorithm to transform the control problem of the passive joints into an optimization problem based on the constraint relationship. The SMC is then designed to obtain the driving torque of the active joints needed to track the planned trajectory. According to the simulation results, the technique provides the benefit of lowering peak torque and control time.
In future work, a unified framework for the control of PUM can be achieved by extending the control technique to different kinds of underactuated mechanical systems. Furthermore, the research content of this paper is based on the nominal model, ignoring external disturbances and parameters perturbations of the system. Finally, the subsequent work can consider building an experimental system for physical verification.

Author Contributions

Simulation and article writing, B.Z.; research and simulation assistance, X.G.; research programs and technical support, Z.H. and H.W.; guidance and summary, H.Z. and Y.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Open Project of Anhui Province Key Laboratory of Special Heavy Load Robot (Grant No. TZJQR009-2025), the Open Research Project of Fujian Provincial University Applied Technology Engineering Center for Textile and Garment Science and Technology and Culture in 2024 (Grant No. FFJGBZ08), the Open Research Project of Fujian Provincial Key Laboratory of Big Data Management New Technologies and Knowledge Engineering (Grant No: SJXY202404), the Foundation of Shiyan Key Laboratory of Electromagnetic Induction and Energy-saving Technology (Hubei University of Automotive Technology) (Grant No. SYZDK22024A01).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yang, Y.; Zhou, X.; Li, J.; Hua, C. Barrier function-based adaptive composite sliding mode control for a class of mimo underactuated systems subject to disturbances. IEEE Trans. Ind. Inform. 2024, 20, 11429–11437. [Google Scholar] [CrossRef]
  2. Dong, X.H.; Sun, W.; Zhu, C.L. Adaptive fuzzy sliding mode control for underactuated systems with time-varying sensor faults. J. Chin. Inst. Eng. 2024, 47, 351–358. [Google Scholar] [CrossRef]
  3. An, C.; Li, B.; Shi, W.; Zhang, X. Autonomous quadrotor UAV systems for dynamic platform landing with onboard sensors. Int. J. Robot. Autom. 2023, 4, 296–305. [Google Scholar] [CrossRef]
  4. Huang, Z.X.; Wang, W.; Zeng, B.; Yu, C.; Zhou, Y. Comprehensive stable control strategy for a typical underactuated manipulator considering several uncertainties. Appl. Sci. 2024, 14, 3663. [Google Scholar] [CrossRef]
  5. Qasem, O.; Gutierrez, H.; Gao, W. Experimental validation of data-driven adaptive optimal control for continuous-time systems via hybrid iteration: An application to rotary inverted pendulum. IEEE Trans. Ind. Electron. 2023, 71, 6210–6220. [Google Scholar] [CrossRef]
  6. Qi, X.; Li, J.; Xia, Y.; Wan, H. On stability for sampled-data nonlinear ADRC-based control system with application to the ball-beam problem. J. Frankl. Inst. 2018, 355, 8537–8553. [Google Scholar] [CrossRef]
  7. Guiot, E. Trajectories of two-dimensional harmonic oscillators in a rotating frame: Application to Foucault pendulum problem. Meccanica 2024, 59, 491–501. [Google Scholar] [CrossRef]
  8. Cao, Z.; Zhang, D.; Zhou, M. Modeling and control of hybrid 3-D gaits of snake-like robots. IEEE Trans. Neural Netw. Learn. Syst. 2020, 32, 4603–4612. [Google Scholar] [CrossRef]
  9. Wu, Q.; Pan, L.; Du, F.; Wu, Z.; Chi, X.; Gao, F.; Zhilenkov, A.A. An underwater biomimetic robot that can swim, bipedal walk and grasp. J. Bionic Eng. 2024, 21, 1223–1237. [Google Scholar] [CrossRef]
  10. Sun, B.; Li, W.; Wang, Z.; Zhu, Y.; He, Q.; Guan, X.; Fan, D. Recent progress in modeling and control of bio-inspired fish robots. J. Mar. Sci. Eng. 2022, 10, 773. [Google Scholar] [CrossRef]
  11. Huang, Z.; Yu, C.; Zeng, B.; Gong, X.; Zhou, H. A survey of planar underactuated mechanical system. Machines 2024, 12, 829. [Google Scholar] [CrossRef]
  12. Huang, Z.; Gong, X.; Wan, X.; Zhou, H. A Simple Control Strategy for Planar 2R Underactuated Robot via DEA Optimization. Actuators 2025, 14, 156. [Google Scholar] [CrossRef]
  13. Lai, X.Z.; She, J.H.; Cao, W.H.; Yang, S.X. Stabilization of underactuated planar acrobot based on motion-state constraints. Int. J. Nonlinear Mech. 2015, 77, 342–347. [Google Scholar] [CrossRef]
  14. Zhang, A.; Lai, X.; Wu, M.; She, J. Stabilization of un-deractuated two-link gymnast robot by using trajectory tracking strategy. Appl. Math. Comput. 2015, 253, 193–204. [Google Scholar]
  15. Nishiki, Y.; Kajiwara, H.; Aoyagi, M. Control of swing-up and giant-swing motions of Acrobot based on periodic input. Nonlinear Dyn. 2015, 108, 2297–2308. [Google Scholar] [CrossRef]
  16. Horibe, T.; Sakamoto, N. Optimal swing up and stabilization control for inverted pendulum via stable manifold method. IEEE Trans. Control Syst. Technol. 2017, 26, 708–715. [Google Scholar] [CrossRef]
  17. Wu, J.; Wang, Y.; Ye, W.; Su, C.Y. Control strategy based on Fourier transformation and intelligent optimization for planar Pendubot. Inf. Sci. 2019, 491, 279–288. [Google Scholar] [CrossRef]
  18. Gulan, M.; Salaj, M.; Rohaľ-Ilkiv, B. Tracking Control of Unforced and Forced Equilibrium Positions of the Pendubot System: A Nonlinear MHE and MPC Approach. Actuators 2023, 12, 343. [Google Scholar] [CrossRef]
  19. Lai, X.Z.; She, J.H.; Yang, S.X.; Wu, M. Comprehensive unified control strategy for underactuated two-link manipulators. IEEE Trans. Syst. Man Cybern. Part B 2008, 39, 389–398. [Google Scholar]
  20. Zhang, P.; Lai, X.Z.; Wang, Y.W.; Su, C.Y.; Wu, M. PSO-based nonlinear model predictive planning and discrete-time sliding tracking control for uncertain planar underactuated manipulators. Int. J. Syst. Sci. 2022, 53, 2075–2089. [Google Scholar] [CrossRef]
  21. Wu, J.D.; Chen, S.Y.; Wang, Y.W.; Zhang, P.; Su, C.Y.; Sato, D. A Transfer Reinforcement Learning-Based Control Method for Vertical n-Link Underactuated Manipulator With Two Passive Joints. IEEE/ASME Trans. Mechatron. 2025, 30, 1797–1806. [Google Scholar] [CrossRef]
  22. Radac, M.-B.; Muller, V.-D.; Ciucuriță, S. Control of High-Power Slip Ring Induction Generator Wind Turbines at Variable Wind Speeds in Optimal and Reliable Modes. Algorithms 2025, 18, 162. [Google Scholar] [CrossRef]
  23. Rouabhi, R.; Herizi, A.; Djerioui, A. Performance of Robust Type-2 Fuzzy Sliding Mode Control Compared to Various Conventional Controls of Doubly-Fed Induction Generator for Wind Power Conversion Systems. Energies 2024, 17, 3778. [Google Scholar] [CrossRef]
  24. Wang, D.; Tan, D.; Liu, L. Particle swarm optimization algorithm: An overview. Soft Comput. 2018, 22, 387–408. [Google Scholar] [CrossRef]
  25. LaSalle, J.P. Stability theory for ordinary differential equations. J. Differ. Equ. 1968, 4, 57–65. [Google Scholar] [CrossRef]
  26. Huang, Z.; Hou, M.; Hua, Y.; Yu, C.; Wang, L. A general stable control method for r-type underactuated robot with three different initial situations. Appl. Sci. 2023, 13, 5565. [Google Scholar] [CrossRef]
Figure 1. The structure of the PP and PA systems. (a) PP system; (b) PA system.
Figure 1. The structure of the PP and PA systems. (a) PP system; (b) PA system.
Actuators 14 00505 g001
Figure 2. Basis function superposition trajectories. (a) One-order basis function trajectory; (b) two-order basis function trajectory; (c) three-order basis function trajectory; and (d) trajectories after superposition of basis function.
Figure 2. Basis function superposition trajectories. (a) One-order basis function trajectory; (b) two-order basis function trajectory; (c) three-order basis function trajectory; and (d) trajectories after superposition of basis function.
Actuators 14 00505 g002
Figure 3. The framework of trajectory planning and tracking control.
Figure 3. The framework of trajectory planning and tracking control.
Actuators 14 00505 g003
Figure 4. The results of Simulation I of the PP system. (ac) are the angle, angular velocity, and torque curves of the links of the PP system, respectively.
Figure 4. The results of Simulation I of the PP system. (ac) are the angle, angular velocity, and torque curves of the links of the PP system, respectively.
Actuators 14 00505 g004
Figure 5. The results of Simulation I of the PA system (ac) are the angle, angular velocity, and torque curves of the links of the PA system, respectively.
Figure 5. The results of Simulation I of the PA system (ac) are the angle, angular velocity, and torque curves of the links of the PA system, respectively.
Actuators 14 00505 g005
Figure 6. The results of Simulation II of the PP system (ac) are the angle, angular velocity and torque curves of the links of the PP system, respectively.
Figure 6. The results of Simulation II of the PP system (ac) are the angle, angular velocity and torque curves of the links of the PP system, respectively.
Actuators 14 00505 g006
Figure 7. The results of simulation II of the PA system. (ac) are the angle, angular velocity and torque curves of the links of the PA system, respectively.
Figure 7. The results of simulation II of the PA system. (ac) are the angle, angular velocity and torque curves of the links of the PA system, respectively.
Actuators 14 00505 g007
Figure 8. The results of simulation III of the PP system. (ac) are the angle, angular velocity and torque curves of the links of the PP system, respectively.
Figure 8. The results of simulation III of the PP system. (ac) are the angle, angular velocity and torque curves of the links of the PP system, respectively.
Actuators 14 00505 g008
Figure 9. The results of simulation III of the PA system. (ac) are the angle, angular velocity and torque curves of the links of the PA system, respectively.
Figure 9. The results of simulation III of the PA system. (ac) are the angle, angular velocity and torque curves of the links of the PA system, respectively.
Actuators 14 00505 g009
Table 1. The initial and target states of the PTLUM system.
Table 1. The initial and target states of the PTLUM system.
SimulationSystem q 10 (rad) q 20 (rad) q 1 d (rad) q 2 d (rad)
IPP2.8001.9002.0100.940
PA0.0000.000−1.99914.106
IIPP2.8001.9002.0100.940
PA0.0000.000−1.99914.106
IIIPP1.0502.1400.5701.150
PA0.3600.9200.8000.520
Table 2. The structural parameters of the PTLUM system.
Table 2. The structural parameters of the PTLUM system.
SimulationSystemLink i m i (kg) L i (m) J i ( kg · m 2 )
IPP10.20.50.0042
20.50.80.0267
PA11.01.00.0833
21.01.00.0833
IIPP10.51.00.0417
21.01.50.5625
PA11.52.00.5000
21.52.00.5000
IIIPP10.20.50.0042
20.50.80.0267
PA11.01.00.0833
21.01.00.0833
Table 3. The optimized trajectory parameters p i .
Table 3. The optimized trajectory parameters p i .
ParametersSimulation ISimulation IISimulation III
PPPAPPPAPPPA
ρ 1 1.4281.8860.1530.7510.9301.889
ρ 2 0.8600.8900.8300.9030.2460.401
ρ 3 0.0100.3850.2270.3690.3450.061
ρ 11 1.2063.894−2.2683.8571.789−0.152
ρ 21 −2.6702.4680.2380.9551.561−0.310
ρ 22 −2.211−1.9763.2021.600−1.568−1.020
ρ 31 0.7422.134−0.6260.995−3.608−0.241
ρ 32 2.0053.0152.3042.534−2.0940.523
ρ 33 1.8040.651−3.6712.042−0.2340.081
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.

Share and Cite

MDPI and ACS Style

Zeng, B.; Li, Y.; Gong, X.; Wang, H.; Huang, Z.; Zhou, H. Velocity Trajectory Planning and Tracking Control Based on Basis Function Superposition and Metaheuristic Algorithms for Planar Underactuated Manipulators. Actuators 2025, 14, 505. https://doi.org/10.3390/act14100505

AMA Style

Zeng B, Li Y, Gong X, Wang H, Huang Z, Zhou H. Velocity Trajectory Planning and Tracking Control Based on Basis Function Superposition and Metaheuristic Algorithms for Planar Underactuated Manipulators. Actuators. 2025; 14(10):505. https://doi.org/10.3390/act14100505

Chicago/Turabian Style

Zeng, Ba, Yang Li, Xiangyu Gong, Hongwei Wang, Zixin Huang, and Hongjian Zhou. 2025. "Velocity Trajectory Planning and Tracking Control Based on Basis Function Superposition and Metaheuristic Algorithms for Planar Underactuated Manipulators" Actuators 14, no. 10: 505. https://doi.org/10.3390/act14100505

APA Style

Zeng, B., Li, Y., Gong, X., Wang, H., Huang, Z., & Zhou, H. (2025). Velocity Trajectory Planning and Tracking Control Based on Basis Function Superposition and Metaheuristic Algorithms for Planar Underactuated Manipulators. Actuators, 14(10), 505. https://doi.org/10.3390/act14100505

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop