mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-02-17 04:32:41 -05:00
using pathlib based local module import (#722)
* using pathlib based local module import * remove unused import
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user