code clean up for lgtm

This commit is contained in:
Atsushi Sakai
2018-11-23 11:03:50 +09:00
parent 8dcc6f0f22
commit 3a7f3c5587
18 changed files with 69 additions and 80 deletions

View File

@@ -181,10 +181,6 @@ def calc_speed_profile(cx, cy, cyaw, target_speed):
speed_profile[-1] = 0.0
# flg, ax = plt.subplots(1)
# plt.plot(speed_profile, "-r")
# plt.show()
return speed_profile
@@ -208,7 +204,7 @@ def main():
if show_animation:
plt.close()
flg, _ = plt.subplots(1)
plt.subplots(1)
plt.plot(ax, ay, "xb", label="input")
plt.plot(cx, cy, "-r", label="spline")
plt.plot(x, y, "-g", label="tracking")
@@ -218,14 +214,14 @@ def main():
plt.ylabel("y[m]")
plt.legend()
flg, ax = plt.subplots(1)
plt.subplots(1)
plt.plot(s, [np.rad2deg(iyaw) for iyaw in cyaw], "-r", label="yaw")
plt.grid(True)
plt.legend()
plt.xlabel("line length[m]")
plt.ylabel("yaw angle[deg]")
flg, ax = plt.subplots(1)
plt.subplots(1)
plt.plot(s, ck, "-r", label="curvature")
plt.grid(True)
plt.legend()