diff --git a/autonomous_vehicle.py b/autonomous_vehicle.py index a40f933..9178b08 100755 --- a/autonomous_vehicle.py +++ b/autonomous_vehicle.py @@ -7,7 +7,8 @@ from loss_functions import LossFunctions from scipy import optimize import pygame as pg -from scipy.interpolate import spline +#from scipy.interpolate import spline +from scipy.interpolate import make_interp_spline #updated by Yi from scipy import stats import time import matplotlib.pyplot as plt @@ -1062,4 +1063,4 @@ def dynamic(self, action_self): # Dynamic of cubic polynomial on velocity A[np.tril_indices(N, 0)] = 1 predict_result_traj = np.matmul(A, predict_result_vel) + state_0 - return predict_result_traj \ No newline at end of file + return predict_result_traj