Next Article in Journal
Physical Properties of Modern Reciprocal Endodontic Systems and Fatigue Failure Testing in Simulated Clinical Conditions
Previous Article in Journal
A Tunable Metamaterial Joint for Mechanical Shock Applications Inspired by Carbon Nanotubes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Feasible Trajectories Generation for Autonomous Driving Vehicles

1
Institute for Nanomaterials, Advanced Technologies and Innovation, Technical University of Liberec, 461 17 Liberec, Czech Republic
2
Faculty of Mechatronics, Informatics and Interdisciplinary Studies, Technical University of Liberec, 461 17 Liberec, Czech Republic
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(23), 11143; https://doi.org/10.3390/app112311143
Submission received: 10 November 2021 / Revised: 20 November 2021 / Accepted: 22 November 2021 / Published: 24 November 2021

Abstract

:
This study presents smooth and fast feasible trajectory generation for autonomous driving vehicles subject to the vehicle physical constraints on the vehicle power, speed, acceleration as well as the hard limitations of the vehicle steering angle and the steering angular speed. This is due to the fact the vehicle speed and the vehicle steering angle are always in a strict relationship for safety purposes, depending on the real vehicle driving constraints, the environmental conditions, and the surrounding obstacles. Three different methods of the position quintic polynomial, speed quartic polynomial, and symmetric polynomial function for generating the vehicle trajectories are presented and illustrated with simulations. The optimal trajectory is selected according to three criteria: Smoother curve, smaller tracking error, and shorter distance. The outcomes of this paper can be used for generating online trajectories for autonomous driving vehicles and auto-parking systems.

1. Introduction

Path and trajectory planning and generation are the most important parts of navigating in autonomous vehicles and mobile robots. In an autonomous driving system, a feasible path is referred to as the geometric construction, and the global plan is used to map out the curve moving from point A to point B while taking into account the avoidance of obstacles or overcoming complex mazes. Meanwhile, the trajectory is a piece in a path, or trajectories of the path, and are designed locally including specified velocities in each position. All trajectories must be joined smoothly, or a trajectory must be designed in account to connect the two adjunction trajectories smoothly and continuously. This paper provides some discrete mathematic polynomial methods to map out feasible trajectories from a given starting position to a given destination position subject to the vehicle’s physical and environmental limitations.
The main aim of this paper is to develop a real-time trajectory planning for an autonomous vehicle based on the global path given from the GPS positioning and LIDAR detecting systems. The generation of feasible and the optimal trajectories is based on the online calculation of the vehicle’s updated information such as the position, velocity, and steering angular speed, etc. In this paper, we assumed that the vehicle steering wheel is designed based on the vehicle dynamics in [1]. A typical passenger vehicle is selected with a steering ratio of 15.0 and a maximum turn on the right and left of the steering wheel of +/−675 degrees. Therefore, the front wheel angles will be limited to +/−45 degrees. From now on, the vehicle steering angle is considered as the front wheel angle and has a physical limitation of +/−45 degrees.
The body of literature for recent autonomous vehicle paths and trajectory generation is enormous. This paper reviews some update information on the model predictive controls, optimal iterative calculations for real-time control of autonomous ground vehicles, auto-driving, and auto-parking systems. Basic mathematic functions to determine feasible trajectories were presented in [2], in which the authors introduced different mathematical methods for generating optimal paths. The vehicle was controlled and simulated moving on its feasible paths, including forward and reverse velocity, into and out of parking places. However, Authors in [2] lacked the generation of continuing trajectories and online calculations for feasible and optimal trajectories subject to the vehicle’s dynamic constraints.
Vehicle steering dynamic control and simulation are referred to in [3]. In [3], the author provided analyses and simulations of sideslips and the steering angle depending on the vehicle velocity and the environmental limitations. The vehicle steering angle in forward and reverse speeds were also analyzed and simulated. Fundamental parameters of vehicles regarding the position of the gravity center, the stiffness of front and rear wheels, under-steering and over-steering conditions, as well as the sideslip dynamics were also included in the analyses and calculations. Therefore, data from [3] is useful for generating the vehicle trajectories subject to physical constraints.
Regarding the model predictive control for vehicles’ tracking setpoints, reference [4] is considered. The authors in [4] presented a fundamental new robust model of predictive control for uncertain and constrained systems. The tracking setpoints of the robust model predictive control for input-saturated and softened-state constraints were introduced. The softened-state constraints showed higher superiority since, in many cases, the autonomous vehicle might be allowed to violate certain constraints while being subject to heavy penalty conditions. After this, the control system will find it easier to determine the optimal solution and minimize the tracking error.
Recent studies on vehicle trajectory generation and tracking control are referred as following: Reference [5] introduced the problem of tracking trajectories under certain traffic conditions. The design of feasible paths was performed step by step based on the traffic environments. The closed-loop control was determined by a Proportional Integral Derivative (PID) controller. The trajectory generation and the tracking path controller were feasible but lacked optimal calculation and were not subject to vehicle constraints. A new study on vehicle trajectory generation for autonomous systems subject to emergency situations was referred to in [6]. Reference [6] presented an efficient solution to improve the vehicle control subject to emergency situations from the autonomous decision support. However, authors in [6] did not provide mathematic calculations for generating the vehicle optimal trajectory.
Recent research references on vehicle trajectory generation are investigated, most of which presented new mathematic functions for generating online feasible trajectories. The authors in [7] updated the prediction and generation of vehicle trajectory in non-linear programming with consideration of the long short-term memory and generative adversarial networks. The authors in [8] presented trajectory generation for a vehicle changing lanes automatically with nonlinear mathematical functions while taking into account the public traffic laws. The authors in [9] introduced a new method for robust trajectory generation based on neuromorphic research and robotic control. The authors in [10] introduced a new model of predictive control for autonomous vehicle tracking of any given path. The authors in [11] presented a new approach for industrial robot trajectory generation based on motion modular technology. The authors in [12] reviewed recent advances in the generation of trajectory planning methodologies. The authors in [13] described the new method in motion planning for mobile robots with the use of jumping leap search with Bezier curves. The authors in [14] highlighted robust and the efficient tool path generation for curving along low triangular mesh surfaces. The authors in [15] presented research on trajectory generation optimization for robotics and autonomous systems. Finally, the authors References [16,17,18,19,20] presented updated mathematical algorithms and information technologies applied for mapping out the feasible paths of autonomous vehicles. Updated references on vehicle trajectory generation and advanced autonomous vehicle control techniques are referred to in [21,22,23,24,25,26,27,28,29,30,31].
Online optimal trajectory generation subject to a vehicle’s physical constraints and environmental limitations remain a challenge. This paper proposes new methods of trajectory generations subject to those constraints. The optimal trajectory is selected based on three criteria: The shortest distance, the smoothest curve, and the smallest tracking error. The outline of this paper is as follows: Section 2 outlines the conventional kinematic diagram and control model for the ground vehicle; Section 3 introduces a basic method for trajectory generation; Section 4 presents the selection of the optimal trajectory subject to the vehicle constraints and environmental limitations; Section 5 introduces a new method for quartic polynomial trajectory generation; Section 6 presents a new method for symmetric polynomial function; Section 7 reviews the performances comparison of all three methods; and Section 8 includes conclusions and recommendations.

2. Vehicle Kinematic Model

A typical passenger vehicle can be modelled as a simple draw of four wheels, where two front wheels are connected to the steering system, ϕ , and rotate in a maximum angle range of +/−45° (degrees) to the vehicle body. The distance between the center of the front wheels and the center of the rear wheels is called the vehicle wheelbase (l). In our model, we select the wheelbase length of l = 2 m. The wheel radius of four wheels is assumed to be r = 0.25 m. The vehicle position (x and y) is identified at the center of the rear wheels. The vehicle body angle, θ , is also identified along the axe x. It is assumed that the vehicle position is always identical to the GPS and LIDAR systems with exact x and y coordinates. The vehicle body angle θ and the steering angle ψ are assumed to also always be identical to the 3D sensors. The kinematic model of a vehicle is shown in Figure 1.
The vehicle moves forward and reverses and is controlled by the engine angular and steering angular velocity. A vehicle driven by the rear wheels and moving forward is presented in Equation (1):
x ˙ y ˙ θ ˙ ϕ ˙ = c o s θ s i n θ t a n ϕ l 0 r v 1 + 0 0 0 1 v 2
The vehicle driven by the rear wheels and moving in reverse is obtained in Equation (2), where the vehicle speed is assigned in a negative sign:
x ˙ y ˙ θ ˙ ϕ ˙ = c o s θ s i n θ t a n ϕ l 0 r v 1 + 0 0 0 1 v 2
The vehicle driven by the front wheels is formulated in Equation (3):
x ˙ y ˙ θ ˙ ϕ ˙ = c o s θ c o s ϕ s i n θ c o s ϕ t a n ϕ l 0 r v 1 + 0 0 0 1 v 2
where x , y , θ , ϕ are the state and output variables. The two control inputs are v 1 and v 2 , where v 1 is the angular speed of the driven wheels, therefore r v 1 is the vehicle speed (km/h); and v 2 is the steering angular speed in revolutions per minute (rpm). The two models in Equations (1) and (2) are mainly used to calculate and simulate the vehicle performances. The next part presents a basic method for trajectory generation.

3. Position Quintic Polynomial for Trajectory Generation

A basic position quintic polynomial for trajectory generation can be achieved from the nonlinear vehicle movement curve along the x and y axes on the flat system as referred to in [21]. Then, the control input v 1 can be identified as:
r v 1 = x ˙ 2 + y ˙ 2 v 1 = x ˙ 2 + y ˙ 2 r
The vehicle body angle, θ , along the x axis can be formulated:
y ˙ x ˙ = r v 1 s i n θ r v 1 c o s θ = t a n θ θ = a r c t a n y ˙ x ˙
Then, the vehicle body angular velocity, θ ˙ , will always be identical:
θ ˙ = y ¨ x ˙     x ¨ y ˙ x ˙ 2 1 y ˙ x ˙ 2 + 1 = y ¨ x ˙ x ¨ y ˙ x ˙ 2 + y ˙ 2 = t a n ϕ l r v 1 ϕ = a r c t a n l y ¨ x ˙ x ¨ y ˙ r x ˙ 2 + y ˙ 2 3 2
The vehicle steering angle ϕ and the body angle θ in Equations (5) and (6) can be formulated directly from x ˙ , x ¨ , and y ˙ , y ¨ . Similarly, all state variables and inputs can be represented by the output coordinates x and y.
It is assumed that the vehicle moves from the starting point at time t = 0 to the destination point at t = T for x(0), y(0) and x(T), y(T) from t = 0 ÷ T at the starting point of x(t) = x(0):
x 0 = x 0 x T = x T
and at the starting point of y(t) = y(0)
y 0 = y 0 = t a n θ 0 2 y x 2 t = 0 = t a n ϕ 0 l c o s 3 θ 0
At the destination point y(t) = y(T)
y T = y T = t a n θ T 2 y x 2 t = T = t a n ϕ T l c o s 3 θ T
It is assumed that x T x 0 2 T > 0 , then the trajectory of x(t) can be chosen by the following Equation:
x t = T t T x 0 + t T x T + x T x 0 t t T 2 T 2
Then, y(t) can be chosen as
y t = y 0 + t α 1 t a n θ 0 + t 2 α 2 t a n ϕ 0 2 l c o s 3 θ 0 + t 3 b 1 + t 4 b 2 + t 5 b 3
where α 1 = 2 x T x 0 x T x 0 2 T , α 2 = x T x 0 T 2 , and α 3 = 2 x T x 0 + x T x 0 2 T ; and b = b 1 , b 2 , b 3 = A 1 c , in which:
A = T 3 T 4 T 5 3 T 2 4 T 3 5 T 4 6 T 12 T 2 20 T 3   and   c = y T y 0 T α 1 t a n θ 0 T 2 α 2 t a n ϕ 0 2 l c o s 3 θ 0 α 3 t a n θ T α 1 t a n θ 0 T α 2 t a n ϕ 0 l c o s 3 θ 0 α 2 t a n ϕ T l c o s 3 θ T α 2 t a n ϕ 0 l c o s 3 θ 0
Then, the vehicle body angle, θ , is
θ = a r c t a n 2 T 2 α 1 t a n θ 0 + α 2 t a n ϕ 0 l c o s 3 θ 0 t + 3 b 1 t 2 + 4 b 2 t 3 + 5 b 3 t 4 2 T x T x 0 T x T x 0 + 2 x T x 0 t
and the vehicle steering angle, ϕ , is
ϕ = a r c t a n 2 y l c o s 3 θ x 2 = a r c t a n α 2 t a n ϕ 0 l c o s 3 θ 0 + 6 b 1 t + 12 b 2 t 2 + 20 b 3 t 3 2 T 2 2 l c o s 3 θ 2 T x T x 0 T x T x 0 + 2 x T x 0 t 2
The vehicle velocity and acceleration can be re-formulated from (10) and (11) as
y ˙ t = α 1 t a n θ 0 + α 2 t a n ϕ 0 l c o s 3 θ 0 t + 3 b 1 t 2 + 4 b 2 t 3 + 5 b 3 t 4
and
y ¨ t = α 2 t a n ϕ 0 l c o s 3 θ 0 + 6 b 1 t + 12 b 2 t 2 + 20 b 3 t 3
and for variable x:
x ˙ t = 2 T x T x 0 T x T x 0 + 2 x T x 0 t 2 T 2
and
x ¨ t = x T x 0 T 2
The vehicle velocity can be identified from Equations (14)–(17):
v 1 t = x ˙ 2 + y ˙ 2 r
Or another way to calculate v 1 t = x ˙ t c o s θ r + y ˙ t s i n θ r , then:
v 1 t = 2 T x T x 0 T x T x 0 + 2 x T x 0 t 2 r T 2 c o s θ                                               + α 1 t a n θ 0 + α 2 t a n ϕ 0 l c o s 3 θ 0 + 3 b 1 t 2 + 4 b 2 t 3 + 5 b 3 t 4 s i n θ r
θ ˙ is re-formulated from Equation (6):
θ ˙ = y ¨ x ˙ x ¨ y ˙ x ˙ 2 + y ˙ 2 = t a n ϕ l r v 1
To calculate v 2 t = ϕ ˙ , from Equation (13), when ϕ = a r c t a n ( X ) ,
ϕ ˙ = X ˙ 1 1 + X 2   with X = α 2 t a n ϕ 0 l c o s 3 θ 0 + 6 b 1 t + 12 b 2 t 2 + 20 b 3 t 3 2 T 2 2 l c o s 3 θ 2 T x T x 0 T x T x 0 + 2 x T x 0 t 2
Then, the second input v 2 t = ϕ ˙ is:
ϕ ˙ = l y ¨ x ˙ x ¨ y ˙ r x ˙ 2 + y ˙ 2 3 2 1 1 + l y ¨ x ˙ x ¨ y ˙ r x ˙ 2 + y ˙ 2 3 2 2
Simulations for this method were conducted with the above vehicle parameters of l = 2   m , r = 0.25   m , x 0 = 0 , 0 , 0 , 0 , x T = 10 , 10 , 0 , π 6 , and T = 100 (T is calculated for 100 discrete time intervals from t = 0 ÷ T ). The trajectory generation for x, y, θ , ϕ , θ ˙ , and ϕ ˙ is obtained from Equations (12)–(22) and shown in Figure 2 and Figure 3.
Figure 3 shows the maximum steering angle, ϕ M A X = 1.0973 radians or 62.87° (degrees). This value violated the constraint for the vehicle steering angle ϕ M A X 45 ° . This trajectory, therefore, is infeasible because the distance from x°, y° to xT and yT is too short, causing the steering angle to be too large. The next part presents the method to achieve feasible and optimal trajectories subject to vehicle constraints and environmental limitations.

4. Trajectory Generation Subject to Constraints

For a real vehicle, the steering angle is always limited from
π 4 ϕ π 4
Once the vehicle moves from x 0 , y 0 , θ 0 , ϕ 0 to x T , y T , θ T , ϕ T , it is assumed that the initial conditions of x 0 , y 0 , θ 0 , ϕ 0 are given and the final conditions [ θ T , ϕ T ] cannot be changed. The vehicle violates the constraint ϕ because the distance from x 0 , y 0 to x T , y T is too short. By using iterations from computer programming, it is easy to determine the feasible trajectories with lower values of ϕ and ϕ ˙ or the vehicle will move on smoother and safer curves.
As mentioned in [1], the front wheel angle always has hard constraints. At a low vehicle velocity of less than 16 km/h, the vehicle can be driven with the maximum steering angle. However, in higher speeds, the steering angles allowed will be reduced from +/−45 to +/−12 degrees when the vehicle velocity reaches 40 km/h. At a vehicle speed higher 67 km/h, the steering angle is restricted to less than only +/−3.5 degrees as shown in Figure 4.
The vehicle speed always has to be controlled in a strict function of the steering angle due to safety purposes, therefore this paper proposes a new method for generating the vehicle’s feasible trajectories subject to the hard steering angular constraints and the environmental conditions as follows:
The feasible trajectories x(t) and y(t) from starting points x(0) and y(0) to the destination point x(T) and y(T) for t = 0 ÷ T subject to Equation (23) and other constraints in [1] generated from Equations (10) and (11) can be modified by adding iterations to lengthen the trajectory distance. The programming calculation for each feasible trajectory must be verified online and then the steering angle ϕ and other variables must be re-calculated to satisfy the objective constraints. If certain constraints are violated, the distance from the starting point to the destination point is too short to generate a safe and feasible trajectory. In this case, we must lengthen the trajectory distance, d 0 = ( x T x 0 ) 2 + ( y T y 0 ) 2 to a new, longer distance with a small amplification coefficient ρ :
d N i = ρ i d 0   with   ρ > 1
Several iterations, i = 1 , 2 , 3 , n are required until the steering and other condition constraints are satisfied. Then, the new destination position of the vehicle will be:
x T N = ρ n x T x 0 ,   and   y T N = ρ n y T y 0 .
The following simulations are conducted with ρ = 1.1 , and the vehicle parameters are the same as in previous simulations. By adding constraint (23) and other vehicle dynamic constraints, feasible trajectories are obtained in Figure 5. The steering angles are assumed to be limited to 60°, 45°, or 30° according to the vehicle and environment safety requirements. The minimum lengths of corresponding feasible trajectories are 15.0910 m, 32.3490 m, and 52.0983 m corresponding to the new destination points of x(T) = y(T) = 10.000, 23.579, and 34.5227, respectively.
Figure 6 shows the steering angles during the time that the vehicle is moving along different trajectories with different maximum steering angles. The lower and smoother steering angles will lead to safer trajectories. According to the environmental limitations, the optimal trajectory can be selected based on the safest steering angle, the shortest distance, and the smallest tracking error, etc.
Once we have calculated and selected an optimal feasible trajectory subject to constraints, we can again determine the steering angle by the vehicle velocity moving along this trajectory. Figure 7 shows the graphic of the vehicle steering angle vs. the vehicle velocity subject to the hard constraint for the steering angle less than 45°. In this case, the vehicle moves along this trajectory with the maximum steering angle of 42.8547°. The new destination of the vehicle is x T N = y T N = 23.559 and this feasible trajectory is found after four interactions with n = 4 trials in (24) and (25).
The next part proposes a new quartic polynomial trajectory generation.

5. Speed Quartic Polynomial Trajectory Generation

From reference [22] of trajectory generation for a nonholonomic system, for faster and smoother feasible trajectory generation, we propose a quartic function for generating the vehicle feasible trajectory:
The vehicle dynamics in Equation (1) can be separated into four variables, z 1 , z 2 , z 3 , and z 4 .
z 1 = x ,   z 2 = t a n ϕ l c o s 3 θ ,   z 3 = t a n θ ,   and   z 4 = y
In this,
z ˙ 1 = x ˙
and
z ˙ 2 = ϕ ˙ 1 c o s 2 ϕ l c o s 3 θ + θ ˙ l 3 c o s 2 θ s i n θ t a n ϕ l 2 c o s 6 θ = v 2 l c o s 2 θ + 3 r v 1 c o s θ s i n θ s i n 2 ϕ l 2 c o s 5 θ c o s 2 ϕ
and
z ˙ 3 = t a n ϕ l c o s 2 θ r v 1
and
z ˙ 4 = y ˙ = s i n θ r v 1
The vehicle travels from the starting point x 0 , y 0 , θ 0 , ϕ 0 at time t = 0 to the destination point x T , y T , θ T , ϕ T at time t = T similarly to the system in (26) from the new starting point at z 1.0 , z 2.0 , z 3.0 , z 4.0 to the new destination point at z 1 . T , z 2 . T , z 3 . T , z 4 . T .
For 0 t T , the identification of z 1 t , z 2 t , z 3 t , z 4 t is:
z 1 t = z 1.0 + g t
and
z 2 t = z 2.0 + h 1 t + 1 2 h 2 t 2 + 1 3 h 3 t 3
and
z 3 t = z 3.0 + g z 2.0 t + 1 2 g h 1 t 2 + 1 6 g h 2 t 3 + 1 12 g h 3 t 4
and
z 4 t = z 4.0 + g z 3.0 t + 1 2 g 2 z 2.0 t 2 + 1 6 g 2 h 1 t 3 + 1 24 g 2 h 2 t 4 + 1 60 g 2 h 3 t 5
in which, g = z 1 . T z 1.0 T and [ h 1 , h 2 , h 3 ] = D 1 e , and
D = T 1 2 T 2 1 3 T 3 1 2 g T 2 1 6 g T 3 1 12 g T 4 1 6 g 2 T 3 1 24 g 2 T 4 1 60 g 2 T 5   and   e = z 2 . T z 2.0 z 3 . T z 3.0 g z 2.0 T z 4 . T z 4.0 g z 3.0 T 1 2 g 2 z 2.0 T 2
The new trajectory will be achieved from Equations (35)–(42):
θ = a r c t a n ( z 3 )
and
ϕ = a r c t a n ( z 2 l c o s 3 θ )
and
x ˙ t = z ˙ 1 t = g
and
y ˙ t = z ˙ 4 t = g z 3.0 + g 2 z 2.0 t + 1 2 g 2 h 1 t 2 + 1 8 g 2 h 2 t 3 + 1 12 g 2 h 3 t 4
and
v 1 t = x ˙ 2 t + y ˙ 2 t r
and
θ ˙ = z ˙ 3 c o s 2 θ = g z 2.0 + g h 1 t + 1 2 g h 2 t 2 + 1 3 g h 3 t 3 c o s 2 θ
and from Equation (27)
ϕ ˙ = z ˙ 2 t l c o s 3 θ c o s 2 ϕ 3 θ ˙ t a n θ s i n ϕ c o s ϕ
Figure 8 shows the new trajectory of the vehicle and the vehicle velocity.
Figure 9 shows the steering angle, ϕ , and the vehicle body angle, θ , corresponding to the angular velocity ϕ ˙ , and θ ˙ .
As shown in Figure 9, this feasible trajectory requires a maximum steering angle of ϕ M A X = 41.5736 ° and satisfied the steering angle constraint, 45 ° ϕ 45 ° . Thus, this method is better than the previous method in part 3 with ϕ M A X = 62.870 ° that violated the vehicle steering angle constraint. However, in this method, the vehicle velocity is increasing and not in a smooth curve. In reality, the speed of vehicle must be controlled under smooth changes. The next part proposes another method, which can generate smoother velocity changes.

6. Symmetric Polynomial Trajectory Generation

This part presents a new method of symmetric trajectory generation for smoother, safer, and easier to control for autonomous vehicle tracking on its trajectory. This method is based on the optimal motion planning in [23]. The vehicle moving from the start point to the destination point with the travelling time t = 0 ÷ T can be now reformulated based on a symmetric polynomial function:
x t = ( t T 1 ) 3 x 0 + t T 3 x T + a x t T 2 ( t T 1 ) + b x t T ( t T 1 ) 2
and the position of y is:
y t = ( t T 1 ) 3 y 0 + t T 3 x T + a y t T 2 ( t T 1 ) + b y t T ( t T 1 ) 2
The velocity of x t :
x ˙ t = 3 ( t T 1 ) 2 x 0 + 3 t T 2 x T + a x 2 t T ( t T 1 ) + a x t T 2 + b x ( t T 1 ) 2 + b x 2 t T ( t T 1 )
and the velocity of y t :
y ˙ t = 3 ( t T 1 ) 2 y 0 + 3 t T 2 y T + a y 2 t T ( t T 1 ) + a y t T 2 + b y ( t T 1 ) 2 + b y 2 t T ( t T 1 )
Then, the acceleration of x t
x ¨ t = 6 ( t T 1 ) x 0 + 6 t T x T + a x 2 ( 2 t T 1 ) + a x 2 t T + b x 2 ( t T 1 ) + b x 2 ( 2 t T 1 )
and the acceleration of y t
y ¨ t = 6 ( t T 1 ) y 0 + 6 t T y T + a y 2 ( 2 t T 1 ) + a y 2 t T + b y 2 ( t T 1 ) + b y 2 ( 2 t T 1 )
The vehicle velocity:
r v 1 = x ˙ c o s θ = y ˙ s i n θ
At the starting point t = 0 :
x ˙ 0 = k 0 c o s θ 0 ,   and   y ˙ 0 = k 0 s i n θ 0
At the destination point t = T :
x ˙ T = k T c o s θ T ,   and   y ˙ T = k T s i n θ T
From Equations (49) and (50), for simplicity, we assumed that the coefficients of velocity at the start and destination points, k 0 = k T = k , then
a x = k c o s θ T 3 x T ,   and   b x = k c o s θ 0 3 x 0
and similarly
a y = k s i n θ T 3 y T ,   and   b y = k s i n θ 0 3 y 0
Simulation of this method is conducted with the same vehicle parameters in previous examples and shown in Figure 10 and Figure 11. The velocity coefficients are set at k 0 = k T = k = 1 . Other parameters regarding the vehicle angular velocity, v 1 t , the vehicle body angle, θ t , the vehicle body angular velocity, θ ˙ t , the vehicle steering angle, ϕ t , and the vehicle steering angular velocity, ϕ ˙ t are calculated using the following Equations:
v 1 = x ˙ 2 + y ˙ 2 r
and
θ = a r c t a n y ˙ x ˙
and
ϕ = a r c t a n l c o s 3 θ y ¨ ( x ˙ ) 2   or   ϕ = a r c t a n l y ¨ x ˙ x ¨ y ˙ r x ˙ 2 + y ˙ 2 3 2
and
θ ˙ = y ¨ x ˙     x ¨ y ˙ x ˙ 2 1 y ˙ x ˙ 2 + 1 = y ¨ x ˙     x ¨ y ˙ x ˙ 2 + y ˙ 2 = t a n ϕ l r v 1
and
ϕ ˙ = a r c t a n l y ¨ x ˙     x ¨ y ˙ r x ˙ 2 + y ˙ 2 3 2 t
The results of this method were observed to be better than previous methods: The vehicle trajectory is smoother. The vehicle speed also increases smoothly from the starting point and reaches the maximum speed in the middle of the trajectory. Then, the speed is reduced as the vehicle moves to the destination point, as is shown in Figure 10.
This method appears to be more realistic and controls the vehicle tracking in its trajectory more easily. The body and steering angle and the angular velocity are shown in Figure 11.
As shown in Figure 11, the maximum steering angle for this method is ϕ = 40.1622 ° and is better than the method in part 5 with ϕ = 41.5736 ° . Therefore, the trajectory in Figure 10 is smoother and safer than the previous methods. The next part presents the performance comparisons of all three methods.

7. Performances Comparison

The comparison of performances for all three methods is shown in Figure 12 and Figure 13 for trajectory curves, velocities, the steering angle/velocity, and the body angle/velocity.
Figure 12 shows the feasible trajectory of the symmetric polynomial method is the smoothest, and the velocity of this method is also symmetrical, increasing from 0 and reducing to 0. Therefore, this method is useful in the application of auto-parking systems.
Figure 13 shows the comparison of the body and steering angles and angular velocity. This symmetric method also provides the smoothest curve of the body and steering angles and velocity.
A vehicle’s feasible trajectories are the continuous segments connected to each other along the vehicle’s feasible path. All trajectories are required to join each other smoothly and continuously. The control of vehicle tracking along its feasible trajectories is performed by the control of the vehicle velocity and the steering angle. The following are the simulations of a vehicle’s auto-parking performance with the symmetric polynomial trajectory generated from a starting point of x(0), y(0) to a destination point of x(−6), y(3). Figure 14 shows the vehicle moving in reverse and the steering angle ϕ moving from positive to negative and returning to 0 position. The steering angle, 45 ° ϕ 45 ° , satisfied the constraint as per the vehicle dynamic moving in reverse in Equation (2).
Simulations for the vehicle moving in reverse speeds are also displayed in Figure 15. As mentioned in Equation (2), the reverse speed is a negative sign. Then the velocity coefficients in Equations (51) and (52) must be negative values. Simulations for the vehicle in reverse speeds are conducted with the symmetric polynomial method. The velocity coefficients are assigned for k 0 = k T = k = 1 .
Since this simulation assigns the vehicle reversing at the start, for k 0 = 1 , and at the destination, for k T 1 , Figure 15 shows the vehicle reversing at the starting point then moving forward to the destination, then reversing to the destination. The vehicle velocities change the sign three times accordingly.
All three methods of feasible trajectory generation subject to vehicle constraints and environmental limitations are presented and illustrated with simulations. The next part outlines the conclusions and recommendations drawn from this paper.

8. Conclusions

This paper presents three methods of the position quintic polynomial, the speed quartic polynomial, and the symmetric polynomial function for vehicle trajectory generation subject to a vehicle’s physical and environment constraints regarding the real vehicle parameters and the real vehicle dynamics. The feasible trajectory subject to constraints can be achieved online to smoothen the steering angle and the vehicle speed. The optimal trajectory is selected based on the shortest distance, the lowest steering angle, and the minimal tracking error. Simulations for each method are presented and compared. Results show that the symmetric polynomial trajectory generation produces a smoother curve and symmetric vehicle velocity. Therefore, this method can be applied to the design of vehicle auto-parking systems. Due to the size of this paper, the vehicle tracking errors are still not presented. The next study will concentrate on control methods to minimize vehicle tracking errors along their trajectories in the fastest time subject to the vehicle’s physical constraints and environmental limitations.

Author Contributions

Conceptualization, T.M.V.; methodology, T.M.V.; formal analysis, T.M.V. and R.M.; writing—original draft preparation, T.M.V. and R.M.; writing—review and editing, R.M. and J.C.; supervision, J.H. and M.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Ministry of Education, Youth, and Sports in Czechia and the European Union in the framework of the project “Modular platform for autonomous chassis of specialized electric vehicles for freight and equipment transportation” grant number CZ.02.1.01/0.0/0.0/16_025/0007293. And the APC was funded by CZ.02.1.01/0.0/0.0/16_025/0007293.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data are available from the corresponding author upon request.

Acknowledgments

The authors would like to thank Technical University of Liberec for Student Grant Scheme, project number SGS-2021-3059.

Conflicts of Interest

The authors would like to declare that there is no conflict of interest regarding the publication of this research article.

References

  1. Minh, V.T. Advanced Vehicle Dynamics; Universiti of Malaya Press: Kuala Lumpur, Malaysia, 2012; p. 265. ISBN 9789831005446 9831005449. [Google Scholar]
  2. Minh, V.T.; Pumwa, J. Feasible Path Planning for Autonomous Vehicles. Math. Probl. Eng. 2014, 2014, 317494. [Google Scholar] [CrossRef]
  3. Muhamad, W.M.W. Vehicle Steering Dynamic Calculation and Simulation. Int. J. Innov. Technol. Interdiscip. Sci. 2019, 2, 87–97. [Google Scholar] [CrossRef]
  4. Minh, V.T.; Hashim, F.B.M. Tracking Setpoint Robust Model Predictive Control for Input Saturated and Softened State Constraints. Int. J. Control Autom. Syst. 2011, 9, 958–965. [Google Scholar] [CrossRef]
  5. Deshpande, P.; Amrutsamanvar, R.; Subramanian, S.C. Vehicle Path Generation and Tracking in Mixed Road Traffic. IFAC-PapersOnLine 2020, 53, 524–529. [Google Scholar] [CrossRef]
  6. Xu, W.; Sainct, R.; Gruyer, D.; Orfila, O. Safe Vehicle Trajectory Planning in an Autonomous Decision Support Framework for Emergency Situations. Appl. Sci. 2021, 11, 6373. [Google Scholar] [CrossRef]
  7. Rossi, L.; Ajmar, A.; Paolanti, M.; Pierdicca, R. Vehicle Trajectory Prediction and Generation using LSTM Models and GANs. PLoS ONE 2021, 16, e0253868. [Google Scholar] [CrossRef]
  8. Wei, C.; Li, S. Planning a Continuous Vehicle Trajectory for an Automated Lane Change Maneuver by Nonlinear Programming considering Car-Following Rule and Curved Roads. J. Adv. Transp. 2020, 2020, 8867447. [Google Scholar] [CrossRef]
  9. Michaelis, C.; Lehr, A.B.; Tetzlaff, C. Robust Trajectory Generation for Robotic Control on the Neuromorphic Research Chip Loihi. Front. Neurorobot. 2020, 14, 589532. [Google Scholar] [CrossRef]
  10. Minh, V.T.; Moezzi, R.; Dhoska, K.; Pumwa, J. Model Predictive Control for Autonomous Vehicle Tracking. Int. J. Innov. Technol. Interdiscip. Sci. 2021, 4, 560–603. [Google Scholar]
  11. Liu, Z.; Liu, N.; Wang, H.; Tian, S.; Bai, N.; Zhang, F.; Cui, L. A New Type of Industrial Robot Trajectory Generation Component Based on Motion Modularity Technology. J. Robot. 2020, 2020, 3196983. [Google Scholar] [CrossRef]
  12. Zhang, H.; Qiu, H.; Zhang, X.; Hu, P. Recent Advances on Manipulator Trajectory Planning Methods. Recent Pat. Mech. Eng. 2020, 13, 303–327. [Google Scholar] [CrossRef]
  13. Zhang, B.; Zhu, D. A new method on motion planning for mobile robots using jump point search and Bezier curves. Int. J. Adv. Robot. Syst. 2021, 18, 1–11. [Google Scholar] [CrossRef]
  14. Zou, Q. Robust and efficient tool path generation for machining low-quality triangular mesh surfaces. Int. J. Prod. Res. 2020, 2020, 1–20. [Google Scholar] [CrossRef]
  15. Wang, M.; Xiao, J.; Fan, Z.; Wang, G. Research on Optimized Time-Synchronous Online Trajectory Generation Method for a Robot Arm. Robot. Auton. Syst. 2020, 126, 103453. [Google Scholar] [CrossRef]
  16. Yu, L.; Kong, D.; Yan, X. A Driving Behaviour Planning and Trajectory Generation Method for Autonomous Electric Bus. Future Internet 2018, 10, 51. [Google Scholar] [CrossRef] [Green Version]
  17. Minh, V.T.; Afzulpurkar, N.; Muhamad, W. Fault Detection Model-based Controller for Process Systems. Asian J. Control 2011, 13, 382–397. [Google Scholar] [CrossRef]
  18. Minh, V.T.; Hashim, F.B.M.; Awang, M. Development of a Real-time Clutch Transition Strategy for a Parallel Hybrid Electric Vehicle. J. Syst. Control Eng. 2011, 13, 382–397. [Google Scholar] [CrossRef]
  19. Xu, W.; Wei, J.; Dolan, J.M.; Zhao, H.; Zha, H. A Real-Time Motion Planner with Trajectory Optimization for Autonomous Vehicles. In Proceedings of the IEEE International Conference on Robotics and Automation, Saint Paul, MN, USA, 14–18 May 2012. [Google Scholar]
  20. Nolte, M.; Rose, M.; Stolte, T.; Maurer, M. Model Predictive Control Based Trajectory Generation for Autonomous Vehicles—An Architectural Approach. In Proceedings of the IEEE Intelligent Vehicles Symposium, Los Angeles, CA, USA, 11–14 June 2017; pp. 798–805. [Google Scholar]
  21. L’evine, J. Analysis and Control of Nonlinear Systems: A Flatness-Based Approach, 1st ed.; Springer: Berlin/Heidelberg, Germany, 2009. [Google Scholar]
  22. Dong, W.; Guo, Y. New trajectory generation methods for nonholonomic mobile robots. In Proceedings of the International Symposium on Collaborative Technologies and Systems 2005, Saint Louis, MO, USA, 20–20 May 2005; pp. 353–358. [Google Scholar]
  23. Gomez, M.; González, V.; Martínez-Marín, T.; Meziat, D.; Sánchez, S. Optimal motion planning by reinforcement learning in autonomous mobile vehicles. Robotica 2012, 30, 159–170. [Google Scholar] [CrossRef]
  24. Zhang, W. A robust lateral tracking control strategy for autonomous driving vehicles. Mech. Syst. Signal Process. 2021, 150, 107238. [Google Scholar] [CrossRef]
  25. Ahn, T.; Lee, Y.; Park, K. Design of Integrated Autonomous Driving Control System That Incorporates Chassis Controllers for Improving Path Tracking Performance and Vehicle Stability. Electronics 2021, 10, 144. [Google Scholar] [CrossRef]
  26. Fényes, D.; Németh, B.; Gáspár, P. A Novel Data-Driven Modeling and Control Design Method for Autonomous Vehicles. Energies 2021, 14, 517. [Google Scholar] [CrossRef]
  27. Minh, V.T.; Tamre, M.; Musalimov, V.; Kovalenko, P.; Rubinshtein, I.; Ovchinnikov, I.; Moezzi, R. Simulation of Human Gait Movements. Int. J. Innov. Technol. Interdiscip. Sci. 2020, 3, 326–345. [Google Scholar]
  28. Minh, V.T.; Afzulpurkar, N.; Muhamad, W.M.W. Fault detection and control of process systems. Math. Probl. Eng. 2007, 2007, 080321. [Google Scholar] [CrossRef]
  29. Minh, V.T. Automatic Control of Clutch Engagement and Slip for Hybrid Vehicle. Int. J. Innov. Technol. Interdiscip. Sci. 2019, 2, 49–61. [Google Scholar]
  30. Ovchinnikov, I.; Kovalenko, P. Predictive Control Model to Simulate Humanoid Gait. Int. J. Innov. Technol. Interdiscip. Sci. 2019, 1, 9–17. [Google Scholar]
  31. Pumwa, J. Time Variant Predictive Control of Autonomous Vehicles. Int. J. Innov. Technol. Interdiscip. Sci. 2019, 2, 62–77. [Google Scholar]
Figure 1. Vehicle kinematic diagram.
Figure 1. Vehicle kinematic diagram.
Applsci 11 11143 g001
Figure 2. Vehicle trajectory and the velocity.
Figure 2. Vehicle trajectory and the velocity.
Applsci 11 11143 g002
Figure 3. Vehicle body and the steering.
Figure 3. Vehicle body and the steering.
Applsci 11 11143 g003
Figure 4. Constraints of front wheel angle vs. the vehicle speed.
Figure 4. Constraints of front wheel angle vs. the vehicle speed.
Applsci 11 11143 g004
Figure 5. Vehicle trajectories with different steering angles.
Figure 5. Vehicle trajectories with different steering angles.
Applsci 11 11143 g005
Figure 6. Different maximum steering angles performance.
Figure 6. Different maximum steering angles performance.
Applsci 11 11143 g006
Figure 7. Vehicle velocity vs. the steering angle.
Figure 7. Vehicle velocity vs. the steering angle.
Applsci 11 11143 g007
Figure 8. Vehicle trajectory vs. velocity.
Figure 8. Vehicle trajectory vs. velocity.
Applsci 11 11143 g008
Figure 9. Steering and the body angle.
Figure 9. Steering and the body angle.
Applsci 11 11143 g009
Figure 10. Vehicle trajectory and velocity.
Figure 10. Vehicle trajectory and velocity.
Applsci 11 11143 g010
Figure 11. Body and steer angle.
Figure 11. Body and steer angle.
Applsci 11 11143 g011
Figure 12. Comparison of trajectory and velocity.
Figure 12. Comparison of trajectory and velocity.
Applsci 11 11143 g012
Figure 13. Comparison of body and steer angles.
Figure 13. Comparison of body and steer angles.
Applsci 11 11143 g013
Figure 14. Auto-parking simulation with symmetric method.
Figure 14. Auto-parking simulation with symmetric method.
Applsci 11 11143 g014
Figure 15. Trajectory with reverse velocity.
Figure 15. Trajectory with reverse velocity.
Applsci 11 11143 g015
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Vu, T.M.; Moezzi, R.; Cyrus, J.; Hlava, J.; Petru, M. Feasible Trajectories Generation for Autonomous Driving Vehicles. Appl. Sci. 2021, 11, 11143. https://doi.org/10.3390/app112311143

AMA Style

Vu TM, Moezzi R, Cyrus J, Hlava J, Petru M. Feasible Trajectories Generation for Autonomous Driving Vehicles. Applied Sciences. 2021; 11(23):11143. https://doi.org/10.3390/app112311143

Chicago/Turabian Style

Vu, Trieu Minh, Reza Moezzi, Jindrich Cyrus, Jaroslav Hlava, and Michal Petru. 2021. "Feasible Trajectories Generation for Autonomous Driving Vehicles" Applied Sciences 11, no. 23: 11143. https://doi.org/10.3390/app112311143

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