opencda.scenario_testing.evaluations package¶
Submodules¶
opencda.scenario_testing.evaluations.evaluate_manager module¶
Evaluation manager.
- class opencda.scenario_testing.evaluations.evaluate_manager.EvaluationManager(cav_world, script_name, current_time)¶
Bases:
object
Evaluation manager to manage the analysis of the results for different modules.
- Parameters
cav_world (opencda object) – The CavWorld object that contains all CAVs’ information.
script_name (str) – The current scenario testing name. E.g, single_town06_carla
current_time (str) – Current timestamp, used to name the output folder.
- eval_save_path¶
The final output folder name.
- Type
str
- evaluate()¶
Evaluate performance of all modules by plotting and writing the statistics into the log file.
- kinematics_eval(log_file)¶
vehicle kinematics related evaluation.
- Parameters
-log_file (File) – The log file to write the data.
- localization_eval(log_file)¶
Localization module evaluation.
- Parameters
-log_file (File) – The log file to write the data.
- platooning_eval(log_file)¶
Platooning evaluation.
- Parameters
-log_file (File) – The log file to write the data.
opencda.scenario_testing.evaluations.utils module¶
Utility functions for evaluation.
- opencda.scenario_testing.evaluations.utils.lprint(logfile, *argv)¶
Save string to log file.
- Parameters
-logfile (File) – The log file path.
-*argv –
the string that needs to be saved
file. (into the log) –