using pathlib based local module import (#722)

* using pathlib based local module import

* remove unused import
This commit is contained in:
Atsushi Sakai
2022-09-11 07:21:37 +09:00
committed by GitHub
parent 1ff3095c14
commit 76b0d04a3c
39 changed files with 142 additions and 245 deletions

View File

@@ -10,16 +10,10 @@ import matplotlib.pyplot as plt
import math
import numpy as np
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../PathPlanning/CubicSpline/")
try:
import cubic_spline_planner
except:
raise
import pathlib
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
from PathPlanning.CubicSpline import cubic_spline_planner
Kp = 1.0 # speed proportional gain
@@ -29,7 +23,7 @@ R = np.eye(1)
# parameters
dt = 0.1 # time tick[s]
L = 0.5 # Wheel base of the vehicle [m]
L = 0.5 # Wheelbase of the vehicle [m]
max_steer = np.deg2rad(45.0) # maximum steering angle[rad]
show_animation = True