mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-02-11 12:26:08 -05:00
code clean up for lgtm
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user