diff --git a/script/constants.py b/script/constants_module.py similarity index 81% rename from script/constants.py rename to script/constants_module.py index 2631bf6..02e5e0f 100644 --- a/script/constants.py +++ b/script/constants_module.py @@ -1,4 +1,4 @@ - +# Module to define several constants used throughout the AV stack MAX_ACCELERATION = 3.0 # [m/s^2] (positive) MAX_DECELERATION = 9.0 # [m/s^2] (positive) MAX_JERK = 1.3 # [m/s^3] (positive) diff --git a/script/controller.py b/script/controller.py index 5985bce..924b8ac 100755 --- a/script/controller.py +++ b/script/controller.py @@ -14,9 +14,9 @@ from map_updater import OdometryState # Import some constants -from constants import MODE_EMERGENCY -from constants import MAX_ACCELERATION, MAX_DECELERATION, MAX_JERK -from constants import FREEFLOW_SPEED +from constants_module import MODE_EMERGENCY +from constants_module import MAX_ACCELERATION, MAX_DECELERATION, MAX_JERK +from constants_module import FREEFLOW_SPEED class AckermannController: diff --git a/script/trivial_planner.py b/script/trivial_planner.py index 3abb7b9..35d9259 100755 --- a/script/trivial_planner.py +++ b/script/trivial_planner.py @@ -14,8 +14,8 @@ from predictor_module import TrajectoryPredictor # Import some constants -from constants import MODE_NORMAL, MODE_EMERGENCY -from constants import MAX_ACCELERATION, MAX_DECELERATION +from constants_module import MODE_NORMAL, MODE_EMERGENCY +from constants_module import MAX_ACCELERATION, MAX_DECELERATION class TrivialPlanner: