mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-10 05:28:07 -05:00
fix "ModuleNotFoundError: No module named 'utils'" (#1188)
This commit is contained in:
@@ -11,9 +11,9 @@ import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
import scipy.linalg as la
|
||||
import pathlib
|
||||
from utils.angle import angle_mod
|
||||
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
|
||||
|
||||
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
|
||||
from utils.angle import angle_mod
|
||||
from PathPlanning.CubicSpline import cubic_spline_planner
|
||||
|
||||
# === Parameters =====
|
||||
|
||||
@@ -11,9 +11,9 @@ import math
|
||||
import numpy as np
|
||||
import sys
|
||||
import pathlib
|
||||
from utils.angle import angle_mod
|
||||
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
|
||||
|
||||
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
|
||||
from utils.angle import angle_mod
|
||||
from PathPlanning.CubicSpline import cubic_spline_planner
|
||||
|
||||
Kp = 1.0 # speed proportional gain
|
||||
|
||||
@@ -8,11 +8,14 @@ author: Atsushi Sakai(@Atsushi_twi)
|
||||
import matplotlib.pyplot as plt
|
||||
import math
|
||||
import numpy as np
|
||||
from utils.angle import angle_mod
|
||||
|
||||
import sys
|
||||
import pathlib
|
||||
from scipy import interpolate
|
||||
from scipy import optimize
|
||||
|
||||
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
|
||||
from utils.angle import angle_mod
|
||||
|
||||
Kp = 1.0 # speed proportional gain
|
||||
# steering control parameter
|
||||
KTH = 1.0
|
||||
|
||||
@@ -13,9 +13,9 @@ import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
import sys
|
||||
import pathlib
|
||||
from utils.angle import angle_mod
|
||||
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
|
||||
|
||||
sys.path.append(str(pathlib.Path(__file__).parent.parent.parent))
|
||||
from utils.angle import angle_mod
|
||||
from PathPlanning.CubicSpline import cubic_spline_planner
|
||||
|
||||
k = 0.5 # control gain
|
||||
|
||||
Reference in New Issue
Block a user