From 1c45232d9383bbf7eb830a1a9d63f017ede7c0cf Mon Sep 17 00:00:00 2001 From: Atsushi Sakai Date: Wed, 21 Mar 2018 15:57:20 -0700 Subject: [PATCH] add comments --- PathPlanning/CubicSpline/cubic_spline_planner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PathPlanning/CubicSpline/cubic_spline_planner.py b/PathPlanning/CubicSpline/cubic_spline_planner.py index d1df728c..5a63d9e6 100644 --- a/PathPlanning/CubicSpline/cubic_spline_planner.py +++ b/PathPlanning/CubicSpline/cubic_spline_planner.py @@ -197,9 +197,10 @@ def main(): import matplotlib.pyplot as plt x = [-2.5, 0.0, 2.5, 5.0, 7.5, 3.0, -1.0] y = [0.7, -6, 5, 6.5, 0.0, 5.0, -2.0] + ds = 0.1 # [m] distance of each intepolated points sp = Spline2D(x, y) - s = np.arange(0, sp.s[-1], 0.1) + s = np.arange(0, sp.s[-1], ds) rx, ry, ryaw, rk = [], [], [], [] for i_s in s: