feat: Consider TTC at stochastic spawning in TrafficAreaAction
New entites use a sampled time gap (user defined parameter tgap) and initial velocity (user defined parameter velocity). As those parameters alone do not guarantee a crash-free, this commit introduces a basic TTC robustness check for newly spawned entities, so that the likelyhood for collisions is reduced. The TTC check includes reaction time and an assumed deceleration under the restriction that the opponent is moving at constant velocity.
parent
f2ba70ce
Branches ttc-for-traffic-area-action
No related tags found
Showing
- doc/traffic_area_action.md 14 additions, 0 deletionsdoc/traffic_area_action.md
- engine/BUILD.bazel 12 additions, 0 deletionsengine/BUILD.bazel
- engine/src/Utils/Spawning/Interval.cpp 1 addition, 10 deletionsengine/src/Utils/Spawning/Interval.cpp
- engine/src/Utils/Spawning/Length.cpp 1 addition, 1 deletionengine/src/Utils/Spawning/Length.cpp
- engine/src/Utils/Spawning/Length.h 5 additions, 3 deletionsengine/src/Utils/Spawning/Length.h
- engine/src/Utils/Spawning/SpawnSpace.cpp 28 additions, 25 deletionsengine/src/Utils/Spawning/SpawnSpace.cpp
- engine/src/Utils/Spawning/SpawnSpace.h 51 additions, 5 deletionsengine/src/Utils/Spawning/SpawnSpace.h
- engine/src/Utils/Spawning/TimeToCollisionUtils.cpp 115 additions, 0 deletionsengine/src/Utils/Spawning/TimeToCollisionUtils.cpp
- engine/src/Utils/Spawning/TimeToCollisionUtils.h 55 additions, 0 deletionsengine/src/Utils/Spawning/TimeToCollisionUtils.h
- engine/tests/Utils/Spawning/SpawnSpaceTest.cpp 95 additions, 0 deletionsengine/tests/Utils/Spawning/SpawnSpaceTest.cpp
- engine/tests/Utils/Spawning/TimeToCollisionUtilsTest.cpp 141 additions, 0 deletionsengine/tests/Utils/Spawning/TimeToCollisionUtilsTest.cpp
Loading
Please register or sign in to comment