lateral_planner: init missing variables (#28222)

Init missing variables in LateralPlanner constructor
old-commit-hash: 7b68a13048df675c0d3b5686d478c6c3f469d631
This commit is contained in:
Kacper Rączy
2023-05-17 14:04:17 -07:00
committed by GitHub
parent 91ccb8b415
commit 40094396b4
+5 -1
View File
@@ -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))