Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 6, 2024

Conversation

mozturan
Copy link

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.

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.)
@eleurent eleurent merged commit dc5cdea into Farama-Foundation:master Apr 6, 2024
5 checks passed
@eleurent
Copy link
Collaborator

eleurent commented Apr 6, 2024

Makes sense, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants