Class simulation_framework::evaluator::MinTtcEvaluator
Last update: 22.04.2026
Definition: autonomy/evaluator/min_ttc_evaluator/min_ttc_evaluator.h (line 33)
class MinTtcEvaluator
Definition of MinTtcEvaluator class to calculate the minimum time to collision. This will store the lowest value of TTC being observed during one simulation run.
Inherits from:
Members
Public functions
Function MinTtcEvaluator
simulation_framework::evaluator::MinTtcEvaluator::MinTtcEvaluator(const std::string &kpi_name="min_ttc")
Parameters:
- const std::string & kpi_name = "min_ttc"
Return type:
Function ~MinTtcEvaluator
simulation_framework::evaluator::MinTtcEvaluator::~MinTtcEvaluator()=default
Return type:
Function Init
void simulation_framework::evaluator::MinTtcEvaluator::Init() override
Initializes the KPI logic.
Sets up any necessary state or resources required for KPI calculation.
Return type: void
Reimplements: Init
Function Reset
void simulation_framework::evaluator::MinTtcEvaluator::Reset() override
Resets the KPI logic.
Clears temporary data and prepares the KPI logic for a new calculation, especially if the simulation needs to be restarted.
Return type: void
Reimplements: Reset
Function CalculateKpi
core::kpi::KpiContent simulation_framework::evaluator::MinTtcEvaluator::CalculateKpi(const osi3::GroundTruth &ground_truth) override
Executes the core KPI calculation logic.
Parameters:
- input: The input data required for KPI calculation.
Returns:
The calculated KPI content as a KpiContent object.
Parameters:
- const osi3::GroundTruth & input
Return type: core::kpi::KpiContent
Reimplements: CalculateKpi
Function GetKpiType
core::kpi::Type simulation_framework::evaluator::MinTtcEvaluator::GetKpiType() const override
Retrieves the KPI type.
Indicates the type of KPI, which can be one of the following:
-
kpi::Type::kScalar: A scalar value with a unit. -
kpi::Type::kTimeSeries: A time series representation. -
kpi::Type::kLog: A continuous log.
Returns:
The type of the KPI as a kpi::Type enum value.
Return type: core::kpi::Type
Reimplements: GetKpiType