Skip to content

Add a generic version of the roundabout environment#669

Open
Minipoloalex wants to merge 1 commit intoFarama-Foundation:masterfrom
Minipoloalex:master
Open

Add a generic version of the roundabout environment#669
Minipoloalex wants to merge 1 commit intoFarama-Foundation:masterfrom
Minipoloalex:master

Conversation

@Minipoloalex
Copy link
Copy Markdown

@Minipoloalex Minipoloalex commented Apr 7, 2026

Summary

This PR adds a new version of the roundabout environment, a class called RoundaboutGenericEnv, registered as roundabout-generic-v0, with configurable parameters:

  • Number of the roundabout lanes
  • Radius of the roundabout
  • Number of spawned other vehicles

Here are two different configurations:

config={"roundabout_lanes": 2, "roundabout_radius": 20, "vehicles_count": 5} (default) config={"roundabout_lanes": 4, "roundabout_radius": 40, "vehicles_count": 15}
default config image larger roundabout image

Context

I wanted to have some configurable options for several highway-env environments, and ended up making a more generic version of the roundabout.

I'm open to make requested changes to the environment. If this version is useful, I have also made a similar "generic" version for the merge environment.

Copy link
Copy Markdown
Collaborator

@eleurent eleurent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, 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