Skip to main content

AVxcelerate Simulation Framework 2025 R2 SP02

predictive_min_ttc_evaluator

Last update: 19.09.2025
1
3
4#pragma once
5
6#include "autonomy/evaluator/predictive_ttc_calculator/predictive_ttc_calculator.h"
7#include "core/kpi/i_kpi/i_kpi.h"
8
14{
15
20namespace evaluator
21{
22
24
30class PredictiveMinTtcEvaluator : public core::kpi::IKpi<osi3::GroundTruth>
31{
32 public:
33 PredictiveMinTtcEvaluator(const std::string& kpi_name = "predictive_min_ttc");
35
36 void Init() override;
37 void Reset() override;
38 core::kpi::KpiContent CalculateKpi(const osi3::GroundTruth& ground_truth) override;
39 core::kpi::Type GetKpiType() const override;
40
41 private:
42 std::chrono::milliseconds min_ttc_;
43 std::string kpi_name_;
44 PredictiveTimeToCollisionCalculator predictive_ttc_calculator_{};
45};
46
47} // namespace evaluator
48} // namespace simulation_framework
Represents core KPI calculation logic.
Definition i_kpi.h:39
core::kpi::KpiContent CalculateKpi(const osi3::GroundTruth &ground_truth) override
Executes the core KPI calculation logic.
core::kpi::Type GetKpiType() const override
Retrieves the KPI type.
The namespace containing evaluator implementations.
The top namespace for simulation framework.

Connect with Ansys