Skip to content

Commit 2968d06

Browse files
committed
Fix warning of velocity_profile
1 parent 98cc525 commit 2968d06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GEMstack/onboard/planning/velocity_profile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def compute_spline_curvature(x, y, s=0.0, num=1000):
3636
kappa (float): curvature profile along the trajectory
3737
"""
3838
# Fit parametric spline
39-
num = len(x)
39+
nums = len(x)
4040
tck, _ = splprep([x, y], s=s)
41-
u_fine = np.linspace(0, 1, num)
41+
u_fine = np.linspace(0, 1, nums)
4242

4343
# Evaluate spline and its first and second derivatives
4444
dx, dy = splev(u_fine, tck, der=1)

0 commit comments

Comments
 (0)