Skip to content

Commit

Permalink
Fix the map bug: in metadrive, all SD should be centralized.
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhenghao committed Dec 6, 2024
1 parent fcb68eb commit 5526a9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metadrive/manager/scenario_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5526a9e

Please sign in to comment.