Skip to main content
Definition: autonomy/evaluator/predictive_min_ttc_evaluator/predictive_min_ttc_evaluator.h (line 31) class PredictiveMinTtcEvaluator Definition of PredictiveMinTtcEvaluator 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 PredictiveMinTtcEvaluator

Parameters:
  • const std::string & kpi_name = “predictive_min_ttc”
Return type:

Function ~PredictiveMinTtcEvaluator

Return type:

Function Init

Initializes the KPI logic. Sets up any necessary state or resources required for KPI calculation. Return type: void Reimplements: Init

Function Reset

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

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

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