Skip to main content

AVxcelerate Simulation Framework 2026 R1 SP01

File predictive_min_ttc_evaluator.h

Last update: 22.04.2026

Location: autonomy/evaluator/predictive_min_ttc_evaluator/predictive_min_ttc_evaluator.h

Classes

Namespaces

Includes

Included by

Source



#ifndef SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_PREDICTIVEMINTTCEVALUATOR_PREDICTIVEMINTTCEVALUATOR_H
#define SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_PREDICTIVEMINTTCEVALUATOR_PREDICTIVEMINTTCEVALUATOR_H

#include "autonomy/evaluator/predictive_ttc_calculator/predictive_ttc_calculator.h"
#include "core/kpi/i_kpi/i_kpi.h"

namespace simulation_framework
{

namespace evaluator
{


class PredictiveMinTtcEvaluator : public core::kpi::IKpi<osi3::GroundTruth>
{
  public:
    PredictiveMinTtcEvaluator(const std::string& kpi_name = "predictive_min_ttc");
    ~PredictiveMinTtcEvaluator() = default;

    void Init() override;
    void Reset() override;
    core::kpi::KpiContent CalculateKpi(const osi3::GroundTruth& ground_truth) override;
    core::kpi::Type GetKpiType() const override;

  private:
    std::chrono::milliseconds min_ttc_;
    std::string kpi_name_;
    PredictiveTimeToCollisionCalculator predictive_ttc_calculator_{};
};

}  // namespace evaluator
}  // namespace simulation_framework

#endif  // SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_PREDICTIVEMINTTCEVALUATOR_PREDICTIVEMINTTCEVALUATOR_H

Connect with Ansys