Next Article in Journal
Method of Dynamic Modeling and Robust Optimization for Chain Transmission Mechanism with Time-Varying Load Uncertainty
Previous Article in Journal
An Improved IPMSM Discrete-Time Nonlinear Model for Hardware-in-the-Loop Test Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Operation Trajectory Tracking Control of Loader Working Mechanisms

1
BGRIMM Machinery & Automation Technology Co., Ltd. (BGRIMM Technology Group), Building 23, Zone 18 of ABP, No.188, South 4th Ring Road West, Beijing 100160, China
2
School of Mechanical Engineering, University of Science and Technology Beijing, Beijing 100083, China
*
Author to whom correspondence should be addressed.
Machines 2025, 13(2), 165; https://doi.org/10.3390/machines13020165
Submission received: 6 January 2025 / Revised: 10 February 2025 / Accepted: 14 February 2025 / Published: 19 February 2025
(This article belongs to the Section Automation and Control Systems)

Abstract

:
Autonomous shovel digging of loaders is the key technology to realise automation and intelligent operation. The effective tracking control for the target operation trajectory is one of its core parts. Proportional–integral–derivative (PID) and other control methods without system models have issues, such as large overshoot amplitudes and jitter phenomena under system constraints. Given that model predictive control (MPC) effectively deals with system constraints to ensure smooth operation, this paper introduces MPC into motion control for the loader’s working mechanism and proposes a trajectory tracking control method based on nonlinear model predictive control (NMPC). This study shows that, under the same system constraints for different target operation trajectories, the designed controller achieves better tracking performance than conventional PID and sliding-mode control (SMC) controllers in handling system constraints and ensuring smoothness. It is also found that the tracking performance decreases as the dig insertion depth increases. Therefore, trajectories with larger dig insertion depths are not recommended as viable operation trajectories. This study provides an important foundation and new insights for improving the control performance of the loader’s working mechanism.

1. Introduction

Automation and intelligence have become the mainstream development trend in the field of mechanical equipment [1]. Loaders are important mechanical equipment, whose main task is to load and transport bulk materials (e.g., sand, gravel, and soil) [2]. The operation cycle of a loader is mainly divided into four phases: shovelling, transporting, unloading, and levelling, which are all completed by the working mechanism [3]. At present, the shovel-digging operation still requires manual control, so autonomous shovel digging is of great practical significance for the realisation of automated operation [4]. In particular, the trajectory planning and tracking control of the shovel-digging operation is a key foundational aspect, i.e., the actual trajectory of the shovel bucket in the material not only affects the output of the shovel bucket in a single cycle [5] but also influences the energy consumption of the shovel-digging operation [6,7]. Therefore, effective tracking control of the operation trajectory is of great value for improving output and reducing energy consumption [8,9].
At present, the literature on trajectory tracking control for the loader’s working mechanism is relatively limited. The working mechanism of the excavator and other construction machinery has similar structural characteristics to the working mechanism of the loader [10,11], and its trajectory tracking control method is similarly relevant to the trajectory tracking control of the loader’s working mechanism. Therefore, research on the working mechanism of the loader and excavator can be considered relevant. For example, Gong [12] established a kinematic and dynamic model of the loader’s working mechanism in joint space and designed a shovel-digging trajectory tracking controller by calculating the moment method, which achieved effective tracking control of the working mechanism on the target trajectory. Zhang [13] established a two-degree-of-freedom dynamic model of the hydraulic excavator’s working mechanism and proposed a method for PID parameter setting through experimental testing, ultimately achieving effective tracking control of the set trajectory in a simulation environment. He [14] designed a trajectory controller for the excavator’s working mechanism based on the incremental theory of trajectory control and carried out a horizontal straight digging experiment on an excavator under a simulation environment comprising a trajectory controller and VR (Virtual Reality) software, ultimately achieving a good control effect by adjusting the control parameters. Yan [15] established a kinematic model of the excavator’s working mechanism for the problem of the accurate positioning of the bucket and designed a single-neuron adaptive PID controller, achieving the online optimisation of the controller parameters based on the quadratic performance index. Du [16] proposed a control method combining a radial basis function (RBF) neural network with a traditional PID controller to solve the problem of the automatic trajectory control of a single-bucket hydraulic excavator, which improved the control performance and adaptability of the system. Chen [17] proposed a PID trajectory control method based on dynamics compensation through dynamic analysis and the actual working characteristics of the working mechanism of an explosive charging vehicle to achieve tracking control of its operation trajectory. Feng [18] proposed a new adaptive sliding-mode control method based on an RBF neural network, i.e., by introducing a nonlinear term in the sliding mode, an adaptive terminal sliding-mode controller was designed for the excavator’s working mechanism, improving the dynamic performance and convergence speed of the controller. Liu [19] added a rapidly switchable electro-hydraulic proportional control model to the original control system of the working mechanism of a skid-steer loader and designed a fuzzy self-tuning PID controller, which effectively achieved tracking of its operation trajectory. Zhang [20] took into account the nonlinear, time-varying, and other factors of the excavator and proposed a trajectory tracking control strategy based on a fuzzy multiparameter self-tuning PID following the variable-domain concept, which achieved effective tracking of the planned trajectory. Azulay [21] proposed a deep reinforcement learning data-driven controller for unmanned ground vehicles with a customised bucket mechanism, which achieved operational control of the working mechanism by learning the cyclic operation data of the bucket.
In the above works, the main methods used are computational torque control [12], conventional PID control [13], trajectory incremental recursive control [14], neural network PID control [15,16], dynamics-compensated PID control [17], neural network adaptive sliding-mode control [18], fuzzy self-tuning PID control [19,20,22], data-driven iterative learning control [21,23,24], and so on. Among these control methods, PID control has the advantages of a simple structure and mature technology. It is the most widely used method for industrial applications and is often used as the basis for emerging intelligent control algorithms [25,26]. However, most of the above control methods, including PID, do not use a system model (or use a nominal model) for control, making it difficult to effectively deal with system constraints in the design of the control law. This results in large overshoot amplitudes, chattering phenomena, and other shortcomings under system constraints [27,28]. Thus, these shortcomings increase the burden and energy consumption of the drive device, introducing potential safety hazards in the shovel-digging operation.
In recent years, model predictive control (MPC), an emerging modern control method, has been applied in a variety of fields [29,30]. MPC takes an established system model as a predictive model and, when solving the feasible range of control inputs, can add constraints to explicitly handle system constraints, ultimately finding a set of optimal control inputs closest to the reference state by optimising the objective function [31]. So, MPC is an optimal control method based on a system model [32]. The literature [33,34,35] has shown that MPC has significant advantages in handling system constraints and making the system run smoothly compared with control methods that do not require a system model. However, most motion control methods for the working mechanism of heavy construction machinery, such as loaders, still use traditional techniques, and emerging control methods are rarely applied. In particular, the MPC method is rarely applied. But, as its advantages have been gradually highlighted, it has been used in the motion control of multi-arm robots and the driving control of loaders [36,37]. MPC is mainly divided into linear model predictive control (LMPC) and nonlinear model predictive control (NMPC). NMPC does not require linearisation and has higher accuracy than LMPC; therefore, it is more suitable for strongly nonlinear systems [38]. Currently, NMPC is widely used in the fields of unmanned driving and intelligent manufacturing [39,40,41,42]. In terms of trajectory tracking control based on NMPC, there are two main design ideas [38]: one is the standard NMPC method, which uses a discretised kinematic or dynamic model as the prediction model, and the other is the nonlinear error MPC (NEMPC) method, which uses a discretised nonlinear error model as the prediction model. The literature [38] states that the typical accuracy of NMPC is significantly better than that of NEMPC in the presence of large curvature mutations in the reference trajectory, and this conclusion applies to different motion platforms. In addition, our in-depth study of the mathematical model of the loader’s working mechanism confirms that the mechanism exhibits motion characteristics such as strong nonlinearity and a high degree of coupling [11,43]. Thus, a large amount of model details is lost after linearisation, leading to a significant decrease in accuracy. Additionally, there are large curvature mutations in the trajectory of the loader’s working mechanism when it is in operation. Therefore, the standard NMPC method may be more suitable for the trajectory control of the complex mechanism. In the following, NMPC refers exclusively to standard NMPC.
In summary, in the research of the operation trajectory tracking control of the loader’s working mechanism, PID, as a typical control method that does not require a system model, has difficulty effectively handling system constraints, resulting in large overshooting amplitudes and chattering phenomena under system constraints. But MPC, as a control method based on a system model, has a significant advantage in its ability to handle system constraints to make the system run smoothly. Therefore, this paper introduces the MPC method in the motion control of the loader’s working mechanism. Since the mechanism exhibits strong nonlinearity and a high degree of coupling and NMPC is more suitable for handling nonlinear systems, we propose a trajectory tracking control method based on NMPC for the working mechanism for the first time. First, the kinematic model of the working mechanism in the joint space is established using the Denavit–Hartenberg method (abbreviated as the “D–H method”), and then the kinematic model in the drive space is given through a mapping relationship between the joint space and drive space. Second, the target trajectory and system constraints are given, and then the kinematic model is used as the prediction model to design the trajectory tracking controller for the working mechanism based on NMPC, with conventional PID and SMC controllers used for comparison. Finally, a co-simulation platform is built for verification and analysis. It is shown that the controller designed in this paper outperforms conventional PID and SMC controllers in handling system constraints and ensuring smooth operation.

2. Modelling

2.1. Drive Space and Drive Parameters

As shown in Figure 1, the reversing six-linkage working mechanism system of the loader comprises five rigid bodies and two driving operating devices, which are regarded as being planar and articulated with each other [11]. Among them, component 1 is the front vehicle body, component 2 is the boom, component 3 is the bucket, component 4 is the rotating rod, and component 5 is the two-linkage. Driving operation device I is the lift hydraulic cylinder, which drives the boom up and down, and driving operation device II is the tilt hydraulic cylinder, which drives the bucket’s rotational movement. When the working mechanism operates, the working surface of the vehicle body is usually regarded as a plane, and the movement of the vehicle body (component 1) is regarded as a straight-line planar motion. As the working mechanism has three degrees of freedom in the plane, operators can control it in practice by adjusting the movement of the vehicle body and driving the operation devices (lift and tilt cylinders). Therefore, the kinematic model of the loader’s working mechanism must be established in the drive space for practical significance and value. First, the drive space is established as follows:
R d r i v e = s v t , l l t , l t t
In Equation (1), t denotes the time variable; s v t denotes the front vehicle body displacement; l l t denotes the lift cylinder length and l t t denotes the tilt cylinder length, which are the drive space parameters; and R d r i v e denotes the set of drive space parameters, consisting of s v t , l l t , and l t t . Here, the three parameters s v t , l l t , and l t t are independent of each other and are regarded as generalised coordinates in the drive space.
Due to the complex structural coupling of the working mechanism system (abbreviated as “mechanism system”), it is difficult to establish the kinematic model in the drive space directly. Therefore, we draw on the theory of robotics to first establish the kinematic model in the joint space, then seek the mapping relationship between the joint space and the drive space, and finally obtain the kinematic model in the drive space.

2.2. Kinematic Modelling

Considering the design of the controllers, the kinematic model of the mechanism system in the joint space is first established using the D–H method, which includes the positive and inverse kinematic models at the position level and the positive kinematic model at the velocity level. Then, the explicit derivation of analytical geometry is used to derive the positive and inverse kinematic mapping relationships between the joint space and the drive space, and finally, the kinematic model of the mechanism system in the drive space is obtained. Among these, the positive kinematic model at the velocity level in the drive space is used as the prediction model in the subsequent design of the NMPC controller, while the inverse kinematic model at the position level in the drive space is used as the nonlinear decoupling model in the subsequent design of the PID and SMC controllers.

2.2.1. Kinematic Model Based on the D-H Method

As shown in Figure 2, the Cartesian coordinate system O i x i y i z i ( i = 0 , 1 , 2 , 3 , 4 ) of the mechanism system in the joint space is established. For convenience in modelling, three mutually independent parameters, namely the displacement s v of the front vehicle body (component 1) relative to the working surface, the rotation angle θ 2 of the boom (component 2) relative to the vehicle body, and the rotation angle θ 3 of the bucket (component 3) relative to the boom, are chosen as the generalized coordinates of the mechanism system in the joint space. The end point P (i.e., bucket tip) of the mechanism system is usually used as the target point for operation trajectory tracking control of the working mechanism. Therefore, kinematic modelling is carried out with point P as the research object.
(1) Kinematic model at the position level
First, build the positive kinematic model. The D–H parameters of the mechanism system are shown in Table 1.
In Table 1, α i 1 denotes the rotation angle from axis z i 1 to axis z i around axis x i 1 ; i 1 denotes the distance from axis z i 1 to the z i along axis x i 1 ; b i denotes the distance from axis x i 1 to axis x i along axis z i ; and Θ i denotes the rotation angle (i.e., the rotation angle of the joint i) from axis x i 1 to axis x i around axis z i .
The corresponding chi-square transformation matrix is as follows:
T i i 1 = c Θ i s Θ i 0 i 1 s Θ i c α i 1 c Θ i c α i 1 s α i 1 s α i 1 b i s Θ i s α i 1 c Θ i s α i 1 c α i 1 c α i 1 b i 0 0 0 1
In Equation (2), T i i 1 denotes the D–H transformation matrix from system O i 1 x i 1 y i 1 z i 1 to system O i x i y i z i , and s Θ i ( c Θ i ) and s α i 1 ( c α i 1 ) denote sin Θ i ( cos Θ i ) and sin α i 1 ( cos α i 1 ), respectively.
The D–H transformation matrices for systems O 0 x 0 y 0 z 0 to O 4 x 4 y 4 z 4 are then obtained as follows:
T 4 0 = T 1 0 T 2 1 T 3 2 T 4 3 = c 23 s 23 0 s v + l 2 c 2 + l 3 c 23 s 23 c 23 0 l 1 + l 2 s 2 + l 3 s 23 0 0 1 0 0 0 0 1
In Equation (3), s 2 ( c 2 ) and s 23 ( c 23 ) denote sin θ 2 ( cos θ 2 ) and sin θ 2 + θ 3 ( cos θ 2 + θ 3 ), respectively.
Therefore, the position matrix S P of point P in system O 0 x 0 y 0 z 0 is as follows:
S P = x P y P z P α P β P θ P = s v + l 2 c 2 + l 3 c 23 l 1 + l 2 s 2 + l 3 s 23 0 0 0 θ 2 + θ 3
In Equation (4), x P , y P , z P , and α P , β P , θ P denote the position coordinates and attitude angles of point P in system O 0 x 0 y 0 z 0 , respectively.
Next, build the inverse kinematic model. The bucket attitude angle θ P is considered to be known when the mechanism operates in the plane, and the following relationship is obtained from Equation (4):
x P = s v + l 2 c 2 + l 3 c 23 y P = l 1 + l 2 s 2 + l 3 s 23 θ P = θ 2 + θ 3
In Equation (5), θ 2 π / 2 , π / 2 , x P l 3 c P > s v . Then, Equation (5) yields the following positional inverse solution:
s v = x P l 3 c P l 2 2 y P l 1 l 3 s P 2 1 / 2 θ 2 = s i n 1 y P l 1 l 3 s P / l 2 θ 3 = θ P θ 2
In Equation (6), s P and c P denote sin θ P and cos θ P , respectively.
(2) Kinematic model at the velocity level
Construct the positive kinematic model. Figure 3 shows that for the joint space,
Θ = Θ 1 , Θ 2 , , Θ n T J Θ = J 1 , J 2 , , J n J i = k i × r i k i r i = a i + a i + 1 + + a n , i = 1 , 2 , , n
In Equation (7), n denotes the number of joints; Θ i denotes the rotation angle of joint i; Θ denotes the column vector consisting of Θ i ; J Θ denotes the Jacobian matrix in the joint space; J i denotes the column vector element of J Θ ; k i denotes the unit vector on the axis of rotation joint i (the direction is determined by the right-hand rule); r i denotes the displacement vector of joint i to end point P; a i ( i = 1 , 2 , , n 1 ) denotes the displacement vector of joint i to joint i + 1 ; and a i ( i = n ) denotes the displacement vector of joint i to end point P.
Then, the velocity of point P in system O 0 x 0 y 0 z 0 is
S ˙ P = v P ω P = J Θ Θ ˙
where
v P ω P = v P x , v P y , v P z , ω P x , ω P y , ω P z T
In Equation (9), v P and ω P , respectively, denote the velocity and angular velocity vectors of point P; and v P x , v P y , v P z and ω P x , ω P y , ω P z , respectively, denote the velocity and angular velocity components of point P in system O 0 x 0 y 0 z 0 .
Finally, by combining Table 1 and Figure 2, the following kinematic relations are obtained by relating Equations (7)–(9):
v P x v P y v P z ω P x ω P y ω P z = 1 0 0 0 0 0 l 2 s 2 l 3 s 23 l 2 c 2 + l 3 c 23 0 0 0 1 l 3 s 23 l 3 c 23 0 0 0 1 s ˙ v θ ˙ 2 θ ˙ 3

2.2.2. Mapping of the Joint Space to the Drive Space

In the previous subsection, the kinematic model of the mechanism system in the joint space was established, and the specific mapping relationship between the motion parameters of end point P and the joint space parameters ( s v , θ 2 and θ 3 ) was given. In this section, based on the explicit derivation method of analytical geometry, the motion-mapping relations between the joint space parameters ( θ 2 and θ 3 ) and the drive space parameters ( l l and l t ) are established, obtaining the kinematic model of the mechanism in the drive space.
Combined with Figure 2, in order to make the mathematical notation uniform and neat, the following conventions are used: the symbol l A B denotes the length from point A to point B, and the symbol γ A B C denotes the angle A B C . Since the design dimensions of the components of the mechanism system are known, the motion-mapping relationship between the joint space and the drive space is derived as follows.
First, construct the positive kinematic mapping relations. The mapping of the joint space parameter θ 2 is
γ A 0 O 2 A 1 = cos 1 l O 2 A 0 2 + l O 2 A 1 2 l l 2 / 2 l O 2 A 0 l O 2 A 1 γ ˙ A 0 O 2 A 1 = d γ A 0 O 2 A 1 d l l l ˙ l
θ 2 = π / 2 γ A 0 O 2 X 1 + γ A 0 O 2 A 1 γ O 4 O 2 A 1 γ O 3 O 2 O 4 θ ˙ 2 = d θ 2 d γ A 0 O 2 A 1 γ ˙ A 0 O 2 A 1
The mapping of the joint space parameter θ 3 is
γ O 4 O 2 B 0 = θ 2 + γ O 3 O 2 O 4 + γ B 0 O 2 X 1 π / 2 γ ˙ O 4 O 2 B 0 = d γ O 4 O 2 B 0 d θ 2 θ ˙ 2
Since the velocity derivation is the same for each transfer variable, only the position mapping is given next:
l O 4 B 0 = l O 2 O 4 2 + l O 2 B 0 2 2 l O 2 O 4 l O 2 B 0 cos γ O 4 O 2 B 0 1 / 2 γ O 2 O 4 B 0 = sin 1 l O 2 B 0 sin γ O 4 O 2 B 0 / l O 4 B 0 γ B 0 O 4 B 1 = cos 1 l O 4 B 0 2 + l O 4 B 1 2 l t 2 / 2 l O 4 B 0 l O 4 B 1 γ O 2 O 4 B 1 = γ B 0 O 4 B 1 γ O 2 O 4 B 0 γ O 3 O 4 O 5 = γ O 2 O 4 O 3 + γ O 5 O 4 B 1 + γ O 2 O 4 B 1 2 π l O 3 O 5 = l O 3 O 4 2 + l O 4 O 5 2 2 l O 3 O 4 l O 4 O 5 cos γ O 3 O 4 O 5 1 / 2 γ O 5 O 3 O 6 = cos 1 l O 3 O 5 2 + l O 3 O 6 2 l O 5 O 6 2 / 2 l O 3 O 5 l O 3 O 6 γ O 4 O 3 O 5 = sin 1 l O 4 O 5 sin γ O 3 O 4 O 5 / l O 3 O 5 γ O 4 O 3 O 6 = γ O 5 O 3 O 6 γ O 4 O 3 O 5
finally obtaining
θ 3 = π γ O 4 O 3 O 6 γ O 6 O 3 P γ O 2 O 3 O 4 θ ˙ 3 = d θ 3 d γ O 4 O 3 O 6 γ ˙ O 4 O 3 O 6
Second, construct the inverse kinematic mapping relations. Since the derivative method is the same as above, it is not difficult to obtain the mapping of the drive space parameters l l and l t . Considering the limited space, it is not repeated here. Eventually, the following form of the motion-mapping relation is obtained by relating Equations (4) and (6) to Equations (10) and (15):
T P = Φ k s v , l l , l t , s ˙ v , l ˙ l , l ˙ t L d r i v e = Φ k 1 x P , y P , θ P , v P x , v P y , ω P z
where
T P = x P , y P , θ P , v P x , v P y , ω P z T L d r i v e = s v , l l , l t , s ˙ v , l ˙ l , l ˙ t T
In Equation (16), Φ k denotes the motion-mapping function matrix and Φ k 1 denotes its inverse function matrix.
In summary, through the modelling method in this section, the kinematic model of the end point of the mechanism system in the drive space is established, which provides a basis for the subsequent design of the tracking controllers for the operation trajectory of the working mechanism.

3. Trajectories and Controllers

3.1. Operation Trajectories

As shown in Figure 4, we previously proposed a trajectory planning method based on the minimum shovel energy consumption by studying the bucket resistance during the operation of the working mechanism and designing an operation trajectory with a three-stage strategy [7]. In this study, we take this type of trajectory as the target operation trajectory (abbreviated as “target trajectory”) to complete the trajectory tracking controller design.
Combined with Figure 4, the operation process along the target trajectory can be described as follows: first, the bucket is laid flat and the bucket tip is moved from the initial position 0 to the starting point (position 1) of the shovel-digging operation; second, the bucket tip is inserted into the pile of material from position 1 and digs flatly to position 2; third, the bucket is inwardly turned over at a uniform speed and elevated to position 3; fourth, the bucket continues to be inwardly turned over at a uniform speed and elevated vertically to position 4; and finally, the bucket maintains a constant attitude and detaches from the pile of material from position 4 and continues to be elevated to position 5. Specifically, the target trajectory can be described by the following segmented function:
x P r = v P r · t t 0 + x P r 0 y P r = y P r 0 θ P r = θ P r 0 , t 0 t < t 2 x P r = v P r cos ρ · t t 2 + x P r 2 y P r = v P r sin ρ · t t 2 + y P r 2 θ P r = θ P r 3 θ P r 2 · t t 2 / t 3 t 2 + θ P r 2 , t 2 t < t 3 x P r = x P r 3 y P r = v P r · t t 3 + y P r 3 θ P r = θ P r 4 θ P r 3 · t t 3 / t 4 t 3 + θ P r 3 , t 3 t < t 4 x P r = x P r 4 y P r = v P r · t t 4 + y P r 4 θ P r = θ P r 4 , t 4 t t 5
In Equation (18), t i ( i = 0 , , 5 ) denotes the arrival time of point P at position i; x P r , y P r , and θ P r denote the position parameters of point P at any time t in system O 0 x 0 y 0 z 0 ; x P r i , y P r i , and θ P r i ( i = 0 , , 5 ) denote the positions of point P at position i; v P r denotes the target velocity of point P; and ρ denotes the angle of repose of the material pile.
From Equation (18), it can be seen that this type of target trajectory can be described as a two-dimensional sequence composed of the bucket-tip position information and the bucket rotation angle (abbreviated as “bucket angle”) information, which is described and illustrated in [6]. It is briefly described as follows: in practice, the rated digging volume V (i.e., bucket-digging volume or weight) and the angle of repose ρ are considered to be known, so the position information of the trajectory in the material pile is uniquely characterised by the dig insertion depth s 1 in Figure 4 (see [6] for specific proofs); the rated digging initial angle θ P r 0 and the termination angle θ P r 5 are considered to be known, so the bucket angle information can be uniquely characterised by the bucket intermediate angle θ P r 3 (the bucket angle at position 3). Thus, any sequence of target trajectories in the target trajectory space can be characterised by the parameters s 1 and θ P r 3 .
In fact, the whole shovel-digging process in practical experience needs to follow the following principles [6]: ① steady movement of the vehicle body; ② steady lifting of the arm; and ③ steady rotation of the bucket. In addition, it is also necessary to consider the motion performance of the vehicle body and the driving hydraulic cylinder unit during the shovel-digging operation. Therefore, the design of the trajectory tracking controllers needs to consider the following system constraints:
v v min s ˙ v v v max , a v min s ¨ v a v max v l min l ˙ l v l max , a l min l ¨ l a l max v t min l ˙ t v t max , a t min l ¨ t a t max
In Equation (19), v v max ( v v min ), v l max ( v l min ), and v t max ( v t min ) denote the upper (lower) limit values of the movement velocity of the vehicle body, the piston rod of the lift cylinder, and the piston rod of the tilt cylinder, respectively, during the shovel-digging operation; and a v max ( a v min ), a l max ( a l min ), and a t max ( a t min ) denote the upper (lower) limit values of the movement acceleration of the vehicle body, the piston rod of the lift cylinder, and the piston rod of the bucket cylinder, respectively, during the shovel-digging operation.

3.2. Controllers

3.2.1. NMPC Controller

Due to the working mechanism’s strong nonlinearity and high degree of coupling [11,43], and given that NMPC is more suitable for handling nonlinear systems [38], this paper adopts a nonlinear model predictive controller (NMPC controller).
The control principle of the NMPC controller in the operation trajectory tracking control of the working mechanism is shown in Figure 5. First, the prediction model predicts the motion state of the controlled mechanism at the next time step based on the current state of the controlled mechanism and the future control inputs within the constraints of the system and computes the deviation of its position information from the target trajectory information, which is then incorporated into the objective function. Then, the objective function iteratively computes the optimal control input based on the prediction model according to the size of the predicted time domain and the control time domain. Finally, the optimal control input is used as the control input for the actuator to control the motion of the mechanism.
The design of the NMPC controller focuses on the establishment of the prediction model and the design of the objective function. The prediction model is used to predict the future state of the bucket position based on the current position of the working mechanism and the future control inputs, so this paper establishes the prediction model using the kinematic model of the working mechanism. The kinematic model of the working mechanism (Equation (16)) can be written in the following general expression form:
ξ ˙ = f ξ , u
In Equation (20), f denotes the state-space mapping function; ξ denotes the state vector; and u denotes the control input of the system (i.e., the control input of the controlled system). The specific expressions are as follows:
ξ = x P , y P , θ P T u = s ˙ v , l ˙ l , l ˙ t T
From Equations (20) and (21), it follows that the state-space mapping function f is the function mapping form of the velocity-level kinematic model of the working mechanism in the state space, in which the control input u of the controlled system is a control sequence jointly composed of the vehicle body velocity s ˙ v , the lift/tilt cylinder piston rod velocity ( l ˙ l and l ˙ t ) in the drive space, i.e., by coordinating the cylinder piston rod velocity and the vehicle body velocity to enable the working mechanism to track the target trajectory. Therefore, the Euler method is used to discretise the above kinematic model, and the expression of the prediction model is as follows:
ξ t + 1 t = ξ t t + T f ξ t t , u t t
In Equation (22), T denotes the control period of the controller. Let the current time be t, the prediction time domain be N p , and the control time domain be N c . Then, in the prediction time domain, the position state of the working mechanism at any time is
ξ t + 1 t = ξ t t + T f ξ t t , u t t ξ t + N c + 1 t = ξ t + N c t + T f ξ t + N c t , u t + N c t ξ t + N p t = ξ t + N p 1 t + T f ξ t + N p 1 t , u t + N c t
The position deviation of the working mechanism from the target trajectory within the prediction time domain is represented by the error vector e , which is obtained from the prediction model as follows:
e t + i t = ξ t + i t ξ r t + i t , i = 1 , 2 , , N p
In Equation (24), ξ r represents the position state information of the tracking point of the target trajectory. The selection of the tracking point primarily depends on the position of the working mechanism at the current time and the given target velocity. Assuming that the function of the target trajectory is expressed as φ x P r , y P r , θ P r (Equation (18)), the 0-th tracking point at time t is expressed as follows:
d ξ t t , ξ r t t = d min ξ t t , φ x P r , y P r , θ P r
In Equation (25), d denotes the function that computes the distance. The remaining tracking points in the prediction time domain are expressed as follows:
r g ξ r t + i t , ξ r t + i 1 t = T v r , i = 1 , 2 , , N p
In Equation (26), r g denotes the arc length of the target trajectory between two tracking points and v r denotes the given target velocity.
Further, based on the prediction model established above, the objective function Γ is expressed as follows:
Γ = i = 1 N p e t + i t Q 1 2 + i = 1 N c Δ u t + i t Q 2 2 + ε Q 3 2
In Equation (27), the first term is the error penalty term, which reflects the controller’s ability to track the target trajectory; the second term reflects the requirement for smooth changes in the control inputs; ε denotes the relaxation factor; and Q 1 , Q 2 , and Q 3 denote the matrices of the weight coefficients. In practice, the weight matrices ( Q 1 , Q 2 , and Q 3 ) can be adjusted based on different operational requirements to achieve different control effects. For instance, increasing the value of each term of Q 1 can improve the tracking accuracy, or increasing the value of each term of Q 2 can improve the control smoothness.
The purpose of the objective function is to enable the mechanism to track the target trajectory as quickly and smoothly as possible. In this case, Δ u t + i t is the increment of the control input, and its expression is as follows:
Δ u t + i t = u t + i t u t + i 1 t , i = 1 , 2 , , N p
At this point, the trajectory tracking control problem for the working mechanism can be transformed into a multi-constraint quadratic programming problem, which takes the following form:
min u t , ε Γ = i = 1 N p e t + i t Q 1 2 + i = 1 N c Δ u t + i t Q 2 2 + ε Q 3 2 s . t . u min u u max a min T Δ u a max T
where
u min = v v min , v l min , v t min T u max = v v max , v l max , v t max T a min = a v min , a l min , a t min T a max = a v max , a l max , a t max T
Finally, the optimal control sequence is obtained by numerically solving Equation (29), with the first element serving as the control input for the controlled system at the next time step.

3.2.2. PID Controller

PID, as a typical control method that does not require a system model, has been widely used in industrial applications due to its simple structure and mature technology. For this reason, this paper uses the conventional PID control method to compare and analyse the performance of the controller. Given that trajectory tracking control involves multi-driver cooperation and that PID has difficulty directly handling multiple inputs and multiple outputs, along with the presence of strong nonlinearities and other kinematic characteristics of the working mechanism, this subsection presents an inverse kinematic decoupled PID controller [44] based on the inverse kinematic model of the working mechanism described in Section 2.2.
The control quantity u t from the PID controller at time t in the discrete control system is given by
u t = K P e t + T T I i = 0 t e i + T D T e t e t 1 s . t . u min u u max a min T Δ u a max T
In Equation (31), u t denotes the control input from the controller (i.e., the control input of the controlled system); e t denotes the error vector; K P denotes the proportional gain; T I denotes the integral time constant; and T D denotes the derivative time constant. The error vector e t is expressed as follows:
e = s v e l l e l t e = s v r s v l l r l l l t r l t
In Equation (32), s v r and s v e , respectively, denote the target displacement and displacement error of the vehicle body; l l r and l l e , respectively, denote the target length and length error of the lift cylinder; and l t r and l t e , respectively, denote the target length and length error of the tilt cylinder.
By combining Equations (16) and (17), the following relationship holds:
L d r i v e = Φ k 1 x P r , y P r , θ P r L d r i v e = s v r , l l r , l t r T

3.2.3. SMC Controller

SMC, as a variable structure control method with simple algorithms, fast response times, and insensitivity to parameter variations [45], has been widely adopted in many fields, including robotics, unmanned vehicles, and aerospace [46,47]. In order to more comprehensively compare and analyse the performance of the controllers, this paper uses the conventional SMC method, which adopts a reaching law-based SMC controller [48]. Similar to the above controllers, it aims to enable the working mechanism to track the target trajectory by controlling the piston rod velocity of the driving cylinders and the movement velocity of the vehicle body.
First, the sliding-mode function is defined. The sliding-mode function in the discrete control system is expressed in the following form at time t:
s t = c e t , c > 0
In Equation (34), s t denotes the sliding-mode function and c denotes the adjustment parameter.
According to Equations (32) and (34), the sliding-mode function takes the following form:
s t + 1 = c e t + 1 = c e t + T u t Δ L d r i v e , r t + 1
where
Δ L d r i v e , r t + 1 = L d r i v e , r t + 1 L d r i v e , r t
Second, choose the reaching law. The discrete reaching law uses the commonly used exponential reaching law [48] as follows:
s t + 1 s t = μ T sgn s t k T s t , μ > 0 , k > 0
In Equation (37), μ and k denote the adjustment parameters and sgn denotes the sign function, which is given by
sgn s = 1 , s > 0 0 , s = 0 1 , s < 0
Finally, by combining Equations (35) and (37), the control input u t from the SMC controller at time t in the discrete control system is given by
u t = c 1 μ sgn s t k s t + T 1 Δ L d r i v e , r t + 1 s . t . u min u u max a min T Δ u a max T
In summary, this section presents the design of the NMPC controller for the loader’s working mechanism operation and introduces the conventional PID and SMC controllers. The tracking performance of the controllers is analysed in the next section.

4. Validation and Analysis

4.1. Co-Simulation Platform

Figure 6 shows the co-simulation platform for the operation trajectory tracking control of the loader’s working mechanism. The simulation environment is based on a desktop host with the Windows 10 Professional operating system, an Intel(R) Core(TM) i7-9800X processor, and 32G of RAM. The platform consists of two major parts: the controller module and the prototype module. Among these, the controller module is written based on the S-function of MATLAB/Simulink (2020a version), which contains the target trajectory information and the controller program. Its role is to receive point P’s motion information, the driving cylinders’ length information, and the vehicle body’s displacement information from the prototype model in the prototype module in real time, and then compute the control inputs, such as the vehicle body’s velocity and the cylinders’ velocity, before inputting the control commands into the prototype module. The prototype module is based on the MSC.ADAMS (2016 version), including the prototype data interaction interface and the prototype model. Its role is to receive the control inputs from the controller module through the prototype data interaction interface in real time and input them into the drivers of the prototype model to make the prototype move. At the same time, the state information (e.g., point P’s movement information) is fed back to the controller module in real time. The specific constraints and geometric parameters of the prototype model in the prototype module are described in [43].
The main control parameters in the control module are shown in Table 2. The target trajectories and constraint parameters under different experimental groups are shown in Table 3. Among these, Group 1 and Group 2 share the same target trajectories, with the difference being in the presence or absence of the system constraints. Group 2 and Group 3 share the same system constraints, but they differ in their target trajectories. In addition, it should be noted that the control time domain N c is closely related to real-time performance, so a shorter control time domain (1 or 2) is usually chosen to maintain real-time operation [49]. When the control time domain is determined, there exists an optimal prediction time domain N p . If the prediction time domain N p is too large, it will act too early, increasing the distance from the target point, whereas if the prediction time domain N p is too small, it will act too late, leading to overshooting, oscillation, and even out-of-control problems [50]. Therefore, in practice, the appropriate control parameters can be selected according to the system characteristics.

4.2. Experiments and Analyses

Figure 7 shows the target trajectory and the tracking effect of point P under the different controllers in Group 1. It can be seen that, in the ideal case without system constraints, since the control inputs from the PID controller, the SMC controller, and the NMPC controller are not constrained by the system constraints, they can achieve accurate tracking of the target trajectory, which verifies the appropriateness of the controller parameters. In addition, compared with the PID and SMC control methods, the NMPC control method has the property of early prediction, so it appears to steer in advance at positions 2 and 3.
Figure 8, Figure 9, and Figure 10 show the tracking effect, the errors, and the control inputs of point P under the different controllers in Group 2, respectively.
Figure 8 shows that, under system constraints, point P’s trajectory under the PID controller has a large deviation from position 2, which is especially pronounced between position 3 and position 5, exhibiting significant overshooting and a tendency to diverge. Figure 9 shows the changes in the displacement error and the bucket angle error. It can be seen that, under the influence of system constraints, point P’s trajectory has a large displacement error from position 2, especially between position 3 and position 5, and the maximum absolute value of point P’s displacement error is 0.184 m. The bucket angle also has a large error and fluctuation from position 2, and the maximum absolute value of the bucket angle error is 3.09°. Additionally, the errors are dispersed in the back section of the shovel-digging operation. As discussed in Section 3.2.2, the main reason for this phenomenon is that PID, as a control method that does not require a system model, relies on the error state model to design the control law by adjusting the corresponding parameter to achieve control. However, it is difficult to account for system constraints, making it difficult to handle system constraint limitations effectively. Therefore, from position 2 onward, the PID controller exhibits poor tracking performance due to system constraints. In addition, affected by the principles and characteristics of PID, Figure 10 shows that the control inputs under the PID controller exhibit more pronounced jitter.
In Group 2, the SMC controller has a similar effect as the PID controller. Under the system constraints, the maximum absolute value of point P’s displacement error in the SMC controller is 0.166 m, and the maximum absolute value of the bucket angle error is 2.88°. As discussed in Section 3.2.3, designing the control law for SMC can cause the system state to converge from outside the hyperplane to the switching hyperplane by controlling the sliding mode of the control system. Once the system reaches the switching hyperplane, the control action ensures that the system moves along the switching hyperplane to reach the origin, achieving sliding-mode control. Its control characteristics are very similar to those of the PID controller; for example, both are mainly based on the present state of the error and do not consider the system state in the future. Additionally, they do not effectively account for system constraints, so under system constraints, large overshoot will occur when the system state changes. However, the jitter phenomenon under the SMC controller is significantly reduced compared with the PID controller because, although the control law of SMC includes a switching function that causes system jitter, the exponential function reaching law is adopted, which effectively decreases the jitter amplitude of the controller.
However, Figure 8 shows that point P’s trajectory under the NMPC controller has good tracking performance throughout the process under the system constraints. Figure 9 shows that the maximum absolute value of point P’s displacement error is only 0.052 m, and the maximum absolute value of the bucket angle error is 2.58°, both of which occur at position 2, and the errors do not diverge throughout the process. As discussed in Section 3.2.1, the main reasons for these phenomena are that NMPC, as an optimal control method that requires a system model, first uses the established system model as the prediction model when designing the control law, then incorporates system constraints into the established objective function to handle them explicitly, and finally determines a set of optimal control inputs (see Equation (29)) through the solution of the multi-constraint quadratic programming problem. The control inputs not only meet the system constraints and are optimal but also have the characteristics of advanced prediction control. Although these characteristics lead to a certain sacrifice in accuracy when there is a sudden change in the curvature of the target trajectory, this sacrifice can be balanced to a certain extent by smoothness, and the magnitude of this sacrifice is smaller compared to errors such as overshooting in methods like PID. This can be observed in the maximum absolute value of the displacement error. The maximum displacement error under the NMPC controller is mainly due to this sacrifice, whereas in the PID controller, it is caused by overshooting, over-constraints, etc. The displacement error in NMPC is smaller than in PID. Therefore, compared to control methods that do not require a system model, NMPC shows better tracking performance under the system constraint limitations. In addition, Figure 10 shows that the control inputs under the NMPC controller are smoother. This is because the NMPC controller adopts an objective function based on the prediction model (see Equation (27)). The second term in the objective function represents the incremental form of the control inputs, which enforces a smoothness requirement. So, the smoothness of the control inputs improves when solving for the optimal control inputs.
Figure 11, Figure 12, and Figure 13 show the tracking effect, the errors, and the control inputs of point P under the different controllers in Group 3, respectively.
Similar to the effect in Group 2, and affected by the limitations of the PID control principle, Figure 11 shows that under the system constraints, point P’s trajectory under the PID controller deviates significantly from position 3, and a large overshooting phenomenon occurs. Figure 12 shows that, under the influence of the system constraints, point P exhibits a large displacement error from position 3, with a maximum absolute value of 0.164 m. The bucket angle exhibits more obvious fluctuations from position 2, and even diverges in the rear section of the shovel-digging operation, with a maximum absolute bucket angle error of 3.99°. In addition, Figure 13 shows that the control inputs under the PID controller exhibit more pronounced jitter.
In Group 3, the effect of the SMC controller is almost the same as that of the PID controller. It is also affected by the SMC control characteristics. Under the system constraints, the maximum absolute value of point P’s displacement error is 0.170 m, and the maximum absolute value of the bucket angle error is 3.89°. Meanwhile, the jitter phenomenon under the SMC controller is reduced compared with the PID controller.
Similarly, benefiting from the advantages of the NMPC control principle, Figure 11 shows that under the system constraints, point P’s trajectory under the NMPC controller exhibits good tracking performance throughout the process. Figure 12 shows that the maximum absolute value of point P’s displacement error is 0.040 m, and the maximum absolute value of the bucket angle error is 1.95°, both of which occur at position 2, and the errors do not diverge throughout the process. In addition, Figure 13 shows that the control inputs under the NMPC controller are relatively smooth.
In summary, the results of the co-simulation experiments show that under the same system constraints, for different target trajectories, compared with the PID and SMC controllers, the NMPC controller exhibits better control performance compared with the PID and SMC controllers. Specifically, the maximum absolute value of point P’s displacement error is reduced by at least 71% and 68%, respectively; the maximum absolute value of the bucket angle error is reduced by at least 16% and 10%, respectively; and the NMPC controller exhibits smoother control performance. Therefore, the operation trajectory tracking controller based on the NMPC method for the working mechanism exhibits better performance in handling system constraints and ensuring smoothness than the conventional PID and SMC methods.
Next, in order to ensure the realisation of the trajectories in the shovel-digging trajectory space, based on the above research, the NMPC controller (method) is used to perform a comprehensive tracking test for the trajectories.

4.3. Comprehensive Tracking Test

Based on the previous research, in this section, the NMPC controller is used to carry out a comprehensive tracking test on the trajectories in the shovel-digging trajectory space, and its results are analysed and investigated.

4.3.1. Trajectory Tracking Test

As discussed in Section 3.1, the trajectories in the shovel-digging trajectory space should be tracked and tested as comprehensively as possible to verify the performance of the controller. The trajectory sequence ranges are defined as follows: the dig insertion depth s 1 ranges from 0.4 m to 1.5 m, at intervals of 0.1 m, and the bucket intermediate angle θ P r 3 ranges from 10 ° to 40 ° , at intervals of 10 ° . The specific parameters of the trajectory sequence are shown in Table 4. There are 44 trajectory groups, each represented by (i, j).
Next, Figure 14 shows all test trajectories under the NMPC controller.

4.3.2. Tracking Results and Analyses

Table 5 shows the tracking errors under the NMPC controller, which are mainly characterised by the maximum absolute value of point P’s displacement error (abbreviated as “maximum displacement error” in the following text) and the maximum absolute value of the bucket angle error (abbreviated as “maximum angle error” in the following text) throughout the shovel-digging process. To facilitate the analysis, Figure 15 and Figure 16, respectively, show the maximum displacement errors and the maximum angle errors for all tracking trajectories under the NMPC controller.
By connecting the different dig insertion depth groups under the same bucket angle in Figure 15, it can be seen that under the same bucket angle, as the dig insertion depth increases, the maximum displacement error increases, especially when the dig insertion depth is more than approximately 1.1 m (i.e., i = 8), the maximum displacement error increases rapidly with the increase in the dig insertion depth. Combined with the tracking trajectory effect diagram in the previous subsection, it can be seen that the maximum displacement error occurs in the third stage of the shovel-digging operation, i.e., the phenomenon of overshooting occurs. It can be surmised from Section 4.2 that this phenomenon is mainly due to the deviation of the multi-driver devices of the working mechanism, which are affected by the system driving constraints. In addition, Figure 15 shows that at the same dig insertion depth, as the bucket angle increases, the maximum displacement error tends to increase, which mainly occurs in the second stage of the shovel-digging operation. But the deviation is not significant, which is in line with the characteristics of the controller.
Similarly, by connecting the different dig insertion depth groups under the same bucket angle in Figure 16, it can be seen that when the dig insertion depth is more than approximately 1.1 m (i.e., i = 8), the maximum angle error increases rapidly with the increase in the dig insertion depth under the same bucket angle. This phenomenon can be surmised to be a deviation of the controller, mainly affected by the system driving constraints. However, when the dig insertion depth is less than 1.1 m, the maximum angle error increases with the increase in the dig insertion depth at a larger bucket angle, while at a smaller bucket angle, the maximum angle error changes in the opposite direction. Combined with the kinematic model of the working mechanism in Section 2.2, it is surmised that this phenomenon is mainly due to the deviation of the controller, which is affected by the system’s geometrical constraints. The deviation is so small that it can be ignored.
In summary, the maximum displacement error and the maximum angle error under the NMPC controller do not exceed 60 mm and 6°, respectively, which verifies the good control performance of the working mechanism tracking controller based on the NMPC method designed in this paper. In addition, as the dig insertion depth increases, the tracking performance of the controller decreases (e.g., displacement and angle overshooting). Considering that in practice, as the bucket inserts into the material at a greater depth, the resistance increases approximately linearly. At the same time, the overshooting increases the dig insertion depth, which also leads to an increase in resistance. Therefore, it is not recommended to use a trajectory with a larger dig insertion depth as a viable shovel-digging trajectory.

5. Conclusions

Aiming at the difficulty of handling system constraints using a control method that does not require a system model (represented by PID), resulting in large overshooting amplitudes and jitter under system constraints, this paper introduced the MPC concept into the motion control of the loader’s working mechanism for the first time. Then, by combining the characteristics of the working mechanism with the advantages of NMPC, we proposed an operation trajectory tracking control method and designed an NMPC-based controller for the working mechanism. Finally, we compared it with conventional PID and SMC controllers. The main conclusions drawn are as follows:
(1) Co-simulation analyses show that under the same system constraints, for different target trajectories, the designed controller exhibits better control performance compared to the PID and SMC controllers. Specifically, the maximum absolute value of the bucket-tip displacement error under the designed controller does not exceed 0.052 m, which is at least 71% and 68% lower than that of the PID and SMC controllers, respectively. The maximum absolute value of the bucket angle error under the designed controller does not exceed 2.58°, which is at least 16% and 10% lower than that of the PID and SMC controllers, respectively. The designed controller has smoother control performance. Therefore, compared with the conventional PID and SMC methods, the trajectory tracking control for the working mechanism based on the NMPC method exhibits better performance in terms of handling system constraints and ensuring smoothness, mainly due to the advantages of the NMPC control principle. Of course, NMPC control also has inherent limitations, mainly the real-time problem caused by the computational complexity. The literature [49,50] elaborates on the study of NMPC real-time performance: relative to the prediction time domain, its real-time performance is more affected by the control time domain. Since the loader’s operational movement is relatively slow, in practice, choosing a smaller control time domain can ensure real-time performance, while adjusting the prediction time domain can ensure tracking performance.
(2) Through comprehensive tracking tests of shovel-digging trajectories, it was found that the tracking performance of the controller decreases with the increase in the dig insertion depth (e.g., displacement and angle overshooting), and considering that, in practice, as the bucket inserts deeper into the material, the resistance increases approximately linearly. At the same time, the overshooting increases the dig insertion depth, which also leads to an increase in resistance. Therefore, it is not recommended to take the trajectory with a larger dig insertion depth as the reasonable shovel-digging trajectory in practical operation. Moreover, the target trajectory in this study is a fixed empirical trajectory, but real-world operations may require dynamic trajectory adjustments (e.g., due to material distribution changes or unexpected obstacles). Therefore, it is necessary to translate operator experience (operating style modelling) into adaptive rules for trajectory parameters [51]. For instance, historical operation data could be used to learn different operators’ preferences for digging depth, enabling dynamic adjustments of controller parameters. So, in future work, the uncertainties (e.g., the fuzziness and dynamic adaptability in human decision making) in a human operator’s behaviour can be incorporated into the design of the controller to enhance human–machine collaboration [52].
(3) The research in this paper is a preliminary achievement. It not only provides an important foundation and new insights for improving the control performance of the loader’s working mechanism but also provides a research reference for multi-arm machinery to realise safe and low-consumption automated operation. Specifically, the kinematic model of multi-arm machinery should first be created using the kinematic modelling method (Section 2), then, the prediction model and the discrete control volume (which depend on the specific object to set the system constraints) can be created using the NMPC method (Section 3.2.1), and finally, the NMPC-based controller for multi-arm machinery can be designed. However, due to the complexity and diversity of nonlinear systems, there are still a lot of problems to be explored and solved in the theoretical research and industrial application of NMPC in terms of stability, robustness, and optimisation [53]. In the future, it will be necessary to further develop and promote the existing research results of NMPC to meet the application requirements and characteristics of mechanical equipment, thereby improving control performance in practical applications.

Author Contributions

Conceptualisation, Y.J.; methodology, G.L. and G.B.; software, G.L. and Z.G.; validation, G.L. and G.B.; formal analysis, G.L.; investigation, Z.G.; resources, H.L.; data curation, X.Z. and K.W.; writing—original draft preparation, G.L.; writing—review and editing, H.L.; visualisation, Z.W.; supervision, Y.J.; project administration, Y.J.; funding acquisition, Z.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Key Research and Development Program of China under grant numbers 2023YFC2907400, 2019YFC0605300 and 2018YFC0604403.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

The authors wish to acknowledge the support received from BGRIMM Machinery and Automation Technology Co., Ltd. (BGRIMM Technology Group) and the University of Science and Technology, Beijing.

Conflicts of Interest

Authors Guodong Liang, Yong Jiang, Zeyu Gao, Hengtong Li, Xiaoyan Zhao, Kai Wang and Zhiyan Wang were employed by the company “BGRIMM Machinery and Automation Technology Co., Ltd. (BGRIMM Technology Group)”. The remaining authors declare that the re-search was con-ducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
PIDProportional–Integral–Derivative
MPCModel Predictive Control
LMPCLinear Model Predictive Control
NMPCNonlinear Model Predictive Control
NEMPCNonlinear Error Model Predictive Control
SMCSliding-Mode Control
RBFRadial Basis Function
D–HDenavit–Hartenberg
SgnSign Function

References

  1. Dadhich, S.; Bodin, U.; Andersson, U. Key challenges in automation of earth-moving machines. Autom. Constr. 2016, 68, 212–222. [Google Scholar] [CrossRef]
  2. Wang, X.; Wang, Z.; Wang, S.; Cai, W.; Wu, Q.; Ma, W. Design and Control Performance Optimization of Variable Structure Hydrostatic Drive Systems for Wheel Loaders. Machines 2024, 12, 238. [Google Scholar] [CrossRef]
  3. Wang, X.; Zhang, H.; Yang, J.; Ge, L.; Hao, Y.; Quan, L. Research on the characteristics of wheel loader boom driven by the asymmetric pump controlled system. J. Mech. Eng. 2021, 57, 258–266. [Google Scholar] [CrossRef]
  4. Dadhich, S. Automation of Wheel-Loaders. Ph.D. Thesis, Luleå University of Technology, Luleå, Sweden, 2018. [Google Scholar]
  5. Chen, Y.; Jiang, H.; Shi, G.; Zheng, T. Research on the trajectory and operational performance of wheel loader automatic shoveling. Appl. Sci. 2022, 12, 12919. [Google Scholar] [CrossRef]
  6. Chen, Y.; Meng, Y.; Xiang, S.; Bai, G.; Liang, G.; Xie, G. Shovel path planning of loader based on beetle antennae search. Comput. Integr. Manuf. Syst. 2023, 29, 2201. [Google Scholar] [CrossRef]
  7. Meng, Y.; Fang, H.; Liang, G.; Gu, Q.; Liu, L. Bucket trajectory optimization under the automatic scooping of LHD. Energies 2019, 12, 3919. [Google Scholar] [CrossRef]
  8. Hang, P.; Huang, C.; Hu, Z.; Lv, C. Decision making for connected automated vehicles at urban intersections considering social and individual benefits. IEEE Trans. Intell. Transp. Syst. 2022, 23, 22549–22562. [Google Scholar] [CrossRef]
  9. Deng, Z.; Hu, W.; Sun, C.; Chu, D.; Huang, T.; Li, W.; Yu, C.; Pirani, M.; Cao, D.; Khajepour, A. Eliminating Uncertainty of Driver’s Social Preferences for Lane Change Decision-Making in Realistic Simulation Environment. IEEE Trans. Intell. Transp. Syst. 2024, 26, 1583–1597. [Google Scholar] [CrossRef]
  10. Šalinić, S.; Bošković, G.; Nikolić, M. Dynamic modelling of hydraulic excavator motion using Kane’s equations. Autom. Constr. 2014, 44, 56–62. [Google Scholar] [CrossRef]
  11. Liang, G.; Liu, L.; Meng, Y.; Chen, Y.; Bai, G.; Fang, H. Dynamic Modeling and Analysis of Loader Working Mechanism Considering Cooperative Motion with the Vehicle Body. Machines 2022, 11, 9. [Google Scholar] [CrossRef]
  12. Gong, J.; Bao, J.; Yi, G.; Cui, Y. Trajectory-following control for manipulator of wheel loaders based on computed torque. J. Mech. Eng. 2010, 46, 141–146. [Google Scholar] [CrossRef]
  13. Zhang, D.; He, Q.; Hao, P.; Guo, Y. Trajectory tracking control of hydraulic excavator bucket. J. Jilin Univ. 2005, 35, 490–494. [Google Scholar] [CrossRef]
  14. He, J.; Zhao, X.; Zhang, D.; He, Q. The Hardware-In-Loop simulation research on trajectory control and modeling parameter estimation of working device of hydraulic excavator. In Proceedings of the 2010 IEEE International Conference on Mechatronics and Automation, Xi’an, China, 4–7 August 2010; pp. 1214–1219. [Google Scholar] [CrossRef]
  15. Yan, J.; Li, B.; Guo, G.; Zeng, Y.; Zhang, M. Adaptive control for bucket position of excavator based on single neuron PID. J. PLA Univ. Sci. Technol. 2012, 13, 316–319. [Google Scholar] [CrossRef]
  16. Du, Z.; Ye, Z.; Hui, Z.; Hua, B.; Xu, Y.; Jiang, X. The study of trajectory automatic control based on RBF neural network PID control. In Proceedings of the IEEE 2015 International Conference on Fluid Power and Mechatronics (FPM), Harbin, China, 5–7 August 2015; pp. 1234–1238. [Google Scholar] [CrossRef]
  17. Chen, Q.; Huang, C.; Zhou, X.; Wang, Z.; Guomin, B. Research on trajectory control of end of working device of explosive charging vehicle. Min. Process. Equip. 2016, 44, 7–12. [Google Scholar] [CrossRef]
  18. Feng, H.; Song, Q.; Ma, S.; Ma, W.; Yin, C.; Cao, D.; Yu, H. A new adaptive sliding mode controller based on the RBF neural network for an electro-hydraulic servo system. ISA Trans. 2022, 129, 472–484. [Google Scholar] [CrossRef]
  19. Liu, B.; Huang, J.; Lu, J.; Wang, H. Research on trajectory control of skid steer loader in automatic digging. J. Wuhan Univ. Technol. 2010, 32, 107–110. [Google Scholar] [CrossRef]
  20. Zhang, X.; Kang, L.; Tang, J.; Zhang, J. Trajectory tracking of intelligent excavator using variable universe fuzzy multi-parameter self-tuning PID control. China J. Highw. Transp. 2023, 36, 240–250. [Google Scholar] [CrossRef]
  21. Azulay, O.; Shapiro, A. Wheel loader scooping controller using deep reinforcement learning. IEEE Access 2021, 9, 24145–24154. [Google Scholar] [CrossRef]
  22. Guo, X.; Fu, X.; Yan, B.; Zhao, X.; Jiang, Y. Research on motion trajectory of underground scraper working mechanism based on fuzzy-PID control theory. China Min. Mag. 2019, 28, 451–454. [Google Scholar]
  23. Bouakrif, F.; Zasadzinski, M. Trajectory tracking control for perturbed robot manipulators using iterative learning method. Int. J. Adv. Manuf. Technol. 2016, 87, 2013–2022. [Google Scholar] [CrossRef]
  24. Park, J.; Lee, B.; Kang, S.; Kim, P.Y.; Kim, H.J. Online learning control of hydraulic excavators based on echo-state networks. IEEE Trans. Autom. Sci. Eng. 2016, 14, 249–259. [Google Scholar] [CrossRef]
  25. Feng, H.; Yin, C.; Weng, W.; Ma, W.; Zhou, J.; Jia, W.; Zhang, Z. Robotic excavator trajectory control using an improved GA based PID controller. Mech. Syst. Signal Process. 2018, 105, 153–168. [Google Scholar] [CrossRef]
  26. Borase, R.P.; Maghade, D.; Sondkar, S.; Pawar, S. A review of PID control, tuning methods and applications. Int. J. Dyn. Control 2021, 9, 818–827. [Google Scholar] [CrossRef]
  27. Abdallaoui, S.; Kribèche, A.; Aglzim, E.H. Comparative Study of MPC and PID Controllers in Autonomous Vehicle Application. Adv. Autom. Mech. Des. Eng. 2022, 121, 133–144. [Google Scholar] [CrossRef]
  28. Zainuddin, M.; Abdullah, M.; Ahmad, S.; Tofrowaih, K. Performance comparison between predictive functional control and PID algorithms for automobile cruise control system. Int. J. Automot. Mech. Eng. 2022, 19, 9460–9468. [Google Scholar] [CrossRef]
  29. Guo, H. Dynamic model and model predictive control of dual-channel closed-loop supply chain on Internet. Comput. Integr. Manuf. Syst. 2018, 24, 3157–3164. [Google Scholar] [CrossRef]
  30. Schwenzer, M.; Ay, M.; Bergs, T.; Abel, D. Review on model predictive control: An engineering perspective. Int. J. Adv. Manuf. Technol. 2021, 117, 1327–1349. [Google Scholar] [CrossRef]
  31. Charest-Finn, M.; Pejhan, S. Model Predictive Control Used in Passenger Vehicles: An Overview. Machines 2024, 12, 773. [Google Scholar] [CrossRef]
  32. Gong, J.; Jiang, Y.; Xu, W. Model Predictive Control for Self-Driving Vehicles; Institute of Technology Press: Beijing, China, 2014. [Google Scholar]
  33. Liu, K.; Zhong, S.; Zhao, K.; Song, Y. Motion control and positioning system of multi-sensor tunnel defect inspection robot: From methodology to application. Sci. Rep. 2023, 13, 232. [Google Scholar] [CrossRef]
  34. Kouvaritakis, B.; Cannon, M. Model Predictive Control; Springer International Publishing: Cham, Switzerland, 2016. [Google Scholar] [CrossRef]
  35. Xi, Y.; Li, D.; Lin, S. Model predictive control—status and challenges. Acta Autom. Sin. 2013, 39, 222–236. [Google Scholar] [CrossRef]
  36. Song, R.; Ye, Z.; Wang, L.; He, T.; Zhang, L. Autonomous wheel loader trajectory tracking control using lpv-mpc. In Proceedings of the IEEE 2022 American Control Conference (ACC), Atlanta, GA, USA, 8–10 June 2022; pp. 2063–2069. [Google Scholar] [CrossRef]
  37. Urrea, C.; Kern, J.; Torres, V. Design, simulation, and comparison of advanced control strategies for a 3-degree-of-freedom robot. Appl. Sci. 2024, 14, 11010. [Google Scholar] [CrossRef]
  38. Bai, G.; Luo, W.; Liu, L.; Meng, Y.; Gu, Q.; Li, K. Current status and progress of path tracking control of mining articulated vehicles. Chin. J. Eng. 2021, 43, 193–204. [Google Scholar] [CrossRef]
  39. Franco, I.J.P.B.; Ribeiro, T.T.; Conceição, A.G.S. A novel visual lane line detection system for a NMPC-based path following control scheme. J. Intell. Robot. Syst. 2021, 101, 12. [Google Scholar] [CrossRef]
  40. Chen, L.; Zhou, K.; Teng, C.; Sun, X.; Wang, H. Longitudinal and lateral comprehensive trajectory tracking control of intelligent vehicles based on NMPC. Automot. Eng. 2021, 43, 153–161. [Google Scholar] [CrossRef]
  41. Zhang, X.; Yao, H.; Zhang, Q.; Hao, Z.; Pan, H.; Yang, Y.; Cheng, Y.; Song, Y. Nonlinear model predictive control (NMPC) based trajectory tracking on EAST articulated maintenance arm (EAMA). Fusion Eng. Des. 2021, 163, 112102. [Google Scholar] [CrossRef]
  42. Heshmati-Alamdari, S.; Karras, G.C.; Kyriakopoulos, K.J. A predictive control approach for cooperative transportation by multiple underwater vehicle manipulator systems. IEEE Trans. Control Syst. Technol. 2021, 30, 917–930. [Google Scholar] [CrossRef]
  43. Liang, G.; Liu, L.; Meng, Y.; Gu, Q.; Fang, H. Dynamic modelling and accuracy analysis for front-end weighing system of LHD vehicles. Proc. Inst. Mech. Eng. Part K J. Multi-Body Dyn. 2021, 235, 514–535. [Google Scholar] [CrossRef]
  44. Liang, G.; Liu, L.; Meng, Y.; Bai, G. Shoveling trajectory tracking control of loader working mechanism. In Proceedings of the IEEE 2022 5th World Conference on Mechanical Engineering and Intelligent Manufacturing (WCMEIM), Ma’anshan, China, 18–20 November 2022; pp. 668–673. [Google Scholar] [CrossRef]
  45. Liu, J. Sliding Mode Variable Structure Control MATLAB Simulation, 3rd ed.; Tsinghua University Press: Beijing, China, 2015. [Google Scholar]
  46. Perruquetti, W.; Barbot, J.P. Sliding Mode Control in Engineering; Marcel Dekker Inc.: New York, NY, USA, 2002. [Google Scholar]
  47. Azar, A.T.; Zhu, Q. Advances and Applications in Sliding Mode Control Systems; Springer International Publishing: Cham, Switzerland, 2015. [Google Scholar] [CrossRef]
  48. Gao, W. Theory and Design Methods for Variable Structure Control; Science Press: Beijing, China, 1996. (In Chinese) [Google Scholar]
  49. Bai, G.; Liu, L.; Meng, Y.; Liu, S.; Liu, L.; Luo, W. Real-time path tracking of mobile robot based on nonlinear model predictive control. Trans. Chin. Soc. Agric. Mach. 2020, 51, 47–52. [Google Scholar] [CrossRef]
  50. Bai, G.; Meng, Y.; Gu, Q.; Li, K.; Li, S. Some rules for setting the horizon parameters of NMPC-based vehicle path tracking. In Proceedings of the IEEE 2020 Chinese Automation Congress (CAC), Shanghai, China, 6–8 November 2020; pp. 5167–5170. [Google Scholar] [CrossRef]
  51. Würtz, S.; Göhner, U. Driving style analysis using recurrent neural networks with LSTM cells. J. Adv. Inf. Technol. 2020, 11, 1–9. [Google Scholar] [CrossRef]
  52. Hang, P.; Zhang, Y.; Lv, C. Brain-inspired modeling and decision-making for human-like autonomous driving in mixed traffic environment. IEEE Trans. Intell. Transp. Syst. 2023, 24, 10420–10432. [Google Scholar] [CrossRef]
  53. He, D.; Ding, B.; Yu, S. Review of fundamental properties and topics of model predictive control for nonlinear systems. Control Theory Appl. 2013, 30, 274–287. [Google Scholar] [CrossRef]
Figure 1. Working mechanism structure diagram.
Figure 1. Working mechanism structure diagram.
Machines 13 00165 g001
Figure 2. The kinematic model of the mechanism system.
Figure 2. The kinematic model of the mechanism system.
Machines 13 00165 g002
Figure 3. Velocity transfer diagram in the joint space.
Figure 3. Velocity transfer diagram in the joint space.
Machines 13 00165 g003
Figure 4. Three-stage operation trajectory of the working mechanism.
Figure 4. Three-stage operation trajectory of the working mechanism.
Machines 13 00165 g004
Figure 5. Control principle of NMPC controller.
Figure 5. Control principle of NMPC controller.
Machines 13 00165 g005
Figure 6. Co-simulation platform.
Figure 6. Co-simulation platform.
Machines 13 00165 g006
Figure 7. Tracking trajectories of point P in Group 1.
Figure 7. Tracking trajectories of point P in Group 1.
Machines 13 00165 g007
Figure 8. Tracking trajectories of point P in Group 2.
Figure 8. Tracking trajectories of point P in Group 2.
Machines 13 00165 g008
Figure 9. Tracking errors in Group 2: (a) displacement error of point P; (b) bucket angle error.
Figure 9. Tracking errors in Group 2: (a) displacement error of point P; (b) bucket angle error.
Machines 13 00165 g009
Figure 10. Control inputs in Group 2: (a) vehicle velocity; (b) lift cylinder velocity; (c) tilt cylinder velocity.
Figure 10. Control inputs in Group 2: (a) vehicle velocity; (b) lift cylinder velocity; (c) tilt cylinder velocity.
Machines 13 00165 g010
Figure 11. Tracking trajectories of point P in Group 3.
Figure 11. Tracking trajectories of point P in Group 3.
Machines 13 00165 g011
Figure 12. Tracking errors in Group 3: (a) displacement error of point P; (b) bucket angle error.
Figure 12. Tracking errors in Group 3: (a) displacement error of point P; (b) bucket angle error.
Machines 13 00165 g012
Figure 13. Control inputs in Group 3: (a) vehicle velocity; (b) lift cylinder velocity; (c) tilt cylinder velocity.
Figure 13. Control inputs in Group 3: (a) vehicle velocity; (b) lift cylinder velocity; (c) tilt cylinder velocity.
Machines 13 00165 g013
Figure 14. Test trajectories under the NMPC controller.
Figure 14. Test trajectories under the NMPC controller.
Machines 13 00165 g014aMachines 13 00165 g014bMachines 13 00165 g014c
Figure 15. Maximum displacement errors for all tracking trajectories.
Figure 15. Maximum displacement errors for all tracking trajectories.
Machines 13 00165 g015
Figure 16. Maximum angle errors for all tracking trajectories.
Figure 16. Maximum angle errors for all tracking trajectories.
Machines 13 00165 g016
Table 1. D–H parameters of the mechanism system.
Table 1. D–H parameters of the mechanism system.
i α i 1 / rad i 1 / m b i / m Θ i / rad
10 s v 0 π / 2
20 l 1 0 θ 2 π / 2
30 l 2 0 θ 3
40 l 3 00
Table 2. Main control parameters of the control module.
Table 2. Main control parameters of the control module.
Controllers ρ / ° T / s v r / m · s 1 N p N c K P T I T D c μ k
NMPC400.050.5102------
PID400.050.5--101000.005---
SMC400.050.5-----50.157
Table 3. Relevant parameters of the different experimental groups.
Table 3. Relevant parameters of the different experimental groups.
Group s 1 / m θ Pr 0 / ° θ Pr 3 / ° θ Pr 5 / ° u min / m · s 1 u max / m · s 1 a min / m · s 2 a max / m · s 2
11.302544----
21.302544 0 , 0 , 0 T 0.5 , 0.2 , 0.2 T 0.5 , 0.5 , 0.5 T 0.5 , 0.5 , 0.5 T
31.003544 0 , 0 , 0 T 0.5 , 0.2 , 0.2 T 0.5 , 0.5 , 0.5 T 0.5 , 0.5 , 0.5 T
Table 4. Parameters of the trajectory sequence in the shovel-digging trajectory space.
Table 4. Parameters of the trajectory sequence in the shovel-digging trajectory space.
j1234
i s 1 / m θ P r 3 / ° s 1 / m θ P r 3 / ° s 1 / m θ P r 3 / ° s 1 / m θ P r 3 / °
10.4100.4200.4300.440
20.5100.5200.5300.540
30.6100.6200.6300.640
40.7100.7200.7300.740
50.8100.8200.8300.840
60.9100.9200.9300.940
71.0101.0201.0301.040
81.1101.1201.1301.140
91.2101.2201.2301.240
101.3101.3201.3301.340
111.4101.4201.4301.440
Table 5. Tracking errors relative to target trajectories.
Table 5. Tracking errors relative to target trajectories.
j1234
i Maximum displacement error /(mm)Maximum angel error/(°)Maximum displacement error /(mm)Maximum angel error/(°)Maximum displacement error /(mm)Maximum angel error/(°)Maximum displacement error /(mm)Maximum angel error/(°)
148.582.2848.601.2648.600.6048.611.38
248.582.4648.591.3548.610.8748.631.74
348.592.2548.601.0848.620.9048.661.86
448.591.8948.610.6648.630.9948.732.04
548.591.4148.620.5148.651.1749.312.28
648.600.9048.630.4848.901.4150.692.64
748.610.5448.660.6349.251.7451.493.24
848.620.4548.920.9349.372.2552.263.81
948.640.5149.331.3550.182.8853.304.53
1048.900.6950.121.8051.233.4854.085.16
1149.360.9351.382.3453.424.0856.085.79
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

Liang, G.; Jiang, Y.; Gao, Z.; Bai, G.; Li, H.; Zhao, X.; Wang, K.; Wang, Z. Research on Operation Trajectory Tracking Control of Loader Working Mechanisms. Machines 2025, 13, 165. https://doi.org/10.3390/machines13020165

AMA Style

Liang G, Jiang Y, Gao Z, Bai G, Li H, Zhao X, Wang K, Wang Z. Research on Operation Trajectory Tracking Control of Loader Working Mechanisms. Machines. 2025; 13(2):165. https://doi.org/10.3390/machines13020165

Chicago/Turabian Style

Liang, Guodong, Yong Jiang, Zeyu Gao, Guoxing Bai, Hengtong Li, Xiaoyan Zhao, Kai Wang, and Zhiyan Wang. 2025. "Research on Operation Trajectory Tracking Control of Loader Working Mechanisms" Machines 13, no. 2: 165. https://doi.org/10.3390/machines13020165

APA Style

Liang, G., Jiang, Y., Gao, Z., Bai, G., Li, H., Zhao, X., Wang, K., & Wang, Z. (2025). Research on Operation Trajectory Tracking Control of Loader Working Mechanisms. Machines, 13(2), 165. https://doi.org/10.3390/machines13020165

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