Skip to content

Commit

Permalink
Make format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Nov 28, 2023
1 parent 9807735 commit 0d70f5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions smarts/core/vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def valid(self) -> bool:
def vehicle_urdf_path(vehicle_type: str, default_path: Optional[str]) -> str:
if (default_path is not None) and os.path.exists(default_path):
return default_path

if vehicle_type == "sedan":
vehicle_type = "passenger"

Expand Down Expand Up @@ -316,10 +316,14 @@ def build_agent_vehicle(
"""Create a new vehicle and set up sensors and planning information as required by the
ego agent.
"""
urdf_file = cls.vehicle_urdf_path(agent_interface.vehicle_type, vehicle_filepath)
urdf_file = cls.vehicle_urdf_path(
agent_interface.vehicle_type, vehicle_filepath
)

mission = plan.mission
chassis_dims = cls.agent_vehicle_dims(mission, default=agent_interface.vehicle_type)
chassis_dims = cls.agent_vehicle_dims(
mission, default=agent_interface.vehicle_type
)

start = mission.start
if start.from_front_bumper:
Expand Down
4 changes: 2 additions & 2 deletions smarts/core/vehicle_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ def build_agent_vehicle(
plan,
tire_filepath,
trainable: bool,
initial_speed: Optional[float]=None,
boid: bool=False,
initial_speed: Optional[float] = None,
boid: bool = False,
*,
vehicle_id=None,
):
Expand Down

0 comments on commit 0d70f5c

Please sign in to comment.