From 5526a9ec0da4f2198a50b982af495341bedf5702 Mon Sep 17 00:00:00 2001 From: pengzhenghao Date: Thu, 5 Dec 2024 20:47:49 -0800 Subject: [PATCH] Fix the map bug: in metadrive, all SD should be centralized. --- metadrive/manager/scenario_data_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/metadrive/manager/scenario_data_manager.py b/metadrive/manager/scenario_data_manager.py index 50e74514b..e9792743b 100644 --- a/metadrive/manager/scenario_data_manager.py +++ b/metadrive/manager/scenario_data_manager.py @@ -188,6 +188,7 @@ def current_scenario_summary(self): def set_scenario(self, scenario_description): SD.sanity_check(scenario_description) + scenario_description = SD.centralize_to_ego_car_initial_position(scenario_description) self._scenario = scenario_description def get_scenario(self, seed=None, should_copy=False):