Skip to content

Commit

Permalink
Merge pull request f1tenth#55 from Damowerko/div_by_zero
Browse files Browse the repository at this point in the history
Fix division by zero in laser_models.py
  • Loading branch information
hzheng40 authored Jan 27, 2023
2 parents 1fa8d3a + ce5d896 commit beb859b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gym/f110_gym/envs/laser_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def get_scan(pose, theta_dis, fov, num_beams, theta_index_increment, sines, cosi

return scan

@njit(cache=True)
@njit(cache=True, error_model='numpy')
def check_ttc_jit(scan, vel, scan_angles, cosines, side_distances, ttc_thresh):
"""
Checks the iTTC of each beam in a scan for collision with environment
Expand Down

0 comments on commit beb859b

Please sign in to comment.