- Original Article
- Open Access
- Published:

# Driving Environment Uncertainty-Aware Motion Planning for Autonomous Vehicles

*Chinese Journal of Mechanical Engineering*
**volumeÂ 35**, ArticleÂ number:Â 120 (2022)

## Abstract

Autonomous vehicles require safe motion planning in uncertain environments, which are largely caused by surrounding vehicles. In this paper, a driving environment uncertainty-aware motion planning framework is proposed to lower the risk of position uncertainty of surrounding vehicles with considering the risk of rollover. First, a 4-degree of freedom vehicle dynamics model, and a rollover risk index are introduced. Besides, the uncertainty of surrounding vehicles' position is processed and propagated based on the Extended Kalman Filter method. Then, the uncertainty potential field is established to handle the position uncertainty of autonomous vehicles. In addition, the model predictive controller is designed as the motion planning framework which accounts for the rollover risk, the position uncertainty of the surrounding vehicles, and vehicle dynamic constraints of autonomous vehicles. Furthermore, two edge cases, the cut-in scenario, and merging scenario are designed. Finally, the safety, effectiveness, and real-time performance of the proposed motion planning framework are demonstrated by employing a hardware-in-the-loop experiment bench.

## 1 Introduction

### 1.1 Motivation

Low-carbonization, electrification, intellectualization, and informatization are the future trend of the automotive industry [1â€“5]. Especially, autonomous driving is considered one of the revolutionary technologies shaping humanityâ€™s future mobility and quality of life. Although the technology of autonomous vehicles (AVs) has achieved tremendous development in recent years, the safety of the intended functionality (SOTIF) issues remains one of the key challenges hindering its commercialization. SOTIF can be defined as the absence of unreasonable risk due to hazards resulting from functional insufficiencies of the intended functionality or reasonably foreseeable misuse [6, 7]. Generally, an autonomous system consists of an environment perception system, decision-making (DM) system, and a control execution system. Each of these sub-systems confronts SOTIF challenges. As for the DM system, its SOTIF issues can be assumed as caused by the unknown, uncertain driving environment and limitations of the algorithm itself [8]. In this paper, motion planning with driving environment uncertainty information is the focus. In Figure 1, the dynamic driving environment with uncertainties of the surrounding vehicles (SVs), blue vehicle, particularly its future position, is shown. It can be assumed that future behavior and trajectories of the surrounding participants are probabilistic. As such, it is difficult to predict them always with adequate precision. The shaded part in Figure 1 represents positions where the vehicle may appear. If the ego vehicle, the red vehicle, does not consider the uncertainty, it may adopt strategy 1 and suffer the risk of collision with the SV. However, if uncertainty is considered, the ego vehicle can adopt a safe strategy 2. Moreover, the perception system can also produce many physical state uncertainties due to sensor noise and algorithmic limitations. Therefore, a more reliable DM algorithm should be developed for the ego vehicle to cope with the accumulated uncertainties. Lastly, the algorithm must present a safe and anti-conservative plan.

### 1.2 Related Work

Motion planning plays a key role in guaranteeing driving safety. In recent years, many investigations have been conducted on motion planning issues for AVs [9, 10]. Those motion planning algorithms can be roughly categorized into three classes: graph-based (e.g., Aâˆ— algorithm [11], rapidly random tree algorithm [12]), optimization-based (e.g., model predictive control [13â€“15]), and learning-based (e.g., deep reinforcement learning algorithm [16]) methods. Though most approaches can handle multiple scenarios, they are generally based on the assumption that traffic information can be accessed and predicted accurately. Nonetheless, this type of assumption may cause catastrophic consequences.

The partially observable Markov decision process (POMDP) is an effective way to deal with uncertainty [17]. Urban road situation model for proper environment representation was proposed in Ref. [18]. The Situation-aware DM problem was modeled as a POMDP and solved via online methods. Furthermore, a POMDP approach for a pedestrian collision avoidance system was presented for complex urban scenarios to handle situations with sensor occlusions [19]. Although POMDP planning is effective in processing uncertainties, most solvers are computationally expensive and have poor scalability, especially when the POMDP model changes during runtime and the problem dimension increases. In addition, since the accuracy of localization systems can be relatively low, the uncertainty of localization was taken into consideration by utilizing probabilistic occupancy grid-based approach to ensure the safety of AVs [20]. Similarly, the uncertainty of the predicted trajectory was processed based on gaussian propagation. Meanwhile, the uncertainty of localization, which is caused by AVs and other traffic participants [21], was also calculated based on a Linear-Quadratic Gaussian framework. Learning-based motion planning methods like deep reinforcement learning have been widely employed in recent years. However, current methods are developed with a strong reliance on black box predictions from deep neural networks. These methods tend to be overconfident in predictions of unknown scenarios, which may lead to dire consequences [22]. To avoid this problem, Monte Carlo dropout and bootstrapping were used to provide computationally tractable and parallelizable uncertainty estimates. This method was embedded in a model-based reinforcement learning framework to form uncertainty-aware navigation around pedestrians. However, the action space of this method is discrete, which is not suitable for AVs [23].

On the other hand, many researchers have designed rollover index (e.g., Load Transfer Ratio) to prevent rollover accidents. These indexes are used to describe and determine whether the vehicle has reached the critical rollover point [24]. Lane-keeping control of autonomous ground vehicles considering rollover prevention was studied in Ref. [25]. In this study, an enhanced state observer-based sliding mode control strategy was proposed to maintain lane-keeping errors and the roll angle within the prescribed performance boundaries. In addition, a nonlinear model predictive control approach, which combines braking and steering systems for AVs, was presented in Ref. [26]. A predictive control problem was formulated to track a given path at maximum velocity while satisfying roll angle, yaw rate, and physical constraints. Instead of improving vehicle stability and mitigating risk only from the tracking control perspective, a new local path planning approach was proposed. This method incorporated a time-to-rollover model for off-road autonomous driving on different road profiles with a predefined global route [27]. In addition, a new emergency steering control strategy based on hierarchical architecture was developed in Ref. [28]. It consists of a DM module and a motion control module which ensure the stability of the vehicle. Most of these methods generate a series of candidate trajectories. Then, the optimal one is selected according to a specific cost function rather than directly including the risk of the rollover to the motion planning algorithm.

### 1.3 Contribution

To the best of the authorsâ€™ knowledge, few studies considered both the rollover prevention of AVs and the position uncertainty of SVs from the motion planning perspective. Three contributions clearly distinguish this research from the aforementioned studies:

1) An index that is used to evaluate the risk of the rollover is presented based on a four-degree of freedom (4-DOF) vehicle dynamic model. Furthermore, the index is considered in the motion planning module to lower the risk of rollover.

2) Uncertainty propagation method is proposed to determine the probabilistic safety boundary (PSB) of SVs, and a potential field is designed to process position uncertainties.

3) A motion planning framework based on model predictive control (MPC), which considers the risk of rollover, position uncertainty, obstacle avoidance, and vehicle dynamics constraints, is presented. Moreover, its real-time performance is verified by employing the hardware-in-the-loop (HiL) platform.

### 1.4 Paper Structure

The rest of this paper is organized as follows. In Section 2, an index describing whether the vehicle has reached the critical rollover point is designed based on the 4-DOF vehicle dynamics model. In addition, an improved uncertainty propagation method is introduced and the PSB of SVs is determined. In Section 3, a potential field is proposed to consider the position uncertainty of SVs. Furthermore, rollover risk and obstacle avoidance which considers position uncertainty and vehicle dynamics are included based on the MPC algorithm. In Section 4, two challenging scenarios are designed, and the proposed method is deployed on the HiL platform to verify the feasibility and real-time performance of the proposed motion planning method. Finally, key conclusions and future work are summarized in Section 5.

## 2 Vehicle Dynamics Modeling and Position Uncertainty Propagation

In this section, a 4-DOF vehicle model of AVs is illustrated and the risk index of rollover (RIR) is deduced to determine whether the vehicle has reached the critical rollover point. Furthermore, a general model describing motion dynamics of SVs, which considers the uncertainty of SVsâ€™ position and the noise of AVsâ€™ perception system, is introduced. Moreover, the uncertainty propagation method is also proposed based on the extended Kalman filter (EKF). Finally, the PSB of SVs is calculated with 99% statistical confidence.

### 2.1 Vehicle Dynamics Modeling and Risk Index of Rollover

In this paper, the vehicle dynamics model is utilized for motion planning with consideration of rollover stability. Given that realistic vehicle dynamics are relatively complex, a tradeoff between model accuracy and computational cost is introduced. Therefore, the 4-DOF dynamics model (e.g., 2-DOF bicycle model, 1-DOF longitudinal model, and 1-DOF rollover model) is deduced with several assumptions [29]. In Figure 2a and b, the vehicle model with longitudinal, lateral, yaw and rollover dynamics is shown. The aforementioned dynamics are described by the following equations:

The vehicleâ€™s position concerning global coordinates is expressed as:

where \({\alpha }_{f}={\delta }_{f}-\frac{v+{l}_{f}\dot{\varphi }}{\dot{x}}\), \({\alpha }_{r}=\frac{{l}_{r}\dot{\varphi }-v}{\dot{x}}\) and \({a}_{y}=\frac{{C}_{f}}{m}({\delta }_{f}-\frac{\dot{y}+{l}_{f}\dot{\varphi }}{\dot{x}})+\frac{{C}_{r}}{m}\frac{{l}_{r}\dot{\varphi }-\dot{y}}{\dot{x}}\), \(m\) denotes the total mass of the vehicle, \({m}_{s}\) represents the equivalent sprung mass, \({I}_{z}\) and \({I}_{x}\) depict the yaw inertia of the vehicle and the roll inertia of the spring-mass, respectively, \({l}_{f}\) and \({l}_{r}\) are longitudinal distances from the center of the mass to the front axle and the rear axle, respectively, \({C}_{f}\) and \({C}_{r}\) indicate front and rear tire cornering stiffness, \({\alpha }_{f}\) and \({\alpha }_{r}\) are wheel slip angles of the front and rear tire, respectively, \(h\) is the height of the center of mass and \(g\) is the gravitational acceleration, \({K}_{r}\) is the roll stiffness and \({B}_{r}\) is the roll damping, \({F}_{xf}\) and \({F}_{xr}\) is the longitudinal tire force of the front wheel and rear wheel, respectively, \({F}_{xT}\) means the generalized longitudinal tire force, \({F}_{r}\) denotes the tire resistance and wind drag, \({\delta }_{f}\) is the steering angle, \(u\) is the longitudinal velocity and \(v\) is the lateral velocity, \(\varphi\) means the heading angle, \(\phi\) depicts roll angle of the sprung mass, \(X\) and \(Y\) are the longitudinal displacement and lateral displacement, respectively.

Based on the vehicle dynamics model described in Eq. (1), \(RIR\) that reflects the degree of stability of the vehicle can be obtained using the load transfer ratio:

where \(L\) is the wheelbase and \({h}_{r}\) is the height of the roll center. When \(RIR\) is equal to zero, the vehicle exhibits a stable roll dynamic. On the contrary, when this indicator approaches \(\pm 1\), the risk of rollover increases as well.

### 2.2 Uncertainty Propagation of Surrounding Vehicles

Accurate evaluation of current and future positions of SVs has a significant impact on the safety of the AV. Current positions of SVs can be measured through the perception system, like the radar. However, the measurement noise still exists and cannot be avoided. On the other hand, there are many effective methods to predict the future position, intentions, and behavior of AVs [30]. Nonetheless, these methods cannot ensure that the prediction results are always perfect and accurate. In realistic cases, the uncertainty of the predicted information is still one of the key factors resulting in SOTIF issues of DM. The uncertainty may cause the motion planner to compute dangerous trajectories and lead to serious consequences in some extreme cases [31]. Thus, it is necessary to develop a safe motion planning method and process these uncertainties. It should be noted that this paper does not focus on extracting uncertain information from the trajectory prediction algorithms. It mainly focuses on taking the uncertain information of SVs into account. More specifically, the goal of this paper is to propose a general motion planning framework and mitigate the risk resulting from the uncertainty of SVsâ€™ future position and the noise of AVs' perception systems.

In this section, a motion dynamics model, which includes the uncertainty of SVsâ€™ position and the noise of AVsâ€™ perception system, is established. Here, the stochastic driver model of SVs is employed. The uncertainty of driver input prediction is modeled using a Gaussian probability distribution. Thus, the stochastic driver model of SVs can be modeled as follows:

where \({s}_{t}={[{x}_{s},{y}_{s},{\theta }_{s},{v}_{s}]}^\text{T}\) is state variables including global coordinates, heading angle, and velocity of SVs at time \(t\). Parameter \({c}_{t}\) is the control input, \(N\) indicates Gaussian distribution, \({\widehat{c}}_{t}\) is the mean value, \({\mathcal{R}}_{t}\) is the covariance, and \(f\) denotes vehicle dynamics of SVs, which are presented in Ref. [21].

Furthermore, due to the measurement noise of AVsâ€™ perception system, the position of SVs is obtained with uncertainty, which can also be modeled as Gaussian distribution according to Ref. [32]. Therefore, an observer considering measurement noise can be described as:

where \({z}_{t}\) is the measurement at time \(t\), \(h\) indicates the observer system, \({q}_{t}\) is the measurement noise of the perception system, and \({\mathcal{Q}}_{t}\) is the covariance of the measurement noise.

So far, two key factors that cause the uncertainty of SVsâ€™ position have been included. A general model that describes the uncertainty of SVs is established as follows:

Then, an improved uncertainty propagation algorithm inspired by Ref. [21] using EKF is introduced. Priori state estimate \({s}_{t}\) and the priori uncertainty covariance matrix \({P}_{t}\) can be computed as follows:

where \({\overline{P} }_{t-1}\) represents the posterior uncertainty covariance matrix at time \(t-1\), and \(\frac{\partial f}{\partial s}\) is the Jacobian operation.

Combined with the measurement information of the perception system, posterior state estimation \({\overline{s} }_{t}\) and posterior uncertainty covariance matrix \({\overline{P} }_{t}\) can be obtained through the following equations:

where \({K}_{t}\) is the Kalman gain and \(\frac{\partial h}{\partial s}\) is the Jacobian operation. Based on Eqs. (7) and (8), uncertainty information of SVs can be propagated concerning time.

### 2.3 Probabilistic Safety Boundary of Surrounding Vehicles Position

According to the above-conducted analyses, uncertainty propagation of SVs is obtained. However, the uncertainty of SVsâ€™ position should be quantified to ensure its adequate processing in the motion planning framework. In this section, to describe SVsâ€™ position with statistical confidence, PSB of SVsâ€™ position is calculated based on Eqs. (7) and (8).

First, let \({[{x}_{s},{y}_{s}]}^\text{T}\) represent the possible position of SVs. Then, optimal estimation coordinate \({[{\overline{x} }_{s},{\overline{y} }_{s}]}^\text{T}\) can be calculated based on Eqs. (7) and (8). Commonly employed motion planning approaches only consider optimal estimation coordinates in motion planning algorithms, which is one of the important differences between those methods and the proposed method in this paper.

Here, the possible position of surrounding vehicles is calculated with \(99\mathrm{\%}\) confidence (\({\chi }^{2}\text{ = 9.210}\) [33]) as follows:

where \({\lambda }_{1}=MaxEigval({\overline{P} }_{t})\),\({\lambda }_{2}=MinEigval({\overline{P} }_{t})\),\(\vartheta ={\mathrm{tan}}^{-1}(MaxEigvec(y)/MaxEigvec(x)),\) \({\overline{P} }_{t}\) is posterior uncertainty covariance matrix illustrated in Eq. (8), \(MaxEigval\) and \(MinEigval\) indicate maximum eigenvalue and minimal eigenvalue of the covariance matrix \({\overline{P} }_{t}\), respectively. \(MaxEigvec(y)\) and \(MaxEigvec(x)\) are eigenvectors of the covariance matrix \({\overline{P} }_{t}\) that corresponds to the largest eigenvalue in \(Y\) and \(X\) coordinate direction, respectively.

## 3 Uncertainty-Aware Motion Planning Framework Design

This section interprets a safe motion planning framework that considers RIR and uncertainty of SVsâ€™ position. A potential field based on the value of position uncertainty of SVs is built. In addition, the road boundary is also processed. Then, multi-constraints of vehicle dynamics are described. Finally, MPC based motion planning algorithm is designed to consider these factors. The overall structure of the proposed motion planning framework is shown in Figure 3. In this paper, the AV controlled by the MPC method is also referred to as the ego vehicle.

### 3.1 Potential Field for Surrounding Vehicles with Position Uncertainties Estimation

Vehicles and pedestrians are important for AVs to make decisions, which should be modeled as non-crossable obstacles. Collision with non-crossable obstacles could lead to damage or instability of the vehicle. Even worse, it might threaten human lives. In this paper, the focus is placed on non-crossable vehicles with considering the uncertainties of SVs' position. The non-crossable potential field is motivated by Ref. [34], and we include the position uncertainty in it. Based on Eq. (9), the non-crossable potential field for SVs with position uncertainty is defined as \(NPF\):

where

where \({a}_{i}\) and \({b}_{i}\) are intensity and shape factors of the potential field, respectively, \(i\) denotes the ID of SVs, \(e\) is the exponential function, \(\vartheta\) means the heading angle of the SVs and \({L}_{xi}\) and \({L}_{yi}\) are factors related to vehiclesâ€™ shape, respectively. Other symbols are described in Section 2.

On the other hand, according to traffic rules, the ego vehicle should follow the road marker without violating road boundaries. Furthermore, the ego vehicle cannot depart from the road marker unless the lane change or overtaking command is executed. This issue can be solved by applying the method proposed by the authors' previous work [14]. Here, the quadratic function is applied to design the road boundary potential field (\(RPF\)):

where \({a}_{q}\) is the parameter of road boundaries \(RPF\), \({S}_{Rq}\) indicates the distance from the ego vehicle to road boundaries, and \({D}_{a}\) is the safety threshold between the ego vehicle and road boundaries. Based on Eq. (11), \(RPF\) will push the ego vehicle towards the center if it departs from the center of the lane.

Therefore, overall \(APF\) includes non-crossable obstacles and road boundaries and it is denoted as:

It can be observed that \(APF\) is nonlinear and non-convex, which increases the required time for solving the optimization problem. However, its approximated quadratic convex problem can be solved significantly faster. Consequently, the problem ought to be converted into a quadratic convex problem to reduce the calculated time. Usually, this type of problem can be solved with the Sequential Quadratic Programming (SQP) method. The main idea is to approximate a primal nonlinear and non-convex problem to a series of convex subproblems. A detailed proof of this process can be found in Ref. [13].

### 3.2 Motion Planning Framework Design

In this section, the model predictive control method is applied for the motion planning framework design. The presented *RIR* and \(APF\) are included in the MPC controller objective to achieve road regulation and obstacle avoidance while simultaneously guaranteeing stability. First, the nonlinear system described by Eq. (1) is denoted as:

where \(g\) represents vehicle dynamics, \({\varvec{x}}\) represents state variables of the system, and \({\varvec{u}}\) is the control input.

By linearizing the system at the operating point, the linear vehicle model can be expressed as:

where \({\varvec{x}}={\left[\begin{array}{cccccccc}u& v& \dot{\varphi }& \varphi & \dot{\varnothing }& \varnothing & X& Y\end{array}\right]}^\text{T}\), \({\varvec{u}}={\left[\begin{array}{cc}{\delta }_{f}& {F}_{xT}\end{array}\right]}^\text{T}\),

\({a}_{1}=\frac{({C}_{f}+{C}_{r})}{(m{u}^{2})}v-\dot{\varphi }+\frac{\left({C}_{f}{l}_{f}-{C}_{r}{l}_{r}\right)}{\left(m{u}^{2}\right)}\dot{\varphi }, \quad\) \({a}_{2}=\frac{({C}_{f}+{C}_{r})}{(mu)}, \quad\) \({a}_{3}=u-\frac{\left({C}_{f}{l}_{f}-{C}_{r}{l}_{r}\right)}{\left(m{u}^{2}\right)}.\)

\({b}_{1}=\frac{({C}_{f}{l}_{f}-{C}_{r}{l}_{r}) }{{I}_{z}{u}^{2}}v+\frac{\left({C}_{f}{l}_{f}^{2}+{C}_{r}{l}_{r}^{2}\right) }{{I}_{z}{u}^{2}}\dot{\varphi }, \quad\) \({b}_{2}=-\frac{\left({C}_{f}{l}_{f}-{C}_{r}{l}_{r}\right)}{{I}_{z}u},{b}_{3}=-\frac{\left({C}_{f}{l}_{f}^{2}+{C}_{r}{l}_{r}^{2}\right) }{{I}_{z}u}\)

\({c}_{1}=\frac{h{m}_{s}({C}_{f}{v}_{y}+{C}_{r}{v}_{y}+{C}_{f}{l}_{f}\dot{\varphi }-{C}_{r}{l}_{r}\dot{\varphi }) }{{I}_{z}m{u}^{2}},\) \({c}_{2}=-\frac{h{m}_{s}\left({C}_{f}+{C}_{r}\right)}{{I}_{z}mu},\) \({c}_{3}=-\frac{h{m}_{s}\left({C}_{f}{l}_{f}-{C}_{r}{l}_{r}\right)}{{I}_{z}mu},\) \({c}_{4}=-\frac{\left({K}_{r}-gh{m}_{s}\right)}{{I}_{x}}.\)

\({d}_{1}=-v\text{cos}\varphi -u\text{sin}\varphi ,\) \({e}_{1}=-u\text{cos}\varphi -v\text{sin}\varphi ,\)

The outputs of the system represented by Eq. (15) are defined as lateral position \(Y\) and longitudinal velocity \(u\), which are described as follows:

where \({\varvec{y}}={\left[\begin{array}{cc}Y& u\end{array}\right]}^\text{T}\), \(\varvec{C}=\left[\begin{array}{cccccccc}0& 0& 0& 0& 0& 0& 0& 1\\ 1& 0& 0& 0& 0& 0& 0& 0\end{array}\right]\).

The desired outputs are denoted as:

Next, the zero-order hold method is applied to discrete the system represented by Eqs. (14) and (15), which can be rewritten as:

where \({{\varvec{A}}}_{d}\), \({{\varvec{B}}}_{d}\) and \({{\varvec{C}}}_{d}\) means the discrete matrix of \({\varvec{A}}\), \({\varvec{B}},\) and \({\varvec{C}}\), respectively, \(k\) represents the sample time.

Moreover, vehicle dynamic constraints should also be taken into account in the motion planning model to ensure that optimized trajectory can be executed by AVs. Specifically, the values of control variables should satisfy physical constraints of the actuator capacities:

where \({\delta }_{max}\) is the maximum steering angle, \({T}_{max}\) is the maximum propelling torque, and \({R}_{w}\) is the radius of wheels.

Dynamic performance of the vehicle is not only restricted by the maximum propelling torque, but also by attachment conditions between tires and roads. Here, longitudinal and lateral accelerations should satisfy the following conditions:

where \({a}_{x}\) and \({a}_{y}\) represent longitudinal acceleration and lateral acceleration, respectively, and \(\mu\) is the friction coefficient between the tires and the road.

Furthermore, AVs should also obey the traffic rules. Here, the velocity of the vehicle is considered constrained within the allowable range. This constraint is represented as:

where \({u}_{min}\) and \({u}_{max}\) indicate minimal and maximum allowed velocity, respectively.

Finally, the risk of rollover, potential field, as well as dynamic constraints are filled into the MPC framework:

where \({N}_{p}\) is the prediction horizon, \({N}_{c}\) is the control horizon, \(t+k\) indicates the time step, \({\varvec{x}}(t+k)\) represents the predicted state values of the system, \({\varvec{y}}(t+k)\) denotes predicted outputs of the system over prediction horizon, \({{\varvec{u}}}_{min}\) and \({{\varvec{u}}}_{max}\) are the lower and upper bounds of the actuator, and \(\boldsymbol{\Delta }{{\varvec{u}}}_{min}\) and \(\boldsymbol{\Delta }{{\varvec{u}}}_{max}\) are various ranges of control variables at each moment.

Within the cost function shown in Eq. (21), matrices \({\varvec{Q}}\), \({\varvec{P}}\), \({\varvec{R}}\), and \({\varvec{S}}\) are weight matrices corresponding to the risk of rollover, tracking of the desired path, slack variables, and violation of the control input, respectively. So far, the motion planning problem has been converted into solving the optimal control issues over the prediction horizon.

## 4 Experimental Results and Analysis

In this section, the test environment and corresponding experimental procedures are presented. Two cases are designed via PreScan software: cut-in scenario and merging scenario. HiL experiment, whose system is shown in Figure 4, is implemented to validate the real-time performance of the framework. The system consisting of an AUDESSE FlexCase controller and a host computer is set up. Besides, the Simulink Desktop Real-Time environment is configured. The Simulink Desktop Real-Time provides a real-time kernel for executing Simulink models on Windows. The communication between the FlexCase controller and the host computer is enabled via CAN (PEAK device). Motion planning algorithm was deployed in FlexCase controller, and vehicle dynamics model is running in the host computer. Vehicle model parameters used in this experiment are listed in Table 1.

*Baselines:* To demonstrate the feasibility of the proposed uncertainty-aware motion planning method that also considers the risk of rollover (subsequently referred to as UAMP-RR), two baselines are utilized. Firstly, a conventional motion planning (CMP) approach is developed, which does not consider the position uncertainty of SVs and the risk of rollover. Secondly, another baseline that considers the position uncertainty of SVs and does not consider the risk of rollover (called UAMP) is also adopted.

In addition, to quantify the benefits and disadvantages of the proposed decision-making algorithm, the safety-related evaluation indicator should be established. The following is the definition of the longitudinal safe distance:

where \({u}_{l}\) and \({u}_{f}\) are the leading and following vehicleâ€™s current velocities, respectively, \({t}_{0}\) is the reaction time, \({a}_{max}\) is the maximum deceleration of the vehicles, and \({X}_{0}\) is the longitudinal standstill distance.

Similarly, the lateral safe distance is defined as follows:

where \({v}_{f}\) is the following vehicleâ€™s lateral velocity, and \({Y}_{0}\) is the lateral standstill distance.

The safety index (SI) is represented as follows.

where \(\Delta X\), \(\Delta Y\) mean absolute longitudinal and lateral Euclidean distance between the AV and SV, respectively.

It can be found that the lower the value of SI, the higher the risk. Finally, vehicle dynamic parameters are presented in Table 1.

### 4.1 Case 1: Evaluation of Obstacle Avoidance in the Cut-in Scenario

As aforementioned, the motion information of SVs plays a key role in the motion planning system of AVs. Therefore, a cut-in scenario is built to validate the effectiveness of the proposed method. In Figure 5, a two-lane scene is depicted where the ego vehicle lies in lane #2 (lower lane in Figure 5) with the initial velocity of 25 m/s and position [0 m, 1.75 m]. Four SVs are placed in the proximity of the ego vehicle: SV #1 with the velocity of 20 m/s and the initial position [20 m, 5.25 m] in lane #1 (upper lane in Figure 5), SV#2 with the velocity of 20 m/s, and initial position [60 m, 1.75 m] in lane #2, SV #3 with the velocity of 20 m/s and the initial position [âˆ’â€‰40 m, 5.25 m] in lane #1, SV #4 with the velocity of 20 m/s and the initial position [âˆ’â€‰30 m, 1.75 m] in lane #2. In this scenario, SV #1 is set to make an abrupt lane change from lane #1 to lane #2. This represents a challenge for the ego vehicle concerning making the correct decision and planning. Because the position of SVs is hard to predict accurately, even when applying some advanced prediction algorithms. In other words, for the ego vehicle, the future position of SVs has greater uncertainty.

HiL experimental results are presented in Figures 5, 6, 7, 8, 9 and 10. In Figure 5, the trajectory of UAMP-RR, UAMP, and CMP algorithms are demonstrated, where only the key positions are marked. Based on the results, it can be concluded that the three methods behave differently. Specifically, UAMP-RR and UAMP choose to make a lane change at about 1 s to avoid collision with SV #1, whereas CMP selects to change lane at around 1.55 s, which is 0.55 s later than UAMP-RR and UAMP. In Figure 6, the comparison of SI values for these three methods is demonstrated. It can be found that the SI values of CMP for SV #1 are less than 1 from 2 s to 2.9 s, which represents a high collision risk. The reason why UAMP-RR and UAMP exhibit safely is that the position uncertainty of SVs is considered. Besides, the SI values of UAMP-RR for other SVs are also given in Figure 7, which means that UAMP-RR can make the ego vehicle keep a safe distance from other SVs. Moreover, the comparison of RIR values and corresponding roll angle are shown in Figures 8 and 9, respectively. From the results, it can be concluded that both UAMP-RR and UAMP can keep the ego vehicle at a low risk of rollover, but the RIR values of CMP are higher. Note that although the risk of rollover is not considered in UAMP, it chooses the safe trajectory approximate to UAMP-RR, and thus, the RIR values are lower. In case 2, the difference between UAMP-RR and UAMP will be displayed and highlighted. Finally, in Figure 10, the values of steering angle and longitudinal force are shown. It can be observed that constraints are well processed, i.e., the steering angel and longitudinal force are limited in reasonable ranges.

### 4.2 Case 2: Evaluation of Obstacle Avoidance in the Merging Scenario

To further verify the effectiveness of the proposed framework, another challenging scenario represented by the merging scene is built. In Figure 11, a two-lane road with a ramp on the highway and ego vehicle in lane #2 (lower straight road in Figure 11) with the velocity 30 m/s and initial position [0 m, 1.75 m] is displayed. In addition, there are also four SVs placed in the proximity of the ego vehicle. More specifically, SV #1 is located in Ramp Road with a velocity of 32 m/s and an initial position [16 m, âˆ’â€‰32.4 m], SV #2 is located in lane #1 (upper straight road in Figure 11) with the velocity of 30 m/s and the initial position [25 m, 5.25 m], SV #3 is located in lane #1 with the velocity of 30 m/s and initial position [âˆ’â€‰35 m, 5.25 m], SV #4 is located in lane #2 with the velocity of 30 m/s and initial position [âˆ’â€‰40 m, 1.75 m]. In this case, SV #1 is set to perform a merging behavior from ramp road to lane #2, which is also a challenging case for the ego vehicle to avoid the collision. Similarly, the experimental results are demonstrated in Figures 11, 12, 13, 14, 15 and 16.

Figure 11 depicts the trajectory of the UAMP-RR, UAMP, and CMP algorithms, with only the essential position highlighted. It can be seen that CMP adopts a different control strategy compared with UAMP-RR and UAMP. Specifically, CMP keeps the vehicle within its lane, whereas the others choose to change the lane to avoid collision with SV #1 at 2.4 s. The inherent reason why CMP made such a decision is that it predicts the future trajectory of SV #1 without uncertainty. In other words, the algorithm assumes that the prediction is accurate. Besides, the comparison of SI values for the three approaches is shown in Figure 12. From 3 s to 4 s, the SI values of CMP for SV #1 are less than 1, indicating that there is a high danger of collision. Because the position uncertainty of SVs is taken into account, UAMP-RR and UAMP exhibit securely. Figure 13 also shows the SI values of UAMP-RR for other SVs, implying that UAMP-RR can maintain the ego vehicle at a safe distance from other SVs. In addition, Figures 14 and 15 demonstrate the comparison of RIR values and roll angles, respectively. It can be found that the RIR values and roll angles of CMP are close to 0. The reason is that in this case, CMP adopts an unsafe strategy, i.e., keeping lanes (i.e., between 3 s and 4 s, the value of SI is less than 1 in Figure 12). Therefore, this does not show that the CMP method is better than the other two methods, despite low RIR values. Because, for the vehicle, crash safety is the priority. UAMP-RR and UAMP have in common that they both consider the position uncertainty of SVs, and the difference is that UAMP does not consider the risk of rollover. They both perform safer behaviors, as shown in Figure 12. But UAMP-RR has a lower RIR value, implying that it can increase vehicle rollover stability while guaranteeing collision safety. Finally, results for steering angle and longitudinal force are displayed in Figure 16. The steering angle and longitudinal force are both constrained in appropriate limits, indicating that constraints are effectively handled.

## 5 Conclusions

An environment uncertainty-aware motion planning approach for AVs with considering the risk of the rollover was proposed in this paper. First, the 4-DOF vehicle dynamic model was used to design the index describing the risk of rollover. Then, an extended Kalman filter was applied to process and propagate the uncertainty of SVsâ€™ position. Furthermore, the PSB of SVs was determined, and a potential field was established to account for the uncertainty. To achieve obstacle avoidance while guaranteeing stability, the MPC was adopted to account for all of the previously mentioned items. Finally, two cases, i.e., the cut-in scenario, and merging scenario are designed on a hardware-in-the-loop experiment bench. The results demonstrate the effectiveness of the proposed method.

Future work may focus on extracting prediction uncertainty from advanced trajectory prediction methods like long short-term memory. In addition, more edge cases in the urban situation will be studied to improve its generalization and the real vehicle test will proceed.

## References

K Yang, Y J Huang, Y C Qin, et al. Potential and challenges to improve vehicle energy efficiency via V2X: Literature review.

*International Journal of Vehicle Performance*, 2021, 7(3-4): 244-265.X L Tang, K Yang, H Wang, et al. Prediction-uncertainty-aware decision-making for autonomous vehicles.

*IEEE Transactions on Intelligent Vehicles*, 2022.X L Tang, J X Chen, K Yang, et al. Visual detection and deep reinforcement learning-based car following and energy management for hybrid electric vehicles.

*IEEE Transactions on Transportation Electrification*, 2022, 8(2): 2501â€“25153.T Liu, X L Tang, H Wang, et al. Adaptive hierarchical energy management design for a plug-in hybrid electric vehicle.

*IEEE Transactions on Vehicular Technology*, 2019, 68(12): 11513-11522.K Yang, X L Tang, Y C Qin, et al. Comparative study of trajectory tracking control for automated vehicles via model predictive control and robust H-infinity state feedback control.

*Chinese Journal of Mechanical Engineering*, 2021, 34: 4.M Guo, S Shang, C Haifeng, et al. Control model of automated driving systems based on SOTIF evaluation.

*SAE International Journal of Advances and Current Practices in Mobility*, 2020, 2(2020-01-1214): 2900-2906.Z Ju, H Zhang, Y Tan. Deception attack detection and estimation for a local vehicle in vehicle platooning based on a modified UFIR estimator.

*IEEE Internet of Things Journal*, 2020, 7(5): 3693-3705.R Mariani. An overview of autonomous vehicles safety.

*2018 IEEE International Reliability Physics Symposium (IRPS),**IEEE*, 2018: 6A. 1-1-6A. 1â€“6.S Aradi. Survey of deep reinforcement learning for motion planning of autonomous vehicles.

*IEEE Transactions on Intelligent Transportation Systems*, 2020.H Wang, A Khajepour, D Cao, et al. Ethical decision making in autonomous vehicles: Challenges and research progress.

*IEEE Intelligent Transportation Systems Magazine*, 2022, 14(1): 6-17.J Li, S Liu, B Zhang, et al. RRT-A* motion planning algorithm for non-holonomic mobile robot. 2

*014 Proceedings of the SICE Annual Conference (SICE), IEEE*, 2014: 1833â€“1838S Karaman, M R Walter, A Perez, et al. Anytime motion planning using the RRT.

*2011 IEEE International Conference on Robotics and Automation, IEEE*, 2011: 1478â€“1483.Y Rasekhipour, A Khajepour, S K Chen, et al. A potential field-based model predictive path-planning controller for autonomous road vehicles.

*IEEE Transactions on Intelligent Transportation Systems*, 2016, 18(5): 1255-1267.H Wang, Y Huang, A Khajepour, et al. Crash mitigation in motion planning for autonomous vehicles.

*IEEE Transactions on Intelligent Transportation Systems*, 2019, 20(9): 3313-3323.H Wang, Y Huang, A Khajepour, et al. Ethical decision-making platform in autonomous vehicles with lexicographic optimization based model predictive controller.

*IEEE Transactions on Vehicular Technology*, 2020, 69(8): 8164-8175.Y F Chen, M Everett, M Liu, et al. Socially aware motion planning with deep reinforcement learning.

*2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), IEEE*, 2017: 1343â€“1350.J Berg, S Patil, R Alterovitz. Motion planning under uncertainty using iterative local optimization in belief space.

*The International Journal of Robotics Research*, 2012, 31(11): 1263-1278.W Liu, S W Kim, S Pendleton, et al. Situation-aware decision making for autonomous driving on urban road using online POMDP.

*2015 IEEE Intelligent Vehicles Symposium (IV), IEEE*, 2015: 1126â€“1133.M Schratter, M Bouton, M J Kochenderfer, et al. Pedestrian collision avoidance system for scenarios with occlusions.

*2019 IEEE Intelligent Vehicles Symposium (IV), IEEE, 2019*: 1054â€“1060.A Artunedo, J Villagra, J Godoy, et al. Motion planning approach considering localization uncertainty.

*IEEE Transactions on Vehicular Technology*, 2020, 69(6): 5983-5994.W Xu, J Pan, J Wei, et al. Motion planning under uncertainty for on-road autonomous driving.

*2014 IEEE International Conference on Robotics and Automation (ICRA), IEEE*, 2014: 2507â€“2512.G Kahn, A Villaflor, V Pong, et al. Uncertainty-aware reinforcement learning for collision avoidance. arXiv preprint arXiv:1702.01182, 2017.

B LÃ¼tjens, M Everett, J P How. Safe reinforcement learning with model uncertainty estimates.

*2019 International Conference on Robotics and Automation (ICRA), IEEE*, 2019: 8662â€“8668.X Qian, C Wang, Zhao W. Rollover prevention and path following control of integrated steering and braking systems.

*Proceedings of the Institution of Mechanical Engineers Part D Journal of Automobile Engineering*, 2020, 234(6): 1644â€“1659.C Hu, Z Wang, Y Qin, et al. Lane keeping control of autonomous vehicles with prescribed performance considering the rollover prevention and input saturation.

*IEEE Transactions on Intelligent Transportation Systems*, 2019, 21(7): 3091-3103.I Gwayi, M S Tsoeu. Rollover prevention and path following of autonomous vehicle using nonlinear model predictive control.

*2018 Open Innovations Conference (OI), IEEE*, 2018: 13â€“18.X H Zeng, G H Li, D F Song, et al. Rollover warning algorithm based on genetic algorithm-optimized BP neural network.

*Huanan Ligong Daxue Xuebao/Journal of South China University of Technology (Natural Science)*, 2017, 45(2): 30-38.X He, Y Liu, C Lv, et al. Emergency steering control of autonomous vehicle for collision avoidance and stabilisation.

*Vehicle System Dynamics*, 2019, 57(8): 1163-1187.D F Chu, X Y Lu, J K Hedrick. Rollover prevention for vehicles with elevated CG using active control.

*Proceedings of 10th International Symposium on Advanced Vehicle Control*, 2010.S LefÃ¨vre, D Vasquez, C Laugier. A survey on motion prediction and risk assessment for intelligent vehicles.

*ROBOMECH Journal*, 2014, 1(1): 1-14.J R Ward, G Agamennoni, S Worrall, et al. Extending time to collision for probabilistic reasoning in general traffic scenarios.

*Transportation Research Part C: Emerging Technologies*, 2015, 51: 66â€“82.S M Patole, M Torlak, D Wang, et al. Automotive radars: A review of signal processing techniques.

*IEEE Signal Processing Magazine*, 2017, 34(2): 22-35.J R Benjamin, C A Cornell.

*Probability, statistics, and decision for civil engineers*. Courier Corporation, 2014.Q Tu, H Chen, J Li. A potential field based lateral planning method for autonomous vehicles.

*SAE International Journal of Passenger Cars-Electronic and Electrical System*s, 2017, 10(1): 24â€“35.

## Acknowledgments

Not applicable.

## Funding

Supported by National Key R&D Program of China (Grant No.Â 2020YFB1600303), National Natural Science Foundation of China (Grant Nos. U1964203, 52072215) and Chongqing MunicipalÂ Natural Science Foundation of China (Grant No. cstc2020jcyj-msxmX0956).

## Author information

### Authors and Affiliations

### Contributions

XT was in charge of the whole trial; KY wrote the manuscript; HW, WY, XY, TL, and JL assisted with sampling and laboratory analyses. All authors read and approved the final manuscript.

### Authorsâ€™ Information

Xiaolin Tang is currently an Associate Professor at the Department of Automotive Engineering, Chongqing University, Chongqing, China. He received a PhD degree in Mechanical Engineering from Shanghai Jiao Tong University, China, in 2015.

Kai Yang is currently pursuing a PhD degree in the Department of Automotive Engineering, Chongqing University, Chongqing, China. He received a B.E. degree in vehicle engineering from Wuhan University of Technology, in 2018. His research interests include automated vehicles, motion planning, and control.

Hong Wang is currently a Research Associate in mechanical and mechatronics engineering with the University of Waterloo. She received a PhD degree from the Beijing Institute of Technology, China, in 2015.

Wenhao Yu is currently a research associate at the school of Vehicle and mobility with Tsinghua University. He received his PhD degree from Jiangsu University in China in 2020. His research focuses on the decision-making, path planning, and following control of autonomous vehicles, Model Predictive Control and Safety of The Intended Functionality of autonomous vehicles.

Xin Yang received a B.S. degree in vehicle engineering from the Shijiazhuang Tiedao University, in 2019. He is currently pursuing a masterâ€™s degree at Chongqing University. His research interests include vehicle dynamics, autonomous vehicles, and model predictive control.

Teng Liu (Mâ€™2018) received a B.S. degree in mathematics from Beijing Institute of Technology, Beijing, China, in 2011. He received his PhD degree in automotive engineering from Beijing Institute of Technology (BIT), Beijing, in 2017. He worked as a research fellow in Vehicle Intelligence Pioneers Ltd from 2017 to 2018. Dr. Liu worked as a postdoctoral fellow at the Department of Mechanical and Mechatronics Engineering, University of Waterloo, Ontario N2L3G1, Canada from 2018 to 2020. Now, he is a member of IEEE VTS, IEEE ITS, and IEEE/CAA

Jun Li is currently an academician of the Chinese Academy of Engineering, a Professor at the school of Vehicle and Mobility with Tsinghua University, president of the China Society of Automotive Engineers, director of the expert committee of China Industry Innovation Alliance for the Intelligent and Connected Vehicles. He has been chief engineer, director of the technology center, deputy chief engineer, and chief engineer in China FAW Group Corporation. His research interests include internal combustion engines, electric drive systems, electrified vehicles, intelligent connected vehicles.

### Corresponding authors

## Ethics declarations

### Competing Interests

The authors declare no competing financial interests.

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Tang, X., Yang, K., Wang, H. *et al.* Driving Environment Uncertainty-Aware Motion Planning for Autonomous Vehicles.
*Chin. J. Mech. Eng.* **35**, 120 (2022). https://doi.org/10.1186/s10033-022-00790-5

Received:

Revised:

Accepted:

Published:

DOI: https://doi.org/10.1186/s10033-022-00790-5

### Keywords

- Position uncertainty
- Rollover prevention
- Autonomous vehicles
- Motion planning
- Model predictive control