Skip to content

Commit

Permalink
Merge pull request augcog#66 from RedMellon/main
Browse files Browse the repository at this point in the history
added sim time in evaluator, removed MPC agent
  • Loading branch information
TLZH0001 authored Aug 14, 2022
2 parents 72f1075 + c165e23 commit 04e7fec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ROAR_Sim
4 changes: 3 additions & 1 deletion runner_competition_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def compute_score(carla_runner: CarlaRunner) -> Tuple[float, int, int]:
laps_completed: Number of laps completed
"""
time_elapsed: float = carla_runner.end_simulation_time - carla_runner.start_simulation_time
# 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
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
1 change: 0 additions & 1 deletion runner_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from misc.utils import str2bool
from ROAR.agent_module.michael_pid_agent import PIDAgent
from ROAR.agent_module.forward_only_agent import ForwardOnlyAgent
from ROAR.agent_module.full_mpc_agent import MPCAgent


def main(args):
Expand Down

0 comments on commit 04e7fec

Please sign in to comment.