Farama-Foundation / HighwayEnv

A minimalist environment for decision-making in autonomous driving
https://highway-env.farama.org/
MIT License
2.48k stars 726 forks source link

Let racetrack_env able to set "other_vehicles" to zero #582

Closed mozturan closed 2 months ago

mozturan commented 3 months ago

Added an if statement before creating other vehicles to fix the error that occurs when the other_vehicles variable is selected as zero. Now environment let us create only ego vehicle for experiments (with setting other_vehicles to zero.)

521 :

I tried to turn this environment to lane following task only by removing the npc vehicle using "other_vehicles": 0 in env.configure but i ended up with some error.

eleurent commented 2 months ago

Makes sense, thanks!