We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec89300 commit 85e5dadCopy full SHA for 85e5dad
metadrive/envs/scenario_env.py
@@ -415,10 +415,20 @@ class ScenarioOnlineEnv(ScenarioEnv):
415
"""
416
This environment allow the user to pass in scenario data directly.
417
418
+ def default_config(cls):
419
+ config = super(ScenarioOnlineEnv, cls).default_config()
420
+ config.update({
421
+ "store_map": False,
422
+ })
423
+ return config
424
+
425
def __init__(self, config=None):
426
super(ScenarioOnlineEnv, self).__init__(config)
427
self.lazy_init()
428
429
+ assert self.config["store_map"] is False, \
430
+ "ScenarioOnlineEnv should not store map. Please set store_map=False in config"
431
432
def setup_engine(self):
433
"""Overwrite the data_manager by ScenarioOnlineDataManager"""
434
super().setup_engine()
0 commit comments