simulation_framework::evaluator::DistanceDrivenCalculator Class Reference
Last update: 16.07.2025class DistanceDrivenCalculator More...
#include <distance_calculator.h>
Public Member Functions | |
| double | Calculate (const avx_osi3::GroundTruth &ground_truth) |
Detailed Description
class DistanceDrivenCalculator
DistanceDrivenCalculator class to calculate the total distance covered/driven by an Ego car based on osi GroundTruth Algorithm explaination:
- Find out the Ego vehicle index within MovingObject list from GroundTruth and compute the BoundingBox
- Get the position of Ego vehicle at each time interval/step.
- Calculate the Eucledian distance between two positions of Ego vehicle(at given time stamp)
- Make the sum of all the distances calculated(For each time step)
- 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.
- 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 caluclation.
The documentation for this class was generated from the following files:
- distance_calculator.h
- distance_calculator.cpp