Академический Документы
Профессиональный Документы
Культура Документы
Objective
1. Primary
Re-check my double collision checking code.
2. Secondary
Re-check my driving policies code and make improvement.
3. Tertiary
Test on the longer video sequences.
4. Quaternary
Debug the error in my code.
1 Introduction
This week, I tried to re-check my double collision check code, which is it used to get the second
best trajectory. Previously, my methods won’t work but this week I have successfully implement it into
my code. Next thing I did is I tried to re-check my driving policies code and make some improvement,
previously the pseudo-car is too far with ego car so it quite hard to see the pseudo car. Right now, I
have make some limitation so we could see the pseudo car. Last, I tried to test my code using the longer
video sequences, the result is quite good. And when I tested with the longer video sequences I also tried
to solve the error from my code because when I tested it, my code has lot of errors.
2 Methods
2.1 Frenet Optimize Trajectory
In Frenet coordinate system [1], they define their plane into longitudinal and lateral axis, respectively
denoted as S and D. It using minimum jerk trajectories defined in the Frenet coordinate space to solve
the path planning problem. Jerk is defined as the rate of change in acceleration over time. Meanwhile,
acceleration is defined as the rate of change in velocity over time. Basically jerk and acceleration are
1
respectively derivatives of acceleration and velocity. As an illustration, when we be a passenger in the
car, we will feel the sudden changes of the acceleration in a vehicle. It is therefore essential to minimize
jerk when planning a trajectory.
To compute the jerk in the lateral axis, by using quintic polynomial, first, when we have a position,
we need to derivative it and it will become speed. This speed, we derivative it and it will become
acceleration. This acceleration result, we derivative it again and it will become jerk. So, to get the jerk
from position, we need to derivative it three times until we get the jerk.
n
X
Jp = Jerk Lat2 (5)
i=0
To compute the jerk in the longitudinal axis, the equation is similar like lateral, but there is some
different, they use quartic polynomial:
n
X
Js = Jerk Lon2 (10)
i=0
After we get the position, speed, acceleration, and jerk, we need to calculate the cost functional for
both lateral motion and longitudinal motion planning.
2
n
X
Ca = ai2 (15)
i=0
n
X
Cca = vi2 ki (16)
i=0
Need to remember, that we have lateral and longitudinal axis, so we need to calculate the Ce, Ca,
and Cca for both axis. Then the each cost we multiply it by the weight. The equation is like the equation
below:
CCA = KCCA LAT ∗ Cca Lat + KCCA LON ∗ Cca Lon (19)
Where CE is speed cost functional, CA is the acceleration cost functional, and CCA is the centripetal
cost functional. KCE, KCA, and KCCA is the weight cost for that cost. The final cost function, is like
this equation:
CF = CF + KU N V ∗ CE + KU N V ∗ CA + KU N V ∗ CCA (20)
KUNV is the weight cost for CE, CA, and CCA. The final cost functional (CF), will used to find
the minimum cost path, if the CF value if less than the minCost, it will compute as the best path of the
pseudo car.
3
]
Scenario Result
1 X
2 X
3 X
4 X
5 X
6 X
7 X
8 X
9 X
10 X
11 X
4
]
that has more than 1000 frames. The result we could see like in figure 5 and 6. The left side is the
on the first frame and the right side is the last frame. We could see in first experiment is successfully
generate the position but in the second experiment it failed to generate the pseudo car position until the
end of frames. This error is caused by the curvy road from the image sequences, on the some first frame
the road is straight way but in the middle until last frame the road is curvy, that’s why the pseudo car
position is disappear.
5
]
References
[1] Moritz Werling, Julius Ziegler, Sören Kammel, and Sebastian Thrun. Optimal trajectory generation
for dynamic street scenarios in a frenét frame. 2010 IEEE International Conference on Robotics and
Automation, pages 987–993, 2010.
[2] Wenda Xu, Junqing Wei, John M. Dolan, Huijing Zhao, and Hongbin Zha. A real-time motion
planner with trajectory optimization for autonomous vehicles. 2012 IEEE International Conference
on Robotics and Automation, pages 2061–2067, 2012.