Skip to main content

AVxcelerate Simulation Framework 2026 R1

Class simulation_framework::evaluator::DistanceDrivenCalculator

Last update: 09.03.2026

Definition: autonomy/evaluator/distance_calculator/distance_calculator.h (line 38)

class DistanceDrivenCalculator

DistanceDrivenCalculator class to calculate the total distance covered/driven by an Ego car based on osi GroundTruth Algorithm explaination:

  1. Find out the Ego vehicle index within MovingObject list from GroundTruth and compute the BoundingBox

  2. Get the position of Ego vehicle at each time interval/step.

  3. Calculate the Eucledian distance between two positions of Ego vehicle(at given time stamp)

  4. Make the sum of all the distances calculated(For each time step)

  5. One of the possible validation method could be to calculate distance from Formulas based on the Average car Velocity and total travel Time. And compare the result with distance calculated using Euclidean method.

  6. For now, we have added a few tests based on hard-coded values of position, which helps to confirm/validate the basic logic of distance driven calculation.

Members

Public functions

Function Calculate

double simulation_framework::evaluator::DistanceDrivenCalculator::Calculate(const osi3::GroundTruth &ground_truth)

Parameters:

  • const osi3::GroundTruth & ground_truth

Return type: double

Connect with Ansys