@siddha_ganju @jyotish
Hi, I found a bug in env.py, lines 689-691:
) + np.arctan(
dx / dy
) # yaw, radians
This should be:
) + np.arctan2(
dx, dy
) # yaw, radians
This is a bug because with arctan the car is facing the wrong way when resetted to some segments, leading to episode termination after the car starts driving. Reference: https://numpy.org/doc/stable/reference/generated/numpy.arctan2.html
1 Like