mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-23 09:03:44 +08:00
lateral_planner: init missing variables (#28222)
Init missing variables in LateralPlanner constructor
old-commit-hash: 7b68a13048
This commit is contained in:
@@ -39,7 +39,11 @@ class LateralPlanner:
|
||||
self.plan_yaw = np.zeros((TRAJECTORY_SIZE,))
|
||||
self.plan_yaw_rate = np.zeros((TRAJECTORY_SIZE,))
|
||||
self.t_idxs = np.arange(TRAJECTORY_SIZE)
|
||||
self.y_pts = np.zeros(TRAJECTORY_SIZE)
|
||||
self.y_pts = np.zeros((TRAJECTORY_SIZE,))
|
||||
self.v_plan = np.zeros((TRAJECTORY_SIZE,))
|
||||
self.v_ego = 0.0
|
||||
self.l_lane_change_prob = 0.0
|
||||
self.r_lane_change_prob = 0.0
|
||||
|
||||
self.lat_mpc = LateralMpc()
|
||||
self.reset_mpc(np.zeros(4))
|
||||
|
||||
Reference in New Issue
Block a user