2021-05-13 21:40:48 +08:00
|
|
|
import numpy as np
|
|
|
|
|
2022-02-05 18:16:38 +08:00
|
|
|
|
|
|
|
class Params:
|
2020-06-30 18:05:30 +08:00
|
|
|
def __init__(self):
|
2022-02-05 18:16:38 +08:00
|
|
|
self.N = 4 # number of state variables
|
|
|
|
self.M = 2 # number of control variables
|
|
|
|
self.T = 10 # Prediction Horizon
|
|
|
|
self.DT = 0.2 # discretization step
|
2020-10-28 23:08:58 +08:00
|
|
|
self.path_tick = 0.05
|
2022-02-05 18:16:38 +08:00
|
|
|
self.L = 0.3 # vehicle wheelbase
|
|
|
|
self.MAX_SPEED = 1.5 # m/s
|
|
|
|
self.MAX_ACC = 1.0 # m/ss
|
|
|
|
self.MAX_D_ACC = 1.0 # m/sss
|
|
|
|
self.MAX_STEER = np.radians(30) # rad
|
|
|
|
self.MAX_D_STEER = np.radians(30) # rad/s
|