def _is_out_of_road(self, vehicle):
        """Overwrite this function as we have guardrail in the map."""
        longitude, lateral = vehicle.lane.local_coordinates(vehicle.position)
        if longitude < -5:
            return True
        return False
Overwrite this function as we have guardrail in the map.
metadrive/envs/marl_envs/marl_racing_env.py