mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-02-11 05:55:43 -05:00
replace math.degrees to np.rad2deg
This commit is contained in:
@@ -219,7 +219,7 @@ def main():
|
||||
plt.legend()
|
||||
|
||||
flg, ax = plt.subplots(1)
|
||||
plt.plot(s, [math.degrees(iyaw) for iyaw in cyaw], "-r", label="yaw")
|
||||
plt.plot(s, [np.rad2deg(iyaw) for iyaw in cyaw], "-r", label="yaw")
|
||||
plt.grid(True)
|
||||
plt.legend()
|
||||
plt.xlabel("line length[m]")
|
||||
|
||||
Reference in New Issue
Block a user