    

 ## On this page

  

 

 # File ttc\_calculator.h

 Last update: 22.04.2026 

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

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

## Classes

- [simulation\_framework::evaluator::TimeToCollisionCalculator](classsimulation__framework_1_1evaluator_1_1TimeToCollisionCalculator.md#classsimulation__framework_1_1evaluator_1_1TimeToCollisionCalculator)

## 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.pb.h&gt;

## Included by

- [min\_ttc\_evaluator.h](min__ttc__evaluator_8h.md#min__ttc__evaluator_8h)
- [ttc\_calculator.cpp](ttc__calculator_8cpp.md#ttc__calculator_8cpp)

## Source

```cpp


#ifndef SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_TTCCALCULATOR_TTCCALCULATOR_H
#define SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_TTCCALCULATOR_TTCCALCULATOR_H

#include <osi_groundtruth.pb.h>

namespace simulation_framework
{

namespace evaluator
{


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

}  // namespace evaluator
}  // namespace simulation_framework

#endif  // SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_TTCCALCULATOR_TTCCALCULATOR_H

```