Skip to content

Commit 7008ef8

Browse files
committed
fix typo
1 parent ba2247c commit 7008ef8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

PathPlanning/FrenetOptimalTrajectory/frenet_optimal_trajectory.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
show_animation = True
4343

4444

45-
class quinic_polynomial:
45+
class quintic_polynomial:
4646

4747
def __init__(self, xs, vxs, axs, xe, vxe, axe, T):
4848

49-
# calc coefficient of quinic polynomial
49+
# calc coefficient of quintic polynomial
5050
self.xs = xs
5151
self.vxs = vxs
5252
self.axs = axs
@@ -86,17 +86,18 @@ def calc_second_derivative(self, t):
8686
xt = 2 * self.a2 + 6 * self.a3 * t + 12 * self.a4 * t**2 + 20 * self.a5 * t**3
8787

8888
return xt
89-
89+
9090
def calc_third_derivative(self, t):
9191
xt = 6 * self.a3 + 24 * self.a4 * t + 60 * self.a5 * t**2
9292

9393
return xt
9494

95+
9596
class quartic_polynomial:
9697

9798
def __init__(self, xs, vxs, axs, vxe, axe, T):
9899

99-
# calc coefficient of quinic polynomial
100+
# calc coefficient of quintic polynomial
100101
self.xs = xs
101102
self.vxs = vxs
102103
self.axs = axs
@@ -132,7 +133,7 @@ def calc_second_derivative(self, t):
132133
xt = 2 * self.a2 + 6 * self.a3 * t + 12 * self.a4 * t**2
133134

134135
return xt
135-
136+
136137
def calc_third_derivative(self, t):
137138
xt = 6 * self.a3 + 24 * self.a4 * t
138139

@@ -173,7 +174,7 @@ def calc_frenet_paths(c_speed, c_d, c_d_d, c_d_dd, s0):
173174
for Ti in np.arange(MINT, MAXT, DT):
174175
fp = Frenet_path()
175176

176-
lat_qp = quinic_polynomial(c_d, c_d_d, c_d_dd, di, 0.0, 0.0, Ti)
177+
lat_qp = quintic_polynomial(c_d, c_d_d, c_d_dd, di, 0.0, 0.0, Ti)
177178

178179
fp.t = [t for t in np.arange(0.0, Ti, DT)]
179180
fp.d = [lat_qp.calc_point(t) for t in fp.t]

0 commit comments

Comments
 (0)