Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhenghao committed Mar 27, 2024
1 parent 3bcb7b5 commit 9f1afbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metadrive/manager/scenario_traffic_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ def spawn_vehicle(self, v_id, track):
vehicle_class,
# PZH Note: We are using 3D position (including Z) to spawn object.
position=position,
heading=state["heading"], vehicle_config=v_cfg, name=obj_name
heading=state["heading"],
vehicle_config=v_cfg,
name=obj_name
)
self._scenario_id_to_obj_id[v_id] = v.name
self._obj_id_to_scenario_id[v.name] = v_id
Expand Down

0 comments on commit 9f1afbc

Please sign in to comment.