research article feasible path planning for autonomous ...path planning is one of the most important...

13
Research Article Feasible Path Planning for Autonomous Vehicles Vu Trieu Minh 1 and John Pumwa 2 1 Department of Mechatronics, Tallinn University of Technology, Ehitajate tee 5, 19086Tallinn, Estonia 2 Department of Mechanical Engineering, Papua New Guinea University of Technology, Lae 411, Papua New Guinea Correspondence should be addressed to Vu Trieu Minh; [email protected] Received 8 January 2014; Revised 10 February 2014; Accepted 11 February 2014; Published 18 March 2014 Academic Editor: Sivaguru Ravindran Copyright © 2014 V. T. Minh and J. Pumwa. is is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. e objective of this paper is to find feasible path planning algorithms for nonholonomic vehicles including flatness, polynomial, and symmetric polynomial trajectories subject to the real vehicle dynamical constraints. Performances of these path planning methods are simulated and compared to evaluate the more realistic and smoother generated trajectories. Results show that the symmetric polynomial algorithm provides the smoothest trajectory. erefore, this algorithm is recommended for the development of an automatic control for autonomous vehicles. 1. Introduction Path planning is one of the most important parts of an autonomous vehicle. It deals with, searching a feasible path, taking into consideration the geometry of the vehicle and its surroundings, the kinematic constraints and others that may affect the feasible paths. Study of this paper can be used to develop a real-time control system for autonomous ground vehicles which can track exactly on any feasible paths from the global positioning system (GPS) maps or/and from unmanned aerial vehicle (UAV) images. is system can be also applied to autonomous unmanned ground vehicles (on road or off road) and autoparking and autodriving systems. e main idea of this paper is a system which can automatically generate an optimal feasible trajectory and then control the vehicle to track exactly on this path from any given starting points to any given destination points from a map subject to the vehicle physical constraints on obstacles, speed, steering angle, and so forth. From the existed pieces of literature on this research topic, there are still few research papers dealing with optimal trajectory generation subject to real automotive engineering constraints. Basic studies on the flatness, nonholonomic, and nonlinear systems can be read from the recent book of L´ evine in [1] where the fundamental motion planning of a vehicle is presented. e flatness and controllability conditions for this nonlinear system are also well investigated and defined. However, in this research, parking simulation of a two-trailer vehicle is also demonstrated but without the constraint of steering angle and steering angular velocity. e problem of trajectory generation for nonholonomic system is also presented by Dong and Guo in [2] where two trajectory generation methods are proposed. e control inputs are the second-order polynomial equations. By inte- grating those control inputs, coefficients for those second- order polynomial equations are found. However this paper is lacking constraint analysis on the vehicle velocity and the steering angle. e cell mapping techniques and reinforcement learning methods to obtain the optimal motion planning by Gomez et al. in [3] are tested for vehicles considering kinematics, dynamics, and obstacle constraints. is paper shows a simulation of a wheeled mobile robot moving on a path generated by the bang-bang trajectory generation. And the paper does not mention the algorithms used for generating the vehicle trajectory. Several other research papers on optimal trajectories and control of autonomous vehicles can be read in [47]; however, most of those studies are based on the real traffic flow roads and the control algorithms are to perform the maneuver tasks such as lane changing, merging, distance keeping, velocity keeping, stopping, and collision avoidance. is paper, therefore, focuses on the applicable algo- rithms to generate feasible trajectories from a starting point Hindawi Publishing Corporation Mathematical Problems in Engineering Volume 2014, Article ID 317494, 12 pages http://dx.doi.org/10.1155/2014/317494

Upload: others

Post on 26-Jan-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

  • Research ArticleFeasible Path Planning for Autonomous Vehicles

    Vu Trieu Minh1 and John Pumwa2

    1 Department of Mechatronics, Tallinn University of Technology, Ehitajate tee 5, 19086Tallinn, Estonia2Department of Mechanical Engineering, Papua New Guinea University of Technology, Lae 411, Papua New Guinea

    Correspondence should be addressed to Vu Trieu Minh; [email protected]

    Received 8 January 2014; Revised 10 February 2014; Accepted 11 February 2014; Published 18 March 2014

    Academic Editor: Sivaguru Ravindran

    Copyright © 2014 V. T. Minh and J. Pumwa. This is an open access article distributed under the Creative Commons AttributionLicense, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properlycited.

    Theobjective of this paper is to find feasible path planning algorithms for nonholonomic vehicles including flatness, polynomial, andsymmetric polynomial trajectories subject to the real vehicle dynamical constraints. Performances of these path planning methodsare simulated and compared to evaluate the more realistic and smoother generated trajectories. Results show that the symmetricpolynomial algorithm provides the smoothest trajectory. Therefore, this algorithm is recommended for the development of anautomatic control for autonomous vehicles.

    1. Introduction

    Path planning is one of the most important parts of anautonomous vehicle. It deals with, searching a feasible path,taking into consideration the geometry of the vehicle andits surroundings, the kinematic constraints and others thatmay affect the feasible paths. Study of this paper can beused to develop a real-time control system for autonomousground vehicles which can track exactly on any feasible pathsfrom the global positioning system (GPS) maps or/and fromunmanned aerial vehicle (UAV) images. This system can bealso applied to autonomous unmanned ground vehicles (onroad or off road) and autoparking and autodriving systems.

    The main idea of this paper is a system which canautomatically generate an optimal feasible trajectory and thencontrol the vehicle to track exactly on this path fromany givenstarting points to any given destination points from a mapsubject to the vehicle physical constraints on obstacles, speed,steering angle, and so forth.

    From the existed pieces of literature on this researchtopic, there are still few research papers dealing with optimaltrajectory generation subject to real automotive engineeringconstraints. Basic studies on the flatness, nonholonomic, andnonlinear systems can be read from the recent book of Lévinein [1] where the fundamental motion planning of a vehicleis presented. The flatness and controllability conditions forthis nonlinear system are also well investigated and defined.

    However, in this research, parking simulation of a two-trailervehicle is also demonstrated but without the constraint ofsteering angle and steering angular velocity.

    The problem of trajectory generation for nonholonomicsystem is also presented by Dong and Guo in [2] wheretwo trajectory generation methods are proposed.The controlinputs are the second-order polynomial equations. By inte-grating those control inputs, coefficients for those second-order polynomial equations are found. However this paperis lacking constraint analysis on the vehicle velocity and thesteering angle.

    The cell mapping techniques and reinforcement learningmethods to obtain the optimal motion planning by Gomezet al. in [3] are tested for vehicles considering kinematics,dynamics, and obstacle constraints. This paper shows asimulation of a wheeled mobile robot moving on a pathgenerated by the bang-bang trajectory generation. And thepaper does not mention the algorithms used for generatingthe vehicle trajectory. Several other research papers onoptimal trajectories and control of autonomous vehicles canbe read in [4–7]; however, most of those studies are based onthe real traffic flow roads and the control algorithms are toperform the maneuver tasks such as lane changing, merging,distance keeping, velocity keeping, stopping, and collisionavoidance.

    This paper, therefore, focuses on the applicable algo-rithms to generate feasible trajectories from a starting point

    Hindawi Publishing CorporationMathematical Problems in EngineeringVolume 2014, Article ID 317494, 12 pageshttp://dx.doi.org/10.1155/2014/317494

  • 2 Mathematical Problems in Engineering

    to any destination point subject to vehicle constraints. Thispaper refers to the vehicle sideslip model and estimation byMinh in [8, chapter 8].The nonlinear computational schemesfor the nonlinear systems are referred to by Minh andAfzulpurkur in [9]. Although the holonomic dynamical tra-jectories generation is not new, recent research articles havetried to develop those trajectories in different applications.Trajectory for autonomous ground vehicles based on Beziercurves operating under waypoints and corridor constraintscan be referred to by Choi et al. in [10] and a real-timetrajectory generation for car-like vehicles navigating dynamicenvironments can be read by Delsart et al. in [11]. A newpaper of trajectory generation model-based IMM trackingfor safe driving in intersection scenario can be read by Zhouet al. in [12] to reduce traffic accidents at intersections.Another paper of dynamic trajectory generation for wheeledrobots is referred to by Missura and Behnke in [13] wherea dynamic motion of wheeled robots can be determined inreal-time onboard.The real vehiclemodels and conditions forstabilizability of dynamic systems are referred to in [14, 15].

    This paper introduces three (flatness, polynomial, andsymmetric) conventional holonomic trajectories generationsubject to steering angle constraint for autonomous vehicles.Performances of these three algorithms are compared. Datataken from simulation on the vehicle longitudinal velocityand its steering angular velocity will be used to develop thecontrol algorithms for the vehicle tracking on those trajecto-ries in the next part of this paper. The outline of this paper isas follows. Section 2 describes the kinematicmodel; Section 3presents the flatness method; Section 4 produces the trajec-tory generation subject steering angle constrained violation;Section 5 presents the polynomial method; Section 6 devel-ops the symmetric polynomial method; Section 7 analysesthe performance of the three methods; finally conclusion isdrawn in Section 8. Simulations in this paper are conductedin the MATLAB Simulink R2009a.

    2. Kinematic Model of a Vehicle

    The constraints for this vehicle model are based on theassumption that the wheels are rolling without slipping andthe steering angle is simplified as a single wheel in themidpoint of the two frond wheels. Then, a kinematic modelof a vehicle can be drawn in Figure 1.

    The kinematic model of a forward rear-wheel drivingvehicle can be written as

    [[[[

    �̇�̇𝑦̇𝜃

    �̇�

    ]]]]=[[[[[

    cos 𝜃sin 𝜃tan𝜑𝑙0

    ]]]]]

    𝑟V1+ [[[[

    0001

    ]]]]V2, (1)

    where 𝑋 = [𝑥, 𝑦, 𝜃, 𝜑] is the system state variables, (𝑥, 𝑦)are the Cartesian coordinates of the middle point of the rearwheel axis, 𝜃 is the angle of the vehicle body to the 𝑥-axis,𝜑 is the steering angle, 𝑙 is the vehicle wheel base, 𝑟 is thewheel radius, V

    1is the angular velocity of the rear wheel,

    and V2is the angular steering velocity. Given the initial state

    𝑋(0) = [𝑥0, 𝑦0, 𝜃0, 𝜑0] at time 𝑡 = 0 and the final state

    y

    y

    xx

    𝜃

    𝜑

    l

    r

    Figure 1: A simplified vehicle model.

    𝑋(𝑇) = [𝑥𝑇, 𝑦𝑇, 𝜃𝑇, 𝜑𝑇] at time 𝑡 = 𝑇, the paper generates

    a feasible trajectory for this vehicle.Similarly, the model for a forward front-wheel driving

    vehicle is presented as

    [[[[

    �̇�̇𝑦̇𝜃

    �̇�

    ]]]]=[[[[[

    cos 𝜃 cos𝜑sin 𝜃 cos𝜑

    tan𝜑𝑙0

    ]]]]]

    𝑟V1+ [[[[

    0001

    ]]]]V2. (2)

    The model for a forward rear-wheel driving vehicle in (1)will be used for all calculations and simulations in this paper.From this kinematic model, flatness equations for the vehicletrajectory generation are presented in the next section.

    3. Vehicle Flatness Trajectory Generation

    The flatness system is the system of nonlinear differentialequations in (1) whose movement curves are in smooth andflat space. From Figure 1, the vehicle angular velocity can becalculated as

    V1=√�̇�2 + ̇𝑦2

    𝑟 .(3)

    Transforming from (1), the vehicle body angle is

    𝜃 = arctan( ̇𝑦�̇�) . (4)

    From the derivative of the above trigonometric, 𝜃, the bodyangular velocity, ̇𝜃, is achieved as follows:

    ̇𝜃 = ̈𝑦�̇� − �̈� ̇𝑦�̇�21

    ( ̇𝑦/�̇�)2 + 1= ̈𝑦�̇� − �̈� ̇𝑦�̇�2 + ̇𝑦2 =

    tan𝜑𝑙 𝑟V1. (5)

    Therefore, 𝜃 and 𝜑 can be directly calculated from variables:�̇�, �̈�, and ̇𝑦, ̈𝑦. And it means that the above system is flat [1].Thus, all state and input variables can be presented by the flatoutputs 𝑥 and 𝑦.

  • Mathematical Problems in Engineering 3

    From (5), the boundary conditions for the outputs 𝑥 and𝑦 are

    𝜕2𝑦𝜕𝑥2 =

    tan𝜑𝑙cos3𝜃 .

    (6)

    The initial state at time, 𝑡 = 0, to the final state at time, 𝑡 = 𝑇,for 𝑥(𝑡), is

    𝑥 (0) = 𝑥0, 𝑥 (𝑇) = 𝑥

    𝑇. (7)

    The initial state for 𝑦(𝑡) = 𝑦(0) is

    𝑦 (0) = 𝑦0= tan 𝜃

    0⇒ 𝜕

    2𝑦𝜕𝑥2

    𝑡=0= tan𝜑0𝑙cos3𝜃

    0

    . (8)

    The final state for 𝑦(𝑡) = 𝑦(𝑇) is

    𝑦 (𝑇) = 𝑦𝑇= tan 𝜃

    𝑇⇒ 𝜕

    2𝑦𝜕𝑥2

    𝑡=𝑇= tan𝜑𝑇𝑙cos3𝜃

    𝑇

    . (9)

    From the initial state (𝑥0, 𝑦0, 𝜃0, 𝜑0) at the time 𝑡 = 0 to the

    final state (𝑥𝑇, 𝑦𝑇, 𝜃𝑇, 𝜑𝑇), under a real condition that |�̇�(𝑡)| ≥

    𝜀 > 0, if it is assumed that = |𝑥𝑇− 𝑥0|/2𝑇 > 0, the trajectory

    of 𝑥(𝑡) can be written freely as

    𝑥 (𝑡) = (𝑇 − 𝑡𝑇 ) 𝑥0 +𝑡𝑇𝑥𝑇 +

    𝑥𝑇 − 𝑥0𝑡 (𝑡 − 𝑇)2𝑇2 . (10)

    And the trajectory of 𝑦(𝑡) can be selected as

    𝑦 (𝑡) = 𝑦0+ 𝑡𝛼1tan 𝜃0+ 𝑡2 𝛼2 tan𝜑02𝑙cos3𝜃

    0

    + 𝑡3𝑏1+ 𝑡4𝑏2+ 𝑡5𝑏3,(11)

    where 𝛼1= (2(𝑥

    𝑇−𝑥0)−|𝑥𝑇−𝑥0|)/2𝑇, 𝛼

    2= |𝑥𝑇−𝑥0|/𝑇2, and

    𝛼3= (2(𝑥

    𝑇− 𝑥0) + |𝑥𝑇− 𝑥0|)/2𝑇; and 𝑏 = [𝑏

    1, 𝑏2, 𝑏3] = 𝐴−1𝑐

    with

    𝐴 = [[

    𝑇3 𝑇4 𝑇53𝑇2 4𝑇3 5𝑇46𝑇 12𝑇2 20𝑇3

    ]],

    𝑐 =

    [[[[[[[[[

    𝑦𝑇− 𝑦0− 𝑇𝛼1tan 𝜃0− 𝑇2𝛼2 tan𝜑02𝑙cos3𝜃

    0

    𝛼3tan 𝜃𝑇− 𝛼1tan 𝜃0− 𝑇𝛼2 tan𝜑0𝑙cos3𝜃

    0

    𝛼2tan𝜑𝑇

    𝑙cos3𝜃𝑇

    − 𝛼2 tan𝜑0𝑙cos3𝜃0

    ]]]]]]]]]

    .

    (12)

    From (10),

    𝜃 = arctan(2𝑇2 (𝛼1tan 𝜃0+ 𝛼2 tan𝜑0𝑙cos3𝜃

    0

    𝑡

    +3𝑏1𝑡2 + 4𝑏

    2𝑡3 + 5𝑏

    3𝑡4)

    × (2𝑇 (𝑥𝑇− 𝑥0)

    − 𝑇 𝑥𝑇 − 𝑥0 + 2 𝑥𝑇 − 𝑥0 𝑡)−1)

    (13)

    And, from (5),

    𝜑 = arctan((𝛼2 tan𝜑0𝑙cos3𝜃0

    + 6𝑏1𝑡 + 12𝑏

    2𝑡2 + 20𝑏

    3𝑡3)

    × (2𝑇2)2𝑙cos3𝜃

    × ( (2𝑇 (𝑥𝑇− 𝑥0)

    −𝑇 𝑥𝑇 − 𝑥0 + 2 𝑥𝑇 − 𝑥0 𝑡)2)−1) .

    (14)

    The angular velocity of the vehicle in (1) can be calculatedfrom (13) and (14).

    For derivative of 𝑦,

    ̇𝑦 (𝑡) = (𝛼1tan 𝜃0+ 𝛼2 tan𝜑0𝑙cos3𝜃

    0

    𝑡 + 3𝑏1𝑡2 + 4𝑏

    2𝑡3 + 5𝑏

    3𝑡4)(15)

    and, then,

    ̈𝑦 (𝑡) = (𝛼2 tan𝜑0𝑙cos3𝜃0

    + 6𝑏1𝑡 + 12𝑏

    2𝑡2 + 20𝑏

    3𝑡3) (16)

    and derivative of 𝑥 is

    �̇� (𝑡) = ((2𝑇 (𝑥𝑇 − 𝑥0) − 𝑇𝑥𝑇 − 𝑥0 + 2 𝑥𝑇 − 𝑥0 𝑡)2𝑇2 )

    (17)

    And, then,

    �̈� (𝑡) = (𝑥𝑇 − 𝑥0

    𝑇2 ) . (18)

    The absolute vehicle velocity can be calculated from (15) to(18) with

    V1(𝑡) =

    √�̇�2 + ̇𝑦2𝑟

    (19)

    or with another formula to calculate V1(𝑡) is V

    1(𝑡) =

    (�̇�(𝑡) cos 𝜃/𝑟) + ( ̇𝑦(𝑡) sin 𝜃/𝑟)); then

    V1(𝑡) = ((2𝑇 (𝑥𝑇 − 𝑥0) − 𝑇

    𝑥𝑇 − 𝑥0 + 2 𝑥𝑇 − 𝑥0 𝑡)2𝑟𝑇2 )

    × cos 𝜃 + ((𝛼1tan 𝜃0+ 𝛼2 tan𝜑0𝑙cos3𝜃

    0

    + 3𝑏1𝑡2

    + 4𝑏2𝑡3 + 5𝑏

    3𝑡4) sin 𝜃× (𝑟)−1) .

    (20)

    To calculate ̇𝜃 from (5),

    ̇𝜃 = ̈𝑦�̇� − �̈� ̇𝑦�̇�2 + ̇𝑦2 =tan𝜑𝑙 𝑟V1. (21)

  • 4 Mathematical Problems in Engineering

    0 1 2 3 4 5 6 7 8 9 100

    5

    10

    Posit

    ion y

    Position x

    0 10 20 30 40 50 60 70 80 90 1000

    1

    2

    3

    4

    Time t

    Vehi

    cle v

    eloc

    ity�1

    (km

    )

    Figure 2: Trajectory and velocity.

    To calculate V2(𝑡) = �̇�, from (14), if 𝜑 = arctan(𝑋), then,

    �̇� = �̇� ( 11 + 𝑋2 ) with

    𝑋 = ((𝛼2 tan𝜑0𝑙cos3𝜃0

    + 6𝑏1𝑡 + 12𝑏

    2𝑡2 + 20𝑏

    3𝑡3) (2𝑇2)2𝑙cos3𝜃

    × ( (2𝑇 (𝑥𝑇− 𝑥0)

    − 𝑇 𝑥𝑇 − 𝑥0 + 2 𝑥𝑇 − 𝑥0 𝑡)2)−1) .

    (22)

    Another formula to calculate V2(𝑡) = �̇�which is derived from

    (5) is

    �̇� = 𝜕(𝑙 ̈𝑦�̇� − �̈� ̇𝑦𝑟(�̇�2 + ̇𝑦2)3/2

    )

    ×( 11 + (𝑙 ( ̈𝑦�̇� − �̈� ̇𝑦/𝑟(�̇�2 + ̇𝑦2)3/2))2

    ).(23)

    Simulation for this flatness technique and all other simu-lations for different path planning algorithms in this paperare conducted with the vehicle’s parameters of 𝑙 = 2m and𝑟 = 0.25m; the vehicle initial state at time 𝑡 = 0 is 𝑥(0) =[𝑥0, 𝑦0, 𝜃0, 𝜑0] = [0, 0, 0, 0]; the vehicle final state at time

    𝑡 = 𝑇 = 100 is 𝑥(𝑇) = [𝑥𝑇, 𝑦𝑇, 𝜃𝑇, 𝜑𝑇] = [10, 10, 0, 𝜋/6].

    Figure 2 shows the trajectory (𝑥, 𝑦) for the vehicle fromthe initial position to the final position and its velocity.Figure 3 shows the vehicle body angle, 𝜃, and the steeringangle, 𝜑, corresponding to their angular velocities, ̇𝜃 and �̇�.

    Themaximum steering angle for this movement is 𝜑max =64∘; it exceeds the physical constraint of steering angle with−45∘ ≤ 𝜑max ≤ 45∘. Therefore, the above trajectory is notfeasible. The problem is that the distance from the startingpoint to the destination point is too short subject to the realvehicle physical constraints. A solution for this problem is tolengthen the travelling distance until it meets the constrainton steering angle. This issue is discussed in the next section.

    4. Trajectory Subject toSteering Angle Constraint

    The maximum steering angle of a vehicle depends on its realstructure space anddesign. In this paper, it is assumed that thereal structure constraint for the vehicle is (−𝜋/4) ≤ 𝜑 ≤ 𝜋/4or the maximum steering angle for this vehicle is in a rangeof −45∘ ≤ 𝜑 ≤ 45∘:

    −𝜋4 ≤ 𝜑 ≤𝜋4 . (24)

    Simulation in the previous part shows the maximum steeringangle, 𝜑max = 64∘, exceeding the limitation in (24).Therefore,a new technique for the vehicle trajectory generation subjectthe constraint in (25) is proposed.

    For time 𝑡 from initial state, 𝑡 = 0, to the final state, 𝑡 = 𝑇,the feasible trajectories 𝑥(𝑡) and 𝑦(𝑡) subject to conditions in(10) and (11) can be generated. During the progress of timing,𝑡, recalculate the steering angle, 𝜑, in (14) and then checkfor the steering constraint in (24). If the constraint in (24) isviolated, the distance from the initial position (𝑥

    0, 𝑦0) to the

    final position (𝑥𝑇, 𝑦𝑇) is too short for satisfying the steering

    angle limit.In this case, it is proposed that to lengthen the distance

    𝑑0= √(𝑥

    𝑇− 𝑥0)2 + (𝑦

    𝑇− 𝑦0)2 to a new distance,

    𝑑𝑁𝑖= 𝜌𝑖𝑑0

    with 𝜌 > 1 (25)for 𝑖 = 1, 2, 3, . . . 𝑛 until the constraint in (24) is satisfied andwith 𝜌 being an amplification coefficient, 𝜌 > 1.

    Then the new coordinates are

    𝑥𝑇𝑁

    = 𝜌𝑛 (𝑥𝑇− 𝑥0) , 𝑦

    𝑇𝑁= 𝜌𝑛 (𝑦

    𝑇− 𝑦0) . (26)

    The next simulation is done with the same parameters in theprevious part and subject to the constraint in (24) with anamplification coefficient 𝜌 = 1.1. The constraint in (24) willbe satisfied after 𝑛 = 4 iterations.Thenew coordinate is𝑥

    𝑇𝑁=

    𝑦𝑇𝑁

    = 23.579.Figure 4 shows the new trajectory and new velocity of the

    vehicle with the new lengthened distance. The velocity of thevehicle is increased since the final time 𝑇 is not changed.

    Figure 5 shows the new vehicle body angle, 𝜃, velocity, ̇𝜃,steering angle, 𝜑, and velocity, �̇�, for the new trajectory. Thenew steering angle has now satisfied the constraint 𝜑 = 40∘.

    Due to the size of this paper, the sideslip of the vehiclemodel is ignored. In reality, the sideslip of a vehicle dependson the tire stiffness and the cornering velocity. Then thetrajectory generation in this study does not depend on thevehicle velocity. In the next part, a new vehicle trajectorygeneration based on polynomial equations is investigated.

    5. Polynomial Trajectory Generation

    For faster generation of a feasible vehicle tracking, a second-order polynomial for trajectory generation is presented.Equation (1) is separated into the following forms:

    𝑧1= 𝑥, 𝑧

    2= tan𝜑𝑙cos3𝜃 , 𝑧3 = tan 𝜃, 𝑧4 = 𝑦. (27)

  • Mathematical Problems in Engineering 5

    Time t Time t

    Time t Time t

    0 50 100

    0

    50

    100

    0 50 100

    0

    0.5

    1

    0 50 100

    0

    50

    100

    0 50 100

    0

    1

    2

    3

    −0.5

    −50 −50

    −1

    Body

    angl

    𝜃(r

    pm)

    Stee

    r vel

    ocity

    𝜑(r

    pm)

    Body

    angl

    e𝜃∘

    Stee

    r ang

    le𝜑∘

    Figure 3: Body and steering angle.

    0 5 10 15 2005

    10152025

    0 10 20 30 40 50 60 70 80 90 1000

    2

    4

    6

    8

    Posit

    ion y

    Position x

    Time t

    Vehi

    cle v

    eloci

    ty�1

    (km

    )

    Figure 4: Trajectory and velocity.

  • 6 Mathematical Problems in Engineering

    0 50 100

    0

    50

    100

    0 50 100

    0

    20

    40

    0 50 100

    0

    0.5

    1

    −50 −20

    −0.50 50 100

    0

    0.5

    1

    −0.5

    Time t Time t

    Time t Time t

    Body

    angl

    𝜃(r

    pm)

    Stee

    r vel

    ocity

    𝜑(r

    pm)

    Body

    angl

    e𝜃∘

    Stee

    r ang

    le𝜑∘

    Figure 5: Body and steering angle.

    Then, �̇�1= �̇�, (28)

    �̇�2= V2𝑙 cos

    2𝜃 + 3𝑟V1cos 𝜃 sin 𝜃sin2𝜑

    𝑙2cos5𝜃cos2𝜑 ,

    �̇�3= tan𝜑𝑙cos2𝜃𝑟V1,

    �̇�4= ̇𝑦 = sin 𝜃𝑟V

    1.

    (29)

    The vehicle will move from the initial state (𝑥0, 𝑦0, 𝜃0, 𝜑0) at

    time 𝑡 = 0 to the final state (𝑥𝑇, 𝑦𝑇, 𝜃𝑇, 𝜑𝑇) at time 𝑡 = 𝑇

    corresponding from the initial state at (𝑧1.0, 𝑧2.0, 𝑧3.0, 𝑧4.0) to

    the final state at (𝑧1.𝑇, 𝑧2.𝑇, 𝑧3.𝑇, 𝑧4.𝑇).

    For 0 ≤ 𝑡 ≤ 𝑇, the calculation of [𝑧1(𝑡), 𝑧2(𝑡), 𝑧3(𝑡), 𝑧4(𝑡)]

    will be

    𝑧1(𝑡) = 𝑧

    1.0+ 𝑔𝑡,

    𝑧2(𝑡) = 𝑧

    2.0+ ℎ1𝑡 + 12ℎ2𝑡

    2 + 13ℎ3𝑡3,

    𝑧3(𝑡) = 𝑧

    3.0+ 𝑔𝑧2.0𝑡 + 12𝑔ℎ1𝑡

    2 + 16𝑔ℎ2𝑡3 + 112𝑔ℎ3𝑡

    4,

    𝑧4(𝑡) = 𝑧

    4.0+ 𝑔𝑧3.0𝑡 + 12𝑔

    2𝑧2.0𝑡2

    + 16𝑔2ℎ1𝑡3 + 124𝑔

    2ℎ2𝑡4 + 160𝑔

    2ℎ3𝑡5

    (30)

    with

    𝑔 = 𝑧1.𝑇 − 𝑧1.0𝑇 ,[ℎ1, ℎ2, ℎ3] = 𝐷−1𝑒,

    𝐷 =[[[[[[[[

    𝑇 12𝑇2 1

    3𝑇3

    12𝑔𝑇2 1

    6𝑔𝑇3 1

    12𝑔𝑇4

    16𝑔2𝑇3 124𝑔

    2𝑇4 160𝑔2𝑇5

    ]]]]]]]]

    ,

    𝑒 =[[[[[

    𝑧2.𝑇

    − 𝑧2.0

    𝑧3.𝑇

    − 𝑧3.0− 𝑔𝑧2.0𝑇

    𝑧4.𝑇

    − 𝑧4.0− 𝑔𝑧3.0𝑇 − 12𝑔

    2𝑧2.0𝑇2]]]]]

    .

    (31)

  • Mathematical Problems in Engineering 7

    0 1 2 3 4 5 6 7 8 9 1002468

    10

    0 10 20 30 40 50 60 70 80 90 1000

    2

    4

    6

    8

    Posit

    ion y

    Position x

    Time t

    Vehi

    cle v

    eloc

    ity�1

    (km

    )

    Figure 6: Trajectory and velocity.

    Simulation of this method is conducted with the sameparameters in Section 2 and is shown in Figures 6 and 7 usingthe following equations:

    𝜃 = arctan (𝑧3) ,

    𝜑 = arctan (𝑧2𝑙cos3𝜃) ,

    �̇� (𝑡) = �̇�1(𝑡) = 𝑔,

    ̇𝑦 (𝑡) = �̇�4(𝑡) = 𝑔𝑧

    3.0+ 𝑔2𝑧

    2.0𝑡

    + 12𝑔2ℎ1𝑡2 + 18𝑔

    2ℎ2𝑡3 + 112𝑔

    2ℎ3𝑡4,

    V1(𝑡) =

    √�̇�2 (𝑡) + ̇𝑦2 (𝑡)𝑟 ,

    ̇𝜃 = �̇�3cos2𝜃 = (𝑔𝑧

    2.0+ 𝑔ℎ1𝑡 + 12𝑔ℎ2𝑡

    2 + 13𝑔ℎ3𝑡3) cos2𝜃,

    (32)

    And, from (28),

    �̇� = �̇�2(𝑡) 𝑙cos3𝜃 cos2𝜑 − 3 ̇𝜃 tan 𝜃 sin𝜑 cos𝜑. (33)

    Figure 6 shows the trajectory (𝑥,𝑦) for the vehicle from initialpoint to the final point and the velocity of the vehicle.

    Figure 7 shows the vehicle body angle, 𝜃, and the steeringangle,𝜑, corresponding to the angular velocity, ̇𝜃 and �̇�, of thevehicle.

    As shown in Figure 7, the maximum steering angle forthis trajectory generation is 𝜑 = 41.5736∘ and satisfiedthe constraint −45∘ ≤ 𝜑 ≤ 45∘. Therefore this trajectorygeneration is better than the flatness method in the previouspart.

    From Figure 6, it is really not realistic when the vehiclespeed is increasing exponentially. It is expected that, when avehicle is moving from one point to another point, the speedwill increase gradually at the starting point and decreasegradually to the destination point. Therefore, in the nextpart, new symmetric polynomial equations in third order areinvestigated.

    6. Symmetric PolynomialTrajectory Generation

    Since the system is flat and each flat output can be parame-terized by a sufficiently smooth polynomial, symmetric third-order polynomial equations are tried for this trajectory gen-eration. Because the sideslip is ignored, the vehicle trajectorydoes not depend on its speed, V

    1, and on the travelling time,

    𝑇. A new time variable, therefore, for this system is appliedwith a ratio of 𝑡/𝑇 for 𝑡 = 0 ÷ 𝑇:

    𝑥 (𝑡) = −( 𝑡𝑇 − 1)3

    𝑥0+ ( 𝑡𝑇)

    3

    𝑥𝑇

    + 𝑎𝑥( 𝑡𝑇)2

    ( 𝑡𝑇 − 1) + 𝑏𝑥𝑡𝑇(

    𝑡𝑇 − 1)

    2(34)

    and the trajectory of 𝑦 is

    𝑦 (𝑡) = −( 𝑡𝑇 − 1)3

    𝑦0+ ( 𝑡𝑇)

    3

    𝑥𝑇

    + 𝑎𝑦( 𝑡𝑇)2

    ( 𝑡𝑇 − 1) + 𝑏𝑦𝑡𝑇(

    𝑡𝑇 − 1)

    2

    .(35)

    Derivation of 𝑥(𝑡) is

    �̇� (𝑡) = −3( 𝑡𝑇 − 1)2

    𝑥0+ 3( 𝑡𝑇)

    2

    𝑥𝑇+ 𝑎𝑥2 𝑡𝑇 (

    𝑡𝑇 − 1)

    + 𝑎𝑥( 𝑡𝑇)2

    + 𝑏𝑥( 𝑡𝑇 − 1)

    2

    + 𝑏𝑥2 𝑡𝑇 (

    𝑡𝑇 − 1)

    (36)

    and derivation of 𝑦(𝑡) is

    ̇𝑦 (𝑡) = −3( 𝑡𝑇 − 1)2

    𝑦0+ 3( 𝑡𝑇)

    2

    𝑦𝑇+ 𝑎𝑦2 𝑡𝑇 (

    𝑡𝑇 − 1)

    + 𝑎𝑦( 𝑡𝑇)2

    + 𝑏𝑦( 𝑡𝑇 − 1)

    2

    + 𝑏𝑦2 𝑡𝑇 (

    𝑡𝑇 − 1) .

    (37)

    Then,

    �̈� (𝑡) = −6 ( 𝑡𝑇 − 1) 𝑥0 + 6𝑡𝑇𝑥𝑇 + 𝑎𝑥2 (2

    𝑡𝑇 − 1)

    + 𝑎𝑥2 𝑡𝑇 + 𝑏𝑥2 (

    𝑡𝑇 − 1) + 𝑏𝑥2 (2

    𝑡𝑇 − 1) ,

    (38)

    ̈𝑦 (𝑡) = −6 ( 𝑡𝑇 − 1)𝑦0 + 6𝑡𝑇𝑦𝑇 + 𝑎𝑦2 (2

    𝑡𝑇 − 1)

    + 𝑎𝑦2 𝑡𝑇 + 𝑏𝑦2 (

    𝑡𝑇 − 1) + 𝑏𝑦2 (2

    𝑡𝑇 − 1) .

    (39)

    The constraint on speed is

    𝑟V1= �̇�cos 𝜃 =

    ̇𝑦sin 𝜃 . (40)

    The constraint at starting point 𝑡 = 0 is

    �̇� (0) = 𝑘0cos 𝜃0, ̇𝑦 (0) = 𝑘

    0sin 𝜃0. (41)

    The constraint at destination point 𝑡 = 𝑇 is

    �̇� (𝑇) = 𝑘𝑇cos 𝜃𝑇, ̇𝑦 (𝑇) = 𝑘

    𝑇sin 𝜃𝑇. (42)

  • 8 Mathematical Problems in Engineering

    0 50 100

    0

    50

    100

    0 50 100

    0

    0.5

    0 50 100

    0

    50

    0 50 100

    0

    0.5

    1

    −50 −50

    −0.5−0.5

    Time t Time t

    Time t Time t

    Body

    angl

    𝜃(r

    pm)

    Stee

    r vel

    ocity

    𝜑(r

    pm)

    Body

    angl

    e𝜃∘

    Stee

    r ang

    le𝜑∘

    Figure 7: Body and steering angle.

    0 1 2 3 4 5 6 7 8 9 100

    5

    10

    0 10 20 30 40 50 60 70 80 90 1000

    1

    2

    3

    Posit

    ion y

    Position x

    Time t

    Vehi

    cle v

    eloci

    ty�1

    (km

    )

    Figure 8: Trajectory and velocity.

  • Mathematical Problems in Engineering 9

    0 50 1000

    20

    40

    60

    0 50 100

    0

    20

    40

    60

    0 50 100

    0

    20

    40

    60

    0 50 100

    0

    1

    2

    −20

    −20

    −1

    Time t Time t

    Time t Time t

    Body

    angl

    𝜃(r

    pm)

    Stee

    r vel

    ocity

    𝜑(r

    pm)

    Body

    angl

    e𝜃∘

    Stee

    r ang

    le𝜑∘

    Figure 9: Body and steering angle.

    0 1 2 3 4 5 6 7 8 9 100

    5

    10

    FlatnessPolynomialSymmetric polynomial

    0 10 20 30 40 50 60 70 80 90 1000

    2

    4

    6

    8

    Posit

    iony

    Position x

    Time t

    Velo

    city�1

    Figure 10: Comparison of trajectory and velocity.

  • 10 Mathematical Problems in Engineering

    0 50

    50

    100

    0

    20

    40

    60

    FlatnessPolynomialSymmetric polynomial Symmetric polynomial

    FlatnessPolynomial

    0 100

    0

    50

    0 50 100

    0

    50

    0 50 100

    0

    0.5

    1

    1.5

    −50

    −50

    Time t Time t

    Time t Time t

    Body

    angl

    𝜃(r

    pm)

    Stee

    r vel

    ocity

    𝜑(r

    pm)

    Body

    angl

    e𝜃∘

    Stee

    r ang

    le𝜑∘

    Figure 11: Comparison of body and steering angle.

    0 2 4 6 8 100

    5

    10

    0 10 20 30 40 50 60 70 80 90 100

    0

    2

    4

    −2

    Posit

    ion y

    Position x

    Time t

    Vehi

    cle v

    eloci

    ty�1

    (km

    )

    Figure 12: Trajectory and velocity in reverse speed.

  • Mathematical Problems in Engineering 11

    0 50 100

    0

    50

    100

    0 50 100

    0

    50

    0 50 100

    0

    20

    40

    0 50 100

    0

    1

    2

    −1

    −2

    −20

    −50

    −50

    −100

    Time t Time t

    Time t Time t

    Body

    angl

    𝜃(r

    pm)

    Stee

    r vel

    ocity

    𝜑(r

    pm)

    Body

    angl

    e𝜃∘

    Stee

    r ang

    le𝜑∘

    Figure 13: Body and steering angle in reverse speed.

    From (38), (39), (41), and (42), for the calculation simplicity,it is assumed that the speed coefficients at the starting anddestination points, 𝑘

    0= 𝑘𝑇= 𝑘; then

    𝑎𝑥= 𝑘 cos 𝜃

    𝑇− 3𝑥𝑇, 𝑏

    𝑥= 𝑘 cos 𝜃

    0− 3𝑥0. (43)

    Similarly,

    𝑎𝑦= 𝑘 sin 𝜃

    𝑇− 3𝑦𝑇, 𝑏

    𝑦= 𝑘 sin 𝜃

    0− 3𝑦0. (44)

    Simulation is conducted with the same parameters in theprevious parts and is shown in Figures 8 and 9. The speedcoefficients are 𝑘

    0= 𝑘𝑇= 𝑘 = 1. Other parameters are

    calculated in the following equations:

    V1=√�̇�2 + ̇𝑦2

    𝑟 ,

    𝜃 = arctan( ̇𝑦�̇�) ,

    𝜑 = arctan(𝑙cos3𝜃 ̈𝑦

    (�̇�)2 )

    or 𝜑 = arctan(𝑙 ̈𝑦�̇� − �̈� ̇𝑦𝑟(�̇�2 + ̇𝑦2)3/2

    ) ,

    ̇𝜃 = ̈𝑦�̇� − �̈� ̇𝑦�̇�21

    ( ̇𝑦/�̇� )2 + 1= ̈𝑦�̇� − �̈� ̇𝑦�̇�2 + ̇𝑦2 =

    tan𝜑𝑙 𝑟V1,

    �̇� =𝜕 (arctan(𝑙 (( ̈𝑦�̇� − �̈� ̇𝑦) /𝑟(�̇�2 + ̇𝑦2)3/2)))

    𝜕𝑡 .(45)

    It can be seen from Figure 8 that the trajectory of thissymmetric polynomial is more realistic because the velocityincreases from the starting point and decreases in the desti-nation point as per the expectation.

    The maximum steering angle for the symmetric polyno-mial method is 𝜑 = 41.1622∘ and satisfied the constraint−45∘ ≤ 𝜑 ≤ 45∘. This steering angle is smaller than thesteering angle in the second-order polynomial method. Inthe next part, a comparison of the previous three methodsis presented.

  • 12 Mathematical Problems in Engineering

    7. Performance Analysis

    Performances of the three methods on the trajectory genera-tion and the vehicle velocity are shown in Figures 10 and 11.

    It can be seen that the symmetric polynomial generationcan produce a more realistic speed and a smoother trajectorysince it allows the vehicle gradually to increase the speed atthe starting point and reduce the speed at the destinationpoint.

    Figure 11 shows the symmetric polynomial method pro-viding the lowest body angle, 𝜃(𝑡), the body angle velocity,̇𝜃(𝑡), the steering angle, 𝜑(𝑡), and the steering angle velocity,�̇�(𝑡). Therefore, this method is recommended for the devel-opment of an automatic control of tracking vehicles.

    For the vehicle moving in reverse speeds, as mentionedin (1), the vehicle velocity, V

    1, will change the sign. The

    speed coefficients in (43) and (44) will be minus values.Simulations for the reverse speeds are conducted with thespeed coefficients 𝑘

    0= 𝑘𝑇= 𝑘 = −1. Results of the simulation

    are shown in Figures 12 and 13.Since the vehicle is forced to reverse at the starting point

    with 𝑘0= −1 and at the destination pointwith 𝑘

    𝑇−1, Figure 12

    shows the vehicle reversing out at the starting point, goingforward to the destination, and then again reversing to theparking space. The vehicle velocity is changing the directionin three times.

    Figure 13 shows the body angle, 𝜃, switching 180∘ in twotimes corresponding to each reverse speed. The maximumsteering angle in this reverse speed is 𝜑max = 33.7097∘. Thisnumber ismuch lower than the numbers of the forward speedmovements. However the travelling distance is also longer inthe reverse speed trajectory.

    8. Conclusion

    The paper has presented three methods of trajectory genera-tion for autonomous vehicles subject to constraints. Regard-ing the real vehicle speed development, the third-ordersymmetric polynomial trajectory is recommended. Simula-tions and analyses are also conducted for vehicle moving inforward and in reverse speeds. Results from this study canbe used to develop a real-time control system for autodrivingand autoparking vehicles. The limitation of this study is theignorance of the vehicle sideslip due to the cornering velocity.However this error can be eliminated with the feedbackcontrol loop and some offset margins of the steering angleconstraint.

    Conflict of Interests

    The authors declare that there is no conflict of interests regar-ding the publication of this paper.

    References

    [1] J. Lévine, Analysis and Control of Nonlinear Systems: A Flatness-Based Approach, Springer, 1st edition, 2009.

    [2] W. Dong and Y. Guo, “New trajectory generation methods fornonholonomic mobile robots,” in Proceedings of the Interna-tional SymposiumonCollaborative Technologies and Systems, pp.353–358, Saint Louis, Mo, USA, 2005.

    [3] M. Gomez, V. González, T. Mart́ınez-Maŕın, D. Meziat, and S.Sánchez, “Optimal motion planning by reinforcement learningin autonomousmobile vehicles,”Robotica, vol. 30, no. 2, pp. 159–170, 2012.

    [4] J.Wang, Z. Lu,W. Chen, and X.Wu, “An adaptive trajectory tra-cking control of wheeled mobile robots,” in Proceedings of the6th IEEE Conference on Industrial Electronics and Applications(ICIEA ’11), pp. 1156–1160, Beijing, China, 2011.

    [5] M. Werling, S. Kammel, J. Ziegler, and L. Gröll, “Optimal traj-ectories for time-critical street scenarios using discretized ter-minal manifolds,” International Journal of Robotics Research,vol. 31, no. 3, pp. 346–359, 2012.

    [6] K. Kanjanawanishkul, M. Hofmeister, and A. Zell, “Smoothreference tracking of amobile robot using nonlinearmodel pre-dictive control,” in Proceedings of the 4th European Conferenceon Mobile Robots (ECMR ’09), pp. 161–166, Dubrovnik, Croatia,2009.

    [7] G. Klančar and I. Škrjanc, “Tracking-errormodel-based predic-tive control for mobile robots in real time,” Robotics and Auto-nomous Systems, vol. 55, no. 6, pp. 460–469, 2007.

    [8] V. T. Minh, Advanced Vehicle Dynamics, Malaya Press, KualaLumpur, Malaysia, 1st edition, 2012.

    [9] V. T. Minh and N. Afzulpurkar, “A comparative study on comp-utational schemes for nonlinear model predictive control,”Asian Journal of Control, vol. 8, no. 4, pp. 324–331, 2006.

    [10] J. Choi, R. Curry, and G. Elkaim, “Curvature-continuous tra-jectory generation with corridor constraint for autonomousground vehicles,” in Proceedings of the 49th IEEE Conference onDecision and Control, pp. 7166–7171, Atlanta, Ga, USA, 2010.

    [11] V. Delsart, T. Fraichard, and L. Martinez, “Real-time trajectorygeneration for car-like vehicles navigating dynamic environ-ments,” in Proceedings of the IEEE International Conference onRobotics and Automation (ICRA ’09), pp. 3401–3406, Kobe,Japan, 2009.

    [12] T. Zhou, M. Li, X. Mai, Q. Wang, F. Liu, and Q. Li, “Trajectorygenerationmodel-based IMM tracking for safe driving in inter-section scenario,” International Journal of Vehicular Technology,vol. 2011, Article ID 103696, 8 pages, 2011.

    [13] M. Missura and S. Behnke, “Efficient kinodynamic trajectorygeneration for wheeled robots,” in Proceedings of the IEEEInternational Conference onRobotics andAutomation, pp. 4883–4888, Shanghai, China, 2011.

    [14] V. T.Minh and A. A. Rashid, “Automatic control of clutches andsimulations for parallel hybrid vehicles,” International Journal ofAutomotive Technology, vol. 13, no. 4, pp. 645–651, 2012.

    [15] V. T.Minh,M. Awang, and S. Parman, “Conditions for stabiliza-bility of linear switched systems,” International Journal of Con-trol, Automation and Systems, vol. 9, no. 1, pp. 139–144, 2011.

  • Submit your manuscripts athttp://www.hindawi.com

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    MathematicsJournal of

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    Mathematical Problems in Engineering

    Hindawi Publishing Corporationhttp://www.hindawi.com

    Differential EquationsInternational Journal of

    Volume 2014

    Applied MathematicsJournal of

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    Probability and StatisticsHindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    Journal of

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    Mathematical PhysicsAdvances in

    Complex AnalysisJournal of

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    OptimizationJournal of

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    CombinatoricsHindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    International Journal of

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    Operations ResearchAdvances in

    Journal of

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    Function Spaces

    Abstract and Applied AnalysisHindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    International Journal of Mathematics and Mathematical Sciences

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    The Scientific World JournalHindawi Publishing Corporation http://www.hindawi.com Volume 2014

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    Algebra

    Discrete Dynamics in Nature and Society

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    Decision SciencesAdvances in

    Discrete MathematicsJournal of

    Hindawi Publishing Corporationhttp://www.hindawi.com

    Volume 2014 Hindawi Publishing Corporationhttp://www.hindawi.com Volume 2014

    Stochastic AnalysisInternational Journal of