Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix "ModuleNotFoundError: No module named 'utils'" #1188

Merged
merged 1 commit into from
Mar 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -11,9 +11,9 @@
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 =====
4 changes: 2 additions & 2 deletions PathTracking/lqr_steer_control/lqr_steer_control.py
Original file line number Diff line number Diff line change
@@ -11,9 +11,9 @@
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
7 changes: 5 additions & 2 deletions PathTracking/rear_wheel_feedback/rear_wheel_feedback.py
Original file line number Diff line number Diff line change
@@ -8,11 +8,14 @@
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
4 changes: 2 additions & 2 deletions PathTracking/stanley_controller/stanley_controller.py
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@
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