New property for Trigger - TriggeringTimes?
This is generated from issue#205. Please refer to the discussion session of #205 (closed) for more details.
Describe the feature
This is to define the number of times a triggering condition is met before an action can be initialized in one single simulation run. For example, I want a vehicle to accelerate to 12m/s when it reaches a TTC=5s to ego car for the THIRD time during one single simulation run, not for the first time when TTC=5s.
Describe the solution you would like
From the discussion of #205 (closed),a memory for triggers (a trigger remembers how often it would have fired before it actually fires). It would be something like a "debounce" value. Working with a edge in the condition. Like:
- detect TTC < 5s => first detection
- TTC > 5s => critical situation was resolved the first time
- detect TTC < 5s => second detection
- TTC > 5s => critical situation was resolved the second time
- detect TTC < 5s => Fire
Describe the backwards compatibility
Andreas suggested a property of the type Trigger and of unsignedInt type[1..inf]. So, when we make it optional, we could be downward compatible If this attribute is not present, we assume 1 like the default behavior in in Version 1.0.