1. Introduction
Robotic manipulators have become a core enabling technology in modern manufacturing and service automation, where high-accuracy and high-speed motion execution is routinely required in tasks such as pick-and-place, assembly, machining, and contact-rich operations. In these applications, trajectory tracking control—i.e., driving multi-joint, strongly coupled nonlinear dynamics to follow a prescribed reference motion—is a fundamental capability that directly determines motion precision, throughput, and operational safety. Consequently, a rich body of motion/force control methodologies has been developed over the past decades, spanning model-based joint-space tracking and adaptive schemes [
1,
2], operational-space formulations for task-level motion/force control [
3], and impedance-based interaction control for regulating dynamic behavior during contact [
4]. These developments have been systematically documented in standard robotics and control references, which also highlight the practical importance of scalable tracking designs for high-degree-of-freedom manipulators [
5,
6,
7].
Classical nonlinear control strategies have dominated the field of robotic trajectory tracking for several decades. Among them, computed torque control and feedback linearization explicitly compensate nonlinear dynamic terms to obtain a linear error system, thereby achieving high-accuracy tracking performance [
6,
7]. Such approaches have been extensively documented in standard robotics literature and widely implemented in industrial manipulators. However, their performance relies heavily on accurate dynamic modeling, and the cancellation of nonlinear dynamics may obscure the intrinsic physical structure of the mechanical system. To address modeling uncertainties and external disturbances, adaptive and robust control schemes have been developed, providing theoretical guarantees and practical effectiveness in various robotic applications [
1,
2]. Despite these advances, most existing tracking designs are formulated primarily at the level of error dynamics rather than directly exploiting the underlying energy and interconnection structure of the system. In recent years, passivity-based and energy-shaping control methodologies have attracted increasing attention, as they utilize the natural energy properties of mechanical systems to guide controller synthesis and stability analysis [
8,
9]. These approaches offer a physically consistent and structure-aware alternative for nonlinear mechanical control. In addition to the classical robotics literature, passivity-based and energy-shaping approaches have also played an important role in the control of mechanical systems. Representative results include the globally asymptotically stable PD+ controller for robot manipulators [
10], systematic joint-space formulations for model-based robot tracking control [
11], interconnection and damping assignment passivity-based control of port-controlled Hamiltonian systems [
12,
13,
14], and trajectory tracking formulations developed for port-controlled Hamiltonian systems [
15,
16].
While these methods provide important theoretical foundations, they exhibit distinct limitations when applied to trajectory tracking of robotic manipulators. Classical robot tracking approaches, such as computed torque control, rely on exact cancellation of nonlinear dynamics and are, therefore, sensitive to modeling uncertainties, while also failing to preserve the intrinsic port-Hamiltonian structure. In contrast, passivity-based and energy-shaping methods emphasize stability through energy properties, but are primarily formulated for regulation problems rather than explicit trajectory tracking [
17]. Consequently, a systematic framework that combines trajectory tracking objectives with structure-preserving energy-based design remains insufficiently developed.
More recently, extended quadratic port-Hamiltonian formulations have been proposed to address trajectory tracking problems for general nonlinear systems [
18]. However, these results are mainly developed at an abstract level and do not directly provide explicit realizations for rigid-body robotic manipulators. In particular, the construction of implementable error Hamiltonians consistent with Euler–Lagrange mechanical structures and the derivation of explicit control laws for high-degree-of-freedom manipulators remain open issues.
In addition, it is worth emphasizing that classical passivity-based and energy-shaping approaches for mechanical systems are primarily designed for stabilization or regulation tasks, and their extension to trajectory tracking is not always straightforward.
On the other hand, standard robot trajectory tracking methods, such as computed torque control, rely on feedback linearization and exact cancellation of nonlinear dynamics, and, therefore, do not explicitly preserve the port-Hamiltonian structure of the system.
Consequently, there remains a gap between abstract port-Hamiltonian tracking formulations and practically implementable controllers for rigid-body manipulators that simultaneously preserve the underlying energy structure and provide explicit control laws. As a result, the application of the extended quadratic PHS tracking concept to realistic rigid manipulators remains an open problem.
Therefore, the main challenge is to bridge the gap between abstract port-Hamiltonian tracking formulations and practically implementable controllers for rigid-body manipulators, while preserving the underlying energy structure. Motivated by these observations, this paper develops a structure-preserving trajectory tracking control framework for a six-degree-of-freedom rigid robotic manipulator within the port-Hamiltonian setting. In contrast to classical computed torque approaches, the proposed method does not rely on exact cancellation of nonlinear dynamics, but, instead, preserves the intrinsic energy-based structure of the system. Moreover, compared with existing passivity-based and energy-shaping methods, which mainly address stabilization problems, the present work explicitly considers trajectory tracking within a port-Hamiltonian framework.
More specifically, an error Hamiltonian is constructed by augmenting the mechanical energy with quadratic terms in both configuration and momentum tracking errors. Based on this structure, a momentum-based tracking controller is derived, consisting of an equivalent feedforward compensation term and a damping injection term. In addition, an online disturbance estimator is incorporated to compensate unknown external torques acting on the manipulator joints, further improving the robustness of the closed-loop system.
The main contributions of this paper can be summarized as follows. First, compared with existing abstract port-Hamiltonian tracking formulations, a concrete specialization to rigid-body robotic manipulators is developed, leading to an explicit realization in terms of configuration and momentum variables. Second, compared with classical computed torque and feedback linearization methods, an explicit momentum-based control law is derived that preserves the port-Hamiltonian structure without relying on exact cancellation of nonlinear dynamics. Third, compared with standard passivity-based regulation approaches, the proposed method explicitly addresses trajectory tracking and systematically integrates disturbance estimation within the same energy-based framework. The structure of the paper is summarized as follows.
Section 2 describes the port-Hamiltonian modeling of the considered six-degree-of-freedom manipulator.
Section 3 derives the error Hamiltonian and the associated tracking controller with closed-loop stability analysis.
Section 4 reports the simulation results together with related discussions and
Section 5 concludes the paper.
3. Structure-Preserving Trajectory Tracking Control
Based on the port-Hamiltonian model derived in
Section 2, the objective of this section is to develop a structure-preserving trajectory tracking controller for the manipulator while compensating unknown disturbance torques.
The robot dynamics are, therefore, considered in the presence of matched disturbances acting on the joints,
where
denotes the joint position vector (
for the manipulator considered in this paper),
is the control torque input, and
represents an unknown disturbance torque.
The control objective is to design a control law such that the joint positions track a desired trajectory while preserving the energy-based structure of the port-Hamiltonian model.
Let
be a smooth desired trajectory satisfying
The control objective is to design a control law
such that
To formulate the tracking problem within the port-Hamiltonian framework, the position error is defined as
Let
denote the generalized momentum. The desired momentum is introduced as
The momentum tracking error is, therefore,
3.1. Nominal Tracking Controller
In this subsection, the nominal tracking control problem is considered without disturbance estimation.
Define the following error Hamiltonian:
where
is a symmetric positive definite gain matrix.
The nominal control torque is chosen as
where
is symmetric positive definite and
The proposed controller preserves the port-Hamiltonian structure of the error dynamics. Instead of canceling nonlinearities as in computed torque control, the tracking objective is embedded directly into the energy function through the error Hamiltonian.
3.2. Nominal Closed-Loop Stability
Proposition 1. Consider the disturbance-free robot manipulatorwith the control law defined above. Then the closed-loop tracking error dynamics satisfy Equivalently, the error system admits the port-Hamiltonian formwhere Moreover, the equilibrium is asymptotically stable.
Proof. From the definitions of
e and
,
The momentum dynamics of the disturbance-free system are
Substituting the control law yields
which leads to
The gradients of the error Hamiltonian are
Substituting these expressions yields the port-Hamiltonian form.
To prove stability, consider as Lyapunov function. As and , is positive definite.
The condition
implies
. Substituting
into the error dynamics gives
For invariance, we require , which implies that . As is positive definite, .
Hence, the largest invariant set is . By LaSalle’s invariance principle, the equilibrium is asymptotically stable. □
3.3. Disturbance Estimator
Following the immersion and invariance disturbance estimation framework proposed in [
19], an online disturbance estimation scheme is introduced to compensate unknown external torques.
From the robot dynamics, the momentum equation can be written as
The disturbance estimate
is generated by the adaptive law
where
and
are design parameters.
Define the estimation error:
Proposition 2. Assume that the disturbance derivative satisfies . Then, for bounded signals and , the estimation error remains bounded and converges to a neighborhood of the origin whose size depends on ξ.
Proof. Taking the time derivative of
gives
Substituting the estimator dynamics yields
Using the momentum equation, this becomes
Consider the Lyapunov function
As
and
are bounded and
, there exists a constant
such that
Therefore, is bounded and converges to a neighborhood of the origin determined by . □
3.4. Closed-Loop Stability with Disturbance Estimation
When the disturbance estimate is incorporated, the control law becomes
The resulting error dynamics are
Then the closed-loop error system is
Proposition 3. Assume that . Then the tracking error state is uniformly ultimately bounded. Furthermore, all closed-loop signals remain bounded. If , then the equilibrium is asymptotically stable.
Proof. Consider the nominal system corresponding to
:
From Proposition 1,
is asymptotically stable. Thus, there exists a Lyapunov function
such that
For the perturbed system,
From the estimator dynamics, is bounded provided that p and are bounded. As is composed of and the reference trajectory is bounded, the boundedness of implies boundedness of q, , p, and .
Therefore, the closed-loop system is self-consistent: the boundedness of ensures the boundedness of , and vice versa.
Hence, there exists a neighborhood such that outside it, the negative term dominates, yielding . Thus, is uniformly ultimately bounded.
As is bounded and the reference trajectory is bounded, it follows that all closed-loop signals are bounded.
Finally, if , then the perturbation term vanishes, and the system reduces asymptotically to the nominal asymptotically stable system. Hence, is asymptotically stable. □
4. Simulation Result
4.1. Simulation Setup
4.1.1. Robot Description
All simulations are conducted using a six-degree-of-freedom industrial manipulator platform (VSCR-6EUR3). The robot is a serial rigid-body manipulator equipped with six revolute joints and integrated servo actuators. According to the manufacturer specifications, the robot provides a nominal payload capacity of 3 kg, a maximum working radius of 666 mm, and an overall height of approximately 820.5 mm. The repeatability of the end-effector positioning is better than ±0.05 mm under nominal payload conditions.
4.1.2. Robot Model Parameters
According to the robot experimental manual, the manipulator kinematic frames are established using the modified Denavit–Hartenberg convention. The associated geometric parameters are provided in
Table 1.
Figure 1 illustrates the six-degree-of-freedom industrial manipulator considered in this work, where the joints are numbered sequentially from the base to the end-effector (Joint 1 to Joint 6). The kinematic frames are assigned according to the modified Denavit–Hartenberg (MDH) convention. The corresponding geometric and rigid-body parameters are reported in
Table 1 and
Table 2, which are directly associated with the robot configuration shown in
Figure 1.
4.1.3. Simulation Environment
All simulations are carried out in MATLAB/Simulink (MathWorks, R2024b) over the time interval
s using a fixed-step solver with sampling time
For both Case 1 and Case 2, the same controller parameters are used. The proportional and damping gain matrices are chosen as
A small viscous damping term is included in the plant model for numerical robustness,
The disturbance estimator gain is implemented in diagonal matrix form as the vectorized extension of the scalar parameter
introduced in the theoretical formulation:
The initial conditions are selected as
The same disturbance model is used in both cases, while the reference trajectories are varied to generate different operating conditions. The corresponding trajectory parameters are reported in the descriptions of Case 1 and Case 2.
4.2. Tracking Performance Under Disturbance
In order to evaluate the effectiveness of the disturbance estimation mechanism, a comparative study is conducted under identical simulation conditions. Two configurations are considered: the proposed port-Hamiltonian controller with disturbance estimation, and the same controller without disturbance compensation, i.e., with .
Figure 2 illustrates the joint trajectories and their corresponding reference signals. It can be observed that all joint positions accurately track the desired trajectories. The actual trajectories almost perfectly overlap with the reference signals throughout the entire simulation interval, indicating that the proposed control strategy effectively compensates for the nonlinear robot dynamics and inter-joint coupling.
Figure 3 compares the joint tracking errors obtained with and without disturbance estimation. For all six joints, the controller without disturbance compensation exhibits visibly larger transient deviations and a slower return toward the origin. By contrast, when the estimator is activated, the error envelopes are significantly reduced and the convergence behavior becomes more uniform across the joints. This difference is particularly important because both configurations use the same tracking controller and are subjected to the same external disturbances. Therefore, the observed improvement can be directly attributed to the disturbance compensation mechanism rather than to a change in the nominal control law. These results confirm that the estimator effectively attenuates the influence of matched disturbances and improves the disturbance rejection capability of the closed-loop system.
To further evaluate the disturbance estimation capability, unknown external disturbance torques are injected into each joint. The disturbances are composed of multiple sinusoidal components with different frequencies, generating rapidly varying torque disturbances.
Figure 4 compares the true disturbance torques with the estimated disturbances provided by the proposed estimator. It can be observed that the estimated disturbances closely follow the true disturbances for all joints, indicating that the estimator is able to accurately reconstruct the unknown disturbance torques in real time.
The overall effect of disturbance compensation is further highlighted in
Figure 4, which shows the Euclidean norm of the tracking error. Compared with the controller without disturbance estimation, the proposed method yields a faster decay of the error norm and a lower residual value after the transient phase. This indicates not only improved pointwise joint tracking, but also a clear reduction in the global tracking error level of the manipulator. From a control perspective, this result shows that the estimator improves the closed-loop robustness without altering the structure-preserving tracking framework itself. In other words, the estimator acts as an effective compensation layer that enhances tracking performance under disturbance while preserving the port-Hamiltonian formulation of the controller.
The overall effect of disturbance compensation is further illustrated in
Figure 5, which shows the Euclidean norm of the tracking error. Compared with the controller without disturbance estimation, the proposed method yields a faster decay of the error norm and a lower residual value after the transient phase. This observation is important because it shows that the improved tracking performance in
Figure 3 and
Figure 4 is not achieved at the price of an impractical increase in control effort.
The corresponding joint control torques are shown in
Figure 6. It can be observed that the introduction of disturbance compensation does not produce excessive torque amplification. Although the proposed method modifies the control action through the estimated disturbance term, the resulting torque profiles remain of comparable magnitude to those obtained without the estimator. Instead, the proposed method provides a more effective use of the control input by compensating for external disturbances in a targeted manner. Hence, the estimator improves tracking accuracy while maintaining a reasonable torque demand for all joints.
In addition to the tracking performance and disturbance estimation results, the evolution of the error-related energy is also examined to further illustrate the structural behavior of the closed-loop system.
Figure 7 shows the time evolution of the error energy
. It can be observed that the energy decreases rapidly during the initial transient phase and then gradually approaches a small residual neighborhood as the tracking errors converge. This behavior is consistent with the dissipative mechanism induced by the proposed controller.
From a structural viewpoint, the decreasing trend of confirms that the closed-loop system preserves the expected energy evolution characteristic in the numerical implementation. In particular, no growth of the error energy is observed over the simulation horizon, which is in agreement with the stability properties derived in the theoretical analysis.
It is worth noting that the energy curve may not be perfectly monotonic at every sampling instant due to numerical integration, finite-step discretization, and algebraic approximations in the robot dynamics computation. Nevertheless, the global dissipative trend remains clear, which further supports the structure consistency of the proposed energy-based tracking controller.
The quantitative results reported in
Table 3 further confirm the advantage of the proposed method. Compared with the controller without disturbance compensation, the proposed method achieves lower RMS and maximum tracking errors, together with a shorter settling time. In addition, the control torque remains at a comparable level, indicating that the performance improvement is not obtained at the expense of excessive control effort. The low disturbance estimation error also confirms the effectiveness of the estimator in reconstructing the unknown external torques.
4.3. High-Speed or Large-Amplitude Tracking Case
To further evaluate the performance of the proposed controller under more demanding operating conditions, a high-speed and large-amplitude tracking case is considered. In this simulation, all six joints are required to follow reference trajectories with increased amplitudes and higher frequencies compared with those used in the previous case. As a result, the manipulator is subjected to stronger dynamic coupling, larger velocity and acceleration variations, and more demanding control effort requirements.
Figure 8 shows the joint trajectories and their corresponding reference signals in this aggressive motion scenario. It can be observed that the actual joint responses still closely follow the desired trajectories for all six joints. Although the motion conditions are significantly more challenging than those in the nominal tracking case, the controller preserves accurate trajectory tracking performance over the entire simulation interval.
The corresponding tracking errors are presented in
Figure 9. As expected, the error magnitudes are slightly larger than those observed in the previous case due to the higher motion speed and larger trajectory amplitudes. Nevertheless, the tracking errors remain small and bounded, and no instability or performance degradation is observed. This result demonstrates that the proposed controller is capable of handling stronger nonlinear coupling effects and more aggressive joint motions while maintaining satisfactory tracking accuracy.
Overall, the results of this case confirm that the proposed method is not limited to mild operating conditions. Instead, it remains effective under high-speed and large-amplitude motion, which further verifies its scalability and applicability to demanding robotic tracking tasks.