-
Notifications
You must be signed in to change notification settings - Fork 24
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
How to simulate using custom strategies #46
Comments
You can develop a new policy like I have a working-in-progress version about the policy interface of MetaDrive: https://metadrive-simulator.readthedocs.io/en/new-doc/action.html You can look into it to see if there are anything helpful |
Thanks for your development, I will check this. |
Hi Quanyi. Just a followup on this. I tried developing a policy for this but I see the observation space to be (336, 1). Can you please brief out where this shape came from. I was expecting (84, 84, 3) just like other metadrive observations but i couldn't get it to work this way. I tried modifying the configuration with topdown and other similar configurations but the observation space remains the same. I tried it for Waymo dataset. |
Hi Abastola, Have you checked this page: https://metadrive-simulator.readthedocs.io/en/latest/obs.html#customization-multisensor It allows you to customize your observation and its shape. Just pass your new observation class to the config dict. Then changes will be applied accordingly. |
Yeah I tried this approach as well. I created observation like so:
and configuration like so:
and finally created env like this:
when i do env.engine.dict, i don't see sensors sensors within the namespace so am not sure if i'm missing something. My goal here is to get all three types of sensor data as single observation. |
Could you set also, please update the
Then it should work |
It works. Thanks! |
I'm using this to replay nuplan dataset. And I wander how to input a user built policy and simulate it like nuplan dev toolkit.
More precisely, I want to input a specific planned trajectory, then all vehicles simulated one step (either through control or direct displacement), and then input a new plan.
But now I find that nuplan can only be replayed in simulation by
ReplayEgoCarPolicy
. The steering wheel commands I input will not be executed, and I can't find how to input the desired trajectory like nuplan input.The text was updated successfully, but these errors were encountered: