Abstract
Trajectory tracking and state estimation are significant in the motion planning and intelligent vehicle control. This article focuses on the model predictive control approach for the trajectory tracking of the intelligent vehicles and state estimation of the nonlinear vehicle system. The constraints of the system states are considered when applying the model predictive control method to the practical problem, while 4-degree-of-freedom vehicle model and unscented Kalman filter are proposed to estimate the vehicle states. The estimated states of the vehicle are used to provide model predictive control with real-time control and judge vehicle stability. Furthermore, in order to decrease the cost of solving the nonlinear optimization, the linear time-varying model predictive control is used at each time step. The effectiveness of the proposed vehicle state estimation and model predictive control method is tested by driving simulator. The results of simulations and experiments show that great and robust performance is achieved for trajectory tracking and state estimation in different scenarios.
Keywords
Introduction
Recently, with the development of the intelligent transportation technology, intelligent vehicles have stepped into our daily lives. Google has already tested autonomous cars successfully. Additionally, several automotive companies such as Volvo, Ford, and Tesla have developed new intelligent vehicles with claims that autonomous cars will become available for limited markets by 2030. Another application of autonomous vehicles which has found much interest among researchers is the wheeled robot technology, for various applications such as self-driving in the hazardous environments. 1 The automated algorithms of vehicle control play a significant role in the self-driving systems. As is well known, the control performance of the intelligent vehicles depends not only on the robust control algorithm but also on the accurate estimation of vehicle state. However, some of the key states are hard to measure directly. Therefore, an online estimation method is necessary to be proposed in the self-driving control.
In the past, Wenzel et al. 2 and Baffet et al. 3 proposed to use the dual extended Kalman filter (DEKF) for vehicle state estimation and vehicle parameter estimation, which made use of two Kalman filters (KFs) running in parallel. Best et al. 4 considered a real-time state estimation of vehicle handling dynamics by the extended adaptive KF. Chu et al. 5 addressed fuzzy logic and KF for the longitudinal vehicle velocity observer. However, for the online and real-time estimation, KF has trouble in handling the nonlinear system estimation; the extended Kalman filter (EKF) needs first-order linearizaion of the nonlinear system, which would lose vehicle nonlinear dynamic characteristics. Ray 6 estimated the vehicle dynamic states and the lateral tire forces using the 9-degree-of-freedom (DOF) vehicle model. Imsland et al. 7 and Zhao et al. 8 explored the nonlinear observers to estimate longitudinal and lateral vehicle velocities. Shraim et al. 9 and Ouladsine et al. 10 estimated velocity and side slip angle by developing a sliding mode observer. However, if the state is unobservable, the state observer would fail.
At the same time, there are numerous dynamics and kinematics constraints of vehicle in the self-driving systems. The model predictive control (MPC) method can handle constraints in a systematic way. It is one of the best ways to process the required system constraints in a wide operating region and close to the boundary of the states and the inputs. Gray et al. 11 presented an active safety system for avoiding obstacles and preventing road departures. The nonlinear model predictive controller (NMPC) was designed with the goal of using the minimum control intervention to keep the driver safe. Gao et al. 12 and Gray et al. 13 proposed a hierarchical control framework used for autonomous and semi-autonomous guidance of ground vehicles; the planned trajectory was tracked by the NMPC method. Abbas 14 addressed the MPC controller to provide satisfactory online obstacle avoidance and tracking performance by driving simulator with CarSim®. Moreover, NMPC is difficult to develop in real time, which needs to solve the optimization in each control step. In order to reduce the computational burden, a linearization of the nonlinear plant model in MPC controller was developed to figure out the problem,15 –18 and using parallel advances to improve the real-time MPC,19–21 which can improve the controller computational burden.
In the aforementioned literature, the estimation of the system states is not considered in the control system design process. In this article, the work is presented to investigate the MPC method in the trajectory tracking with the nonlinear state estimation of the vehicle. For state estimation, using the 4-DOF vehicle model combined with the unscented Kalman filter (UKF), the states are estimated to satisfy controllers needed. UKF uses a deterministic sampling approach to capture the mean and covariance estimates with a minimal set of sample points instead of Jacobian matrices. The linear approximators would lose the vehicle and tire nonlinear characteristic in the state estimation. Furthermore, a NMPC tracking problem is transferred to linear time-varying model predictive control (LTV-MPC) in order to do a self-driving tracking control combined with the kinematic model of the vehicle. The proposed method can handle the tracking problem’s state and input constraints and decrease the computational burden in real-time control. The structure of the proposed approach is shown in Figure 1. First, the UKF combined with 4-DOF dynamics vehicle model is developed to estimate the vehicle motion states such as longitudinal velocity, yaw rate, vehicle position, and lateral acceleration, which are passed to the MPC controller in real-time while monitoring vehicle stability. Second, all of the estimation state is provided for system plant to predict the vehicle motion, solve the optimization with vehicle dynamics and kinematics constraints in each control step, and output the control variables to track a given trajectory.

Structure of the proposed approach.
This article is organized as follows: in section “Vehicle modeling,” the 4-DOF model of the four-wheel vehicle is developed and used for the state estimation, while the vehicle kinematic model is used for trajectory tracking. In section “State estimation and MPC tracking,” the UKF method is used to estimate the state of the vehicle, which is needed for MPC. In addition, LTV-MPC formulation is used to track the reference trajectory and explain how to choose the cost function and build a linearization of a nonlinear plant. Simulations and experimental results are discussed in section “Simulation results.” Conclusions are presented in section “Conclusion.”
Vehicle modeling
Four-DOF vehicle model
Assuming the vehicle is driving on the plane and ignoring the pitch and vertical movement of vehicle, Figure 2 shows a 4-DOF vehicle model which describes the dynamics of the vehicle with four wheels. The DOFs are longitudinal, lateral, yaw, and roll, respectively. The model is utilized for online estimation of dynamic states of the vehicle.

Vehicle model showing 4 degrees of freedom: longitudinal, lateral, yaw, and roll.
The vehicle dynamics equations are shown as follows
where a is the distance from the front axle to CG, b is the distance from the rear axle to CG, r is the yaw rate,
The longitudinal and lateral velocities of the vehicles
When the peripheral wheel speed is smaller than the wheel center speed
When the peripheral wheel speed is larger than the wheel center speed
where
The wheel load transfer
The signs + and − are chosen for each specific wheels, and
The equations of motion can be presented by the following geometric expression
where β is the body slip angle; ψ is the yaw angle; and X and Y are the global x coordinates and global y coordinates, respectively.
Vehicle kinematic model
The kinematic model can be described as
The compact form as
where

Coordinate system of the vehicle kinematic model.
The reference trajectory is defined as follows
where
As presented in section “Trajectory tracking,” the model prediction control is used in the discrete-time model. Thus, the continuous system needs to transfer to a discrete system. The sampling period is set as T. Euler’s approximation is proposed to obtain the discrete-time model, which is modified by
where
State estimation and MPC tracking
UKF for vehicle state estimation
Julier and colleagues22,23 proposed to use UKF. Compared with EKF linearizing using Jacobian matrices, the UKF uses a deterministic sampling approach to obtain the mean and covariance estimates with a minimal set of sigma points. The UKF is more powerful than EKF on the nonlinear system in various field applications such as railways, ships, aircrafts, solar probes, and so on.24–28
Prediction step
We compute a collection of sigma points and form a set of
where
Once
where f is the differential equation defined in equations (1)–(4) for our case. Compute the predicted mean
where
Update step
First, compute the sigma points
Then, propagate sigma points through the measurement model
Finally, compute the predicted mean
where R is the measurement noise covariance matrix.
Estimation of vehicle states based on UKF
The estimation model of the vehicle dynamics includes the four equations of motion (1)–(4). The state vector
The nonlinear differential equation is the 16th-order estimation model
where
Trajectory tracking
The tracking problem is described in the section “Vehicle modeling.” Trajectory tracking should obtain the vehicle accuracy states in real time. In our case, the longitudinal velocity, yaw angle, and position of the vehicle would be used, which can be estimated by UKF. The control system is presented as above equations (22)–(25). The cost function is used to track the desired trajectory quickly and smoothly. Therefore, the state deviation and control variables are needed for optimization. The cost function in our proposed is given as
where
The nonlinear optimization problem can be presented as follows
subject to
where
where
The vehicle position and yaw angle are provided from UKF estimator, which is the kinematic model states as shown in equation (20). The lateral acceleration and yaw rate are used to evaluate the vehicle stability. The time-varying system is explored by the linearization method to transform the optimization problem in every sampling time. Since the function is convex, it is easy to solve the quadratic programming (QP) problems to obtain the optimization solutions. The new state is modified by equation (56), which includes the error of input as one more state
The new state space equation can be described by the following LTV system
where
n is the dimension of state, and m is the dimension of control. For the sake of simplicity system, we assume
In the prediction horizon
where
The amplitude of constraints in the control incremental input can be rewritten as
Model predictive controller designed
Now, it is possible to recast the optimization problem in a usual quadratic problem from
where
Simulation results
In this section, there are two scenarios to validate the behavior of the proposed state estimation and path-tracking. The first scenario is motion along the straight line tracking in different target longitudinal velocities. The states of the vehicle are also estimated in the driving task. Next, we consider the reference trajectory as an ellipse to validate the lateral tracking capability. In order to evaluate the MPC tracking ability of algorithms and accuracy of estimation, the different velocities and environments are proposed in the simulation. Driving simulator shown in Figure 4 with CarSim is used in all the simulations as reference and set motion sensor as measurement elements in the CarSim. The speed controller used the CarSim driver model. The parameters of the vehicle are shown in Table 1.

Driving simulator.
Parameters of vehicle.
Straight line tracking scenario
Figure 5(a) shows the straight line tracking scenario. The original position of the vehicle is (0, 0), and the reference path original point is (5, 5) as shown in Figure 5(a). The function of the reference path is given as

(a) Different velocity line tracking and (b) different velocity tracking deviation.
where u is the desired longitudinal velocity, and the constraint of the system is the same as (61). Sample time is
Figure 5(b) describes the tracking deviation in different target longitudinal velocities. The larger initial velocity leads to the larger tracking error. A 40 km/h tracking error is larger than 6 m from 0 to 3 s. Figures 6–8 show the estimation of the vehicle state in which accuracies are achieved by UKF method. Figure 6(a) shows the result of different longitudinal speeds of the vehicle. Figure 6(b) shows the MPC controller output desired speeds. Figures 7 and 8 give us the lateral acceleration and yaw rate in different target longitudinal velocities, respectively. All of the yaw rate is in the reasonable range. However, compared with other tracking speeds, the lateral acceleration of 40 km/h tracking is larger than 0.4 g from 0 to around 3 s, the tire would not work in the linear range, and the vehicle would lose stability. So, the error of tracking is large in the 40 km/h velocity. The tracking model is vehicle kinematic model, which would lose dynamic vehicle characters in the high velocity. In addition, all these estimated states of the vehicle would be provided to the MPC controller for tracking and identifying the vehicle stability. The stability of vehicle and comfort of passengers would be lost in the large lateral acceleration. The estimated states of the vehicle not only provide the control state but also can help us analyze the vehicle stability and change the control method in the different cases.

(a) Longitudinal velocity estimation and (b) MPC output desired speed.

(a) 10 km/h lateral acceleration estimation, (b) 20 km/h lateral acceleration estimation, (c) 30 km/h lateral acceleration estimation, and (d) 40 km/h lateral acceleration estimation.

(a) 10 km/h yaw rate estimation, (b) 20 km/h yaw rate estimation, (c) 30 km/h yaw rate estimation, and (d) 40 km/h yaw rate estimation.
Ellipse tracking scenario
In this part, the ellipse scenario is proposed to track. The reference path is shown by the parameter equation form
where u is the desired longitudinal velocity. The initial velocity is set to 0. The target velocity is chosen as 10.8, 18, and 36 km/h. The initial time is

(a) Ellipse tracking, (b) tracking deviation, and (c) MPC desired speeds.
Figure 10(a) shows the longitudinal velocity of vehicle output and estimation. Figure 10(b)–(d) shows the yaw angle real states and estimations, for the 36 km/h yaw angle is too larger to keep safe. Figures 11 and 12 are the lateral acceleration and yaw rate of the vehicle real states and estimations. The results of estimation are really close to the real value. The desired velocity 10.8 and 18 km/h lateral acceleration value is smaller than 0.4 g during the path-tracking as shown in Figure 11(a) and (b). The yaw rate value of 10.8 and 18 km/h is not changed drastically with the path-tracking. In the 36 km/h situation, the lateral acceleration value is changed drastically and is over than 0.7 g from 5 to 10 s. In the 12–17 s and 28–37 s, the accelerations are also larger than 0.4 g (Figure 11(c)). At the same time, the yaw rates are changed a lot (Figure 12(c)). The cases of these situations are hard to track the trajectory for the controller. The stability of the vehicle would be lost during the path-tracking.

(a) Longitudinal velocity estimation, (b) 10.8 km/h yaw angle, (c) 10.8 km/h yaw angle, and (d) 36 km/h yaw angle.

(a) 10.8 km/h lateral acceleration, (b) 18 km/h lateral acceleration, and (c) 36 km/h lateral acceleration.

(a) 10.8 km/h yaw rate estimation, (b) 18 km/h yaw rate estimation, and (c) 36 km/h yaw rate estimation.
Conclusion
In this article, a nonlinear vehicle state estimation using UKF method and trajectory tracking by the MPC approach are proposed, while a LTV-MPC controller is addressed to decrease the computing burden in the real-time control. The capabilities of the method have been simulated in two different scenarios by driving simulator. The first one is the straight line tracking scenario in different target velocities. The other one is the ellipse tracking scenario with different desired velocities. These show good performances for tracking the reference path. The MPC controller shows a high-accuracy solution to track the reference path in the low-velocity case. The state estimation can provide all the vehicle state information for MPC controller such as the position of the vehicle and the yaw angle, which are used for controller, and the lateral acceleration and the yaw rate of the vehicle, which are used to evaluate vehicle stability and keep safe for tracking. In the simulation result, the vehicle lost stability at the large lateral acceleration and yaw rate ratio in the trajectory tracking. The trajectory tracking problem does not only consider the tracking error but also needs to match the stability of the vehicle.
Moreover, the future improvement will aim to propose a method to solve the high-speed tracking control and the nonlinear state estimation with complex tire model. It is not easy to estimate the tire forces and dynamic friction coefficients for the MPC controller, so the controller is limited to accurately tracking in the different surfaces. The mass point model and simple vehicle dynamic model would be applied in the tracking MPC to improve the high-speed tracking and adapt in different surfaces and changed abruptly surfaces.
Footnotes
Academic Editor: Yangmin Li
Declaration of conflicting interests
The authors declare that there is no conflict of interest.
Funding
This work was supported by the National Natural Science Foundation of China (NSFC grant no. 51005019) and the Foundation of the Beijing Institute of Technology (no. 20130342036).
