Closed XuanChen-xc closed 2 months ago
If you want to control the generation process, you can take a look at the multi-agent environment, like https://github.com/metadriverse/metadrive/blob/233a3a1698be7038ec3dd050ca10b547b4b3324c/metadrive/envs/marl_envs/marl_tollgate.py#L113
In this map class, we build blocks by specifying the parameters instead of sampling them from a pre-defined space. And then all blocks are connected into a whole map. You can also have some blocks constructed from specific parameters, but others from sampled parameters. So you can have deterministic behavior but some randomness as well.
Thank you for your reply, I will try that.
Hi, thank you for the great work!
I have a question about the randomization of the parameters for the
PGBlock
. For example, we can setconfig["map"] = "SCS"
if we want to create a map that contains a Straight block, followed by a Circular and another Straight block. But the parameters in each block are randomized. If I want to fix the direction and the radius of the Circular block, is there any way to achieve this, or specify a random seed somewhere to control the randomization? Looks like theglobal_seed
in the engine does not control the randomization there.Thank you.