Skip to content
Snippets Groups Projects
Commit 3e267d36 authored by aamirh2's avatar aamirh2
Browse files

Update ring.py

parent 47dd619a
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ class RingEnv(Env):
rl = nexti(control_vehicles.vehicles)
if action is not None: # action is None only right after reset
ts.tc.vehicle.setMinGap(
rl.id, 0.1
rl.id, 0
) # Set the minGap to 0 after the warmup period so the vehicle doesn't crash during warmup
vel = action
if isinstance(vel, np.ndarray):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment