Replaced sqrt(x**2+y**2) with hypot in PathPlanning/DubinsPath/dubins_path_planning.py

This commit is contained in:
Guillaume Jacquenot
2019-12-07 22:53:08 +01:00
parent 4c6fe30fb3
commit 367c2c6dc6

View File

@@ -141,7 +141,7 @@ def dubins_path_planning_from_origin(ex, ey, eyaw, c, D_ANGLE):
# normalize
dx = ex
dy = ey
D = math.sqrt(dx ** 2.0 + dy ** 2.0)
D = math.hypot(dx, dy)
d = D * c
# print(dx, dy, D, d)