Skip to content

Commit

Permalink
Fix test (#662)
Browse files Browse the repository at this point in the history
* add more sanity check

* fix test
  • Loading branch information
QuanyiLi authored Feb 24, 2024
1 parent 905fbdd commit 65d17aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metadrive/scenario/scenario_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ def offset_scenario_with_new_origin(scenario, new_origin):

for light in scenario[ScenarioDescription.DYNAMIC_MAP_STATES].values():
if ScenarioDescription.TRAFFIC_LIGHT_POSITION in light:
light["stop_point"] = np.asarray(light["stop_point"])
light[ScenarioDescription.TRAFFIC_LIGHT_POSITION][..., :2] -= new_origin

scenario["metadata"]["old_origin_in_current_coordinate"] = -new_origin
Expand Down

0 comments on commit 65d17aa

Please sign in to comment.