Skip to content

Commit

Permalink
Fix undefined variable bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzheng40 authored Feb 7, 2023
1 parent beb859b commit daa5a41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gym/f110_gym/envs/laser_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def check_ttc_jit(scan, vel, scan_angles, cosines, side_distances, ttc_thresh):
in_collision (bool): whether vehicle is in collision with environment
collision_angle (float): at which angle the collision happened
"""
in_collision = False
if vel != 0.0:
num_beams = scan.shape[0]
for i in range(num_beams):
Expand Down

0 comments on commit daa5a41

Please sign in to comment.