Skip to main content

AVxcelerate Simulation Framework 2024 R2 SP02

simulation_framework::evaluator::DistanceDrivenEvaluator Class Reference

Last update: 16.07.2025

class DistanceDrivenEvaluator More...

#include <distance_driven_evaluator.h>

Inheritance diagram for simulation_framework::evaluator::DistanceDrivenEvaluator:
Collaboration diagram for simulation_framework::evaluator::DistanceDrivenEvaluator:

Public Member Functions

 DistanceDrivenEvaluator (const std::string &kpi_name="driven_dist")
 
void Init () override
 
void Reset () override
 
core::kpi::KpiContent CalculateKpi (const avx_osi3::GroundTruth &ground_truth) override
 
core::kpi::Type GetKpiType () const override
 
- Public Member Functions inherited from simulation_framework::core::kpi::IKpi< avx_osi3::GroundTruth >
virtual kpi::Type GetKpiType () 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.
 

Detailed Description

class DistanceDrivenEvaluator

Definition of 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

◆ CalculateKpi()

core::kpi::KpiContent simulation_framework::evaluator::DistanceDrivenEvaluator::CalculateKpi ( const avx_osi3::GroundTruth &  input)
overridevirtual

Run core logic of KPI calculation

Implements simulation_framework::core::kpi::IKpi< avx_osi3::GroundTruth >.

◆ Init()

void simulation_framework::evaluator::DistanceDrivenEvaluator::Init ( )
overridevirtual

◆ 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< avx_osi3::GroundTruth >.


The documentation for this class was generated from the following files:

Connect with Ansys