Update modeld.py

This commit is contained in:
infiniteCable
2025-06-24 09:58:10 +02:00
committed by GitHub
parent f5ce0c86f7
commit 247cb0170f
+1 -1
View File
@@ -54,7 +54,7 @@ MIN_LAT_CONTROL_SPEED = 0.3
def get_action_from_model(model_output: dict[str, np.ndarray], prev_action: log.ModelDataV2.Action,
lat_action_t: float, long_action_t: float, v_ego: float) -> log.ModelDataV2.Action:
plan = model_output['plan'][0]
desired_accel, should_stop, desired_speed = get_accel_from_plan(plan[:,Plan.VELOCITY][:,0],
desired_accel, should_stop = get_accel_from_plan(plan[:,Plan.VELOCITY][:,0],
plan[:,Plan.ACCELERATION][:,0],
ModelConstants.T_IDXS,
action_t=long_action_t)