Abstract
This paper presents a new terminal non-singular sliding mode (NSTS) controller proposed for a second-order four-degree-of-freedom (4-DOF) robotic manipulator. This system is designed with a new exponent for the terminal sliding surface. The latter is designed to solve the singularity problem in the first derivative of the sliding surface. Such a problem is associated with the conventional linear hyperplane terminal sliding mode control. Error convergence time from any initial state is guaranteed to be a finite time. Lyapunov stability analysis and Simulation results are presented in this paper. Furthermore, a comparison is implemented with the conventional linear sliding mode in the simulation part. The obtained results prove improved performance in trajectory tracking.
Keywords
Introduction
Robust controllers for robotic systems have attracted significant research attention for decades. Because of the fundamental nonlinearities, model uncertain parameters, and external disturbances, various control schemes have been implemented in the literature to overcome control challenges. For example, finite-time command-filtered backstepping techniques have been applied to nonlinear systems 1 and, 2 with subsequent enhancements achieved through optimized simplified backstepping algorithms 3 and adaptive fuzzy backstepping controllers.. 4 Feedback linearization approaches have been explored in the context of aerial systems such as quadrotors 5 and. 6 The latter was used in a four-DOF manipulator based on sliding mode in. 7 Among the suite of robust controllers, Sliding Mode Control (SMC) stands out for its ability to ensure system effectiveness against parametric uncertainties and external disturbances8,9 and. 10 Furthermore, in 11 Two variants of SMC laws have been developed to control various states of the fuel cell, which proves the performance of the SMC in different situations. SMC operates by driving the system states onto a predetermined sliding manifold and maintaining the trajectories in its vicinity. Several enhancements have been proposed to improve the transient performance and reduce the reaching time to the sliding surface, such as modified reaching laws, 12 enhanced double exponential reaching laws, 13 and integration with fuzzy logic systems 14 and. 15 Applications of these advanced SMC schemes range from wind energy systems to agricultural robotics, such as vision-based multivariable super-twisting control applied to quadrotors. 16 A robot manipulator used to apply a terminal super-twisting design in. 17 Nonsingular super-twisting with finite-time is introduced in 18 and a Linear correction term is added to a super-twisting algorithm was used in 19 for a drone. Further development to enhance control systems is to design and implement techniques of state observer design for continuous-time dynamical systems 20 and 21 and applied to a synchronous motor in. 22 To reduce the effect of external disturbance and unmodeled dynamics, perturbation compensators are designed in 23 and. 24 Adaptive controls based on neural network approximation using a radial-base function for a quadrotor is designed in. 25 Auto-tuning switching control laws for faster, finite-time dynamical response and enhanced tracking precision. 26 More recently, efforts have been made to integrate terminal dynamics into sliding mode control, giving rise to Terminal Sliding Mode Control (TSMC). TSMC algorithm introduces nonlinear sliding surfaces that guarantee finite-time convergence to the origin following a power-law relationship, resulting in improved precision and faster convergence rates 27 and. 28 This approach has been successfully applied to robotic manipulators, 29 where the control precision is critical. However, a significant limitation of conventional TSMC is the potential for singularities to arise in the control law near the origin, which compromises stability and control effectiveness. To address this, Terminal Non-Singular Sliding Mode Control (TNSMC) has been proposed in30,31 and, 32 eliminating the singularity by modifying the terminal sliding surface formulation.
Despite its advantages, TNSMC still faces challenges in guaranteeing fast convergence to the sliding manifold, as the reaching time remains sensitive to the initial error dynamics and system perturbations. Therefore, further research is necessary to enhance its performance and applicability.
In this context, the present study introduces a Novel Terminal Non-Singular Sliding Mode Control (NSTS) framework designed specifically for nonlinear systems with uncertain dynamics and external disturbances. A new terminal sliding manifold is proposed to overcome the singularity issues associated with conventional TSMC, while also ensuring finite-time convergence both to the sliding manifold and to the system equilibrium point from any initial state.
The proposed NSTS strategy is applied to the control of a Quanser 4-DOF robotic manipulator, a benchmark platform widely used in research and education, Figure 1. This paper proposed a control that ensures finite-time error tracking while handling disturbance. A comparative study in the 0simulation is made to confirm that the proposed approach achieves better performance over other existing control methods.

Four DOF quanser arm manipulator. 33
We can summarize the main contributions in two points:
Design of a Novel Terminal Nonsingular Sliding Mode Controller: A new sliding surface is developed to inherently eliminate the singularities typically encountered in conventional terminal sliding mode control schemes, thereby enhancing both robustness and practical implementability. Enhanced Finite-Time Convergence and System Performance: The suggested controller provides quicker error convergence and enhances tracking accuracy, making it perform well for robotic applications that require high precision and dynamic responsiveness.
The paper is organized as follows. In Section I, we provide the introduction and background context. Section II addresses the singularity issue in traditional TSMC. Section III introduces the formulation of the suggested non-singular terminal sliding surface. Section IV elaborates on the control design methodology. Section V outlines the implementation of the proposed approach on the Quanser 4-DOF robotic manipulator. Section VI provides the simulation outcomes and an analysis of performance. Section VII wraps up the paper and discusses future research directions.
Singularity in terminal sliding mode control
The terminal sliding mode Controllers are special versions of SMC. In classical SMC, the system errors converge asymptotically, i.e., get closer and closer but theoretically never fully reach it in finite time. In TSMC, the sliding surface is designed with nonlinear functions, like fractional powers, so that the tracking error goes to zero in finite time. This means the robot (or system) will reach the target state within a predictable finite time, not just eventually. We consider a nonlinear second-order robotic function:
Where
Where
The constants are selected as
The following equation describes the proposed controller:
Where
Article objective
The objective is to design and implement a Terminal Non-Singular Sliding Mode control (NSTS) for robotic systems with a solved singularity problem in the conventional Terminal Sliding Mode (TSM), and ensure fast reference tracking. The effectiveness of the proposed method is demonstrated through its application to a four-degree-of-freedom (4-DOF) robotic manipulator.
Terminal non-singular sliding mode controller
The Terminal Non-Singular Sliding Mode (TNSM) controller is an advanced nonlinear control strategy designed to achieve finite-time convergence while avoiding the singularity issues present in conventional Terminal Sliding Mode (TSM) control. In classical SMC, sliding mode control goes through two phases, reaching phase and Sliding phase, Reaching Phase where the states move toward the sliding surface under the control law. Sliding Phase where the states move along toward the desired point.
In classical TSM, the sliding surface often incorporates fractional powers of the tracking error to guarantee finite-time convergence; however, this design may lead to singular behavior, the TNSM controller introduces a non-singular terminal sliding surface that ensures smooth operation near equilibrium while preserving the finite-time stability property. The paper proposes a new non-singular control based on terminal sliding mode. The dynamic value for the sliding surface, which is described in (6) and its first derivative (7) are selected as follows:
Given
We design
Control design
This part explains the designed controller by using the non-singular design outlined in equations (5), (6), (7), and (8). Initially, given the nonlinear second-order robotic system described by equation (1), we introduce the following control system:
Mathematical analysis based on a Lyapunov function is used to verify the stability:
Substituting (10) in (11) we find:
As we have
Control finite time proof
We select the starting time as
For
Similarly, for
Dynamic model of the robot arm
The mathematical model of a Manipulator arm explains how forces and torques applied at its joints affect its movement.35,36 This model considers the physical attributes of the manipulator arm, as well as the kinematics and dynamics that dictate the robot's behaviour. The Manipulator dynamic model is a mathematical framework for predicting the system behaviour based on the applied forces and torques. It serves as aa an interaction between joint motions, gravity, and friction. Developing dynamic models for robotic manipulators is achieved by using either the Newton–Euler or Euler–Lagrange formulation. The comparative efficiency of these methods remains an active area of research, 37 The effectiveness of the proposed controller is demonstrated through its application to a four-degree-of-freedom (4-DOF) robotic manipulator. 38 In general, Newton-Euler method is often preferred for a robot arm with numerous DOFs. This is because of its recursive nature and how efficiently it computes things, especially when the reference frames are set up correctly. Accurate dynamic modeling further requires parameter identification techniques to capture nonlinearities in the system. The Quanser robotic arm manipulator is frequently referenced in literature as a benchmark platform, where careful frame assignment is essential to ensure model accuracy.
In this paper, we present the dynamic model of a robotic manipulator arm, which is the four-DOF QArm provided by Quanser. Figure 1 shows the kinematic diagram and indicates the Cartesian frame of all the joints, while the rigid-body diagram provides the Cartesian x-y-z axes. The dynamics of motion are expressed in matrix form as given below
33
:
Where,
The subscript (mn) in the coefficients specifies the relationship between the exerted torque at the mth joint and the related nth kinematic term. The coefficient

Trajectory in 3D-space.
Mathematical formulation.
Numerical simulation
The simulation is implemented using the real parameters of the QArm manipulator provided by Quanser, illustrated in Figure 3,,
33
the parameters are listed in table 2. The dynamic model described in (16) and (1) is used, the details of matrices

Quanser QArm. 33
Qarm dynamic parameters. 33
The terminal nonsingular sliding mode, as in section IV, is implemented for trajectory tracking. The desired trajectory follows a square path with sharp corners, as illustrated in Figure 2. This trajectory is used to evaluate the system's tracking performance. Figures 4 and 5 present the tracking results in Cartesian space and joint space, respectively, demonstrating the controller's effectiveness in achieving accurate path following. Furthermore, the performance of the proposed system is compared with a conventional PID:

Manipulator joint tracking.

Position and altitude trajectory.
Figures 6 and 7 illustrate the tracking errors in both the joint space and the inertial Cartesian frame for the proposed NSTS controller and the conventional PID controller. The results clearly demonstrate that the NSTS controller substantially reduces tracking errors compared to the PID approach. Figure 8 presents the corresponding control signals for the NSTS controller, which exhibit smooth and continuous behavior without reaching saturation. This behavior underscores the practical applicability of the NSTS controller, as it operates within safe limits, avoids excessive actuator stress, and maintains both system performance and stability. The absence of abrupt changes or discontinuities in the control signals minimizes actuator wear and contributes to overall system reliability. Moreover, the stable control signals ensure that the system remains within the desired operational bounds, preventing issues such as performance degradation, instability, or uncontrolled oscillations. In the proposed NSTS controller, the dynamic sliding surface reduces switching frequency, and Smooth control signals are observed in the simulation results, Figure 8.

Errors in joint tracking for the NSTS and PID.

Errors in position and altitude for the NSTS and PID.

Control signals.
The disturbance rejection capability of the controller is demonstrated by introducing a time-varying disturbance defined in Equation (8). Additional discussion has been added explaining how the NSTS controller maintains accurate tracking despite the disturbance.
Table 3 compares the root mean square error for each control method. The lower RMSE values achieved by the NSTS controller confirm its superior performance compared to the PID controller. Collectively, the results shown in the figures and table demonstrate the effectiveness and reliability of the proposed controller.
RMS of errors.
The simulation results indicate that the NSTS controller provides enhanced robustness against nonlinear dynamics, and it reduces overshoot and oscillations in the control commands, making it easy to implement practically. It also improves stability, gives faster response, and reduces sensitivity to tuning parameters relative to the PID controller. Overall, the NSTS controller consistently maintains high robustness and precision across a range of operating conditions, ensuring both stability and accurate performance even in the presence of significant disturbances.
To model measurement noise, external disturbances, or unmodeled dynamics, to enable evaluation of controller robustness under realistic operating conditions, the Simulink Band-Limited White Noise block is used. The mentioned block is used to generate a stochastic signal that approximates white noise with finite power over a specified frequency range, Figures 9 and 10. The generated signal is characterized by a zero-mean Gaussian distribution and a user-defined noise power. It produces independent random values at each sample instant, resulting in a discrete-time noise sequence. Noise power 1

Errors in position and altitude with measurement noise and external disturbances for the NSTS and PID.

Errors in joint tracking with measurement noise and external disturbances for the NSTS and PID.
Figures 9 and 10 show the error in the presence of the noise. It can be seen that the proposed controller is able to reject the noise and to compensate for signal distortion much greater than that of the PID controller. This result is expected since NTST control is a type of sliding mode control. The purpose of this simulation is to ensure that the non-singular term doesn't affect the power of the sliding mode control.
Conclusion
This study presents the development of a novel robust Terminal Non-singular Sliding Mode (NSTS) controller designed to overcome the singularity issues typically encountered in conventional Terminal Sliding Mode Control (TSMC) methods. The singularity problem, which occurs when the control law becomes undefined near the origin, is effectively addressed in the proposed approach through the design of a new sliding surface incorporating a modified exponent. This formulation ensures that the control law remains well-defined throughout the system's operation, including during convergence. To evaluate the performance of the proposed controller, simulations were carried out on a manipulator, serving as a benchmark example of a highly nonlinear, underactuated robotic system with complex dynamics. The proposed switching surface is designed with a new exponent that overcomes the singularity in the traditional terminal sliding mode. The proposed control algorithm was developed, and the stability was verified. The controller was compared with a PID controller. The NSTS controller is scalable to manipulators with higher degrees of freedom because the control law is designed for second-order nonlinear systems. The obtained results in the simulation part clearly display the effectiveness of the proposed design. The new system improves tracking performance, reduces the tracking error, and ensures fast error convergence.
Footnotes
Acknowledgments
The authors gratefully acknowledge Qatar National Library (QNL) for funding the article open access APC charge.
Ethical statement
Not applicable. This article does not contain any studies with human or animal subjects performed by any of the authors.
Consent to participate
Informed consent was obtained from all individual participants involved in the study.
Consent for publication
Not applicable. This manuscript contains no personal data from any individual.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the Qatar National Library,
Declaration of conflicting interest
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Data availability statement
All data generated or analysed during this study are included in this published article.
