Skip to content

TTC (Time To Collision) calculation - responsibility

The TTC calculation, as needed by the TimeToCollisionCondition is a rather complex algorithm (see simopenpass commonTools.h) and we're currently discussion if we should implement it directly in the open scenario engine (OSE).

PROS

  • The simulators are not in charge anymore and simulations will be better comparable
  • If a party comes up with a more performant/better approach, everybody benefits from it

CONS

  • If a simulator also needs a TTC calculations (as some openPASS ADAS components), we create either differing implementations or
  • The OSE implementation must be available "from the outside" (back to the mantle_api?)

Right now, it would be easier to let the simulator do the work, which would then go in hand with an extension of the mantle_api (I guess, we need 2 implementations CalculateTtc(entity, entity) and CalculateTtc(entity, pose).