autonomy/evaluator/predictive_min_ttc_evaluator/predictive_min_ttc_evaluator.h
File predictive_min_ttc_evaluator.h
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
autonomy/evaluator/predictive_min_ttc_evaluator/predictive_min_ttc_evaluator.h
#ifndef SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_PREDICTIVEMINTTCEVALUATOR_PREDICTIVEMINTTCEVALUATOR_H
#define SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_PREDICTIVEMINTTCEVALUATOR_PREDICTIVEMINTTCEVALUATOR_H
#include "autonomy/evaluator/predictive_ttc_calculator/predictive_ttc_calculator.h"
#include "core/kpi/i_kpi/i_kpi.h"
namespace simulation_framework
{
namespace evaluator
{
class PredictiveMinTtcEvaluator : public core::kpi::IKpi<osi3::GroundTruth>
{
public:
PredictiveMinTtcEvaluator(const std::string& kpi_name = "predictive_min_ttc");
~PredictiveMinTtcEvaluator() = default;
void Init() override;
void Reset() override;
core::kpi::KpiContent CalculateKpi(const osi3::GroundTruth& ground_truth) override;
core::kpi::Type GetKpiType() const override;
private:
std::chrono::milliseconds min_ttc_;
std::string kpi_name_;
PredictiveTimeToCollisionCalculator predictive_ttc_calculator_{};
};
} // namespace evaluator
} // namespace simulation_framework
#endif // SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_PREDICTIVEMINTTCEVALUATOR_PREDICTIVEMINTTCEVALUATOR_H
Was this page helpful?