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

Traffic light control algorithm and agent injection/deletion algorithm #773

Open
sfm-user-1 opened this issue Nov 12, 2024 · 1 comment
Open

Comments

@sfm-user-1
Copy link

Thanks for the excellent work developing and sharing MetaDrive!

Could you all describe more about the traffic light control algorithm and agent injection/deletion algorithms you use, if any? For example, how and where are agents spawned, and when are they deleted, and why? Do you use heuristics, and could you point me to the code where they are implemented? @pengzhenghao @QuanyiLi could you share that with me?

@pengzhenghao
Copy link
Member

traffic light control algorithm We don't have any traffic light control on PG environments. In ScenarioNet environments, we replay the traffic light signal from data.

Agent injection/deletion for PG env is by procedual generation algorithm. For each map block there are some regions allowing spawn new agents and there are some predifined destinations in each block. So we can randomly select a spawn position and a destination for each agent. For scenario env, we replay data.

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

No branches or pull requests

2 participants