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

Can different action policies assign to different vehicles? #725

Open
ZheruiHuang opened this issue May 29, 2024 · 1 comment
Open

Can different action policies assign to different vehicles? #725

ZheruiHuang opened this issue May 29, 2024 · 1 comment

Comments

@ZheruiHuang
Copy link

Is there a way to assign different action policies to different vehicles in a scenario? For example, can the ego car use the PPOExpertPolicy while other cars use replay/IDM? Can you provide a simple example?

@QuanyiLi
Copy link
Member

QuanyiLi commented Jun 9, 2024

Yes, of course. This step usually happens in the Manager where vehicles are spawned and policies are created and associated with vehicles. And each step the manager will query the policy to give an action to the vehicle. Thus, it is feasible to have arbitrary policy/vehicle mappings. An example is at here: https://metadrive-simulator.readthedocs.io/en/latest/system_design.html#example

Jus try adding more vehicles and assign different policies to them

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