    

 ## On this page

  

 

 # File predictive\_ttc\_calculator.h

 Last update: 09.03.2026 

![](https://img.shields.io/badge/language-C%2B%2B-blue "C++")

**Location**: `autonomy/evaluator/predictive_ttc_calculator/predictive_ttc_calculator.h`

## Classes

- [simulation\_framework::evaluator::PredictiveTimeToCollisionCalculator](classsimulation__framework_1_1evaluator_1_1PredictiveTimeToCollisionCalculator.md#classsimulation__framework_1_1evaluator_1_1PredictiveTimeToCollisionCalculator)

## Namespaces

- [simulation\_framework](namespacesimulation__framework.md#namespacesimulation__framework)
- [evaluator](namespaceevaluator.md#namespaceevaluator)
- [simulation\_framework::evaluator](namespacesimulation__framework_1_1evaluator.md#namespacesimulation__framework_1_1evaluator)

## Includes

- &lt;osi\_groundtruth&gt;

## Included by

- [predictive\_min\_ttc\_evaluator.h](predictive__min__ttc__evaluator_8h.md#predictive__min__ttc__evaluator_8h)
- [predictive\_ttc\_calculator.cpp](predictive__ttc__calculator_8cpp.md#predictive__ttc__calculator_8cpp)

## Source

```cpp


#pragma once

#include <osi_groundtruth>

namespace simulation_framework
{

namespace evaluator
{


class PredictiveTimeToCollisionCalculator
{
  public:
    std::chrono::milliseconds Calculate(const osi3::GroundTruth&amp; ground_truth) const;

  private:
    uint64_t predictive_ttc_precision_{100};
    uint64_t predictive_ttc_max_{20000};
};

}  // namespace evaluator
}  // namespace simulation_framework

```

\[static\]: <https://img.shields.io/badge/-static-lightgrey> (static)&lt;/osi\_groundtruth&gt;&lt;/osi\_groundtruth&gt;