Skip to content

Commit dc1f423

Browse files
authored
Merge pull request AtsushiSakai#268 from Gjacquenot/patch-4
📝 Removed unused attribute in classes in frenet_optimal_trajectory
2 parents 1ac858b + 48cdd08 commit dc1f423

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

PathPlanning/FrenetOptimalTrajectory/frenet_optimal_trajectory.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ class quintic_polynomial:
4949
def __init__(self, xs, vxs, axs, xe, vxe, axe, T):
5050

5151
# calc coefficient of quintic polynomial
52-
self.xs = xs
53-
self.vxs = vxs
54-
self.axs = axs
55-
self.xe = xe
56-
self.vxe = vxe
57-
self.axe = axe
58-
5952
self.a0 = xs
6053
self.a1 = vxs
6154
self.a2 = axs / 2.0
@@ -99,12 +92,7 @@ class quartic_polynomial:
9992

10093
def __init__(self, xs, vxs, axs, vxe, axe, T):
10194

102-
# calc coefficient of quintic polynomial
103-
self.xs = xs
104-
self.vxs = vxs
105-
self.axs = axs
106-
self.vxe = vxe
107-
self.axe = axe
95+
# calc coefficient of quartic polynomial
10896

10997
self.a0 = xs
11098
self.a1 = vxs
@@ -184,7 +172,7 @@ def calc_frenet_paths(c_speed, c_d, c_d_d, c_d_dd, s0):
184172
fp.d_dd = [lat_qp.calc_second_derivative(t) for t in fp.t]
185173
fp.d_ddd = [lat_qp.calc_third_derivative(t) for t in fp.t]
186174

187-
# Loongitudinal motion planning (Velocity keeping)
175+
# Longitudinal motion planning (Velocity keeping)
188176
for tv in np.arange(TARGET_SPEED - D_T_S * N_S_SAMPLE, TARGET_SPEED + D_T_S * N_S_SAMPLE, D_T_S):
189177
tfp = copy.deepcopy(fp)
190178
lon_qp = quartic_polynomial(s0, c_speed, 0.0, tv, 0.0, Ti)

0 commit comments

Comments
 (0)