Skip to main content

AVxcelerate Simulation Framework 2025 R2

distance_driven_evaluator

Last update: 16.07.2025
1
3
4#pragma once
5
6#include "autonomy/evaluator/distance_calculator/distance_calculator.h"
7#include "core/kpi/i_kpi/i_kpi.h"
8
14{
15
20namespace evaluator
21{
22
24
29class DistanceDrivenEvaluator : public core::kpi::IKpi<osi3::GroundTruth>
30{
31 public:
32 DistanceDrivenEvaluator(const std::string& kpi_name = "driven_dist");
33 ~DistanceDrivenEvaluator() = default;
34
35 void Init() override;
36 void Reset() override;
37 core::kpi::KpiContent CalculateKpi(const osi3::GroundTruth& ground_truth) override;
38 core::kpi::Type GetKpiType() const override;
39
40 private:
41 double driven_dist_;
42 std::string kpi_name_;
43 core::kpi::KpiContent kpi_content_{};
44 DistanceDrivenCalculator distance_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