Skip to main content

AVxcelerate Simulation Framework 2026 R1 SP01

Class simulation_framework::evaluator::PredictiveMinTtcEvaluator

Last update: 22.04.2026

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

simulation_framework::evaluator::PredictiveMinTtcEvaluator::PredictiveMinTtcEvaluator(const std::string &kpi_name="predictive_min_ttc")

Parameters:

  • const std::string & kpi_name = "predictive_min_ttc"

Return type:

Function ~PredictiveMinTtcEvaluator

simulation_framework::evaluator::PredictiveMinTtcEvaluator::~PredictiveMinTtcEvaluator()=default

Return type:

Function Init

void simulation_framework::evaluator::PredictiveMinTtcEvaluator::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::PredictiveMinTtcEvaluator::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::PredictiveMinTtcEvaluator::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::PredictiveMinTtcEvaluator::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

Connect with Ansys