    

 ## On this page

  

 

 # simulation\_framework::evaluator::DistanceDrivenEvaluator Class Reference

 Last update: 16.07.2025 

class [DistanceDrivenEvaluator](classsimulation__framework_1_1evaluator_1_1DistanceDrivenEvaluator.xhtml "class DistanceDrivenEvaluator") [More...](classsimulation__framework_1_1evaluator_1_1DistanceDrivenEvaluator.xhtml#details)

`#include <<a class="el" href="distance__driven__evaluator_8h_source.xhtml">distance_driven_evaluator.h</a>>`

Inheritance diagram for simulation_framework::evaluator::DistanceDrivenEvaluator:

![Inheritance graph](/sites/default/files/migrate-content/avxcelerate_simulation_framework_2025_r1_num1/classsimulation__framework_1_1evaluator_1_1DistanceDrivenEvaluator__inherit__graph.png)

\[[legend](graph_legend.xhtml)\]

Collaboration diagram for simulation_framework::evaluator::DistanceDrivenEvaluator:

![Collaboration graph](/sites/default/files/migrate-content/avxcelerate_simulation_framework_2025_r1_num1/classsimulation__framework_1_1evaluator_1_1DistanceDrivenEvaluator__coll__graph.png)

\[[legend](graph_legend.xhtml)\]

## <a name="pub-methods"></a>Public Member Functions

<a id="a73f1fbf32fa117be135700df7bd9bf80"></a> **DistanceDrivenEvaluator** (const std::string &amp;kpi\_name="driven\_dist") void [Init](classsimulation__framework_1_1evaluator_1_1DistanceDrivenEvaluator.xhtml#abfe81ec22fdea705cf8ed83d51f2f3eb) () override void [Reset](classsimulation__framework_1_1evaluator_1_1DistanceDrivenEvaluator.xhtml#a0ae35bde229b1db909a6331e8062d3ac) () override [core::kpi::KpiContent](structsimulation__framework_1_1core_1_1kpi_1_1KpiContent.xhtml) [CalculateKpi](classsimulation__framework_1_1evaluator_1_1DistanceDrivenEvaluator.xhtml#aa82101c9e83590c1e4f687b50a8738dc) (const avx\_osi3::GroundTruth &amp;ground\_truth) override <a id="acc4088bba0acb50e544228f3ed1fa35a"></a>core::kpi::Type **GetKpiType** () const override ![-](/sites/default/files/migrate-content/avxcelerate_simulation_framework_2025_r1_num1/closed.png) Public Member Functions inherited from [simulation\_framework::core::kpi::IKpi&lt; avx\_osi3::GroundTruth &gt;](classsimulation__framework_1_1core_1_1kpi_1_1IKpi.xhtml)<a id="aeef163c532f5b7b03e685642cb75ccaa"></a>virtual kpi::Type [GetKpiType](classsimulation__framework_1_1core_1_1kpi_1_1IKpi.xhtml#aeef163c532f5b7b03e685642cb75ccaa) () const=0 Return the KPI type, currently three types are possible: kpi::Type::kScalar, The KPI is scalar value with unit kpi::Type::kTimeSeries, The KPI is a time serie kpi::Type::kLog, The KPI is part of a continuous log.   
 <a id="details" name="details"></a>## Detailed Description

class [DistanceDrivenEvaluator](classsimulation__framework_1_1evaluator_1_1DistanceDrivenEvaluator.xhtml "class DistanceDrivenEvaluator")

Definition of [DistanceDrivenEvaluator](classsimulation__framework_1_1evaluator_1_1DistanceDrivenEvaluator.xhtml "class DistanceDrivenEvaluator") class to To fulfill this we want to implement a KPI evaluator that aggregates the distance driven by the ego vehicle over the course of the simulation.



## Member Function Documentation

<a id="aa82101c9e83590c1e4f687b50a8738dc"></a>## [◆ ](#aa82101c9e83590c1e4f687b50a8738dc)CalculateKpi()

 [core::kpi::KpiContent](structsimulation__framework_1_1core_1_1kpi_1_1KpiContent.xhtml) simulation\_framework::evaluator::DistanceDrivenEvaluator::CalculateKpi  ( const avx\_osi3::GroundTruth &amp;  *input*)   overridevirtual 

Run core logic of KPI calculation

Implements [simulation\_framework::core::kpi::IKpi&lt; avx\_osi3::GroundTruth &gt;](classsimulation__framework_1_1core_1_1kpi_1_1IKpi.xhtml#a614cb6051405e8865257360eefff9ab6).





<a id="abfe81ec22fdea705cf8ed83d51f2f3eb"></a>## [◆ ](#abfe81ec22fdea705cf8ed83d51f2f3eb)Init()

 void simulation\_framework::evaluator::DistanceDrivenEvaluator::Init  ( )   overridevirtual 

Initialize the logic

Implements [simulation\_framework::core::kpi::IKpi&lt; avx\_osi3::GroundTruth &gt;](classsimulation__framework_1_1core_1_1kpi_1_1IKpi.xhtml#affa38e79e2d2fe57ac913fa736437fae).





<a id="a0ae35bde229b1db909a6331e8062d3ac"></a>## [◆ ](#a0ae35bde229b1db909a6331e8062d3ac)Reset()

 void simulation\_framework::evaluator::DistanceDrivenEvaluator::Reset  ( )   overridevirtual 

Clean up all stored temp data and be ready for next round of new calculation, in case the simulation needs to be restarted

Implements [simulation\_framework::core::kpi::IKpi&lt; avx\_osi3::GroundTruth &gt;](classsimulation__framework_1_1core_1_1kpi_1_1IKpi.xhtml#ad08cdb1d1091c84920a9733a81c752a5).





---

The documentation for this class was generated from the following files:- [distance\_driven\_evaluator.h](distance__driven__evaluator_8h_source.xhtml)
- distance\_driven\_evaluator.cpp