Frontiers in Computing and Intelligent Systems ISSN: 2832-6024 | Vol. 14, No. 1, 2025 77 Trajectory Tracking of Open‐pit Mining Trucks based on MPC and Pure Pursuit Control Qingfu Zhang 1, Yunsen Wang 2, Jianming Zheng 1, Zhao Li 3, Hao Li 1 1 Jilin University of Chemical Technology, Jilin Jilin, 132022, China 2 Northeastern University, Shenyang Liaoning, 110801, China 3 Jilin Urban and Rural Planning Research Institute, Changchun, Jilin 132000, China Abstract: Regarding the trajectory tracking problem of mine trucks in intelligent mining environments, This paper presents a Integrated trajectory tracking approach based on Model Predictive Control (MPC) and Pure Pursuit control. This approach is primarily driven by the Model Predictive Control (MPC) controller, The lateral trajectory error is derived through the Pure Pursuit (PP) control algorithm, The vehicle steering angle control input is generated using a weighted hybrid control approach, To address the trajectory tracking challenge of open-pit mine trucks in dynamic and complex environments. Finally, through simulations using CarSim and Matlab/Simulink, the performance of the mine truck in tracking a dual-shift trajectory was evaluated. The results indicate that, compared to the standalone MPC controller, the integrated control method demonstrates a significant improvement in tracking accuracy. Keywords: Trajectory Tracking; Model Predictive Control; Weighted Hybrid Control. 1. Introduction The development of green mines serves as a critical measure for promoting high-quality growth in the mining industry, an important approach to advancing ecological progress within the sector, and an inevitable choice for achieving harmonious coexistence between humans and nature [1]. Open-pit mining operations constitute a significant component of modern mineral production, where haul trucks, as the primary means of transport, play a vital role. With advancements in modern science and technology, research into unmanned driving for these trucks has entered a new phase. The main function of haul trucks is to transport extracted ore, waste material, and other supplies from the mining pit to processing plants, storage yards, or other designated locations. Given the harsh conditions of open-pit mines, which require drivers to remain in a constant state of high alert, coupled with the highly repetitive nature of the task, research on path tracking for these trucks is of considerable necessity. The objective of intelligent truck trajectory tracking is to control the vehicle's speed and steering angle, enabling it to follow a planned path with minimal deviation while ensuring stability and safety[2][3]. The origins of unmanned driving technology for mining trucks can be traced back to the 1970s. However, progress was relatively slow due to limitations in technology and other factors at the time[4]. Current research predominantly focuses on control algorithm design based on preview theory and model predictive control theory. In terms of control methodologies, path tracking algorithms can be categorized into three types: The first category includes the Pure Pursuit (PP) algorithm and the Stanley algorithm, which are based on geometric models for path tracking control. The second category is the Model Predictive Control (MPC) algorithm, which utilizes a kinematic model for path tracking. The third category comprises the PID and LQR algorithms, which rely on both kinematic and dynamic models for path tracking control[5]. The PP algorithm operates by identifying a preview point on the reference path, then calculating the front-wheel steering angle based on the vehicle's position and the preview point, using the rear axle as a reference and the preview distance[6]. The Stanley algorithm is a classic method in the field of unmanned vehicle path tracking, known for its computational simplicity and effective tracking performance. However, it requires the desired path to be sufficiently smooth; suboptimal smoothness in path curvature can lead to issues such as excessive overshoot in vehicle response [7]. Fuzzy PID control enhances traditional PID control by leveraging fuzzy logic to dynamically adjust PID parameters, thereby improving adaptability and optimization when dealing with uncertain, nonlinear, and complex systems. Regarding the MPC algorithm, numerous studies have been conducted by scholars both domestically and internationally. For instance, in 2019, Guo et al. [8] proposed an MPC path tracking strategy that accounts for constraints including road drivable areas and vehicle geometry. This approach addressed model mismatch caused by varying road conditions by treating them as measurable disturbances, thereby enhancing the applicability of the MPC algorithm for path tracking under routine operating conditions. Building upon the aforementioned research, this paper designs a hybrid weighted control approach that integrates MPC and PP. This method demonstrates effective performance for path tracking in open-pit mine haul trucks under low-speed operating conditions. 2. Vehicle Error Model Considering that we are addressing the low-speed motion of haul trucks in open-pit mines, a kinematic vehicle model is established here. The vehicle's motion process is typically described using two coordinate systems, the inertial coordinate system (XOY) and the vehicle body-fixed coordinate system (xoy). The vehicle is modeled based on the Ackermann steering geometry. The coordinates (Xr, Yr) and (Xf, Yf) represent the centers of the rear and front axles, respectively, Vr denotes the velocity at the rear axle center, L is the wheelbase, δf represents the steering angle of the front wheels, and θ indicates the vehicle's heading angle. As 78 illustrated in Figure 1, the kinematic equations of the vehicle are established accordingly. Figure 1. Vehicle Kinematic Model The vehicle can thus be regarded as a control system with the motion state  , , T x y  and output  , T u v  ,its state can be represented by Equation (1). x cos sin tan / r f y V L                       (1) Since the focus of this research is path tracking, it can be inferred from the above vehicle model that we need to obtain the motion state variables of the reference path. The given reference trajectory is also considered to satisfy this vehicle model, and Equation (2) can be expressed as ( , )r rf u  (2) A linear error model for vehicle trajectory tracking is derived by applying a Taylor series expansion to Equation (1) at the reference trajectory point, neglecting higher-order terms during the expansion to simplify the model expression. Subtracting Equation (2) from the resulting Taylor polynomial yields the linear error model, which can be expressed as Equation (3). 2 cos 0 0 0 sin 0sin 0 0 cos tan 0 0 0 cos r r rr r rr r r r r rrr rr r x x x xv v v y y v y y v LL                                                           (3) To facilitate the application of this model in the design of a model predictive controller, Equation (3) must be discretized. Discretization transforms a continuous-time control system into a discrete-time model suitable for processing by digital computers. This enables the controller to perform prediction and optimization control at each sampling instant based on the current system state, thereby improving computational efficiency and practical implementability in real control systems. The discretized form is given by Equation (4) ( +1)=A ( )+B ( )k k u k    (4) 1 0 sin T A 0 1 cos T 0 0 1 r r r r v v            , 2 T cos 0 0Tsin B= tan TT cos r r rr r v LL                 , T denotes the sampling time. 3. Design of the MPC Controller 3.1. State Prediction Model The model achieves desired control objectives by predicting future states and optimizing control inputs. During this process, the controller utilizes the current state and the system model to forecast system behavior over a future time horizon and computes the optimal control sequence. Furthermore, the system model is capable of handling various constraints, such as limitations on inputs, outputs, or states, thereby enhancing the feasibility and efficiency of the control strategy in practical applications. Model predictive control excels in delivering superior performance in complex and constrained environments. To enable direct constraints on control increments during execution, Equation (4) is transformed as follows ( | ) ( | ) ( 1| ) k t k t u k t           (5) The transformed state-space representation is obtained as follows , , , ( 1| ) A ( | )+B U( | ) ( | ) ( | ) k t k t k t k t k t k t k t C k t              (6) In which, n m , , , m n m n m m 0A B B C A ;B ; C=diag(1 1 1) 0 0 0k t k t k t m m C I I                         ; Here, n=2denotes the dimension of the state vector, m=3denotes the dimension of the control input, 1 |k t denotes the prediction horizon, which defines the prediction of system variables from the current time step t to the future time step 1k  . Simplified Computation Assumption , , , , A A 1,2,3 , 1 k t t t k t t t k t N      B B      Based on the output of Equation (6), the variable ( | )k t can be derived through multiple steps of deduction as follows ( ) ( | ) ( )Y t t t U t  (7) In which , , 2 , , , , , , C A( 1 | ) C A( 2 | ) ( | ) ( 1 | ) ( ) ; ; ( ) ( | ) C A ( | ) ( | ) C A c p t t t t t t t t N c t t t t c Np t t t t t t t t u t t u t t Y t U t t N t u t N t t N t                                                                   79 , , , , , , , 1 2 , , , , , , , , 1 2 1 , , , , , , , , , C B 0 0 0 C A B C B 0 0 C A B C A B C B C A B C A B C A B c c p p p c t t t t t t t t t t t t t t N N t t t t t t t t t t t t t t t t N N N N t t t t t t t t t t t t t t t t t t                                                          cN denotes the control horizon of the predictive model, while pN represents its prediction horizon. Based on the system state and error at time t, the model can predict system states over the future pN steps, thereby achieving accurate vehicle path tracking. 3.2. Pure Pursuit (PP) Controller The core principle of the Pure Pursuit control algorithm is to select a look-ahead point on the target path at a predetermined distance from the vehicle's current state, and then compute the steering angle based on the position of this target point relative to the vehicle's current position. As shown in Figure 2, with the rear axle as the reference point (O), a point (C) is selected on the path at a look-ahead distance Ld. This configuration forms a circular arc centered at point (O), where L represents the wheelbase of the vehicle. Figure 2. Principle of the Pure Pursuit Control As illustrated in the figure, the geometric relationship ) 2 (sin R sin2 Ld    can be observed. Based on this, 2sin Ld R  can be calculated. To ensure that the center of the rear axle reaches the previewed position after the vehicle's movement, the steering angle of the front wheels must satisfy the kinematic relationship with the wheelbase, as expressed in R L tan  . From this, ) sin2 (arctan Ld L   can be derived. 3.3. Lateral Error in Pure Pursuit Control The lateral error of the vehicle at the look-ahead path point is defined as sinLdey  , Under the small-angle assumption, the transformation based on the above equation yields  L Ld ey 2 2  .Therefore, when the look-ahead distance and the vehicle wheelbase are fixed, the Pure Pursuit control can essentially be regarded as a proportional (P) controller, whose tracking performance is determined by Ld. Typically, Ld is defined as a speed-dependent expression 0LdVKLd v  .The steering angle computed from the above equation is incorporated as an optimization term in the objective function. Simultaneously, the suggested steering angles from the reference path and the Pure Pursuit control are combined through a weighted fusion strategy, and the resulting output is applied as the final steering command to the vehicle. 4. Design of the MPC Controller 4.1. Objective Function Design The lateral error derived from the Pure Pursuit (PP) control relative to the reference path is incorporated into the optimal control objective function through proportional weighting. This paper adopts a weighted hybrid approach for reference path tracking, with the specific control procedure detailed in Figure 3. Figure 3. Flowchart of the Path Tracking Control To minimize both the path tracking deviation and the control input energy, while reducing disturbances during the control process, the following objective function is designed. Here, Q represents the weighting on the error terms, which, as indicated in the aforementioned flowchart, comprise the sum of the vehicle state error and the steering angle error derived from Pure Pursuit (PP) control. The R matrix denotes the weighting on the control inputs, while the F matrix focuses on the terminal error. represents a slack variable, whose introduction relaxes the constraints on the inputs, 80 thereby allowing for more aggressive control actions. By substituting Equation (7) into the objective function given in Equation (8), the objective function can be reformulated as follows 1 2 2 1 1 ( ) ( | ) ( | ) ( | ) ( | ) ( | ) p c N N ref RQ i i T T p p J k k i t k i t U k i t k N t F k N t                       (8) ( ) ( ) ( ) 2 ( )T T TJ k k G k k E U U H U           (9) In which ; ;T T TG Q E Q H Q R        , ; R Q R Q R Q R F                            Since G is a known quantity, the first term represents the initial state and does not affect the minimization of the cost function, thus it can be neglected during the optimization process. Following multi-step derivations and omitting constant terms, the problem can be transformed into a standard quadratic programming form, with the final objective function given by Equation (10). 2 01 min ( ) 2 ( ) 0 0 22 T TU H U U J k k E                                      (10) 4.2. Constraint Formulation Given that haul trucks typically operate at low speeds in localized environments, the design of the control strategy must specifically account for constraints on the velocity as a control variable, as well as limitations on the control increments. By effectively constraining both the speed and its incremental changes, it is possible to enhance smoothness during control execution, prevent abrupt acceleration or deceleration, and ensure stable vehicle operation with improved control accuracy. The constraints are formulated as follows min max min max ( ) ( ) ( ) 0,1, , 1 ( ) ( ) ( ) c u t k u t k u t k k N u t k u t k u t k                (11) 5. Simulation and Experimental Analysis To validate the feasibility and effectiveness of the proposed weighted hybrid control strategy integrating MPC and Pure Pursuit (PP) control, a co-simulation study was conducted using the CarSim and Matlab/Simulink platform. A double- lane change trajectory was employed as the reference path to evaluate the path-tracking performance of the proposed controller on roads with varying curvature. The mathematical expression of the reference path is given by )]2tanh(1[ 2 2 ]tanh(r1)1[ 2 1 Y r dndn  (12) )] dm2 1.2 () cosh(r2) 1 dn2(-) dm1 1.2 () cosh(r1) 1 (arctan[dn1 22 (13) In which 5.4251562601 2.1)120( 2 4.2 22.1)60( 1 2.4 1   dndndmdm x dm rx dm r ;;; ; 5.1. Sensitivity Analysis of Weighting Parameters For the experimental methodology of weighted hybrid tracking, the allocation of tracking weight (α_track) and steering weight (β_steer) was performed. To systematically analyze the impact of weight distribution between the MPC and Pure Pursuit controllers, a three-level orthogonal array design was adopted in this study to efficiently evaluate each normalized parameter. α_track: Represents the proportion of MPC in the total tracking error weight, with level values {0.2, 0.5, 0.8} corresponding to "PP-dominant," "balanced," and "MPC- dominant" tracking strategies, respectively. β_steer: Denotes the proportion of MPC in the total steering cost weight, with level values {0.3, 0.5, 0.7} used to explore the transition from PP to MPC in steering control. Based on the above selections, a total of nine experimental orthogonal arrays were derived. Simulations under double- lane change conditions recorded the lateral error results, with experiments conducted at a speed of 15 km/h. The mean absolute error (MAE), error fluctuation (standard deviation, Std), and worst-case deviation (Max) across all time steps and repeated experiments were calculated. The range analysis method of orthogonal experiments was then applied to 81 determine parameter significance, and the interaction effects were visualized using a heatmap, as shown in Figure 4. Figure 4. Heatmap of Interaction Effects Range analysis indicates that the parameter combination (α=0.2, β=0.7) falls within the low-error region (MAE=0.01359). Consequently, the weight allocation for the weighted hybrid control strategy is determined as shown in Table 1. Table 1. Weight Allocation Control Scheme tracking weight (α_track) steering weight (β_steer) MPC Control 0.2 0.7 Pure Pursuit Control 0.8 0.3 5.2. Simulation Results Comparison For the MPC controller, the prediction horizon was set to 50, the control horizon to 20, the simulation time to 40 s, and the vehicle speed to 4 m/s. The tracking performance of both the MPC and the weighted hybrid control strategies was validated under the same reference path. The specific parameters for the MPC simulation and the weighted hybrid control experiment are listed in Table 2. Table 2. Experimental Parameters Comparison Experimental Class Wheelbase, L (m) Q R MPC 3.75 10 100 Weighted Hybrid Control 3.75 100 10 The path tracking results are shown in Figure 5. Figure 5. Path Tracking Performance Diagram Figure 6 illustrates the path-tracking lateral errors under both MPC and the weighted hybrid control strategies, 82 demonstrating the error variation of each control approach over different time periods. The comparison provides a clear visualization of the evolving trends in tracking errors for both methods throughout the path-following process. Figure 6. Lateral Error Comparison Diagram As demonstrated above, the maximum tracking error of the weighted hybrid control remains around 0.02 m, whereas that of the standalone MPC controller reaches approximately 0.07 m. These results indicate that the weighted hybrid control outperforms the standalone MPC in terms of tracking accuracy, demonstrating a stronger capability to handle system uncertainties and external disturbances, thereby significantly reducing tracking errors. Figure 7 presents a comparison of lateral errors under the weighted hybrid control strategy at different vehicle speeds. Figure 7. Low-Speed Lateral Error Tracking Comparison The results indicate that the maximum lateral error at 5 km/h remains around 0.02 m, while even at 15 km/h, it is only approximately 0.035 m. This demonstrates the strong robustness of the proposed method within the low-speed range. 6. Conclusion This paper presents a coordinated path-tracking method integrating Model Predictive Control (MPC) and the Pure Pursuit algorithm, which innovatively combines the advantages of both control strategies to effectively address the path-tracking challenges faced by mining trucks in complex mining environments. The proposed approach leverages the multi-step prediction capability and constraint-handling strengths of MPC, while incorporating the high tracking accuracy characteristic of the Pure Pursuit algorithm. By implementing a dynamically weighted hybrid control strategy, precise optimization of steering angle control is achieved. In terms of control architecture design, a parameter sensitivity analysis model was established to determine the optimal weight allocation scheme, enabling the system to autonomously adjust control outputs based on real-time operating conditions. Future research will focus on further optimizing the weight adaptation algorithm to accommodate more complex mining terrains and varying load conditions. References [1] Accelerate the process of green mine construction [N]. China Gold News, April 19,2024 (002). [2] Li keqiang, Dai yifan, Li shengbo, The Current Development Status and Trend of Intelligent Connected Vehicle (ICV) technology [J]. Journal of Automotive Safety and Energy Conservation, 2017,8(01):1-14. [3] Li L, Fei yue W. Advanced motion control and sensing for intelligent veicles[M].Boston:Springer Scienceand Business Mdia, 2007. 83 [4] Shao Shuicai, Wang Rong, Hao Pengfei. Design and Application of Driverless Mine Transport Robot [J]. Intelligent Mine, 24,5(02):44-51. [5] Guo Jingjing. Research on Trajectory Tracking Algorithm Based on Improved MPC under Ice and Snow Conditions [D] Jilin University,2023. [6] Qin Hongmao, Jiang Shu, Zhang Tiantian, et al Intelligent Vehicle Path Tracking Control Based on Learning Model Predictive Control [J]. Automotive Engineering, 24,46(10):1804-1815. [7] Liu Wenlong, Jiang Mingyao, Wang Chenxu, et al. Fusion Control Algorithm for Agricultural Machinery Path Tracking Based on MPC and Stanley [J] Information Technology, 2024, (08): 65-70+78. [8] Guo HY, Cao DP, Hu YF. Model predictive path following control for autonomous cars considering a measurable disturbance: Implementation, testing, and verification[J]. MECHANICAL SYSTEMS AND SIGNAL PROCESSING, 2019,118:41-60. [9] Liang Zhengtao, Zhao Kegang, Pei Feng, et al. Intelligent Vehicle Trajectory Tracking Algorithm Based on MPC [J]. China Machinery & Electronics,2019,37(01):66-70. [10] Tian Yuyang, Wang Jinbo, Pang Tongjia. Research and Comparison of Lateral Control Strategies between MPC Algorithm and Pure Tracking Algorithm [J]. Agricultural Equipment and Vehicle Engineering, 24,62(08):58-62. [11] Chen Jiayi Trajectory Tracking Control of Unmanned Mining Trucks Based on Adaptive MPC [D]. China University of Mining and Technology,2022.