autonomy/evaluator/distance_calculator/distance_calculator.h
Classes
Namespaces
Includes
- <osi_groundtruth.pb.h>
- <optional>
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
autonomy/evaluator/distance_calculator/distance_calculator.h
#ifndef SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_DISTANCECALCULATOR_DISTANCECALCULATOR_H
#define SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_DISTANCECALCULATOR_DISTANCECALCULATOR_H
#include <osi_groundtruth.pb.h>
#include <optional>
namespace simulation_framework
{
namespace evaluator
{
class DistanceDrivenCalculator
{
public:
double Calculate(const osi3::GroundTruth& ground_truth);
private:
std::optional<double> last_xpos_;
std::optional<double> last_ypos_;
bool is_initialized_{false};
};
} // namespace evaluator
} // namespace simulation_framework
#endif // SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_DISTANCECALCULATOR_DISTANCECALCULATOR_H
Was this page helpful?