Skip to content

Commit

Permalink
fixed simulation time name for evaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
vancony23 committed Aug 20, 2022
1 parent 15d55cc commit 58a8dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner_competition_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def compute_score(carla_runner: CarlaRunner) -> Tuple[float, int, int]:
"""
# time_elapsed: float = carla_runner.end_simulation_time - carla_runner.start_simulation_time
# use simulation time, not real time
time_elapsed: float = carla_runner.end_sim_time - carla_runner.start_sim_time
time_elapsed: float = carla_runner.end_simulation_time - carla_runner.start_simulation_time
num_collision: int = carla_runner.agent_collision_counter
laps_completed = 0 if carla_runner.completed_lap_count < 0 else carla_runner.completed_lap_count

Expand Down

0 comments on commit 58a8dde

Please sign in to comment.